/* ==========================================
   永恒世界 (Eternum) - 游戏官网样式
   ========================================== */

/* CSS 变量 */
:root {
    --color-primary: #282221;
    --color-secondary1: #c2c2c0;
    --color-secondary2: #5eb4a7;
    --color-secondary3: #7d849b;
    --color-bg: #1a1817;
    --color-surface: #2e2a28;
    --color-surface-light: #3a3533;
    --color-text: #e8e6e3;
    --color-text-muted: #9a9896;
    --color-accent: #5eb4a7;
    --color-accent-hover: #4fa396;
    --color-border: rgba(194, 194, 192, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
    --font-main: 'Noto Sans SC', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

/* 重置与基础 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   头部导航
   ========================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 24, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition), box-shadow var(--transition);
}

#header.scrolled {
    background: rgba(26, 24, 23, 0.98);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo:hover {
    color: var(--color-accent);
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-main);
    letter-spacing: 2px;
}

.nav-list {
    display: flex;
    gap: 4px;
}

.nav-list a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--color-accent);
    background: rgba(94, 180, 167, 0.1);
}

.nav-list a i {
    font-size: 0.85rem;
}

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

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition);
    border-radius: 2px;
}

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

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

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

/* ==========================================
   英雄区
   ========================================== */
.hero-section {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #282221 0%, #1a2a35 50%, #1e1a2e 100%);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-bg[style*="background-image"] {
    background-blend-mode: normal;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(26, 24, 23, 0.55) 0%, rgba(26, 24, 23, 0.75) 60%, rgba(26, 24, 23, 0.95) 100%),
        radial-gradient(circle at 20% 50%, rgba(94, 180, 167, 0.06) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-en {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 12px;
    margin-top: 4px;
    background: linear-gradient(135deg, var(--color-secondary3) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 12px auto 20px;
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-bottom: 16px;
}

.meta-item {
    font-size: 0.88rem;
    color: var(--color-secondary1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: var(--color-accent);
    font-size: 0.8rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.tag {
    padding: 4px 14px;
    background: rgba(94, 180, 167, 0.12);
    border: 1px solid rgba(94, 180, 167, 0.25);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--color-accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #4a9e92 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(94, 180, 167, 0.3);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(94, 180, 167, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(94, 180, 167, 0.3);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
    background: rgba(94, 180, 167, 0.15);
    color: var(--color-accent);
    border: 1px solid rgba(94, 180, 167, 0.3);
    border-radius: var(--radius-sm);
}

.btn-sm:hover {
    background: rgba(94, 180, 167, 0.25);
    color: var(--color-accent);
}

.btn-download {
    font-size: 1.1rem;
    padding: 14px 40px;
}

/* ==========================================
   通用区块
   ========================================== */
.section {
    padding: 70px 0;
}

.section:nth-child(even) {
    background: var(--color-surface);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary3));
    border-radius: 2px;
}

.section-desc {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-size: 0.95rem;
}

/* ==========================================
   游戏特色
   ========================================== */
.features-section {
    padding-top: 70px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(94, 180, 167, 0.3);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(94, 180, 167, 0.15), rgba(125, 132, 155, 0.15));
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--color-accent);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==========================================
   新闻动态
   ========================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.news-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition);
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(94, 180, 167, 0.25);
    box-shadow: var(--shadow-sm);
}

.news-date {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-date i {
    color: var(--color-accent);
}

.news-title {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--color-text);
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-link:hover i {
    transform: translateX(4px);
}

.news-link i {
    transition: transform var(--transition);
    font-size: 0.78rem;
}

/* ==========================================
   媒体画廊
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--color-surface);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background var(--transition);
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

/* 灯箱 */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ==========================================
   用户评价
   ========================================== */
.reviews-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 40px 0 32px;
    flex-wrap: wrap;
}

.stats-score {
    text-align: center;
}

.score-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
    display: block;
}

.score-stars {
    margin: 8px 0 4px;
    color: #f0b429;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.score-count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.stats-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 400px;
}

.stats-tag {
    padding: 6px 14px;
    background: rgba(94, 180, 167, 0.1);
    border: 1px solid rgba(94, 180, 167, 0.2);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stats-tag i {
    color: var(--color-accent);
    font-size: 0.75rem;
}

.reviews-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.reviews-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.review-card {
    min-width: calc(33.333% - 14px);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    flex-shrink: 0;
}

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

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.review-name {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
}

.review-stars {
    color: #f0b429;
    font-size: 0.78rem;
    letter-spacing: 1px;
    margin-top: 2px;
}

.review-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(94, 180, 167, 0.12);
    border: 1px solid rgba(94, 180, 167, 0.25);
    color: var(--color-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 0.9rem;
}

.carousel-btn:hover {
    background: rgba(94, 180, 167, 0.25);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: all var(--transition);
}

.carousel-dots .dot.active {
    background: var(--color-accent);
    width: 24px;
    border-radius: 4px;
}

/* ==========================================
   版本历史
   ========================================== */
.timeline {
    position: relative;
    margin-top: 40px;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-border));
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -33px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 2px solid var(--color-text-muted);
}

