* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    color: #f1f5f9;
    position: relative;
    overflow-x: hidden;
}

/* 环境背景 */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* 顶部导航 */
.top-navigation {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 2px solid rgba(245, 158, 11, 0.2);
    position: relative;
    z-index: 100;
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.logo-mark {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.logo-mark i {
    font-size: 26px;
    color: #1e293b;
}

.brand-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #f8fafc;
}

.brand-name span {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-menu {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.menu-link {
    padding: 10px 20px;
    color: rgba(241, 245, 249, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.menu-link i {
    font-size: 15px;
}

.menu-link:hover {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    transform: translateY(-2px);
}

.search-container {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.search-input {
    padding: 12px 18px;
    background: transparent;
    border: none;
    color: #f8fafc;
    font-size: 14px;
    width: 200px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(241, 245, 249, 0.4);
}

.search-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #1e293b;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* 内容容器 */
.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
    position: relative;
    z-index: 10;
}

/* Hero区域 */
.hero-section {
    margin-bottom: 40px;
    text-align: center;
}

.hero-content {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 20px;
    padding: 50px 30px;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    background: linear-gradient(135deg, #f59e0b 0%, #f8fafc 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(241, 245, 249, 0.7);
    font-weight: 400;
}

.hero-lede {
    max-width: 760px;
    margin: 18px auto 0;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(226, 232, 240, 0.8);
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
}

/* 主布局 - 含侧边栏 */
.main-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.homepage-layout {
    display: block;
}

/* 侧边栏广告 */
.sidebar-ad {
    width: 160px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.ad-placeholder {
    background: transparent;
    border: none;
    min-height: 600px;
    display: block;
    padding: 0;
}

.ad-placeholder.horizontal {
    min-height: 120px;
    min-width: 100%;
}

.sidebar-panel {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 22px 18px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 14px;
}

.sidebar-list {
    margin-left: 18px;
}

.sidebar-list li {
    color: rgba(226, 232, 240, 0.78);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.sidebar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.sidebar-link-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #bfdbfe;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.sidebar-link-chip:hover {
    transform: translateY(-2px);
    background: rgba(59, 130, 246, 0.18);
}

.sidebar-note {
    color: rgba(226, 232, 240, 0.72);
    font-size: 13px;
    line-height: 1.7;
}

/* 中间内容区 */
.main-content-area {
    flex: 1;
    min-width: 0;
}

.homepage-overview-section {
    margin-bottom: 28px;
}

.overview-shell {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.overview-copy,
.overview-summary-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.overview-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.22);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.overview-copy h2,
.overview-summary-card h3 {
    font-size: 28px;
    line-height: 1.2;
    color: #f8fafc;
    margin-bottom: 14px;
}

.overview-summary-card h3 {
    font-size: 22px;
}

.overview-copy p {
    color: rgba(226, 232, 240, 0.8);
    font-size: 15px;
    line-height: 1.8;
}

.overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.overview-btn {
    text-decoration: none;
}

.text-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.text-link-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.28);
    color: #f8fafc;
}

.overview-stat-grid {
    display: grid;
    gap: 14px;
}

.overview-stat {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-stat strong {
    display: block;
    color: #f8fafc;
    font-size: 15px;
    margin-bottom: 8px;
}

.overview-stat span {
    color: rgba(226, 232, 240, 0.74);
    font-size: 13px;
    line-height: 1.7;
}

/* 游戏播放器区 */
.game-player-section {
    margin-bottom: 24px;
}

.compact-header {
    margin-bottom: 16px;
}

.player-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.player-window {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.player-window iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.player-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.current-game {
    display: flex;
    align-items: center;
    gap: 16px;
}

.game-thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-name {
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
}

.player-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.featured-player-note {
    margin-top: 14px;
    color: rgba(226, 232, 240, 0.72);
    font-size: 14px;
    line-height: 1.8;
}

.controls-section {
    margin-bottom: 34px;
}

.controls-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 24px 26px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.controls-grid {
    display: grid;
    gap: 14px;
}

.control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.control-keyset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.22);
    color: #fbbf24;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.control-text {
    color: rgba(226, 232, 240, 0.82);
    font-size: 14px;
    line-height: 1.7;
    text-align: right;
}

/* 底部广告 */
.bottom-ad-section {
    margin-bottom: 40px;
}

.bottom-ad {
    width: 100%;
}

/* 游戏推荐区 */
.featured-games {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-header i {
    font-size: 24px;
    color: #f59e0b;
}

.section-heading {
    font-size: 26px;
    font-weight: 700;
    color: #f8fafc;
}

.games-collection {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
}

/* 游戏卡片 */
.game-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    aspect-ratio: 1/1;
    position: relative;
}

.game-item:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.2);
}

.game-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.95));
    padding: 28px 10px 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: #f8fafc;
}

