﻿/* ========== CSS 变量 - 全新配色系统 ========== */
:root {
    --color-primary: #1e1219;
    --color-secondary: #b89a8a;
    --color-accent: #7a4c3c;
    --color-dark: #2e1e26;
    --color-white: #ffffff;
    --color-light: #f3ece8;
    --color-gray: #a39a96;
    --color-gold: #e6b422;
    --color-gold-light: #ffb347;
    
    --gradient-primary: linear-gradient(135deg, #1e1219 0%, #2e1e26 100%);
    --gradient-secondary: linear-gradient(135deg, #b89a8a 0%, #7a4c3c 100%);
    --gradient-accent: linear-gradient(135deg, #7a4c3c 0%, #4a2c3a 100%);
    --gradient-hero: radial-gradient(circle at 20% 30%, #4a2c3a, #0d080b);
    
    --font-primary: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    --font-accent: 'Orbitron', monospace;
    
    --container-max-width: 1280px;
    --section-padding: 100px 0;
    --border-radius: 24px;
    --border-radius-sm: 16px;
    --transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    
    --shadow-light: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-medium: 0 20px 35px -8px rgba(0, 0, 0, 0.6);
    --shadow-heavy: 0 30px 45px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 15px rgba(230, 180, 34, 0.3);
}

/* 重置 & 基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: #f0eae6;
    background: #0c070a;
    overflow-x: hidden;
}
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}
.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 30%, var(--color-gold) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-gold);
    margin: 16px auto 0;
    border-radius: 4px;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}
.btn-primary {
    background: linear-gradient(105deg, #e6b422, #c97e2a);
    color: #1e1219;
    box-shadow: 0 5px 15px rgba(230, 180, 34, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 180, 34, 0.5);
    background: linear-gradient(105deg, #f0bc35, #d68a30);
}
.btn-secondary {
    background: rgba(184, 154, 138, 0.15);
    border: 1px solid rgba(230, 180, 34, 0.6);
    color: #fff;
}
.btn-secondary:hover {
    background: rgba(230, 180, 34, 0.2);
    border-color: var(--color-gold);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--color-gold);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(12, 7, 10, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(230, 180, 34, 0.2);
}
.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 24px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 1px;
}
.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    filter: drop-shadow(0 0 4px var(--color-gold));
}
.nav-menu {
    display: flex;
    gap: 1rem;
    list-style: none;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 40px;
    color: #f0eae6;
    font-weight: 500;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    background: rgba(230, 180, 34, 0.15);
    color: var(--color-gold);
    box-shadow: 0 0 8px rgba(230,180,34,0.3);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.bar {
    width: 26px;
    height: 2px;
    background: #fff;
    transition: 0.2s;
}

/* 英雄区 */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
    padding-top: 80px;
}
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(122,76,60,0.2), transparent 60%);
}
.hero-particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(2px 2px at 25% 40%, rgba(255,215,0,0.15), transparent),
                      radial-gradient(1px 1px at 80% 70%, rgba(255,215,0,0.1), transparent);
    background-size: 60px 60px;
    animation: drift 25s infinite linear;
}
@keyframes drift {
    0% { background-position: 0 0; }
    100% { background-position: 120px 120px; }
}
.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 2rem 24px;
}
.hero-badge {
    background: rgba(230,180,34,0.2);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 6px 18px;
    display: inline-flex;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.title-main {
    background: linear-gradient(125deg, #fff, var(--color-gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.title-sub {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-secondary);
}
.hero-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #ddd2cc;
}
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2rem;
}
.feature-tag {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(230,180,34,0.4);
    border-radius: 40px;
    padding: 6px 16px;
    font-size: 0.85rem;
}
.info-cards {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.info-card {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}
.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-gold);
    background: rgba(0,0,0,0.7);
}
.card-icon {
    width: 45px;
    height: 45px;
    background: var(--color-gold);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e1219;
}
.hero-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
    border-radius: 60px;
    padding: 0.8rem;
    margin-bottom: 2rem;
}
.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-gold);
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
/* 英雄图片 - 修复布局 */
.hero-image {
    position: relative;
    width: 100%;
}
.hero-image .image-container {
    width: 100%;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    transition: 0.4s;
}
.hero-image .image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s;
}
.hero-image .image-container:hover img {
    transform: scale(1.02);
}
.floating-info {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(20px);
    border-radius: 40px;
    padding: 10px 20px;
}
/* 新闻、特色、画廊等卡片 */
.news-grid, .features-grid, .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.news-item, .feature-item, .version-info, .faq-item, .support-card {
    background: rgba(20, 12, 16, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(230,180,34,0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
}
.news-item:hover, .feature-item:hover {
    transform: translateY(-8px);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-glow);
}
/* 画廊图片 - 修复溢出 */
.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    background: rgba(20,12,16,0.7);
    border: 1px solid rgba(230,180,34,0.2);
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay i {
    color: var(--color-gold);
    font-size: 2rem;
}
/* 图片模态框 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
}
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: 32px;
    border: 2px solid var(--color-gold);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}
.modal-nav button {
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    padding: 12px 18px;
    border-radius: 50%;
    cursor: pointer;
}
/* 用户评价 */
.reviews-stats {
    background: rgba(0,0,0,0.4);
    border-radius: 48px;
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}
.rating-summary {
    text-align: center;
}
.rating-score {
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-gold);
}
.rating-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.tag {
    background: rgba(230,180,34,0.2);
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.9rem;
}
.review-item {
    background: rgba(20,12,16,0.8);
    border-radius: 32px;
    padding: 2rem;
    text-align: center;
}
.review-stars {
    color: var(--color-gold);
    margin-bottom: 1rem;
}
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}
.indicator {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background: #ccc;
    cursor: pointer;
}
.indicator.active {
    background: var(--color-gold);
    width: 24px;
}
/* 版本时间线 */
.version-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.version-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-gold), #b87b5a);
}
.version-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}
.version-item::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--color-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-gold);
}
.version-badge {
    position: absolute;
    left: -30px;
    top: -5px;
    background: var(--color-gold);
    color: #1e1219;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
}
/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 1rem;
    padding: 0;
    overflow: hidden;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    background: rgba(30,18,25,0.6);
    border-radius: 60px;
    transition: 0.2s;
}
.faq-question:hover {
    background: rgba(230,180,34,0.1);
}
.faq-question h3, .faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
}
.faq-question i {
    color: var(--color-gold);
    transition: transform 0.2s;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1rem 1.5rem 1.5rem;
}
/* 页脚 - 修复链接排版 */
.footer {
    background: #0a0608;
    border-top: 1px solid rgba(230,180,34,0.2);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}
