/* Socolode App 下载页专属样式（站点 token 与顶栏/按钮基类来自 assets/site.css） */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  min-height: 100vh;
  color: var(--site-ink);
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(124,108,240,0.16), transparent 60%),
    radial-gradient(800px 520px at 0% 110%, rgba(34,211,238,0.12), transparent 55%),
    linear-gradient(180deg, var(--site-bg) 0%, var(--site-bg-2) 100%);
  display: flex; flex-direction: column; align-items: center;
  padding: 0 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
#site-header { width: 100%; }

.wrap { width: 100%; max-width: 860px; }

/* ---------- Hero：页面唯一视觉焦点 ---------- */
.hero { margin: 40px 0 48px; text-align: center; }
.app-icon { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 16px 40px rgba(124,108,240,.45); margin: 0 auto 16px; display: block; }
.hero h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: -.5px; line-height: 1.15; }
.hero .grad { background: linear-gradient(92deg, var(--site-accent-2) 0%, var(--site-accent) 55%, var(--site-accent-3) 105%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { margin: 16px auto 0; color: var(--site-muted); font-size: 15.5px; line-height: 1.7; max-width: 520px; }

/* 下载区：两个按钮等宽等高（几何一致），权重靠实心/描边区分 */
.dl-box { width: 100%; margin-top: 32px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.dl-actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; width: 100%; max-width: 520px; margin: 0 auto;
}
.dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 0 20px;
  font-size: 16px; font-weight: 700; line-height: 1.2; color: #fff; text-decoration: none;
  border: 1px solid transparent; border-radius: 14px;
  background: linear-gradient(135deg, #6d5ce0, #22d3ee);
  box-shadow: 0 16px 38px rgba(124,108,240,.42);
  transition: transform .2s ease, filter .2s ease, border-color .2s ease;
}
.dl-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.dl-btn:active { transform: translateY(0); }
.dl-btn.is-wait { background: rgba(255,255,255,.12); box-shadow: none; pointer-events: none; }
.dl-btn-ios { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.26); box-shadow: none; }
.dl-btn-ios:hover { border-color: rgba(124,108,240,.55); }
/* 平台图标：内联 SVG，颜色跟随按钮文字 */
.dl-ico { width: 22px; height: 22px; flex: none; fill: currentColor; }
.btn-label { white-space: nowrap; }
.dl-meta { font-size: 12.5px; color: var(--site-muted); line-height: 1.7; }

/* ---------- Sections：8pt 节奏 ---------- */
section.block { margin-bottom: 48px; }
.block > h2 { font-size: 21px; font-weight: 700; margin-bottom: 16px; letter-spacing: -.2px; }
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feat { background: var(--site-surface); border: 1px solid var(--site-rule); border-radius: 16px; padding: 24px 20px; }
.feat .ico { font-size: 24px; margin-bottom: 8px; display: block; }
.feat h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.feat p { max-width: 360px; font-size: 13.5px; color: var(--site-muted); line-height: 1.7; }
.feats-more { margin-top: 24px; font-size: 13px; color: var(--site-muted); text-align: center; }

.steps { counter-reset: step; display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 16px; align-items: flex-start; background: var(--site-surface); border: 1px solid var(--site-rule); border-radius: 14px; padding: 16px 20px; }
.step::before { counter-increment: step; content: counter(step); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #6d5ce0, #22d3ee); }
.step p { font-size: 14px; line-height: 1.7; color: var(--site-ink); }

/* 折叠组（FAQ / 隐私） */
details.fold { background: var(--site-surface); border: 1px solid var(--site-rule); border-radius: 16px; padding: 0 24px; margin-bottom: 8px; }
details.fold > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-size: 15px; font-weight: 700; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; font-size: 22px; color: var(--site-muted); font-weight: 400; flex: none; }
details.fold[open] > summary::after { content: "–"; }
.fold-body { max-width: 640px; padding: 0 0 24px; font-size: 13.5px; color: var(--site-muted); line-height: 1.8; }
.fold-body p { margin-bottom: 8px; }
.fold-body p:last-child { margin-bottom: 0; }
.fold-body a { color: var(--site-accent-2); }
.fold-body .step { margin-top: 8px; }
.fold-body .step:first-child { margin-top: 0; }

/* ---------- 移动端 sticky 下载条 ---------- */
.dl-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10,11,22,.92);
  border-top: 1px solid var(--site-rule);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.dl-bar .bar-icon { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.dl-bar .bar-meta { flex: 1; min-width: 0; }
.dl-bar .bar-name { font-size: 13.5px; font-weight: 700; }
.dl-bar .bar-sub { font-size: 11px; color: var(--site-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-bar .dl-btn { width: auto; min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; box-shadow: none; flex: none; }
.dl-bar .dl-ico { width: 17px; height: 17px; }

/* ---------- WeChat mask ---------- */
.wechat-mask { display: none; position: fixed; inset: 0; z-index: 10000; background: rgba(7,8,15,.96); padding: 40px 32px; text-align: right; }
.wechat-mask.show { display: block; }
.wechat-mask .arrow { font-size: 64px; color: #fff; line-height: 1; }
.wechat-mask p { text-align: center; color: #fff; font-size: 18px; line-height: 1.8; margin-top: 70px; font-weight: 600; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
#site-header, .hero, .block { animation: fadeUp .6s ease backwards; }
.block:nth-of-type(2) { animation-delay: .08s; }

@media (max-width: 680px) {
  body { padding-bottom: 84px; }
  .hero { margin: 24px 0 32px; }
  .dl-actions { grid-template-columns: 1fr; max-width: 420px; gap: 12px; }
  .dl-btn { width: 100%; }
  .dl-bar { display: flex; }
}

@media (max-width: 560px) {
  .feats { grid-template-columns: 1fr; }
}
