/* 📦 统一大容器样式 - Hero区域包含所有内容 */

/* ============================================
   Hero区域扩展为统一容器
   ============================================ */

.hero-section {
    position: relative !important;
    overflow: visible !important;
    min-height: auto !important;
    padding: 80px 0 80px 0 !important;
    
    /* 统一的深色赛博朋克背景 */
    background: linear-gradient(135deg, 
        #1a1410 0%, 
        #2d2416 20%,
        #1a1410 40%,
        #0f0d0a 60%,
        #1a1410 80%,
        #06050a 100%) !important;
}

/* ============================================
   内容区域间距管理
   ============================================ */

/* Hero原始内容（标题、按钮、统计卡片） - 不再需要分隔线 */
.hero-container {
    padding-bottom: 80px !important;
    position: relative !important;
}

/* ============================================
   section-container 和标题样式已删除
   （热门分类和精品推荐已移除）
   ============================================ */

/* ============================================
   网格背景统一
   ============================================ */

.hero-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px) !important;
    background-size: 50px 50px !important;
    opacity: 0.5 !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

/* ============================================
   确保所有内容层级正确
   ============================================ */

.hero-section .hero-container,
.hero-section .right-sidebar-panel {
    position: relative !important;
    z-index: 2 !important;
}

/* ============================================
   右侧面板在统一容器内的定位
   ============================================ */

.hero-section .right-sidebar-panel {
    position: absolute !important;
    top: 0 !important;
    right: 30px !important;
    width: 300px !important;
    height: 100% !important;
    max-height: 100% !important;
    z-index: 15 !important;
    overflow-y: auto !important;
}

/* ============================================
   主内容区域为右侧面板留出空间
   ============================================ */

main.content {
    margin-right: 0 !important; /* 移除之前的全局margin */
}

.hero-section .hero-container {
    margin-right: 320px !important; /* 为右侧面板留出空间 */
}

/* ============================================
   响应式优化
   ============================================ */

@media (max-width: 1023px) {
    .hero-section {
        padding: 60px 0 60px 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .hero-container {
        padding-bottom: 60px !important;
        margin-right: 0 !important;
    }
    
    .hero-section .right-sidebar-panel {
        position: static !important;
        width: 100% !important;
        max-height: none !important;
        margin-top: 50px !important;
        order: 999 !important;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 40px 0 50px 0 !important;
    }
    
    .hero-container {
        padding-bottom: 50px !important;
    }
}

/* ============================================
   分隔线已删除（精品推荐板块已移除）
   ============================================ */

/* ============================================
   性能优化
   ============================================ */

.hero-section {
    transform: translate3d(0, 0, 0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    contain: layout style paint !important;
}

/* ============================================
   确保内容不重叠
   ============================================ */

.hero-section > * {
    position: relative !important;
}