/* 游戏介绍 */
.game-info-section {
    margin-bottom: 40px;
}

.portal-editorial-section,
.portal-guide-section,
.category-overview-section,
.category-context-section {
    margin-bottom: 40px;
}

.editorial-grid,
.guide-grid,
.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.editorial-card,
.guide-card,
.overview-card {
    display: block;
    text-decoration: none;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 24px;
    color: inherit;
    transition: all 0.3s ease;
}

.editorial-card:hover,
.guide-card:hover,
.overview-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
}

.editorial-label,
.overview-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.editorial-card h3,
.guide-card h3,
.overview-card h3 {
    font-size: 21px;
    color: #f8fafc;
    margin-bottom: 12px;
}

.editorial-card p,
.guide-card p,
.overview-card p {
    color: rgba(226, 232, 240, 0.78);
    font-size: 14px;
    line-height: 1.7;
}

.guide-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(59, 130, 246, 0.18) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #f8fafc;
    font-size: 20px;
}

.compact-info-card .info-content-block {
    padding-bottom: 28px;
}

.info-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.info-banner {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
}

.info-banner i {
    font-size: 22px;
}

.info-content-block {
    padding: 36px 36px 20px;
}

.block-title {
    font-size: 24px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(245, 158, 11, 0.3);
}

.info-content-block p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(241, 245, 249, 0.8);
    margin-bottom: 16px;
}

.subheading {
    font-size: 18px;
    font-weight: 700;
    color: #f59e0b;
    margin: 28px 0 14px;
}

.info-content-block ul {
    margin-left: 24px;
}

.info-content-block li {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(241, 245, 249, 0.8);
    margin-bottom: 10px;
}

.tags-display {
    padding: 24px 36px 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.game-tag {
    padding: 10px 18px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #93c5fd;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.game-tag:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
    cursor: pointer;
}

/* 页脚 */
.site-footer {
    background: rgba(15, 23, 42, 0.95);
    border-top: 2px solid rgba(245, 158, 11, 0.15);
    padding: 40px 24px;
    position: relative;
    z-index: 10;
}

.footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(241, 245, 249, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #f59e0b;
}

.copyright-text {
    font-size: 13px;
    color: rgba(148, 163, 184, 0.7);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .sidebar-ad {
        width: 120px;
    }

    .ad-placeholder {
        min-height: 500px;
    }

    .games-collection {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar-ad {
        width: 100%;
        position: static;
    }

    .left-ad {
        order: -1;
        margin-bottom: 24px;
    }

    .right-ad {
        margin-top: 24px;
    }

    .ad-placeholder {
        min-height: 120px;
    }

    .games-collection {
        grid-template-columns: repeat(5, 1fr);
    }

    .overview-shell {
        grid-template-columns: 1fr;
    }

    .editorial-grid,
    .guide-grid,
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-wrapper {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        flex-wrap: wrap;
    }

    .brand-area {
        order: 1;
    }

    .category-menu {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .search-container {
        order: 2;
        flex: 1;
    }

    .search-input {
        width: 100%;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-lede {
        font-size: 14px;
    }

    .games-collection {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .info-content-block {
        padding: 28px 24px 16px;
    }

    .tags-display {
        padding: 20px 24px 28px;
    }

    .player-bar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .content-container {
        padding: 28px 16px;
    }

    .overview-copy,
    .overview-summary-card {
        padding: 22px;
    }

    .overview-copy h2 {
        font-size: 24px;
    }

    .editorial-grid,
    .guide-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .control-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .control-text {
        text-align: left;
    }

    .editorial-card,
    .guide-card,
    .overview-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .games-collection {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }
}