.timeline-marker.current {
    border-color: var(--color-accent);
    background: var(--color-accent);
    box-shadow: 0 0 12px rgba(94, 180, 167, 0.4);
}

.timeline-content {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.version-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.version-header h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.version-badge {
    font-size: 0.72rem;
    padding: 2px 10px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
}

.version-date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.version-changes {
    list-style: none;
    margin-bottom: 14px;
}

.version-changes li {
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    position: relative;
    padding-left: 18px;
}

.version-changes li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.version-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.version-meta span {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.version-meta span i {
    color: var(--color-accent);
}

/* ==========================================
   游戏攻略
   ========================================== */
.guides-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 0.88rem;
    font-family: var(--font-main);
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(94, 180, 167, 0.1);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.guide-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition);
    position: relative;
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(94, 180, 167, 0.25);
}

.guide-card.hidden {
    display: none;
}

.guide-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.guide-badge.route {
    background: rgba(94, 180, 167, 0.15);
    color: var(--color-accent);
}

.guide-badge.choice {
    background: rgba(125, 132, 155, 0.15);
    color: var(--color-secondary3);
}

.guide-badge.ending {
    background: rgba(240, 180, 41, 0.15);
    color: #f0b429;
}

.guide-badge.cg {
    background: rgba(199, 110, 169, 0.15);
    color: #c76ea9;
}

.guide-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.guide-card p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.guide-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guide-difficulty {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-difficulty i {
    color: var(--color-accent);
}

/* ==========================================
   章节介绍
   ========================================== */
.chapters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.chapter-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.chapter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.chapter-card.main-chapter::before {
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary3));
}

.chapter-card.side-chapter::before {
    background: linear-gradient(90deg, #c76ea9, #f0b429);
}

.chapter-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.chapter-type {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 8px;
}

.main-chapter .chapter-type {
    background: rgba(94, 180, 167, 0.12);
    color: var(--color-accent);
}

.side-chapter .chapter-type {
    background: rgba(199, 110, 169, 0.12);
    color: #c76ea9;
}

.chapter-number {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.chapter-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.chapter-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.chapter-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.chapter-meta span {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chapter-meta span i {
    color: var(--color-accent);
    font-size: 0.8rem;
}

.chapter-characters {
    font-size: 0.82rem;
    color: var(--color-secondary3);
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}

/* ==========================================
   常见问题
   ========================================== */
.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item:hover {
    border-color: rgba(94, 180, 167, 0.25);
}

.faq-item.active {
    border-color: rgba(94, 180, 167, 0.4);
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    background: var(--color-surface);
    border: none;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    font-family: var(--font-main);
    transition: background var(--transition);
}

.faq-question:hover {
    background: var(--color-surface-light);
}

.faq-icon {
    color: var(--color-accent);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 18px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ==========================================
   底部
   ========================================== */
.footer {
    background: var(--color-primary);
    padding: 50px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--color-text);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
}

.footer-about {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.footer-legal {
    margin-top: 6px;
}

.footer-legal a {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.footer-legal a:hover {
    color: var(--color-accent);
}

/* ==========================================
   返回顶部
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
}

/* ==========================================
   响应式布局
   ========================================== */
@media (max-width: 1024px) {
    .features-grid,
    .news-grid,
    .guides-grid,
    .chapters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .review-card {
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .menu-toggle {
        display: flex;
    }

    #main-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(26, 24, 23, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--color-border);
        padding: 16px 20px;
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.35s ease;
        z-index: 999;
    }

    #main-nav.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-list {
        flex-direction: column;
        gap: 4px;
    }

    .nav-list a {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .hero-section {
        min-height: 400px;
        padding: 90px 0 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-title-en {
        font-size: 1.1rem;
        letter-spacing: 8px;
    }

    .hero-meta {
        gap: 8px 14px;
    }

    .meta-item {
        font-size: 0.82rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .features-grid,
    .news-grid,
    .guides-grid,
    .chapters-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .reviews-stats {
        flex-direction: column;
        gap: 20px;
    }

    .review-card {
        min-width: 100%;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-marker {
        left: -28px;
        width: 12px;
        height: 12px;
    }

    .version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .guides-filter {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.82rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

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

    .hero-title-en {
        font-size: 0.95rem;
        letter-spacing: 6px;
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    .hero-tags {
        gap: 6px;
    }

    .tag {
        font-size: 0.75rem;
        padding: 3px 10px;
    }

    .btn-download {
        font-size: 1rem;
        padding: 12px 32px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
