/* ═══════════════════════════════════════════════════════
   AI_CFOP 落地页样式
   配色沿用客户端 AppTheme：accent #6C5CE7
   ═══════════════════════════════════════════════════════ */

:root {
  --accent: #6c5ce7;
  --accent-hover: #5f4dd0;
  --accent-soft: #efeefe;
  --fg: #2d3436;
  --fg-muted: #636e72;
  --bg: #f8f9fa;
  --card: #ffffff;
  --border: #dfe6e9;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #e17055;
  --shadow-sm: 0 1px 3px rgba(45, 52, 54, 0.06);
  --shadow-md: 0 6px 24px rgba(45, 52, 54, 0.08);
  --shadow-lg: 0 18px 48px rgba(108, 92, 231, 0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1140px;
}

/* ── 重置 ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── 通用按钮 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all .18s ease;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn-block { display: flex; width: 100%; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ═══════════════ 顶部导航 ═══════════════ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-bar { display: flex; align-items: center; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 800; }
.brand:hover { color: var(--fg); }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; }
.brand-name { font-size: 18px; letter-spacing: .3px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--fg-muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff; padding: 8px 18px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 14px;
}
.nav-cta:hover { background: var(--accent-hover); color: #fff; }
.lang-toggle {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--fg-muted);
  font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
}
.lang-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* ═══════════════ Hero ═══════════════ */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(108, 92, 231, 0.18), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  padding: 72px 0 64px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.hero-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -.5px;
  color: var(--fg); margin-bottom: 18px;
}
.hero-subtitle {
  font-size: 18px; color: var(--fg-muted); max-width: 540px; margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-version { font-size: 13px; color: var(--fg-muted); }
.hero-version span { color: var(--accent); font-weight: 600; }

.hero-preview { display: flex; justify-content: center; }

/* ── 截图占位 ── */
.screenshot-placeholder {
  background: repeating-linear-gradient(45deg, #eef0f4, #eef0f4 12px, #e6e9f0 12px, #e6e9f0 24px);
  border: 2px dashed #c7ccd6; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #9aa0ac; font-size: 14px; letter-spacing: 1px;
}
.hero-shot { width: 100%; aspect-ratio: 16 / 11; box-shadow: var(--shadow-lg); border-radius: var(--radius); }

/* ═══════════════ 通用区块 ═══════════════ */
.section { padding: 80px 0; }
.section-alt { background: #ffffff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-title { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; }
.section-subtitle { font-size: 16px; color: var(--fg-muted); margin-top: 10px; }

/* ── 功能特性卡片 ── */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px;
  letter-spacing: .3px;
}
.icon-dashboard { background: linear-gradient(135deg, #00b894, #00cec9); }
.icon-analysis { background: linear-gradient(135deg, #0984e3, #6c5ce7); }
.icon-timer    { background: linear-gradient(135deg, #fdcb6e, #e17055); }
.icon-op       { background: linear-gradient(135deg, #fd79a8, #e84393); }
.icon-ai       { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.icon-data     { background: linear-gradient(135deg, #2d3436, #636e72); }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--fg-muted); margin: 0; }

/* ── 截图行 ── */
.screenshot-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: center;
}
.screenshot-row .screenshot-placeholder { aspect-ratio: 9 / 16; }

/* ═══════════════ 下载区 ═══════════════ */
.download-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.download-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.download-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); transform: translateY(-2px); }
.download-card-soon { background: linear-gradient(180deg, #fbfbfd, #f3f4f8); border-style: dashed; }
.dl-platform { display: flex; align-items: center; gap: 14px; }
.dl-platform h3 { font-size: 22px; margin: 0; }
.dl-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.dl-icon-windows { background: linear-gradient(135deg, #0984e3, #74b9ff); }
.dl-icon-android { background: linear-gradient(135deg, #00b894, #55efc4); }
.dl-icon-macos   { background: linear-gradient(135deg, #6c5ce7, #74b9ff); }
.dl-icon-ios     { background: linear-gradient(135deg, #636e72, #b2bec3); }
.dl-desc { color: var(--fg-muted); font-size: 14px; margin: 0; }

.dl-meta { display: flex; flex-direction: column; gap: 6px; margin: 4px 0; }
.dl-meta div { display: flex; justify-content: space-between; font-size: 14px; }
.dl-meta dt { color: var(--fg-muted); }
.dl-meta dd { margin: 0; font-weight: 600; color: var(--fg); }

.dl-status-error {
  margin: 0; font-size: 13px; color: var(--danger);
  background: #fff5f3; border: 1px solid #ffd6cd;
  border-radius: 8px; padding: 8px 12px;
}

.dl-changelog summary {
  cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 600;
  padding: 6px 0; user-select: none;
}
.changelog-body {
  font-size: 13px; color: var(--fg-muted); white-space: pre-wrap;
  background: var(--bg); border-radius: 8px; padding: 12px;
  margin-top: 8px; max-height: 180px; overflow-y: auto;
  border: 1px solid var(--border); line-height: 1.6;
}

/* iOS 开放测试 */
.dl-soon-badge {
  align-self: flex-start; padding: 4px 12px; border-radius: 999px;
  background: var(--warning); color: #5b4400; font-size: 12px; font-weight: 700;
}
.dl-soon-text { font-size: 14px; color: var(--fg-muted); margin: 0; flex: 1; }

.download-tip {
  text-align: center; color: var(--fg-muted); font-size: 13.5px;
  margin-top: 36px; padding: 14px 20px; background: var(--accent-soft);
  border-radius: var(--radius-sm);
}
.download-tip span { margin-right: 4px; }

/* ═══════════════ 页脚 ═══════════════ */
.site-footer { background: #1e2026; color: #c8ccd4; padding: 56px 0 24px; margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 44px; height: 44px; border-radius: 10px; }
.footer-name { color: #fff; font-size: 18px; font-weight: 800; }
.footer-tagline { color: #8b919c; font-size: 14px; margin: 0; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #c8ccd4; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2e313a; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: #8b919c;
}
.footer-bottom a { color: #8b919c; }
.footer-bottom a:hover { color: #fff; }

/* ═══════════════ 响应式 ═══════════════ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-preview { order: -1; }
  .hero-shot { aspect-ratio: 16 / 10; }
  .feature-grid, .download-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .lang-toggle { margin-left: auto; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
  .feature-grid, .download-grid, .screenshot-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { flex: 1; }
}

/* ═══════════════ 真实截图（替换占位后）═══════════════ */
.shot-img {
  width: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: block;
}
.shot-img.shot-hero {
  aspect-ratio: 16 / 11;
  box-shadow: var(--shadow-lg);
  border: none;
}
/* 三张截图均为竖屏，统一并排按真实比例显示，不再单独处理 shot-wide */

/* ── 宣传视频嵌入（B站 iframe，16:9 响应式） ── */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 640px) {
  .video-embed { box-shadow: var(--shadow-sm); }
}
