/* 图库清道夫官网：深色、朴素，与 App 保持一致。 */

:root {
  --bg: #0a0a0a;
  --surface: #161618;
  --surface-2: #1c1c1e;
  --surface-3: #2c2c2e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-2: rgba(255, 255, 255, 0.7);
  --text-3: rgba(255, 255, 255, 0.45);
  --red: #ff453a;
  --radius: 20px;
  --container: 1120px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

/* ---------- 头部 ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand img { border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { text-decoration: none; color: var(--text-2); font-size: 15px; padding: 6px 12px; border-radius: 999px; transition: color .15s, background .15s; white-space: nowrap; }
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-github { display: grid; place-items: center; padding: 6px 8px !important; }

@media (max-width: 560px) {
  .brand span { display: none; }
  .site-nav a { padding: 6px 9px; font-size: 14px; }
}

/* ---------- 通用 ---------- */

.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { color: var(--text-3); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; }
.section-lead { color: var(--text-2); font-size: 18px; margin-top: 14px; max-width: 640px; text-wrap: balance; }
.hero-lead, .step p, .feature p, .faq details p, .guide-text p { text-wrap: pretty; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 999px; border: 0;
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .15s, opacity .15s;
}
.btn:active { transform: scale(.96); }
.btn svg { width: 20px; height: 20px; }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: #e8e8ea; }
.btn-grey { background: var(--surface-3); color: var(--text); }
.btn-grey:hover { background: #3a3a3c; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn small { font-weight: 500; opacity: .7; font-size: 13px; }

/* ---------- 首屏 ---------- */

.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }
.hero-logo { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, .6); margin-bottom: 28px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 68px); font-weight: 800; letter-spacing: -0.02em; }
.hero h1 span { display: block; color: var(--text-3); font-size: .42em; font-weight: 600; letter-spacing: 0; margin-top: 10px; }
.hero-lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--text-2); margin: 22px 0 34px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; color: var(--text-3); font-size: 14px; }
.hero-points li::before { content: "✓"; margin-right: 6px; color: var(--text-2); }

@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .hero-logo { margin-inline: auto; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
}

/* ---------- 三步 ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px 28px 0; overflow: hidden; display: flex; flex-direction: column; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; font-size: 15px; margin-bottom: 18px; }
.step h3 { font-size: 22px; }
.step p { color: var(--text-2); margin-top: 8px; }
.step-shot { margin: 28px auto 0; width: 72%; border-radius: 26px 26px 0 0; border: 6px solid #232325; border-bottom: 0; overflow: hidden; aspect-ratio: 402 / 560; }
.step-shot img { width: 100%; height: auto; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

/* ---------- 功能 ---------- */

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-3); display: grid; place-items: center; margin-bottom: 18px; }
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon.red { background: rgba(255, 69, 58, .16); color: var(--red); }
.feature h3 { font-size: 17px; }
.feature p { color: var(--text-2); font-size: 15px; margin-top: 6px; }

@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* ---------- 截图 ---------- */

.gallery {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px max(16px, (100% - var(--container)) / 2) 24px; margin-top: 48px;
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
}
.shot { flex: 0 0 auto; width: 236px; scroll-snap-align: center; margin: 0; }
.shot-frame { border-radius: 34px; border: 7px solid #232325; overflow: hidden; background: #000; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.shot-frame img { width: 100%; height: auto; }
.shot figcaption { text-align: center; color: var(--text-2); font-size: 14px; margin-top: 14px; }

/* ---------- 隐私 ---------- */

.privacy-band { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 40px; }
.privacy-band .big-icon { width: 76px; height: 76px; border-radius: 22px; background: var(--surface-3); display: grid; place-items: center; }
.privacy-band .big-icon svg { width: 38px; height: 38px; }
.privacy-band h2 { font-size: 26px; }
.privacy-band p { color: var(--text-2); margin-top: 8px; }
@media (max-width: 640px) { .privacy-band { grid-template-columns: 1fr; padding: 28px; text-align: center; } .privacy-band .big-icon { margin-inline: auto; } }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 4px; font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--text-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 4px 22px; }

