/* ============================================
   CSS变量定义 - 主题配色方案
   ============================================ */
:root {
    --color-primary: #d99c74;
    --color-secondary: #bd827d;
    --color-accent: #e0b2b7;
    --color-dark: #583339;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-light: #f8f8f8;
    --color-border: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(88, 51, 57, 0.1);
    --shadow-md: 0 4px 8px rgba(88, 51, 57, 0.15);
    --shadow-lg: 0 8px 16px rgba(88, 51, 57, 0.2);
    --transition: all 0.3s ease;
}

/* ============================================
   基础样式重置
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-dark);
    font-family: 'Noto Serif SC', serif;
}

.section-title i {
    margin-right: 10px;
    color: var(--color-primary);
}

/* ============================================
   头部导航栏
   ============================================ */
.header {
    background: linear-gradient(135deg, var(--color-dark) 0%, #6b4248 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-bg);
    font-size: 1.3rem;
    font-weight: 700;
    transition: var(--transition);
}

.logo-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

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

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--color-bg);
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

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

/* ============================================
   英雄区（Hero Section）
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 50%, var(--color-primary) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hero-main {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
    font-family: 'Noto Serif SC', serif;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--color-dark);
    margin-bottom: 20px;
    font-weight: 500;
    opacity: 0.9;
}

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

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-dark);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.feature-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-tag i {
    color: var(--color-primary);
}

.hero-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 35px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.info-label {
    color: var(--color-text-light);
    font-weight: 500;
}

.info-value {
    color: var(--color-dark);
    font-weight: 700;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-dark) 0%, #6b4248 100%);
    color: var(--color-bg);
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(88, 51, 57, 0.3);
}

.download-btn:active {
    transform: translateY(-1px);
}

.download-btn i {
    font-size: 1.1rem;
}

/* ============================================
   新闻动态区
   ============================================ */
.news {
    background-color: var(--color-bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--color-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--color-primary);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.news-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
    font-family: 'Noto Serif SC', serif;
}

.news-content {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.news-link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--color-dark);
    gap: 12px;
}

/* ============================================
   媒体画廊
   ============================================ */
.gallery {
    background-color: var(--color-bg);
}

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

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: var(--color-bg-light);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

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

/* ============================================
   用户评价区
   ============================================ */
.reviews {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, #f0f0f0 100%);
}

.reviews-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

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

.stats-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
    font-family: 'Noto Serif SC', serif;
}

.stats-label {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.stars {
    color: var(--color-primary);
    font-size: 1.2rem;
}

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

.review-tag {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-bg);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.reviews-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 200px;
}

.review-card {
    background: var(--color-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    display: none;
    border-left: 4px solid var(--color-primary);
}

.review-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.reviewer-name {
    font-weight: 700;
    color: var(--color-dark);
    font-size: 1.1rem;
}

.review-rating {
    color: var(--color-primary);
    font-size: 1rem;
}

.review-text {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1rem;
}

.review-date {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-bg);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* ============================================
   版本历史
   ============================================ */
.updates {
    background-color: var(--color-bg);
}

.updates-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
}

.updates-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 3px;
}

.update-item {
    position: relative;
    margin-bottom: 40px;
    background: var(--color-bg-light);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.update-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.update-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 25px;
    width: 15px;
    height: 15px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 3px solid var(--color-bg);
    box-shadow: var(--shadow-sm);
}

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

.update-version {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-dark);
    font-family: 'Noto Serif SC', serif;
}

.update-date {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.update-content {
    color: var(--color-text-light);
    line-height: 1.8;
}

.update-content p {
    margin-bottom: 10px;
}

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

.update-download {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.update-size,
.update-platform {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.update-link {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-bg);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.update-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   常见问题
   ============================================ */
.faq {
    background-color: var(--color-bg-light);
}

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

.faq-item {
    background: var(--color-bg);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-dark);
    font-size: 1.1rem;
    transition: var(--transition);
}

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

.faq-question i {
    color: var(--color-primary);
    transition: var(--transition);
}

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

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

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

.faq-answer p {
    color: var(--color-text-light);
    line-height: 1.8;
    padding-top: 15px;
}

/* ============================================
   返回顶部按钮
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(88, 51, 57, 0.3);
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--color-dark) 0%, #6b4248 100%);
    color: var(--color-bg);
    padding: 60px 0 30px;
}

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

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Noto Serif SC', serif;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-bg);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: linear-gradient(135deg, var(--color-dark) 0%, #6b4248 100%);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        gap: 0;
    }

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

    .nav-link {
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

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

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

    .hero-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

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

    .reviews-stats {
        gap: 30px;
    }

    .stats-value {
        font-size: 2.5rem;
    }

    .updates-timeline {
        padding-left: 20px;
    }

    .update-item::before {
        left: -28px;
    }

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

    .update-download {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

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

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

    .section {
        padding: 50px 0;
    }

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

    .download-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }

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

