/* 玉莲之剑官网样式 - 古风水墨风格 */

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

:root {
    --primary-color: #2c2c2c;
    --secondary-color: #8b4513;
    --accent-color: #c41e3a;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #ffffff;
    --bg-light: #f8f8f8;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-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, transparent, var(--accent-color), transparent);
}

/* ========== 导航栏样式 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    border-radius: 50%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

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

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

/* ========== 首屏英雄区 ========== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: #a01828;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    max-width: 600px;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ========== 游戏介绍区 ========== */
.about-section {
    padding: 80px 20px;
    background: var(--bg-color);
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.story-section {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-direction: row-reverse;
}

.story-text {
    flex: 1;
}

.story-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.story-image {
    flex: 1;
}

.story-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ========== 游戏特色区 ========== */
.features-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--light-text);
    line-height: 1.6;
}

.feature-image-container {
    margin-top: 3rem;
}

.feature-image-container img {
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 0 auto;
}

/* ========== 操作指南区 ========== */
.controls-section {
    padding: 80px 20px;
    background: var(--bg-color);
}

.controls-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.controls-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.control-item:hover {
    transform: translateX(10px);
}

.key {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
}

.description {
    color: var(--text-color);
    font-size: 1.1rem;
}

.controls-image {
    flex: 1;
}

.controls-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ========== 下载区域 ========== */
.download-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #8b1a2e 100%);
    color: white;
    text-align: center;
}

.download-section .section-title {
    color: white;
}

.download-section .section-title::after {
    background: linear-gradient(90deg, transparent, white, transparent);
}

.download-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.download-btn {
    background: white;
    color: var(--primary-color);
    padding: 2rem;
    border-radius: 10px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

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

.platform-icon {
    font-size: 3rem;
}

.platform-name {
    font-size: 1.3rem;
    font-weight: bold;
}

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

/* ========== FAQ区域 ========== */
.faq-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

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

.faq-item {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateX(10px);
}

.faq-question {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-answer {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* ========== 页脚 ========== */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 20px 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    margin-bottom: 1rem;
    border-radius: 50%;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-links h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

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

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

.footer-info {
    flex: 1;
    min-width: 200px;
}

.footer-info h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-info p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-friends {
    flex: 1;
    min-width: 200px;
}

.footer-friends h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

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

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

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

.footer-bottom p {
    opacity: 0.7;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* ========== 返回顶部按钮 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

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

.back-to-top:hover {
    background: #a01828;
    transform: translateY(-5px);
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

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

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

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

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

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

    .about-content,
    .story-section {
        flex-direction: column;
    }

    .controls-content {
        flex-direction: column;
    }

    .controls-list {
        grid-template-columns: 1fr;
    }

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