/* ==========================================
   CSS变量 - 主题配色
   ========================================== */
:root {
    --primary-color: #5a5962;
    --secondary-color-1: #ebe0db;
    --secondary-color-2: #99a2ba;
    --secondary-color-3: #a6bace;
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color-2) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(90, 89, 98, 0.95) 0%, rgba(153, 162, 186, 0.95) 100%);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

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

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

/* ==========================================
   返回顶部按钮
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px var(--shadow);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

/* ==========================================
   导航栏
   ========================================== */
.header {
    position: sticky;
    top: 0;
    background: var(--bg-white);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 100;
}

.navbar {
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    width: 40px;
    height: 40px;
}

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

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-menu i {
    font-size: 14px;
}

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

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

.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 {
    background: var(--gradient-hero);
    color: var(--text-white);
    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 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 20px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-item i {
    font-size: 24px;
    opacity: 0.8;
}

.meta-item div {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 12px;
    opacity: 0.8;
}

.meta-value {
    font-size: 16px;
    font-weight: 600;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-white);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
}

/* ==========================================
   通用章节样式
   ========================================== */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    font-size: 32px;
}

section {
    padding: 80px 0;
}

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

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

.news-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
    border-color: var(--secondary-color-3);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: 12px;
    padding: 15px;
    min-width: 70px;
    height: fit-content;
}

.date-day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 14px;
    margin-top: 5px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.news-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

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

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

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

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
}

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

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

.gallery-overlay i {
    font-size: 48px;
    color: var(--text-white);
}

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

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

/* ==========================================
   用户评价区
   ========================================== */
.reviews-section {
    background: var(--bg-light);
}

.rating-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 50px;
    padding: 40px;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

.rating-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.score-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--primary-color);
}

.stars {
    display: flex;
    gap: 5px;
    font-size: 24px;
    color: #ffc107;
}

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

.rating-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.rating-tag {
    background: var(--secondary-color-1);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

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

.review-card {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 15px var(--shadow);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

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

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--primary-color);
}

.review-stars {
    display: flex;
    gap: 3px;
    font-size: 14px;
    color: #ffc107;
}

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

.review-text {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

/* ==========================================
   版本历史
   ========================================== */
.versions-section {
    background: var(--bg-white);
}

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

.version-item {
    position: relative;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 4px solid var(--secondary-color-2);
    transition: var(--transition);
}

.version-item:hover {
    box-shadow: 0 5px 20px var(--shadow);
    border-left-color: var(--primary-color);
}

.version-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

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

.version-header h3 {
    font-size: 24px;
    color: var(--primary-color);
}

.version-date {
    color: var(--text-light);
    font-size: 14px;
}

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

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

.version-changelog {
    list-style: none;
    margin-bottom: 20px;
}

.version-changelog li {
    padding: 8px 0;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.version-changelog i {
    color: var(--secondary-color-2);
    margin-top: 4px;
}

.version-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.version-download:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px var(--shadow);
}

/* ==========================================
   游戏攻略
   ========================================== */
.guides-section {
    background: var(--bg-light);
}

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

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

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px var(--shadow);
    border-color: var(--secondary-color-3);
}

.guide-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--text-white);
}

.guide-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.guide-meta {
    display: flex;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid var(--secondary-color-1);
}

.difficulty {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.difficulty.easy {
    color: #4caf50;
}

.difficulty.medium {
    color: #ff9800;
}

.difficulty.hard {
    color: #f44336;
}

/* ==========================================
   章节介绍
   ========================================== */
.chapters-section {
    background: var(--bg-white);
}

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

.chapter-item {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.chapter-item:hover {
    box-shadow: 0 5px 20px var(--shadow);
    border-color: var(--secondary-color-3);
}

.chapter-item.special {
    background: linear-gradient(135deg, rgba(166, 186, 206, 0.1) 0%, rgba(235, 224, 219, 0.1) 100%);
}

.chapter-number {
    flex-shrink: 0;
}

.chapter-number span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    color: var(--text-white);
    font-size: 28px;
    font-weight: 700;
    border-radius: 15px;
}

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

.chapter-header h3 {
    font-size: 22px;
    color: var(--primary-color);
}

.chapter-type {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.chapter-type.main {
    background: var(--secondary-color-2);
    color: var(--text-white);
}

.chapter-type.special {
    background: var(--secondary-color-3);
    color: var(--text-white);
}

.chapter-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.chapter-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
}

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

.emotion-tag {
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
}

.emotion-tag.warm {
    background: rgba(255, 193, 7, 0.2);
    color: #f57c00;
}

.emotion-tag.important {
    background: rgba(244, 67, 54, 0.2);
    color: #c62828;
}

.emotion-tag.serious {
    background: rgba(63, 81, 181, 0.2);
    color: #303f9f;
}

.emotion-tag.romantic {
    background: rgba(233, 30, 99, 0.2);
    color: #c2185b;
}

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

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

.faq-item {
    background: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

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

.faq-question h3 {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
}

.faq-question i {
    font-size: 20px;
    color: var(--secondary-color-2);
    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;
}

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

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

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

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

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 14px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

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

.footer-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-white);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: var(--transition);
}