.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: var(--color-gold);
}
.footer-section p {
    color: #b0a8a4;
    line-height: 1.6;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 0.6rem;
}
.footer-links a {
    color: #b0a8a4;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--color-gold);
    padding-left: 4px;
}
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(230,180,34,0.2);
    border-radius: 50%;
    transition: 0.2s;
}
.social-link:hover {
    background: var(--color-gold);
    color: #1e1219;
    transform: translateY(-3px);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #8a7e78;
}
.footer-partners {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-partners a {
    color: #b0a8a4;
}
.footer-partners a:hover {
    color: var(--color-gold);
}
/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-gold);
    color: #1e1219;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: 0.2s;
    z-index: 1000;
}
.back-to-top:hover {
    transform: scale(1.1);
}
/* 响应式 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(12,7,10,0.95);
        backdrop-filter: blur(20px);
        width: 80%;
        height: 100vh;
        padding: 2rem;
        transition: 0.3s;
        gap: 1.5rem;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-toggle {
        display: flex;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .info-cards {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 2rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .version-timeline::before {
        left: 15px;
    }
    .version-item {
        padding-left: 50px;
    }
    .version-item::before {
        left: 6px;
    }
}
/* 辅助类 */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s;
}
img[loading="lazy"].loaded {
    opacity: 1;
}
.legal-content {
    background: rgba(20,12,16,0.8);
    border-radius: 32px;
    padding: 2.5rem;
    line-height: 1.75;
}
.legal-section h2 {
    border-left: 5px solid var(--color-gold);
    padding-left: 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
/* ========== 修复：页面头部居中与完整显示 ========== */
.page-header {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: visible; /* 防止内容裁剪 */
}
.header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.page-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    word-break: break-word;
}
.page-description {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.breadcrumb a, .breadcrumb .current {
    color: var(--color-gold);
}
.breadcrumb .separator {
    color: rgba(255,255,255,0.5);
}

/* ========== 修复：法律内容区域 ========== */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(20,12,16,0.85);
    border-radius: var(--border-radius);
    line-height: 1.75;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.last-updated {
    text-align: right;
    color: var(--color-secondary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(230,180,34,0.3);
}
.legal-section {
    margin-bottom: 2.5rem;
}
.legal-section h2 {
    font-size: 1.8rem;
    border-left: 5px solid var(--color-gold);
    padding-left: 1rem;
    margin-bottom: 1rem;
}
.legal-section p, .legal-section li {
    color: #e0d6d0;
}

/* ========== 修复：常见问题搜索框 ========== */
.faq-search {
    text-align: center;
    margin-bottom: 2rem;
}
.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}
.search-box i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gold);
    font-size: 1rem;
}
.search-box input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(230,180,34,0.4);
    border-radius: 60px;
    color: #fff;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: 0.2s;
}
.search-box input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(230,180,34,0.2);
}
.faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}
.category-btn {
    background: rgba(30,18,25,0.7);
    border: 1px solid rgba(230,180,34,0.3);
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    color: #f0eae6;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.category-btn.active, .category-btn:hover {
    background: var(--color-gold);
    color: #1e1219;
    border-color: transparent;
}
.faq-section .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: left;
}
.faq-section .section-title::after {
    margin-left: 0;
    margin-right: auto;
}

/* ========== 修复：响应式下头部显示 ========== */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    .page-description {
        font-size: 1rem;
    }
    .legal-content {
        padding: 1.5rem;
    }
    .faq-categories {
        gap: 0.5rem;
    }
    .category-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}