/* ---------- 下载 ---------- */

.download-card { text-align: center; }
.download-card .hero-actions { justify-content: center; margin-top: 32px; }

/* ---------- 文档页（指南、隐私、协议） ---------- */

.doc-hero { padding: 64px 0 24px; }
.doc-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
.doc-hero p { color: var(--text-2); margin-top: 12px; font-size: 18px; }

.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding-bottom: 96px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 14px; }
.toc p { color: var(--text-3); font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 14px; color: var(--text-2); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: #fff; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; } .toc ol { display: flex; flex-wrap: wrap; gap: 6px; border: 0; } .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin: 0; } .toc a.active { border-color: #fff; } }

.guide-section { padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.guide-section:first-child { padding-top: 8px; }
.guide-section:last-child { border-bottom: 0; }
.guide-section h2 { font-size: 28px; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.guide-section h2 .n { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); font-size: 15px; display: grid; place-items: center; flex: none; }
.guide-body { display: grid; grid-template-columns: 1fr 220px; gap: 40px; margin-top: 20px; align-items: start; }
.guide-body.no-shot { grid-template-columns: 1fr; }
.guide-text > * + * { margin-top: 14px; }
.guide-text p, .guide-text li { color: var(--text-2); }
.guide-text strong { color: var(--text); }
.guide-text ol, .guide-text ul { padding-left: 1.3em; margin-bottom: 0; }
.guide-text li + li { margin-top: 6px; }
.guide-shot { border-radius: 30px; border: 6px solid #232325; overflow: hidden; background: #000; }
.guide-shot img { width: 100%; height: auto; }
@media (max-width: 720px) { .guide-body { grid-template-columns: 1fr; } .guide-shot { max-width: 240px; margin-inline: auto; } }

.gesture-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; }
.gesture-table th, .gesture-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.gesture-table th { color: var(--text-3); font-weight: 600; font-size: 13px; }
.gesture-table td:first-child { white-space: nowrap; color: var(--text); font-weight: 600; }
.gesture-table td { color: var(--text-2); }
.kbd { display: inline-block; min-width: 26px; padding: 1px 7px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--line); font-size: 13px; text-align: center; color: var(--text); }

.callout { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; color: var(--text-2); font-size: 15px; }
.callout strong { color: var(--text); }
.callout.red { border-color: rgba(255, 69, 58, .35); background: rgba(255, 69, 58, .08); }

.legal { max-width: 760px; padding-bottom: 96px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-2); }
.legal .date { color: var(--text-3); font-size: 14px; }

/* ---------- 在线体验页 ---------- */

.demo-page { padding: 48px 0 96px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 48px; align-items: center; }
.demo-side h1 { font-size: 40px; font-weight: 800; }
.demo-side p { color: var(--text-2); margin-top: 12px; }
.demo-side ul { margin: 24px 0 0; padding: 0; list-style: none; }
.demo-side li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.demo-side li .kbd { flex: none; }
@media (max-width: 1080px) { .demo-page { grid-template-columns: 1fr; text-align: center; } .demo-side ul { max-width: 360px; margin-inline: auto; text-align: left; } .demo-side.right { order: 3; } }

/* ---------- 页脚 ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { border-radius: 10px; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.35; }
.footer-brand span { color: var(--text-3); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; font-size: 15px; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-note { grid-column: 1 / -1; color: var(--text-3); font-size: 13px; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } .footer-links { justify-content: flex-start; } }

/* ==========================================================
   在线体验：手机 + 模拟 App
   手机屏幕是一个尺寸容器，内部尺寸全部用 cqw（屏幕宽度的百分比），
   这样不管手机显示多大，界面比例都和真机一致。
   换算：App 里的 1pt ≈ 0.2488cqw（按 402pt 宽的 iPhone）。
   ========================================================== */

.sim-wrap { display: flex; flex-direction: column; align-items: center; }

