/* ==================== Seele AI 紫色灵魂主题 ==================== */
:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --secondary: #c026d3;
    --gradient: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%);
    --gradient-soft: linear-gradient(135deg, #f3e8ff 0%, #fae8ff 100%);
    --bg: #faf5ff;
    --bg-alt: #f5f0ff;
    --bg-card: #ffffff;
    --text: #1e1b2e;
    --text-light: #52525b;
    --text-muted: #94a3b8;
    --border: #e9d5ff;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 2px 12px rgba(124, 58, 237, 0.08);
    --shadow-hover: 0 8px 30px rgba(124, 58, 237, 0.15);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; -webkit-touch-callout: none; }
button { font: inherit; cursor: pointer; }
.container { max-width: 760px; margin: 0 auto; padding: 0 16px; }
section { padding: 44px 0; }
.section-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 8px; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-desc { text-align: center; color: var(--text-light); font-size: 14px; margin-bottom: 24px; }

/* ==================== 按钮 ==================== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: transform .15s, box-shadow .15s; min-height: 44px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3); }
.btn-primary:active { transform: scale(0.96); }
.btn-sm { padding: 8px 16px; font-size: 13px; min-height: 36px; }
.btn-xl { padding: 14px 36px; font-size: 17px; min-height: 52px; }

/* ==================== Header ==================== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding-top: var(--safe-top);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--primary-dark); }
.logo-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.logo-icon img { width: 28px; height: 28px; border-radius: 8px; }
.logo-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-desktop { display: none; gap: 24px; }
.nav-desktop a { color: var(--text-light); font-size: 14px; font-weight: 500; }
.nav-desktop a:hover { color: var(--primary); }

/* ==================== Hero ==================== */
.hero { text-align: center; padding: calc(80px + var(--safe-top)) 0 44px; background: var(--gradient-soft); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 480px; height: 480px; background: radial-gradient(circle, rgba(124,58,237,0.12), transparent 70%); pointer-events: none; }
.hero-badge { display: inline-block; padding: 5px 14px; border-radius: 999px; background: rgba(124,58,237,0.1); color: var(--primary-dark); font-size: 12px; font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: 1.75rem; font-weight: 800; line-height: 1.35; margin-bottom: 12px; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-desc { font-size: 15px; color: var(--text-light); max-width: 540px; margin: 0 auto 22px; line-height: 1.7; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero-link { color: var(--primary); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; padding: 10px 8px; min-height: 44px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* ==================== 实时数据栏 ==================== */
.live-data { background: var(--gradient); padding: 10px 0; }
.live-data-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; }
.live-item { display: flex; align-items: center; gap: 4px; color: #fff; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.live-ico { font-size: 14px; }
.live-item b { font-weight: 700; }

/* ==================== Features ==================== */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: transform .15s; }
.feature-card:active { transform: scale(0.98); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gradient-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--text-light); line-height: 1.65; }

/* ==================== 角色广场 ==================== */
.characters { background: var(--bg-alt); }
.char-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.char-tab { padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-light); transition: all .15s; min-height: 40px; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.char-tab.active { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(124,58,237,0.3); }
.char-tab:active { transform: scale(0.96); }
.characters-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.character-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s; }
.character-card:active { transform: scale(0.98); }
.character-avatar { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 48px; position: relative; }
.character-info { padding: 10px 12px; }
.character-name { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.character-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }

/* ==================== 教程步骤 ==================== */
.tutorial-steps { display: flex; flex-direction: column; gap: 12px; }
.tutorial-step { display: flex; gap: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.step-content { flex: 1; min-width: 0; }
.step-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.step-desc { font-size: 13px; color: var(--text-light); line-height: 1.6; word-break: break-word; }

/* ==================== 对比表 ==================== */
.comparison { background: var(--bg-alt); }
.comparison-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 100%; }
.comparison-table { width: 100%; min-width: 340px; border-collapse: collapse; background: var(--bg-card); }
.comparison-table th, .comparison-table td { padding: 12px 10px; text-align: center; font-size: 13px; border-bottom: 1px solid var(--border); }
.comparison-table th { background: var(--gradient-soft); font-weight: 700; }
.comparison-table .col-feature { text-align: left; font-weight: 600; }
.comparison-table .comparison-highlight { background: rgba(124,58,237,0.06); color: var(--primary-dark); font-weight: 700; }

