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

:root {
    --primary: #07C160;
    --primary-dark: #06AD55;
    --primary-light: #E8F8F0;
    --text: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg: #fff;
    --bg-grey: #F7F8FA;
    --border: #EAEAEA;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
}

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

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

.logo-icon { font-size: 28px; }

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    color: var(--text-light);
    transition: color 0.2s;
}

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

/* ===== 首页 Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 40px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 50%, var(--primary-light) 100%);
    gap: 60px;
    flex-wrap: wrap;
}

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

.hero-title {
    font-size: 64px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(7,193,96,0.3);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-large {
    padding: 16px 48px;
    font-size: 18px;
}

/* ===== 手机模型 ===== */
.hero-phone {
    flex: 0 0 auto;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #EDEDED;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    background: var(--primary);
    color: #fff;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 16px;
}

.chat-body {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.msg {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    animation: msgIn 0.5s ease;
}

.msg-left {
    background: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.msg-right {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-input {
    padding: 10px 16px;
    background: #fff;
    border-top: 1px solid var(--border);
    color: var(--text-lighter);
    font-size: 14px;
}

/* ===== 通用 Section ===== */
section {
    padding: 80px 24px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-desc {
    text-align: center;
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 48px;
}

/* ===== 功能区域 ===== */
.features {
    background: var(--bg-grey);
}

.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* ===== 下载区域 ===== */
.download {
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
}

.download-cards {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.download-card {
    background: #fff;
    padding: 40px 48px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    min-width: 280px;
}

.download-icon {
    font-size: 56px;
    margin-bottom: 12px;
}

.download-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.download-version {
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.download-size {
    color: var(--text-lighter);
    font-size: 14px;
    margin-bottom: 20px;
}

.download-hint {
    color: var(--text-lighter);
    font-size: 13px;
    margin-top: 12px;
}

.qr-placeholder {
    width: 180px;
    height: 180px;
    margin: 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-grey);
    border-radius: 8px;
}

#qrcode canvas, #qrcode img {
    border-radius: 8px;
}

/* ===== FAQ ===== */
.faq {
    background: var(--bg-grey);
}

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

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
}

.faq-toggle {
    font-size: 22px;
    color: var(--primary);
    transition: transform 0.2s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 15px;
}

/* ===== 关于 ===== */
.about {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-sponsor {
    margin-top: 32px;
    color: var(--primary);
    font-weight: 600;
}

/* ===== 页脚 ===== */
.footer {
    background: #1a1a1a;
    color: #999;
    padding: 40px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-links {
    margin-bottom: 16px;
}

.footer-links a {
    color: #999;
    margin: 0 12px;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 13px;
    color: #666;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }

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

    .hero-title { font-size: 48px; }
    .hero-subtitle { font-size: 22px; }
    .hero-desc { font-size: 15px; }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title { font-size: 28px; }

    .download-card {
        min-width: auto;
        width: 100%;
    }

    section { padding: 60px 16px; }
}
