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

/* 自定义CSS变量 */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --dark-color: #1f2937;
    --dark-light: #374151;
    --light-color: #f8fafc;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-dark: linear-gradient(135deg, var(--dark-color), var(--dark-light));
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --container-padding: 2rem;
}

/* 基础字体和布局 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--container-padding);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    text-decoration: none;
}

.logo, .footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gray-600);
    transition: var(--transition);
    border-radius: 2px;
}

/* 主要内容区 */
main {
    margin-top: 80px;
}

/* 英雄区域 */
.hero {
    min-height: 60vh;
    background: var(--gradient-primary);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.8), rgba(139, 92, 246, 0.8));
    animation: heroAnimation 20s ease-in-out infinite;
}

@keyframes heroAnimation {
    0%, 100% { background: linear-gradient(45deg, rgba(99, 102, 241, 0.8), rgba(139, 92, 246, 0.8)); }
    50% { background: linear-gradient(45deg, rgba(139, 92, 246, 0.8), rgba(245, 158, 11, 0.8)); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.title-main {
    display: block;
    font-size: 3.5rem;
    background: linear-gradient(45deg, #ffffff, #f0f9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sub {
    display: block;
    font-size: 1.8rem;
    opacity: 0.9;
    margin-top: 0.3rem;
}

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

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

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

.btn-download {
    background: var(--white);
    color: var(--primary-color);
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

.btn-download:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* 分区样式 */
.section {
    padding: 3rem 0;
}

.section.bg-dark {
    background: var(--gradient-dark);
    color: var(--white);
}

.section.bg-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.section-title i {
    font-size: 2rem;
    color: var(--accent-color);
}

.section-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* 游戏介绍网格 */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.about-content {
    display: grid;
    gap: 1.5rem;
}

.story-card, .version-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

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

.story-card h3, .version-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.story-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.version-list {
    list-style: none;
    line-height: 1.8;
}

.version-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.95rem;
}

.version-list li:last-child {
    border-bottom: none;
}

/* 特色网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    opacity: 0.9;
    line-height: 1.6;
}

/* 下载容器 */
.download-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.download-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.download-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.download-header {
    margin-bottom: 1.5rem;
}

.download-header i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
}

.download-header h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.download-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

.download-info {
    margin-bottom: 1.5rem;
}

.download-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.download-action {
    display: flex;
    justify-content: center;
}

.btn-download-main {
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    text-decoration: none;
    min-width: 200px;
}

.btn-download-main i {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.btn-download-main span {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

.btn-download-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    background: linear-gradient(45deg, #FF5252, #FF7979);
}

.download-notice {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.notice-card h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.notice-card p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-brand h3 {
    margin: 1rem 0;
    color: var(--primary-color);
}

.footer-links h4, .footer-info h4, .footer-contact h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-links a, .footer-info a, .footer-contact a {
    display: block;
    color: var(--gray-300);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-links a:hover, .footer-info a:hover, .footer-contact a:hover {
    color: var(--primary-color);
}

.footer-info p, .footer-contact p {
    margin-bottom: 0.5rem;
    color: var(--gray-300);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-light);
    color: var(--gray-400);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-main {
        font-size: 3rem;
    }
    
    .title-sub {
        font-size: 1.6rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-badges {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .badge {
        flex: 0 0 calc(33.333% - 0.333rem);
        min-width: 0;
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .download-container {
        padding: 0 1rem;
    }
    
    .download-card {
        padding: 1.5rem;
    }
    
    .btn-download-main {
        width: 100%;
        min-width: auto;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .title-main {
        font-size: 2.2rem;
    }
    
    .title-sub {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .story-card, .version-card, .feature-card, .download-card {
        padding: 1.25rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .hero-badges {
        gap: 0.3rem;
    }
    
    .badge {
        flex: 0 0 calc(33.333% - 0.2rem);
        font-size: 0.7rem;
        padding: 0.3rem 0.4rem;
    }
}

/* FAQ页面样式 */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.faq-question {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.faq-question h3 {
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 1.5rem;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* 用户手册页面样式 */
.manual-container {
    max-width: 900px;
    margin: 0 auto;
}

.manual-section {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.manual-section h2 {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
}

.manual-content {
    padding: 2rem;
}

.manual-content h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
}

.manual-content ul, .manual-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.manual-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

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

.requirement-card {
    background: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.requirement-card h3 {
    color: var(--dark-color);
    margin-top: 0;
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.control-item {
    background: var(--gray-100);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

/* 隐私政策页面样式 */
.privacy-container {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-section {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.privacy-section h2 {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
}

.privacy-content {
    padding: 2rem;
}

.privacy-content h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
}

.privacy-intro {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 服务条款页面样式 */
.terms-container {
    max-width: 900px;
    margin: 0 auto;
}

.terms-section {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.terms-section h2 {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
}

.terms-content {
    padding: 2rem;
}

.terms-content h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
}

.terms-intro {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 响应式设计 - 新页面 */
@media (max-width: 768px) {
    .requirement-grid {
        grid-template-columns: 1fr;
    }
    
    .control-grid {
        grid-template-columns: 1fr;
    }
    
    .manual-section h2,
    .privacy-section h2,
    .terms-section h2 {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .manual-content,
    .privacy-content,
    .terms-content {
        padding: 1.5rem;
    }
    
    .faq-question,
    .faq-answer {
        padding: 1rem;
    }
}

/* 滚动行为 */
html {
    scroll-behavior: smooth;
}

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

.story-card, .version-card, .feature-card, .download-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 悬浮效果增强 */
.story-card:hover, .version-card:hover, .feature-card:hover, .download-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 焦点状态 */
.btn:focus, .nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 选择文本样式 */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

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

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
} 