/* ========== 基础重置与变量 ========== */
:root {
    --gold: #F2A900;
    --gold-light: #FFD166;
    --gold-dark: #C78800;
    --orange: #E8740C;
    --bg-dark: #0A0A0F;
    --bg-card: #141420;
    --bg-card-hover: #1A1A2E;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255,255,255,0.65);
    --text-muted: rgba(255,255,255,0.4);
    --android-green: #3DDC84;
    --ios-blue: #007AFF;
    --radius: 20px;
    --radius-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========== 粒子画布 ========== */
#particles {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

/* ========== 容器 ========== */
.container {
    position: relative; z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 0 40px;
}

/* ========== 导航 ========== */
.navbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(242,169,0,0.1);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 36px; height: 36px; border-radius: 10px; }
.nav-title {
    font-size: 18px; font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-version {
    font-size: 12px; padding: 4px 10px;
    border: 1px solid rgba(242,169,0,0.3);
    border-radius: 20px; color: var(--gold);
}

/* ========== 英雄区 ========== */
.hero { position: relative; overflow: hidden; border-radius: 0 0 30px 30px; }
.hero-bg { position: relative; width: 100%; height: 360px; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(10,10,15,0.2) 0%,
        rgba(10,10,15,0.6) 60%,
        rgba(10,10,15,1) 100%
    );
}
.hero-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 0 24px 30px;
    text-align: center;
}
.logo-glow {
    display: inline-block; position: relative;
    margin-bottom: 16px;
}
.logo-glow::after {
    content: ''; position: absolute; inset: -15px;
    background: radial-gradient(circle, rgba(242,169,0,0.3), transparent 70%);
    border-radius: 50%; z-index: -1;
    animation: pulse-glow 3s ease-in-out infinite;
}
.hero-logo {
    width: 80px; height: 80px;
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(242,169,0,0.4);
    border: 2px solid rgba(255,255,255,0.15);
}
.hero-title {
    font-size: 36px; font-weight: 900;
    background: linear-gradient(135deg, #FFF 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: 4px;
}
.hero-subtitle {
    font-size: 14px; color: var(--text-secondary);
    letter-spacing: 6px; margin-bottom: 24px;
}
.hero-stats {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border-radius: 16px; padding: 16px 20px;
    border: 1px solid rgba(255,255,255,0.08);
}
.stat-item { text-align: center; }
.stat-num {
    font-size: 24px; font-weight: 900; color: var(--gold);
    display: inline;
}
.stat-unit { font-size: 14px; color: var(--gold-light); font-weight: 500; }
.stat-label { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.stat-divider {
    width: 1px; height: 30px;
    background: linear-gradient(180deg, transparent, rgba(242,169,0,0.3), transparent);
}

/* ========== 区块标题 ========== */
.section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 20px; font-weight: 700;
    padding: 0 24px; margin-bottom: 20px;
}
.title-icon { font-size: 22px; }

/* ========== 下载卡片 ========== */
.download-section { padding-top: 40px; }
.download-cards {
    display: flex; flex-direction: column; gap: 16px;
    padding: 0 20px;
}
.download-card {
    position: relative; overflow: hidden;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px 24px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.download-card:hover {
    transform: translateY(-2px);
}
.card-glow {
    position: absolute; top: -50%; right: -30%;
    width: 200px; height: 200px;
    border-radius: 50%; opacity: 0.08;
    transition: opacity 0.3s;
}
.download-card:hover .card-glow { opacity: 0.15; }
.android-card .card-glow { background: var(--android-green); }
.ios-card .card-glow { background: var(--ios-blue); }
.card-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.android-card .card-icon {
    background: rgba(61,220,132,0.1); color: var(--android-green);
}
.ios-card .card-icon {
    background: rgba(0,122,255,0.1); color: var(--ios-blue);
}
.card-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.card-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.card-info {
    display: flex; gap: 16px; margin-bottom: 20px;
    font-size: 12px; color: var(--text-muted);
}
.download-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px 0;
    border-radius: var(--radius-sm);
    font-size: 16px; font-weight: 600;
    text-decoration: none; color: #fff;
    transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.download-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}
.download-btn:hover::before { transform: translateX(100%); }
.android-btn {
    background: linear-gradient(135deg, #2ECC71, #27AE60);
    box-shadow: 0 4px 20px rgba(46,204,113,0.3);
}
.android-btn:hover { box-shadow: 0 6px 28px rgba(46,204,113,0.45); }
.ios-btn {
    background: linear-gradient(135deg, #007AFF, #0051D5);
    box-shadow: 0 4px 20px rgba(0,122,255,0.3);
}
.ios-btn:hover { box-shadow: 0 6px 28px rgba(0,122,255,0.45); }
.btn-arrow {
    transition: transform 0.3s;
}
.download-btn:hover .btn-arrow { transform: translateX(4px); }

/* ========== 特色功能 ========== */
.features-section { padding-top: 48px; }
.features-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; padding: 0 20px;
}
.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 22px 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s, border-color 0.3s;
}
.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(242,169,0,0.2);
}
.feature-icon { font-size: 32px; margin-bottom: 10px; }
.feature-card h3 {
    font-size: 15px; font-weight: 600; margin-bottom: 6px;
    color: var(--gold-light);
}
.feature-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ========== 教程 ========== */
.tutorial-section { padding-top: 48px; }
.tutorial-steps { padding: 0 20px; }
.step {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    animation: fadeInUp 0.5s ease both;
}
.step:last-child { border-bottom: none; }
.step-num {
    width: 36px; height: 36px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800; color: #fff;
}
.step-content h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.step-content p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ========== 底部 ========== */
.footer {
    text-align: center; padding: 48px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 48px;
}
.footer-logo { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 12px; opacity: 0.7; }
.footer-text { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.footer-sub { font-size: 11px; color: var(--text-muted); opacity: 0.5; }

/* ========== 动画 ========== */
@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0.8; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== 响应式 ========== */
@media (min-width: 481px) {
    .container { max-width: 480px; }
}
@media (max-width: 360px) {
    .hero-title { font-size: 28px; }
    .hero-stats { gap: 12px; padding: 12px 14px; }
    .stat-num { font-size: 20px; }
    .features-grid { gap: 8px; }
}

/* ========== iOS 安装弹窗 ========== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.35s ease;
    padding: 20px;
}
.modal-overlay.active {
    opacity: 1; visibility: visible;
}
.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.modal-box {
    background: linear-gradient(160deg, #1a1a2e 0%, #16162a 50%, #0f0f1e 100%);
    border: 1px solid rgba(130, 100, 255, 0.2);
    border-radius: 24px;
    padding: 36px 28px 28px;
    width: 100%; max-width: 340px;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(130, 100, 255, 0.08);
}
.modal-icon {
    font-size: 40px; margin-bottom: 12px;
}
.modal-title {
    font-size: 22px; font-weight: 800; margin-bottom: 18px;
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.modal-desc {
    font-size: 15px; color: rgba(180, 160, 255, 0.9);
    margin-bottom: 14px;
}
.modal-desc strong { color: #c4b5fd; }
.modal-hint {
    font-size: 13px; color: rgba(180, 160, 255, 0.65);
    margin-bottom: 6px; line-height: 1.6;
}
.modal-hint strong { color: rgba(180, 160, 255, 0.9); }
.modal-path {
    font-size: 15px; font-weight: 700;
    color: #a78bfa;
    margin: 8px 0 10px;
    letter-spacing: 1px;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(167, 139, 250, 0.3);
}
.modal-confirm {
    display: block; width: 100%;
    padding: 15px 0; margin-top: 22px;
    border: none; border-radius: 14px;
    font-size: 17px; font-weight: 700;
    color: #fff; text-decoration: none;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 40%, #6d28d9 100%);
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}
.modal-confirm:hover {
    box-shadow: 0 6px 32px rgba(139, 92, 246, 0.55);
    transform: translateY(-1px);
}
.modal-cancel {
    display: block; width: 100%;
    padding: 13px 0; margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    font-size: 15px; font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}
.modal-cancel:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-secondary);
}
