/* ===== CSS变量定义 ===== */
:root {
    --primary-color: #aba4a1;
    --secondary-color: #966d7c;
    --dark-color: #504040;
    --accent-color: #e5b4c6;
    --white: #ffffff;
    --black: #000000;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --section-padding: 80px 20px;
}

/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-info {
    font-size: 0.9em;
    opacity: 0.8;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.2em;
    color: var(--dark-color);
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    width: 32px;
    height: 32px;
}

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

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

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

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

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

/* ===== 英雄区域 ===== */
.hero {
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3em;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.version {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.6em;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.3em;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-features {
    list-style: none;
    margin-bottom: 40px;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 1.1em;
}

.hero-features i {
    color: var(--secondary-color);
    font-size: 1.2em;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
}

/* ===== 通用区域样式 ===== */
section {
    padding: var(--section-padding);
}

section h2 {
    font-size: 2.5em;
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

section h2 i {
    color: var(--secondary-color);
}

/* ===== 新闻动态 ===== */
.news {
    background: #fafafa;
}

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

.news-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.news-date {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.news-card h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--dark-color);
}

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

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

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

/* ===== 媒体画廊 ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(80, 64, 64, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2em;
}

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

.reviews-stats {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.rating-overview {
    text-align: center;
}

.rating-score {
    font-size: 4em;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
}

.rating-stars {
    margin: 10px 0;
    font-size: 1.5em;
    color: #ffd700;
}

.rating-count {
    color: var(--text-light);
    font-size: 0.9em;
}

.rating-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--white);
    color: var(--dark-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    box-shadow: var(--shadow);
}

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

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.review-stars {
    color: #ffd700;
    margin-bottom: 15px;
}

.review-card p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.6;
}

.review-author {
    font-weight: 500;
    color: var(--secondary-color);
    text-align: right;
}

/* ===== 版本历史 ===== */
.versions {
    background: #fafafa;
}

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

.version-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
    transition: var(--transition);
}

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

.version-info {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 25px 30px;
}

.version-info h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.version-badge {
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 500;
}

.version-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0.9;
}

.version-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
}

.version-content {
    padding: 30px;
}

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

.version-content li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

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

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

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: var(--transition);
}

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

.faq-question h3 {
    font-size: 1.1em;
    color: var(--dark-color);
    margin: 0;
}

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

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

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

.faq-item.active .faq-answer {
    padding: 25px 30px;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* ===== 底部信息 ===== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 20px 30px;
}

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

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.2em;
}

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

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #cccccc;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1em;
}

.footer-logo img {
    width: 28px;
    height: 28px;
}

.footer-info {
    text-align: right;
    color: #cccccc;
    font-size: 0.9em;
    line-height: 1.4;
}

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

/* ===== 返回顶部按钮 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 999;
}

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

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

/* ===== 图片预览模态框 ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: var(--white);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

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

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    /* 导航栏 */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        padding: 50px 20px;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

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

    .hamburger {
        display: flex;
    }

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

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

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

    /* 英雄区域 */
    .hero {
        padding: 100px 20px 40px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* 通用区域 */
    :root {
        --section-padding: 50px 20px;
    }

    section h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    /* 新闻动态 */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card {
        padding: 20px;
    }

    /* 媒体画廊 */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item img {
        height: 200px;
    }

    /* 用户评价 */
    .reviews-stats {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .rating-tags {
        justify-content: center;
    }

    .reviews-carousel {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .review-card {
        padding: 20px;
    }

    /* 版本历史 */
    .version-info {
        padding: 20px;
    }

    .version-content {
        padding: 20px;
    }

    .version-meta {
        gap: 15px;
    }

    /* 常见问题 */
    .faq-question {
        padding: 20px;
    }

    .faq-item.active .faq-answer {
        padding: 20px;
    }

    /* 底部信息 */
    .footer {
        padding: 40px 20px 20px;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-info {
        text-align: center;
    }

    /* 返回顶部按钮 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    /* 模态框 */
    .modal-content {
        width: 95%;
        padding: 10px;
    }

    .close {
        right: 15px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    /* 英雄区域 */
    .hero-content h1 {
        font-size: 1.8em;
    }

    .hero-features {
        font-size: 0.9em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    /* 底部信息 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .version-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== 滚动条样式 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===== 加载动画 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== 选择文本样式 ===== */
::selection {
    background: var(--accent-color);
    color: var(--dark-color);
} 