/* ===== 全局样式 ===== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-soft: #dbeafe;
    --text-dark: #162033;
    --text-light: #5f6b7a;
    --text-lighter: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --bg-page: #eef3fb;
    --border-color: #e5e7eb;
    --border-light: #f0f0f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 18px 50px rgba(30, 64, 175, 0.12);
    --radius-lg: 22px;
    --radius-md: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 30%), var(--bg-page);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

/* ===== 导航栏 ===== */
.navbar-modern-r8e1 {
    background-color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.nav-container-r8e1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand-r8e1 {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.2rem;
    min-width: 0;
}

.brand-icon-r8e1 {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-text-r8e1 {
    color: var(--primary-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-menu-r8e1 {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link-r8e1 {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link-r8e1:hover {
    color: var(--primary-color);
}

.nav-link-r8e1::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link-r8e1:hover::after {
    width: 100%;
}

.menu-toggle-r8e1 {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle-r8e1 span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== 主体内容 ===== */
.main-content-r8e1 {
    width: 100%;
    margin: 0 auto;
}

/* ===== 英雄区 ===== */
.hero-section-r8e1 {
    padding: 4rem 2rem 3rem;
}

.hero-wrapper-r8e1 {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 3rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.96));
    border: 1px solid rgba(191, 219, 254, 0.8);
    border-radius: 28px;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: var(--shadow-card);
}

.hero-text-r8e1 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title-r8e1 {
    font-size: clamp(1.35rem, 2.4vw, 2.35rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.08;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

.hero-subtitle-r8e1 {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.65;
}

.hero-tags-r8e1 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag-badge-r8e1 {
    background-color: var(--primary-soft);
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.cta-button-primary-r8e1 {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    width: fit-content;
    box-shadow: var(--shadow-md);
}

.cta-button-primary-r8e1:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-image-r8e1 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.hero-img-r8e1 {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    display: block;
    border: 8px solid white;
}

/* ===== 部分通用样式 ===== */
.section-container-r8e1 {
    max-width: 1180px;
    margin: 0 auto;
    padding: 4.5rem 2rem;
}

.section-header-r8e1 {
    text-align: center;
    margin-bottom: 2.4rem;
}

.section-title-r8e1 {
    font-size: clamp(1.15rem, 1.9vw, 1.55rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.title-underline-r8e1 {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== 游戏介绍区 ===== */
.intro-section-r8e1 {
    background-color: transparent;
}

.intro-content-grid-r8e1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
    align-items: start;
}

.intro-text-card-r8e1 {
    background-color: var(--bg-white);
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: var(--shadow-card);
    min-width: 0;
}

.card-content-r8e1 {
    color: var(--text-dark);
    font-size: 0.86rem;
    line-height: 1.62;
    overflow-wrap: anywhere;
}

.card-content-r8e1 p {
    margin-bottom: 1rem;
}

.card-content-r8e1 p:last-child {
    margin-bottom: 0;
}

.intro-image-card-r8e1 {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
    border: 8px solid white;
}

.intro-img-r8e1 {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    display: block;
}

/* ===== 游戏攻略区 ===== */
.guide-section-r8e1 {
    background-color: rgba(255, 255, 255, 0.5);
}

.guide-content-grid-r8e1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.guide-card-r8e1 {
    background-color: var(--bg-white);
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.guide-card-r8e1 img,
.card-content-r8e1 img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.guide-card-r8e1 h2,
.guide-card-r8e1 h3 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.guide-card-r8e1 h2:first-child,
.guide-card-r8e1 h3:first-child {
    margin-top: 0;
}

.update-log-list-r8e1 {
    display: grid;
    gap: 1rem;
}

.update-log-item-r8e1 {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.update-log-date-r8e1 {
    align-self: start;
    display: inline-flex;
    justify-content: center;
    padding: 0.42rem 0.65rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.update-log-body-r8e1 p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.86rem;
    line-height: 1.68;
}

.guide-card-r8e1 ul,
.guide-card-r8e1 ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.guide-card-r8e1 li {
    margin-bottom: 0.8rem;
}

/* ===== 下载区 ===== */
.download-section-r8e1 {
    background-color: transparent;
    padding: 0 0 2.5rem;
}

.download-section-r8e1 .section-container-r8e1 {
    padding-top: 2rem;
    padding-bottom: 2.75rem;
}

.download-section-r8e1 .section-header-r8e1 {
    margin-bottom: 1.25rem;
}

.download-content-r8e1 {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
    gap: 1.25rem;
    align-items: start;
}

.download-card-primary-r8e1 {
    background: linear-gradient(160deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.35rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.2);
    display: flex;
    flex-direction: column;
    min-height: auto;
    box-shadow: var(--shadow-card);
}

.screenshot-card-r8e1 {
    background-color: var(--bg-white);
    padding: 1.35rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    min-width: 0;
}

.download-header-r8e1,
.screenshot-header-r8e1 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.download-header-r8e1 i,
.screenshot-header-r8e1 i {
    font-size: 2rem;
    color: var(--primary-color);
}

.download-header-r8e1 i {
    color: white;
}

.download-header-r8e1 h3,
.screenshot-header-r8e1 h3 {
    font-size: 1.05rem;
    color: inherit;
}

.download-desc-r8e1,
.screenshot-desc-r8e1 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.download-desc-r8e1 {
    color: rgba(255, 255, 255, 0.82);
}

.download-btn-r8e1 {
    background-color: white;
    color: var(--primary-dark);
    padding: 1rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    margin-top: auto;
}

.download-btn-r8e1:hover {
    background-color: var(--primary-soft);
    transform: translateY(-2px);
}

.screenshot-preview-r8e1 {
    border-radius: 8px;
    overflow: hidden;
    margin-top: auto;
}

.screenshot-img-r8e1 {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.screenshot-grid-r8e1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.screenshot-item-r8e1 {
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-gray);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 16 / 10;
}

.screenshot-item-r8e1:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.screenshot-item-r8e1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== 友情链接区 ===== */
.links-section-r8e1 {
    background-color: rgba(255, 255, 255, 0.55);
}

.links-grid-r8e1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.link-card-r8e1 {
    background-color: var(--bg-white);
    padding: 1rem 1.2rem;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.link-card-r8e1:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.link-card-r8e1 i {
    font-size: 1.05rem;
}

.link-card-r8e1 span,
.link-text-r8e1 {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== 页脚 ===== */
.footer-section-r8e1 {
    background-color: var(--text-dark);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-container-r8e1 {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content-grid-r8e1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-r8e1 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-icon-r8e1 {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.footer-title-r8e1 {
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-desc-r8e1 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-nav-r8e1,
.footer-links-r8e1 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav-r8e1 h4,
.footer-links-r8e1 h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-nav-r8e1 ul,
.footer-links-r8e1 ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav-r8e1 a,
.footer-links-r8e1 a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-nav-r8e1 a:hover,
.footer-links-r8e1 a:hover {
    color: white;
}

.footer-bottom-r8e1 {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .hero-wrapper-r8e1 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .download-content-r8e1 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .download-card-primary-r8e1 {
        min-height: auto;
    }

    .hero-title-r8e1 {
        font-size: 1.3rem;
    }

    .section-title-r8e1 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu-r8e1 {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--bg-white);
        border-bottom: 1px solid var(--border-light);
        padding: 1rem 2rem;
        gap: 0;
    }

    .nav-menu-r8e1.active {
        display: flex;
    }

    .nav-menu-r8e1 li {
        padding: 0.8rem 0;
    }

    .menu-toggle-r8e1 {
        display: flex;
    }

    .menu-toggle-r8e1.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle-r8e1.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle-r8e1.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-section-r8e1 {
        padding: 1.25rem;
    }

    .hero-wrapper-r8e1 {
        padding: 1.25rem;
        border-radius: 20px;
    }

    .hero-title-r8e1 {
        font-size: 1.3rem;
    }

    .hero-subtitle-r8e1 {
        font-size: 0.86rem;
    }

    .section-container-r8e1 {
        padding: 2.6rem 1.25rem;
    }

    .section-title-r8e1 {
        font-size: 1.05rem;
    }

    .intro-text-card-r8e1,
    .download-card-primary-r8e1,
    .screenshot-card-r8e1,
    .guide-card-r8e1 {
        padding: 1.5rem;
    }

    .card-content-r8e1 {
        font-size: 0.86rem;
    }

    .download-header-r8e1 i,
    .screenshot-header-r8e1 i {
        font-size: 1.05rem;
    }

    .links-grid-r8e1 {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .footer-content-grid-r8e1 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-container-r8e1 {
        padding: 0.8rem 1rem;
    }

    .hero-tags-r8e1 {
        gap: 0.5rem;
    }

    .tag-badge-r8e1 {
        font-size: 0.85rem;
        padding: 0.3rem 0.8rem;
    }

    .cta-button-primary-r8e1 {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .screenshot-grid-r8e1 {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }

    .hero-img-r8e1,
    .intro-image-card-r8e1 {
        border-width: 5px;
    }
}

@media (max-width: 480px) {
    .hero-title-r8e1 {
        font-size: 1.12rem;
    }

    .hero-subtitle-r8e1 {
        font-size: 0.82rem;
    }

    .section-title-r8e1 {
        font-size: 1.05rem;
    }

    .nav-brand-r8e1 {
        gap: 0.5rem;
        font-size: 1rem;
    }

    .brand-icon-r8e1 {
        width: 35px;
        height: 35px;
    }

    .card-content-r8e1 {
        font-size: 0.82rem;
        line-height: 1.58;
    }

    .links-grid-r8e1 {
        grid-template-columns: 1fr;
    }

    .link-card-r8e1 {
        padding: 1rem;
    }

    .section-container-r8e1 {
        padding: 1.5rem;
    }

    .screenshot-grid-r8e1 {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .update-log-item-r8e1 {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .update-log-date-r8e1 {
        justify-self: start;
    }

    .screenshot-item-r8e1:hover {
        transform: translateY(-2px);
    }
}
