/* ===================================
   相克のアルテール 游戏官网样式
   =================================== */

/* CSS变量 - 主题色管理 */
:root {
    --primary-color: #c9bfc6;
    --secondary-color: #332e35;
    --accent-color-1: #87383b;
    --accent-color-2: #b88a38;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #1a1a1a;
    --bg-light: #f5f5f5;
    --transition-speed: 0.3s;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

/* 头部导航 */
header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color-1) 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform var(--transition-speed);
}

.logo:hover {
    transform: scale(1.05);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 英雄区 */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color-1) 50%, var(--accent-color-2) 100%);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text .subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-speed);
}

.hero-image:hover {
    transform: scale(1.02);
}

.version-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.info-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-tags {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.tag {
    background: var(--accent-color-2);
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color-2) 0%, var(--accent-color-1) 100%);
    color: var(--text-light);
    padding: 1rem 3rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.download-btn i {
    margin-right: 8px;
}

/* 内容区块通用样式 */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    border-radius: 2px;
}

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

/* 新闻动态区 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
}

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

.news-date {
    color: var(--accent-color-1);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.news-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.read-more {
    color: var(--accent-color-2);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.read-more:hover {
    color: var(--accent-color-1);
}

/* 媒体画廊 */
.gallery {
    background: white;
    padding: 4rem 0;
}

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

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

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

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

.gallery-overlay i {
    color: white;
    font-size: 3rem;
}

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

.review-stats {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.rating-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-color-2);
}

.stars {
    color: var(--accent-color-2);
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.review-count {
    color: #666;
    font-size: 0.9rem;
}

.review-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.review-tag {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.review-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

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

.reviewer-name {
    font-weight: bold;
    color: var(--secondary-color);
}

.review-stars {
    color: var(--accent-color-2);
}

.review-text {
    color: #666;
    line-height: 1.8;
    font-style: italic;
}

/* 版本历史 */
.version-history {
    background: white;
}

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

.version-item {
    background: var(--bg-light);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color-1);
    transition: all var(--transition-speed);
}

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

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

.version-number {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-color-1);
}

.version-date {
    color: #666;
    font-size: 0.9rem;
}

.version-details {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.version-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.9rem;
}

.version-detail i {
    color: var(--accent-color-2);
}

.version-content ul {
    list-style: none;
    padding-left: 0;
}

.version-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.version-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color-2);
}

.version-download {
    display: inline-block;
    background: var(--accent-color-2);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 1rem;
    transition: all var(--transition-speed);
}

.version-download:hover {
    background: var(--accent-color-1);
    transform: translateY(-2px);
}

/* 游戏攻略 */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.guide-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
    border-top: 3px solid var(--accent-color-2);
}

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

.guide-icon {
    font-size: 2.5rem;
    color: var(--accent-color-1);
    margin-bottom: 1rem;
}

.guide-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.guide-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.difficulty-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.difficulty-easy {
    background: #d4edda;
    color: #155724;
}

.difficulty-medium {
    background: #fff3cd;
    color: #856404;
}

.difficulty-hard {
    background: #f8d7da;
    color: #721c24;
}

/* 游戏章节 */
.chapters {
    background: white;
}

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

.chapter-item {
    background: var(--bg-light);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    transition: all var(--transition-speed);
}

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

.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chapter-number {
    background: var(--accent-color-1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.chapter-type {
    background: var(--accent-color-2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

.chapter-item h3 {
    color: var(--secondary-color);
    margin: 1rem 0;
    font-size: 1.3rem;
}

.chapter-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.chapter-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
}

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

.chapter-meta-item i {
    color: var(--accent-color-2);
}

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

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

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background var(--transition-speed);
}

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

.faq-question h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-question h3 i {
    color: var(--accent-color-1);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--accent-color-2);
    transition: transform var(--transition-speed);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out;
}

.faq-answer-content {
    padding: 1.5rem;
    color: #666;
    line-height: 1.8;
    border-top: 1px solid var(--bg-light);
}

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

/* 页脚 */
footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.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(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all var(--transition-speed);
}

.social-link:hover {
    background: var(--accent-color-1);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

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

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

/* 内页样式 */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color-1) 100%);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 20px;
}

.content-section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.content-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.content-section h3 {
    color: var(--accent-color-1);
    margin: 1.5rem 0 1rem;
}

.content-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-section ul, .content-section ol {
    color: #666;
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.highlight-box {
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color-2);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.contact-info {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
}

.contact-info i {
    color: var(--accent-color-2);
    width: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .navbar {
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--secondary-color);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-speed);
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .version-info {
        gap: 0.8rem;
    }

    .info-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .game-tags {
        gap: 0.5rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

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

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

    .review-slider {
        grid-template-columns: 1fr;
    }

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

    .version-details {
        flex-direction: column;
        gap: 0.5rem;
    }

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

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

    .page-header h1 {
        font-size: 1.8rem;
    }
}

/* 打印样式 */
@media print {
    header, footer, .back-to-top, .download-btn {
        display: none;
    }

    body {
        background: white;
    }

    .container {
        max-width: 100%;
    }
}
