/* ===== 全局样式 ===== */
:root {
    --gradient-start: #8b5fbf;
    --gradient-end: #00d4ff;
    --color-dark: #0a0e27;
    --color-light: #f8f9fc;
    --color-text: #1a1a2e;
    --color-text-light: #6b7280;
    --shadow-soft: 0 2px 10px rgba(139, 95, 191, 0.1);
    --shadow-medium: 0 8px 24px rgba(139, 95, 191, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--color-light);
    color: var(--color-text);
    line-height: 1.6;
    display: flex;
}

/* ===== 左侧导航栏 ===== */
.sidebar-nav-l4h1 {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--gradient-start) 0%, #6a4fa5 100%);
    color: white;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(139, 95, 191, 0.2);
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header-l4h1 {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.sidebar-icon-l4h1 {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.sidebar-title-l4h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sidebar-subtitle-l4h1 {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}

.sidebar-menu-l4h1 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.menu-link-l4h1,
.menu-link-active-l4h1 {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    font-weight: 500;
}

.menu-link-l4h1:hover,
.menu-link-active-l4h1 {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.menu-link-active-l4h1 {
    background-color: rgba(0, 212, 255, 0.2);
    border-left: 3px solid #00d4ff;
}

.menu-link-l4h1 i,
.menu-link-active-l4h1 i {
    font-size: 1.2rem;
    min-width: 24px;
}

.sidebar-footer-l4h1 {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ===== 主体内容区 ===== */
.main-content-area-l4h1 {
    margin-left: 280px;
    flex: 1;
}

/* ===== 英雄区 ===== */
.hero-section-l4h1 {
    position: relative;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, var(--color-light) 0%, #e0f7ff 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-gradient-overlay-l4h1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(139, 95, 191, 0.1) 100%);
    pointer-events: none;
}

.hero-inner-l4h1 {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text-col-l4h1 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-big-title-l4h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc-l4h1 {
    font-size: 1.2rem;
    color: var(--color-text-light);
}

.hero-tags-row-l4h1 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.badge-tag-l4h1 {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cta-btn-hero-l4h1 {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    width: fit-content;
    transition: all 0.3s;
    box-shadow: var(--shadow-medium);
}

.cta-btn-hero-l4h1:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(139, 95, 191, 0.25);
}

.hero-img-col-l4h1 {
    position: relative;
}

.hero-cover-l4h1 {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    object-fit: cover;
}

/* ===== 内容区通用样式 ===== */
.content-section-l4h1 {
    padding: 3rem;
    background-color: white;
    margin: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.content-section-l4h1 + .content-section-l4h1 {
    margin-top: 1.5rem;
}

.section-header-l4h1 {
    margin-bottom: 2rem;
}

.section-title-l4h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.count-pill-l4h1 {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ===== 游戏介绍区 ===== */
.intro-grid-two-l4h1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.intro-text-col-l4h1 {
}

.text-body-l4h1 {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

.text-body-l4h1 p {
    margin-bottom: 1.5rem;
}

.intro-img-col-l4h1 {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.intro-img-l4h1 {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===== 游戏攻略区 ===== */
.guide-bg-l4h1 {
    background: linear-gradient(135deg, #f0e6ff 0%, #e0f7ff 100%);
}

.guide-content-box-l4h1 {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    line-height: 1.8;
}

.guide-content-box-l4h1 h2,
.guide-content-box-l4h1 h3 {
    color: var(--gradient-start);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.guide-content-box-l4h1 h2:first-child,
.guide-content-box-l4h1 h3:first-child {
    margin-top: 0;
}

.guide-content-box-l4h1 ul,
.guide-content-box-l4h1 ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.guide-content-box-l4h1 li {
    margin-bottom: 0.5rem;
}

/* ===== 截图区 - 网格布局 ===== */
.gallery-grid-l4h1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gallery-item-l4h1 {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s;
}

.gallery-item-l4h1:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.gallery-img-l4h1 {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===== 下载区 ===== */
.download-bg-l4h1 {
    background: linear-gradient(135deg, #f0e6ff 0%, #e0f7ff 100%);
}

.download-cards-grid-l4h1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.download-card-item-l4h1 {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s;
    border-top: 3px solid transparent;
    border-image: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-image-slice: 1;
}

.download-card-item-l4h1:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.card-icon-l4h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.download-card-item-l4h1 h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.download-card-item-l4h1 p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.card-btn-l4h1 {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.card-btn-l4h1:hover {
    transform: scale(1.05);
}

/* ===== 友情链接区 ===== */
.links-flex-row-l4h1 {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.link-btn-l4h1 {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--color-light);
    color: var(--gradient-start);
    border: 2px solid var(--gradient-start);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.link-btn-l4h1:hover {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    border-color: transparent;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .sidebar-nav-l4h1 {
        width: 240px;
        padding: 1.5rem 1rem;
    }

    .main-content-area-l4h1 {
        margin-left: 240px;
    }

    .hero-inner-l4h1 {
        grid-template-columns: 1fr;
    }

    .hero-big-title-l4h1 {
        font-size: 2.5rem;
    }

    .intro-grid-two-l4h1 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar-nav-l4h1 {
        position: absolute;
        width: 100%;
        height: auto;
        left: 0;
        top: 0;
        display: none;
        flex-direction: row;
        z-index: 999;
    }

    .sidebar-nav-l4h1.active {
        display: flex;
    }

    .main-content-area-l4h1 {
        margin-left: 0;
    }

    .hero-section-l4h1 {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .hero-big-title-l4h1 {
        font-size: 2rem;
    }

    .hero-desc-l4h1 {
        font-size: 1rem;
    }

    .content-section-l4h1 {
        padding: 1.5rem;
        margin: 1rem;
    }

    .section-title-l4h1 {
        font-size: 1.5rem;
    }

    .download-cards-grid-l4h1 {
        grid-template-columns: 1fr;
    }

    .gallery-grid-l4h1 {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .sidebar-header-l4h1 {
        display: none;
    }

    .sidebar-menu-l4h1 {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .menu-link-l4h1,
    .menu-link-active-l4h1 {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .hero-section-l4h1 {
        padding: 1.5rem;
    }

    .hero-big-title-l4h1 {
        font-size: 1.5rem;
    }

    .content-section-l4h1 {
        padding: 1rem;
        margin: 0.5rem;
    }

    .section-title-l4h1 {
        font-size: 1.2rem;
    }

    .gallery-grid-l4h1 {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.8rem;
    }

    .card-icon-l4h1 {
        font-size: 2rem;
    }

    .download-card-item-l4h1 h3 {
        font-size: 1rem;
    }

    .links-flex-row-l4h1 {
        flex-direction: column;
    }

    .link-btn-l4h1 {
        width: 100%;
        justify-content: center;
    }
}