/* ==================== 面包屑导航 ==================== */
.breadcrumb-bar { padding: 10px 0; background: var(--bg-alt); font-size: 13px; color: var(--text-light); }
.breadcrumb-bar .container { display: flex; align-items: center; gap: 6px; }
.breadcrumb-bar a { color: var(--primary); font-weight: 500; }
.breadcrumb-current { color: var(--text-muted); }

/* ==================== 下载页增强 ==================== */
.download-actions { margin-top: 16px; display: flex; justify-content: center; }
.download-actions .btn-xl { width: 100%; max-width: 280px; }
.recent-dl { font-size: 14px; color: var(--text-light); margin-top: 12px; text-align: center; }
.recent-dl b { color: var(--primary); font-weight: 700; }
.comparison-table td:not(.comparison-highlight):not(.col-feature) { color: var(--text-light); }

/* ==================== 用户评价 ==================== */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.review-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); transition: transform .15s; }
.review-card:active { transform: scale(0.98); }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; font-weight: 700; flex-shrink: 0; }
.review-name { font-size: 14px; font-weight: 600; }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-text { font-size: 14px; color: var(--text-light); line-height: 1.7; word-break: break-word; overflow-wrap: break-word; }
.review-stars { color: #fbbf24; font-size: 13px; margin-bottom: 6px; }

/* ==================== 长尾内容 ==================== */
.longtail { background: var(--bg-alt); }
.longtail-content { max-width: 720px; margin: 0 auto; }
.longtail-content h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; color: var(--primary-dark); }
.longtail-content p { font-size: 14px; color: var(--text-light); line-height: 1.8; margin-bottom: 8px; word-break: break-word; overflow-wrap: break-word; }
.longtail-content a { color: var(--primary); font-weight: 600; }

/* ==================== FAQ ==================== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
.faq-question { width: 100%; padding: 14px 16px; background: none; border: none; text-align: left; font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 44px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.faq-question:active { background: var(--bg-alt); }
.faq-icon { font-size: 20px; color: var(--primary); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer-inner { padding: 0 16px 14px; font-size: 14px; color: var(--text-light); line-height: 1.75; }

/* ==================== 大家还在搜 ==================== */
.related-searches { background: var(--bg-card); }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 760px; margin: 0 auto; }
.related-item { display: flex; align-items: center; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px solid var(--border); font-size: 14px; color: var(--text); transition: transform .15s; min-height: 44px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.related-item::before { content: "🔍"; margin-right: 8px; font-size: 13px; opacity: 0.7; }
.related-item:active { transform: scale(0.97); }

/* ==================== 更新日志 ==================== */
.changelog { background: var(--bg-alt); }
.changelog-list { max-width: 720px; margin: 0 auto; }
.changelog-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 10px; box-shadow: var(--shadow); }
.changelog-version { font-size: 14px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.changelog-version time { font-weight: 400; color: var(--text-muted); font-size: 12px; margin-left: 8px; }
.changelog-item p { font-size: 14px; color: var(--text-light); line-height: 1.65; }

/* ==================== 关键词云 ==================== */
.keywords { background: var(--bg-alt); }
.keyword-cloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 760px; margin: 0 auto; }
.keyword-tag { padding: 6px 14px; border-radius: 999px; font-size: 13px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-light); transition: all .15s; text-decoration: none; display: inline-block; cursor: pointer; }
.keyword-tag:hover { background: var(--gradient-soft); color: var(--primary-dark); border-color: var(--primary-light); }
a.keyword-tag { color: var(--text-light); }