.phone {
  width: min(340px, 82vw);
  padding: 11px;
  border-radius: 56px;
  background: linear-gradient(145deg, #2a2a2d, #141416);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 30px 80px rgba(0, 0, 0, .65);
}
.phone-screen {
  position: relative;
  aspect-ratio: 402 / 874;
  border-radius: 46px;
  overflow: hidden;
  background: #0a0a0a;
  container-type: inline-size;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.phone-screen:focus-visible { box-shadow: 0 0 0 3px #fff; }

.sim-noscript { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--text-2); }

.sim-island { position: absolute; z-index: 30; top: 2.8cqw; left: 50%; transform: translateX(-50%); width: 31cqw; height: 9cqw; border-radius: 99px; background: #000; pointer-events: none; }
.sim-status { position: absolute; z-index: 29; top: 0; left: 0; right: 0; height: 13cqw; display: flex; align-items: center; justify-content: space-between; padding: 1cqw 9.5cqw 0 10cqw; font-size: 4.2cqw; font-weight: 600; pointer-events: none; color: #fff; }
.sim-battery { width: 7cqw; height: 3.3cqw; border-radius: 1cqw; border: .5cqw solid rgba(255, 255, 255, .5); position: relative; }
.sim-battery::after { content: ""; position: absolute; inset: .4cqw; border-radius: .4cqw; background: #fff; }

.sim .sim-ico { width: 5.5cqw; height: 5.5cqw; flex: none; }
.sim .sim-ico.sm { width: 4.6cqw; height: 4.6cqw; opacity: .7; }

.sim-screen { position: absolute; inset: 0; }
.sim-screen[hidden] { display: none; }

/* 浏览页 */
.sim-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.sim-stage:active { cursor: grabbing; }
.sim-strip { position: absolute; inset: 0; will-change: transform; }
.sim-slide { position: absolute; top: 0; width: 100%; height: 100%; --wash: 0; }
.sim-card { position: absolute; inset: 0; display: grid; place-items: center; will-change: transform; transform-origin: center; }
.sim-card img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.sim-tint { position: absolute; inset: 0; background: rgba(255, 69, 58, .14); opacity: 0; transition: opacity .2s; pointer-events: none; }
.sim-slide.is-marked .sim-tint { opacity: 1; }
.sim-slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(0, 0, 0, calc(var(--wash) * .3)); }
.sim-slide.washing-del::after { background: rgba(255, 69, 58, calc(var(--wash) * .18)); }

.sim-hint { position: absolute; left: 0; right: 0; top: 30cqw; display: flex; flex-direction: column; align-items: center; gap: 2.5cqw; opacity: 0; pointer-events: none; z-index: 2; }
.sim-hint:not(.del) { top: auto; bottom: 46cqw; }
.sim-hint span { font-size: 3.8cqw; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.sim-hint-ring { position: relative; width: 19cqw; height: 19cqw; display: grid; place-items: center; transform: scale(calc(.7 + var(--p, 0) * .3)); }
.sim-hint-ring::before { content: ""; position: absolute; inset: 1.8cqw; border-radius: 50%; background: rgba(0, 0, 0, .45); transition: inset .16s, background .16s; }
.sim-hint.ready .sim-hint-ring::before { inset: 0; background: #fff; }
.sim-hint.del.ready .sim-hint-ring::before { background: var(--red); }
.sim-hint-ring svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sim-hint-ring circle { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 113.1; stroke-dashoffset: calc(113.1 * (1 - var(--p, 0))); }
.sim-hint.del .sim-hint-ring circle { stroke: var(--red); }
.sim-hint.ready .sim-hint-ring circle { opacity: 0; }
.sim-hint-ring .sim-ico { position: relative; width: 7.5cqw; height: 7.5cqw; color: #fff; }
.sim-hint.ready:not(.del) .sim-hint-ring .sim-ico { color: #000; }
.sim-hint .del, .sim-hint:not(.del) .res { display: block; }
.sim-hint .res, .sim-hint:not(.del) .del { display: none; }

.sim-badge { position: absolute; z-index: 2; left: 50%; bottom: 28cqw; transform: translateX(-50%) scale(.6); opacity: 0; display: flex; align-items: center; gap: 1.6cqw; white-space: nowrap; padding: 2cqw 3.6cqw; border-radius: 99px; background: var(--red); font-size: 3.3cqw; font-weight: 600; pointer-events: none; transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .2s; }
.sim-badge .sim-ico { width: 4cqw; height: 4cqw; }
.sim-slide.is-marked .sim-badge { opacity: 1; transform: translateX(-50%) scale(1); }
.sim-slide.dragging .sim-badge { opacity: 0; }

.sim-top { position: absolute; z-index: 5; top: 13.5cqw; left: 3cqw; right: 3cqw; pointer-events: none; }
.sim-row { display: flex; gap: 2cqw; align-items: center; }
.sim-row > * { pointer-events: auto; }
.sim-pill { height: 10.9cqw; display: inline-flex; align-items: center; gap: 1.6cqw; padding: 0 2.6cqw 0 3cqw; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(28, 28, 30, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 3.73cqw; font-weight: 600; color: #fff; cursor: pointer; white-space: nowrap; }
.sim-album { margin-right: auto; }
.sim-count { cursor: default; padding: 0 3.5cqw; font-variant-numeric: tabular-nums; }
.sim-count i { font-style: normal; color: var(--text-3); font-weight: 500; }
.sim-round { width: 10.9cqw; padding: 0; justify-content: center; }
.sim-progress { height: .75cqw; margin-top: 2.5cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .12); overflow: hidden; }
.sim-progress i { display: block; height: 100%; width: 0; background: rgba(255, 255, 255, .7); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.sim-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5cqw; gap: 2cqw; }
.sim-info { margin-left: auto; font-size: 2.75cqw; color: var(--text-2); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); white-space: nowrap; }
.sim-tag { font-size: 2.75cqw; font-weight: 600; padding: .6cqw 2.2cqw; border-radius: 99px; background: rgba(255, 255, 255, .92); color: #000; white-space: nowrap; }

.sim-bottom { position: absolute; z-index: 5; left: 4cqw; right: 4cqw; bottom: 6.5cqw; height: 16cqw; display: flex; align-items: center; padding: 0 2cqw; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(28, 28, 30, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.sim-undo { width: 12cqw; height: 12cqw; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); display: grid; place-items: center; cursor: pointer; color: #fff; transition: opacity .2s, transform .12s; }
.sim-undo:disabled { opacity: .35; cursor: default; }
.sim-undo:not(:disabled):active { transform: scale(.92); }
.sim-counter { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.sim-counter b { font-size: 5.5cqw; font-weight: 800; }
.sim-counter.has b { color: var(--red); }
.sim-counter span { font-size: 2.75cqw; color: var(--text-3); }
.sim-counter.bump b { animation: sim-bump .32s cubic-bezier(.34,1.56,.64,1); }
@keyframes sim-bump { 0% { transform: scale(.6); opacity: .3; } 100% { transform: scale(1); opacity: 1; } }
.sim-finish-btn { height: 12cqw; padding: 0 5cqw; border-radius: 99px; border: 0; display: inline-flex; align-items: center; gap: 1.5cqw; background: #fff; color: #000; font-size: 4cqw; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, transform .12s; }
.sim-finish-btn.red { background: var(--red); color: #fff; }
.sim-finish-btn:active { transform: scale(.94); }

.sim-coach { position: absolute; z-index: 8; left: 0; right: 0; bottom: 30cqw; display: flex; flex-direction: column; align-items: center; gap: 3cqw; pointer-events: none; transition: opacity .3s; }
.sim-coach.out { opacity: 0; }
.sim-coach p { text-align: center; font-size: 4cqw; font-weight: 700; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); line-height: 1.4; }
.sim-coach small { font-size: 3.2cqw; font-weight: 500; color: var(--text-2); }
.sim-coach-hand { width: 13cqw; height: 22cqw; position: relative; }
.sim-coach-hand i { position: absolute; left: 50%; bottom: 0; width: 9cqw; height: 9cqw; margin-left: -4.5cqw; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 2.5cqw rgba(255, 255, 255, .2); animation: sim-swipe 1.8s cubic-bezier(.45,0,.25,1) infinite; }
@keyframes sim-swipe { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(-13cqw); opacity: 1; } 100% { transform: translateY(-13cqw); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sim-coach-hand i { animation: none; } }

/* 确认页 */
.sim-review { display: flex; flex-direction: column; background: #0a0a0a; }
.sim-review[hidden] { display: none; }
.sim-head { flex: none; height: 12cqw; margin-top: 13cqw; display: flex; align-items: center; justify-content: space-between; padding: 0 2cqw; }
.sim-head h3 { font-size: 4.5cqw; font-weight: 700; }
.sim-back { width: 10cqw; height: 10cqw; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.sim-back .sim-ico { width: 6.5cqw; height: 6.5cqw; }
.sim-link { border: 0; background: none; color: #fff; font-size: 3.73cqw; cursor: pointer; padding: 2cqw; }
.sim-scroll { flex: 1; overflow-y: auto; padding: 1cqw 3.5cqw 4cqw; scrollbar-width: none; }
.sim-scroll::-webkit-scrollbar { display: none; }
.sim-summary { display: grid; grid-template-columns: 1fr auto; row-gap: 2cqw; padding: 4.5cqw 5cqw 4cqw; border-radius: 6cqw; background: var(--surface-2); }
.sim-summary small { color: var(--text-3); font-size: 3.2cqw; }
.sim-summary p { font-size: 4cqw; color: var(--text-2); line-height: 1.1; }
.sim-summary .right { text-align: right; align-self: end; }
.sim-sum-n { font-size: 11cqw; font-weight: 800; color: var(--red); }
.sim-sum-size { font-size: 6cqw; font-weight: 700; color: #fff; }
.sim-summary em { grid-column: 1 / -1; font-style: normal; color: var(--text-3); font-size: 2.9cqw; }
.sim-note { color: var(--text-3); font-size: 3cqw; margin: 4cqw 1cqw 3cqw; }
.sim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.sim-tile { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 3.5cqw; overflow: hidden; background: var(--surface-2); cursor: pointer; transition: transform .26s cubic-bezier(.34,1.56,.64,1); animation: sim-tile-in .42s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--k) * 35ms); }
@keyframes sim-tile-in { from { opacity: 0; transform: scale(.85); } }
.sim-tile img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s, opacity .2s; }
.sim-tile.off { transform: scale(.9); }
.sim-tile.off img { filter: grayscale(1); opacity: .45; }
.sim-keep { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.5cqw; font-weight: 700; opacity: 0; transition: opacity .2s; text-shadow: 0 1px 6px #000; }
.sim-tile.off .sim-keep { opacity: 1; }
.sim-check { position: absolute; top: 1.6cqw; right: 1.6cqw; width: 6cqw; height: 6cqw; border-radius: 50%; border: .55cqw solid #fff; background: var(--red); display: grid; place-items: center; transition: background .2s; }
.sim-check .sim-ico { width: 4cqw; height: 4cqw; stroke-width: 3; transition: opacity .2s; }
.sim-tile.off .sim-check { background: rgba(0, 0, 0, .25); }
.sim-tile.off .sim-check .sim-ico { opacity: 0; }
.sim-foot { flex: none; padding: 2cqw 5cqw 8cqw; }

.sim-btn { width: 100%; height: 13cqw; border: 0; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; gap: 1.6cqw; font-size: 4cqw; font-weight: 700; cursor: pointer; transition: transform .12s, opacity .2s; }
.sim-btn:active { transform: scale(.96); }
.sim-btn:disabled { opacity: .4; cursor: default; }
.sim-btn.red { background: var(--red); color: #fff; }
.sim-btn.white { background: #fff; color: #000; }
.sim-btn.grey { background: rgba(255, 255, 255, .1); color: #fff; }

/* 确认对话框 */
.sim-modal { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 0 8cqw; background: rgba(0, 0, 0, 0); transition: background .2s; }
.sim-modal[hidden] { display: none; }
.sim-modal.open { background: rgba(0, 0, 0, .55); }
.sim-dialog { width: 100%; padding: 7cqw 6cqw 5cqw; border-radius: 7cqw; background: var(--surface-2); text-align: center; transform: scale(.85); opacity: 0; transition: transform .28s cubic-bezier(.34,1.56,.64,1), opacity .2s; }
.sim-modal.open .sim-dialog { transform: scale(1); opacity: 1; }
.sim-dialog-icon { width: 16cqw; height: 16cqw; margin: 0 auto 4.5cqw; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.sim-dialog-icon .sim-ico { width: 8cqw; height: 8cqw; }
.sim-dialog h4 { font-size: 5cqw; }
.sim-dialog p { color: var(--text-2); font-size: 3.5cqw; margin-top: 2cqw; line-height: 1.55; }
.sim-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; margin-top: 6cqw; }
.sim-dialog-actions .sim-btn { height: 12.4cqw; }

/* 完成页 */
.sim-done { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14cqw 7cqw 8cqw; background: #0a0a0a; text-align: center; }
.sim-done[hidden] { display: none; }
.sim-done-check { width: 44cqw; height: 44cqw; margin-top: auto; }
.sim-done-check circle, .sim-done-check path { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }
.sim-done-check circle { stroke-width: 4; stroke-dasharray: 276.5; stroke-dashoffset: 276.5; transform: rotate(-90deg); transform-origin: 60px 60px; }
.sim-done-check path { stroke-width: 6; stroke-dasharray: 70; stroke-dashoffset: 70; }
.sim-done.play .sim-done-check circle { animation: sim-draw .65s cubic-bezier(.2,.8,.2,1) forwards; }
.sim-done.play .sim-done-check path { animation: sim-draw .4s cubic-bezier(.2,.8,.2,1) .45s forwards; }
@keyframes sim-draw { to { stroke-dashoffset: 0; } }
.sim-done h3 { font-size: 7cqw; font-weight: 800; margin-top: 6cqw; }
.sim-done.play h3, .sim-done.play .sim-stats, .sim-done.play .sim-done-note { animation: sim-rise .5s cubic-bezier(.2,.8,.2,1) .7s both; }
@keyframes sim-rise { from { opacity: 0; transform: translateY(4cqw); } }
.sim-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; width: 100%; margin-top: 6cqw; }
.sim-stats > div { padding: 4cqw 0; border-radius: 5cqw; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
.sim-stats p { font-size: 3.8cqw; color: var(--text-2); }
.sim-stats b { font-size: 7.5cqw; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.sim-stats small { font-size: 3cqw; color: var(--text-3); }
.sim-done-note { color: var(--text-3); font-size: 3cqw; margin-top: 4cqw; }
.sim-done .sim-btn { margin-top: auto; }
.sim-done .sim-link { margin-top: 2cqw; color: var(--text-2); }

/* 提示条 */
.sim-toast { position: absolute; z-index: 25; left: 50%; bottom: 27cqw; transform: translate(-50%, 4cqw); opacity: 0; max-width: 86%; padding: 2.8cqw 4.5cqw; border-radius: 3.5cqw; background: var(--surface-3); font-size: 3.4cqw; text-align: center; pointer-events: none; transition: opacity .2s, transform .25s; box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
.sim-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 手机下方的操作按钮 */
.sim-controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 28px; width: min(400px, 100%); }
.sim-controls button { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-2); transition: background .15s, color .15s, transform .12s; }
.sim-controls button:hover { background: var(--surface-2); color: var(--text); }
.sim-controls button:active { transform: scale(.95); }
.sim-controls button span { font-weight: 700; color: var(--text); }
.sim-controls .danger span { color: var(--red); }
.sim-tip { color: var(--text-3); font-size: 13px; margin-top: 14px; max-width: 380px; text-align: center; }
