:root {
    --primary-color: #ff4d4d;
    --secondary-color: #ff8080;
    --accent-1: #6c5ce7;
    --accent-2: #00b894;
    --accent-3: #fdcb6e;
    --text-color: #2d3436;
    --text-light: #636e72;
    --background-color: #fff;
    --background-alt: #f8f9fa;
    --gradient-start: #ff4d4d;
    --gradient-end: #ff8080;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --spacing-unit: 1rem;
    --max-width: 1200px;
    --section-spacing: 6rem;
    --content-spacing: 2rem;
    --grid-gap: 2rem;
    --container-padding: 5%;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

/* 导航栏样式优化 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: var(--background-alt);
    color: var(--primary-color);
}

/* Hero 区域样式优化 */
.hero {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding-top: calc(70px + 5rem);
    padding-bottom: 5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.1)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.4;
}

/* 标题样式优化 */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; color: var(--text-color); }
h3 { font-size: 1.75rem; }

/* 特性卡片增强 */
.feature-card {
    background: var(--background-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

/* 统计数字动画 */
.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--background-alt);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* FAQ 样式增强 */
.faq-container details {
    background: var(--background-alt);
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-container details[open] {
    background: white;
    box-shadow: var(--card-shadow);
}

.faq-container summary {
    padding: 1.5rem;
    position: relative;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.faq-container summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-container details[open] summary::after {
    content: '−';
}

/* 页脚样式优化 */
footer {
    background: var(--background-alt);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section {
    animation: fadeIn 0.8s ease-out forwards;
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 120px 5% 60px;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --background-alt: #2d2d2d;
        --text-color: #ffffff;
        --text-light: #a0a0a0;
    }
    
    .feature-card, .story-card, .download-card {
        background: var(--background-alt);
    }
}

/* 通用布局优化 */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.content-section {
    margin: var(--section-spacing) auto;
    padding: 0 var(--container-padding);
    max-width: var(--max-width);
}

/* 网格布局优化 */
.grid {
    display: grid;
    gap: var(--grid-gap);
    margin: var(--content-spacing) 0;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 文本排版优化 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: var(--content-spacing);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 卡片布局优化 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--grid-gap);
    margin: var(--content-spacing) 0;
}

.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
}

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

.feature-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* 统计数字布局优化 */
.statistics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--grid-gap);
    margin: var(--content-spacing) 0;
}

.stat-item {
    padding: 2.5rem 2rem;
}

/* FAQ 布局优化 */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-container details {
    margin-bottom: 1rem;
}

.faq-container details p {
    padding: 1.5rem;
    line-height: 1.8;
}

/* 页脚布局优化 */
.footer-content {
    grid-template-columns: 2fr repeat(3, 1fr);
    padding: 4rem var(--container-padding);
}

.footer-section {
    padding-right: 3rem;
}

.footer-links {
    display: grid;
    gap: 1.5rem;
}

.link-column {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* 响应式布局优化 */
@media (max-width: 1024px) {
    :root {
        --section-spacing: 4rem;
        --content-spacing: 1.5rem;
    }

    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 3rem;
        --content-spacing: 1rem;
        --container-padding: 1rem;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

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

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

    .footer-section {
        padding-right: 0;
    }
}

/* 间距工具类 */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.py-3 { padding-top: 3rem; padding-bottom: 3rem; }

/* 确保所有可点击元素都有正确的z-index和position */
.cta-button {
    position: relative;
    z-index: 2;
    cursor: pointer;
}

/* 添加悬停效果以提高可见性 */
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 77, 77, 0.3);
}

/* Logo 样式优化 */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    letter-spacing: -0.5px;
}

.logo::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 6px;
    margin-right: 4px;
}

/* Logo 响应式优化 */
@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .logo::before {
        width: 20px;
        height: 20px;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .logo {
        color: var(--primary-color);
    }
    
    nav {
        background: rgba(26, 26, 26, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* 下载按钮样式统一 */
.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta-button, .download-button, .app-store-button, .play-store-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.2);
}

.cta-button::before, .download-button::before, 
.app-store-button::before, .play-store-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover::before, .download-button:hover::before,
.app-store-button:hover::before, .play-store-button:hover::before {
    opacity: 1;
}

.cta-button:hover, .download-button:hover,
.app-store-button:hover, .play-store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.3);
}

/* 下载卡片样式优化 */
.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.download-card {
    background: var(--background-alt);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.download-card .download-button {
    margin-top: 1.5rem;
}

/* 页脚下载按钮样式 */
.app-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button, .download-button, 
    .app-store-button, .play-store-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

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

/* 视频部分样式 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.video-card {
    background: var(--background-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.25rem;
}

.video-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .video-card {
        background: var(--background-alt);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .video-card {
        max-width: 500px;
        margin: 0 auto;
    }
} 