/* ==================== CTA ==================== */
.cta { background: var(--gradient); padding: 48px 0; text-align: center; }
.cta-card h2 { color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.cta-card p { color: rgba(255,255,255,0.9); font-size: 15px; margin-bottom: 20px; }
.cta-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 36px; background: #fff; color: var(--primary-dark); border-radius: var(--radius-sm); font-size: 17px; font-weight: 700; min-height: 52px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cta-btn:active { transform: scale(0.96); }

/* ==================== Footer ==================== */
.footer { background: #1e1b2e; color: #a78bfa; padding: 36px 0 calc(76px + var(--safe-bottom)); }
.footer-inner { text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; font-size: 20px; font-weight: 800; color: #fff; }
.footer-brand .logo-icon img { width: 28px; height: 28px; border-radius: 8px; }
.footer-desc { font-size: 13px; color: #94a3b8; max-width: 480px; margin: 0 auto 16px; line-height: 1.7; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 16px; }
.footer-nav a { color: #a78bfa; font-size: 13px; }
.footer-update { font-size: 12px; color: #64748b; margin-bottom: 8px; }
.footer-copyright { font-size: 12px; color: #475569; }

/* ==================== 移动端底部导航 ==================== */
.mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-top: 1px solid var(--border); display: flex; justify-content: space-around; padding-bottom: var(--safe-bottom); z-index: 99; }
.mobile-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; font-size: 11px; color: var(--text-light); min-height: 44px; flex: 1; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.mobile-nav-icon { font-size: 20px; }
.mobile-nav-download { color: var(--primary); font-weight: 700; }

/* ==================== 悬浮下载按钮 ==================== */
.fab { position: fixed; right: 16px; bottom: calc(76px + var(--safe-bottom)); width: 52px; height: 52px; border-radius: 50%; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 16px rgba(124,58,237,0.4); z-index: 98; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.fab:active { transform: scale(0.9); }

/* ==================== 移动端优化 (默认/≤576px) ==================== */
section { padding: 36px 0; }
.hero { padding: calc(64px + var(--safe-top)) 0 32px; }
.hero h1 { font-size: 1.55rem; line-height: 1.3; }
.hero-desc { font-size: 14px; margin-bottom: 18px; }
.section-title { font-size: 1.4rem; }
.section-desc { font-size: 13px; margin-bottom: 20px; }
.container { padding: 0 14px; }
.feature-card { padding: 16px; }
.feature-card h3 { font-size: 15px; }
.feature-card p { font-size: 13px; }
.feature-icon { width: 40px; height: 40px; font-size: 20px; margin-bottom: 10px; }
.character-avatar { aspect-ratio: 3/4; font-size: 44px; }
.character-info { padding: 8px 10px; }
.character-name { font-size: 14px; }
.character-desc { font-size: 11px; }
.characters-grid { gap: 10px; }
.tutorial-step { padding: 14px; gap: 12px; }
.step-num { width: 32px; height: 32px; font-size: 14px; }
.step-title { font-size: 14px; }
.step-desc { font-size: 12px; }
.review-card { padding: 14px; }
.review-text { font-size: 13px; }
.review-avatar { width: 34px; height: 34px; font-size: 16px; }
.longtail-content h3 { font-size: 15px; margin: 16px 0 6px; }
.longtail-content p { font-size: 13px; line-height: 1.7; }
.faq-question { padding: 12px 14px; font-size: 14px; }
.faq-answer-inner { font-size: 13px; padding: 0 14px 12px; }
.changelog-item { padding: 14px 16px; }
.changelog-item p { font-size: 13px; }
.changelog-version { font-size: 13px; }
.related-item { padding: 10px 14px; font-size: 13px; }
.keyword-tag { padding: 5px 12px; font-size: 12px; }
.cta { padding: 36px 0; }
.cta-card h2 { font-size: 1.35rem; }
.cta-card p { font-size: 14px; }
.footer { padding-top: 28px; }
.footer-desc { font-size: 12px; }
.footer-nav { gap: 12px; }
.footer-nav a { font-size: 12px; }
.footer-copyright { font-size: 11px; }
.live-data-bar { gap: 6px 12px; justify-content: space-around; }
.live-item { font-size: 12px; white-space: normal; text-align: center; flex-shrink: 1; }
.comparison-table { min-width: 340px; }
.comparison-table th, .comparison-table td { padding: 10px 8px; font-size: 12px; }
.comparison-table .col-feature { font-size: 11px; }

/* 移动端响应式断点 */
@media (min-width: 576px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .characters-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .container { max-width: 900px; padding: 0 20px; }
    section { padding: 44px 0; }
    .hero { padding: calc(80px + var(--safe-top)) 0 44px; }
    .nav-desktop { display: flex; }
    .nav-download { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .hero-desc { font-size: 16px; }
    .section-title { font-size: 1.8rem; }
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .characters-grid { grid-template-columns: repeat(4, 1fr); }
    .reviews-grid { grid-template-columns: repeat(3, 1fr); }
    .related-grid { grid-template-columns: repeat(4, 1fr); }
    .tutorial-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .comparison-table { min-width: 420px; }
    .comparison-table th, .comparison-table td { padding: 12px 10px; font-size: 13px; }
    .character-avatar { aspect-ratio: 1; font-size: 48px; }
    .mobile-nav { display: none; }
    .fab { display: none; }
    .footer { padding-bottom: 36px; padding-top: 36px; }
}

@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(4, 1fr); }
    .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 小屏适配 (≤375px) */
@media (max-width: 375px) {
    .container { padding: 0 10px; }
    .hero h1 { font-size: 1.35rem; }
    .section-title { font-size: 1.2rem; }
    .hero-desc { font-size: 13px; line-height: 1.6; }
    .live-item { font-size: 11px; gap: 3px; }
    .live-data-bar { gap: 4px 8px; }
    .character-avatar { font-size: 36px; aspect-ratio: 3/4; }
    .characters-grid { gap: 6px; }
    .character-info { padding: 6px 8px; }
    .character-name { font-size: 13px; }
    .character-desc { font-size: 10px; line-height: 1.35; }
    .feature-icon { width: 36px; height: 36px; font-size: 18px; }
    .feature-card { padding: 14px; }
    .feature-card h3 { font-size: 14px; }
    .feature-card p { font-size: 12px; }
    .review-card { padding: 12px; }
    .review-text { font-size: 12px; }
    .faq-question { font-size: 13px; padding: 10px 12px; }
    .faq-answer-inner { font-size: 12px; padding: 0 12px 10px; }
    .related-item { padding: 8px 12px; font-size: 12px; }
    .keyword-tag { padding: 4px 10px; font-size: 11px; }
    .mobile-nav-item { font-size: 10px; }
    .mobile-nav-icon { font-size: 18px; }
    .fab { width: 46px; height: 46px; font-size: 22px; right: 12px; }
    .hero-actions { gap: 8px; }
    .btn-xl { padding: 12px 28px; font-size: 15px; min-height: 48px; }
    .comparison-table { min-width: 320px; }
    .comparison-table th, .comparison-table td { padding: 8px 6px; font-size: 11px; }
    .footer-desc { font-size: 11px; }
    .changelog-item { padding: 12px 14px; }
    .changelog-item p { font-size: 12px; }
}

/* 横屏适配 (≤768px高度) */
@media (max-height: 768px) and (orientation: landscape) {
    .hero { padding: calc(52px + var(--safe-top)) 0 24px; }
    .hero h1 { font-size: 1.3rem; margin-bottom: 8px; }
    .hero-desc { font-size: 13px; margin-bottom: 12px; }
    .hero-actions { margin-bottom: 12px; }
    section { padding: 28px 0; }
    .live-data { padding: 6px 0; }
    .feature-card { padding: 14px; }
    .character-avatar { font-size: 36px; }
    .character-info { padding: 6px 8px; }
    .character-desc { font-size: 10px; }
    .footer { padding-top: 20px; padding-bottom: 20px; }
}

/* ==================== 无障碍 ==================== */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f0a1e; --bg-alt: #1a1430; --bg-card: #1e1838;
        --text: #e2e8f0; --text-light: #94a3b8; --text-muted: #64748b;
        --border: #2d2152; --gradient-soft: linear-gradient(135deg, #1a1430 0%, #2d1b4e 100%);
    }
    .header { background: rgba(30,24,56,0.92); }
    .mobile-nav { background: rgba(30,24,56,0.95); }
}
