﻿/* CSS Variables */
:root {
    --primary-color: #060b17;
    --secondary-color-1: #020408;
    --secondary-color-2: #060d1b;
    --secondary-color-3: #0d1630;
    --accent-color: #3b82f6;
    --text-color: #e5e7eb;
    --text-muted: #9ca3af;
    --border-color: #1f2937;
    --card-bg: rgba(13, 22, 48, 0.6);
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color-2) 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(6, 11, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 110px 20px 60px;
    background: linear-gradient(135deg, var(--secondary-color-1) 0%, var(--primary-color) 50%, var(--secondary-color-2) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 55%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-cover {
    flex-shrink: 0;
}

.hero-cover img {
    width: 480px;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.15);
    transition: var(--transition);
}

.hero-cover img:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(59, 130, 246, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-info {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.info-badge {
    background: var(--card-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-features {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.feature-tag {
    background: linear-gradient(135deg, var(--accent-color) 0%, #2563eb 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #2563eb 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Section */
.section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    color: var(--accent-color);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.news-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.news-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.news-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.news-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.news-link:hover {
    gap: 12px;
}

/* Gallery Section */
.gallery-section {
    background: var(--secondary-color-2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

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

/* Reviews Section */
.review-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-top: 8px;
}

.review-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.tag {
    background: var(--card-bg);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.reviews-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    transition: var(--transition);
}

.review-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.review-rating {
    color: #fbbf24;
}

.review-text {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Version Section */
.versions-section {
    background: var(--secondary-color-1);
}

.version-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.version-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

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

.version-header h3 {
    font-size: 1.6rem;
    color: var(--accent-color);
}

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

.version-content ul {
    margin: 20px 0;
    padding-left: 25px;
}

.version-content li {
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.7;
}

.version-info {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.version-info span {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-download-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #2563eb 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 15px;
}

.btn-download-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Guides Section */
.guides-section {
    background: var(--secondary-color-2);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.guide-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    transition: var(--transition);
    text-align: center;
}

.guide-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.guide-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.guide-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.guide-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.guide-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
}

.difficulty,
.recommend {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Chapters Section */
.chapters-section {
    background: var(--primary-color);
}

.chapters-list {
    display: grid;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.chapter-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    transition: var(--transition);
}

.chapter-card:hover {
    transform: translateX(5px);
    border-color: var(--accent-color);
}

.chapter-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.chapter-badge.important {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.chapter-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.chapter-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.chapter-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.chapter-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chapter-mood {
    color: var(--accent-color);
}

.main-chapter {
    border-left: 4px solid var(--accent-color);
}

.character-chapter {
    border-left: 4px solid #10b981;
}

.character-chapter .chapter-badge {
    background: #10b981;
}

/* FAQ Section */
.faq-section {
    background: var(--secondary-color-2);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-item:hover {
    border-color: var(--accent-color);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-color);
    padding: 20px 25px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

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

.faq-question i {
    transition: transform 0.3s ease;
}

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

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

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

.faq-answer p {
    padding: 0 25px 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--secondary-color-1);
    border-top: 1px solid var(--border-color);
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #2563eb 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.back-to-top.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(6, 11, 23, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 20px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

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

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

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

    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
        gap: 35px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-info,
    .hero-features {
        justify-content: center;
    }

    .hero-cover img {
        width: 100%;
        max-width: 420px;
    }

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

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

    .hero-description {
        font-size: 1rem;
    }

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

    .hero-info {
        flex-direction: column;
        align-items: stretch;
    }

    .info-badge {
        justify-content: center;
    }

    .review-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

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

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

    .section {
        padding: 60px 15px;
    }

    .news-grid,
    .gallery-grid,
    .reviews-carousel,
    .guides-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Content Pages (帮助中心/法律页面) ===== */
.page-hero {
    padding: 130px 20px 50px;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color-1) 0%, var(--primary-color) 50%, var(--secondary-color-2) 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 55%);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-hero h1 i {
    color: var(--accent-color);
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
}

.breadcrumb {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb i {
    margin: 0 8px;
    font-size: 0.7rem;
}

.content-section {
    padding: 60px 20px 80px;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 45px 50px;
}

.content-block {
    margin-bottom: 40px;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block h2 {
    font-size: 1.6rem;
    margin-bottom: 18px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-block h3 {
    font-size: 1.2rem;
    margin: 22px 0 12px;
    color: var(--text-color);
}

.content-block p {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 15px;
}

.content-block ul,
.content-block ol {
    color: var(--text-muted);
    line-height: 1.9;
    padding-left: 25px;
    margin-bottom: 15px;
}

.content-block li {
    margin-bottom: 10px;
}

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

.content-block a:hover {
    text-decoration: underline;
}

.content-block strong {
    color: var(--text-color);
}

.update-note {
    margin-top: 35px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Help cards grid (用户手册/技术支持/问题反馈) */
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 25px;
}

.help-card {
    background: var(--secondary-color-3);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px;
    transition: var(--transition);
}

.help-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.18);
}

.help-card .help-icon {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.help-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.help-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* FAQ reuse on content pages */
.content-wrapper .faq-item {
    background: var(--secondary-color-3);
}

/* Contact / feedback channels */
.contact-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--secondary-color-3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 14px;
    color: var(--text-color);
}

.contact-list li i {
    color: var(--accent-color);
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }

    .content-wrapper {
        padding: 30px 22px;
    }

    .content-block h2 {
        font-size: 1.35rem;
    }
}