.footer-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-disclaimer {
    font-size: 12px !important;
    opacity: 0.7;
}

/* ==========================================
   图片查看器模态框
   ========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: var(--text-white);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--secondary-color-1);
    transform: rotate(90deg);
}

/* ==========================================
   子页面样式
   ========================================== */
.page-hero {
    background: var(--gradient-hero);
    color: var(--text-white);
    padding: 80px 0 60px;
    text-align: center;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.9;
}

.content-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* FAQ分类导航 */
.faq-categories {
    background: var(--bg-white);
    padding: 30px 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 70px;
    z-index: 50;
}

.category-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-link i {
    font-size: 24px;
    color: var(--primary-color);
}

.category-link span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.category-link:hover,
.category-link.active {
    background: var(--gradient-primary);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.category-link:hover i,
.category-link:hover span,
.category-link.active i,
.category-link.active span {
    color: var(--text-white);
}

/* FAQ类别章节 */
.faq-category-section {
    margin-bottom: 50px;
}

.category-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--secondary-color-1);
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 15px var(--shadow);
}

.sidebar-widget h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: var(--transition);
}

.sidebar-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px var(--shadow);
}

.sidebar-links {
    list-style: none;
}

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

.sidebar-links a {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: var(--transition);
}

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

.sidebar-links i {
    font-size: 12px;
}

.download-widget {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.download-widget h3,
.download-widget p {
    color: var(--text-white);
}

.sidebar-download-btn {
    display: block;
    text-align: center;
    background: var(--text-white);
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.sidebar-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 内容样式 */
.content-page {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 2px 15px var(--shadow);
}

.content-page h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color-1);
}

.content-page h2:first-child {
    margin-top: 0;
}

.content-page h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-page p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-page ul,
.content-page ol {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 30px;
}

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

.content-page strong {
    color: var(--text-dark);
    font-weight: 600;
}

.content-page a {
    color: var(--secondary-color-2);
    text-decoration: underline;
}

.content-page a:hover {
    color: var(--primary-color);
}

.info-box {
    background: var(--secondary-color-1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.info-box.warning {
    background: rgba(255, 152, 0, 0.1);
    border-left-color: #ff9800;
}

.info-box.success {
    background: rgba(76, 175, 80, 0.1);
    border-left-color: #4caf50;
}

.info-box.danger {
    background: rgba(244, 67, 54, 0.1);
    border-left-color: #f44336;
}

.info-box p {
    margin-bottom: 0;
}

/* 联系表单 */
.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 2px 15px var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--secondary-color-1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

/* 联系卡片 */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 15px var(--shadow);
    transition: var(--transition);
}

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

.contact-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

.contact-card a {
    color: var(--secondary-color-2);
    font-weight: 600;
}

.contact-card a:hover {
    color: var(--primary-color);
}

/* 导航栏active状态 */
.nav-menu a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

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

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        padding: 20px;
        box-shadow: 0 5px 15px var(--shadow);
        transition: var(--transition);
        gap: 0;
    }

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

    .nav-menu li {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--bg-light);
    }

    .nav-menu a {
        width: 100%;
    }

    /* 英雄区 */
    .hero {
        padding: 40px 0;
    }

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

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .meta-item {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

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

    .hero-text {
        text-align: center;
    }

    /* 通用 */
    .section-title {
        font-size: 28px;
    }

    section {
        padding: 50px 0;
    }

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

    .news-card {
        flex-direction: column;
    }

    /* 画廊 */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* 评价 */
    .reviews-carousel {
        grid-template-columns: 1fr;
    }

    .rating-summary {
        padding: 30px 20px;
    }

    .score-number {
        font-size: 48px;
    }

    /* 攻略 */
    .guides-grid {
        grid-template-columns: 1fr;
    }

    /* 章节 */
    .chapter-item {
        flex-direction: column;
        padding: 20px;
    }

    .chapter-number span {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

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

    .modal-close {
        top: 20px;
        right: 30px;
        font-size: 40px;
    }

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

    /* 子页面响应式 */
    .page-title {
        font-size: 32px;
        flex-direction: column;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    .category-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .category-link {
        flex-direction: row;
        justify-content: flex-start;
    }

    .content-page {
        padding: 25px 20px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }
}

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

    .section-title {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }

    .download-btn {
        padding: 12px 30px;
        font-size: 16px;
    }

    .tag {
        font-size: 12px;
        padding: 6px 12px;
    }
}

