:root {
  --bg: #f7f4ee;
  --card: #fffdf9;
  --ink: #171714;
  --muted: #757269;
  --line: #ded9ce;
  --soft: #ebe6db;
  --accent: #24231f;
  --danger: #9d3f35;
  --radius: 20px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(100%, 460px); min-height: 100dvh; margin: 0 auto; padding: 18px 18px 40px; }
.topbar { display:flex; justify-content:space-between; align-items:center; min-height:40px; margin-bottom: 16px; }
.brand { font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.link-button { border:0; background:none; color:var(--muted); padding:8px 0; }
.hero { padding: 42px 2px 22px; text-align:center; }
.eyebrow { font-size:12px; letter-spacing:.14em; color:var(--muted); text-transform:uppercase; margin-bottom:12px; }
h1 { font-size: 38px; line-height:1.1; letter-spacing:-.04em; margin:0 0 14px; }
h2 { font-size: 27px; line-height:1.18; letter-spacing:-.03em; margin:0 0 10px; }
h3 { font-size: 18px; margin:0 0 8px; }
p { line-height:1.65; }
.lead { color:var(--muted); max-width: 360px; margin: 0 auto; }
.handwriting-demo, .image-preview { margin:26px 0; border:1px solid var(--line); background:var(--card); border-radius:var(--radius); min-height:180px; position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.demo-paper { width:82%; transform:rotate(-1deg); font-family: "Kaiti SC", "STKaiti", serif; font-size:23px; line-height:1.9; letter-spacing:.08em; color:#34322d; text-align:left; }
.scan-line { position:absolute; left:8%; right:8%; height:1px; background:var(--ink); opacity:.25; animation: scan 3s ease-in-out infinite; }
@keyframes scan { 0%,100%{top:24%;} 50%{top:76%;} }
.btn { width:100%; border-radius:15px; padding:15px 16px; border:1px solid var(--ink); font-weight:700; transition:transform .08s ease; }
.btn:active { transform:scale(.99); }
.btn-primary { background:var(--ink); color:white; }
.btn-secondary { background:transparent; color:var(--ink); border-color:var(--line); margin-top:10px; }
.btn-ghost { background:none; border:0; color:var(--muted); width:auto; padding:10px 0; }
.micro { color:var(--muted); font-size:13px; text-align:center; margin-top:14px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:20px; margin:12px 0; box-shadow:0 7px 30px rgba(0,0,0,.025); }
.card p { margin:8px 0 0; }
.choice { display:block; width:100%; text-align:left; padding:18px; border:1px solid var(--line); border-radius:16px; background:var(--card); margin:10px 0; }
.choice strong { display:block; margin-bottom:5px; }
.choice span { color:var(--muted); font-size:14px; }
.quote { padding:22px; border-radius:18px; background:#ece7dd; font-family:"Kaiti SC","STKaiti",serif; font-size:19px; line-height:1.7; margin:20px 0; }
.guide-list { color:var(--muted); font-size:14px; padding-left:20px; line-height:1.9; }
.upload-zone { min-height:240px; border:1px dashed #b9b3a7; border-radius:20px; display:flex; flex-direction:column; align-items:center; justify-content:center; background:rgba(255,255,255,.35); padding:20px; text-align:center; }
.image-preview img { width:100%; max-height:360px; object-fit:contain; display:block; }
.analysis-wrap { padding-top:22px; }
.analysis-image { position:relative; border-radius:20px; overflow:hidden; border:1px solid var(--line); background:white; margin:18px 0 24px; }
.analysis-image img { display:block; width:100%; max-height:360px; object-fit:contain; }
.analysis-image::after { content:""; position:absolute; left:6%; right:6%; height:1px; background:rgba(23,23,20,.45); animation:scan 2.4s ease-in-out infinite; }
.step { display:flex; gap:10px; align-items:center; color:var(--muted); margin:12px 2px; }
.step.active { color:var(--ink); font-weight:700; }
.dot { width:8px; height:8px; border:1px solid currentColor; border-radius:50%; flex:0 0 auto; }
.step.done .dot { background:currentColor; }
.persona-hero { text-align:center; padding:34px 6px 20px; }
.persona-mark { width:84px; height:84px; margin:12px auto 18px; border-radius:50%; border:1px solid var(--ink); display:grid; place-items:center; font-family:serif; font-size:36px; }
.recognition-hero { padding-top:20px; }
.hero-definition { max-width:360px; margin:0 auto; font-size:18px; line-height:1.65; font-weight:650; }
.recognition-hit { margin:22px auto 16px; padding:20px 18px; max-width:390px; border-top:1px solid var(--ink); border-bottom:1px solid var(--ink); font-family:"Kaiti SC","STKaiti",serif; font-size:22px; line-height:1.6; }
.entertainment-note { max-width:350px; margin:17px auto 0; color:var(--muted); font-size:12px; line-height:1.55; }
.keywords { display:flex; justify-content:center; gap:8px; flex-wrap:wrap; margin:16px 0; }
.chip { padding:7px 10px; border-radius:999px; border:1px solid var(--line); color:#545149; font-size:13px; background:var(--card); }
.semantic-figure { margin:8px auto 22px; }
.semantic-figure figcaption { margin-top:8px; color:var(--muted); font-size:12px; }
.semantic-visual { --visual-ink:#25241f; --visual-soft:#d8d1c4; width:184px; height:154px; position:relative; margin:0 auto; overflow:hidden; border:1px solid var(--line); border-radius:30px; background:rgba(255,253,249,.7); }
.semantic-visual .shape { position:absolute; display:block; width:26px; height:26px; border:1.5px solid var(--visual-ink); border-radius:50%; background:var(--bg); z-index:2; }
.semantic-visual .shape-a { left:24px; top:29px; }
.semantic-visual .shape-b { right:25px; top:33px; }
.semantic-visual .shape-c { left:50%; bottom:25px; transform:translateX(-50%); }
.semantic-visual .shape-d { left:50%; top:51%; width:15px; height:15px; transform:translate(-50%,-50%); background:var(--visual-ink); }
.semantic-visual .visual-path { position:absolute; left:39px; right:40px; top:60px; height:61px; border-left:1.5px solid var(--visual-ink); border-right:1.5px solid var(--visual-ink); border-bottom:1.5px solid var(--visual-ink); transform:perspective(80px) rotateX(20deg); }
.semantic-visual.dim-boundary { box-shadow:inset 0 0 0 12px rgba(222,217,206,.42); }
.semantic-visual.dim-order { background-image:linear-gradient(rgba(36,35,31,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(36,35,31,.055) 1px,transparent 1px); background-size:18px 18px; }
.semantic-visual.dim-expressiveness { --visual-ink:#171714; --visual-soft:#bcb4a5; }
.semantic-visual.dim-action .visual-path { border-bottom-width:4px; transform:rotate(-11deg); top:71px; }
.semantic-visual.dim-relationship_drive .shape { box-shadow:0 0 0 5px rgba(216,209,196,.42); }
.semantic-visual.dim-conflict_directness { border-radius:8px; }
.semantic-visual.dim-change_preference .visual-path { transform:rotate(13deg) skewX(-18deg); border-radius:0 0 50% 15%; }
.semantic-visual.dim-openness { overflow:visible; border-style:dashed; }
.semantic-visual.secondary-openness .shape-d { border-style:dashed; background:var(--bg); }
.semantic-visual.secondary-boundary .shape-d { background:var(--bg); box-shadow:0 0 0 6px rgba(36,35,31,.13); }
.semantic-visual.secondary-expressiveness .shape-d { background:var(--visual-ink); box-shadow:0 0 0 5px rgba(36,35,31,.08); }
.semantic-visual.secondary-order .shape-d { border-radius:3px; background:var(--visual-ink); }
.semantic-visual.secondary-action .shape-d { transform:translate(-30%,-85%); }
.semantic-visual.secondary-relationship_drive .shape-d { box-shadow:0 0 0 8px rgba(36,35,31,.12); }
.semantic-visual.secondary-conflict_directness .shape-d { border-radius:2px; transform:translate(-50%,-50%) rotate(45deg); }
.semantic-visual.secondary-change_preference .shape-d { width:24px; border-radius:50% 20%; transform:translate(-50%,-50%) rotate(-18deg); }
.visual-a01 .shape-c { width:42px; height:42px; background:rgba(216,209,196,.35); }
.visual-a01 .visual-path { border-top:1px solid var(--visual-ink); border-radius:45%; }
.visual-a02 .shape-a,.visual-a02 .shape-b { width:15px; height:15px; }
.visual-a02 .shape-d { right:10px; left:auto; top:35%; border-radius:2px; transform:rotate(45deg); }
.visual-a03 .shape { border-radius:4px; }
.visual-a03 .shape-a { left:31px; top:29px; }.visual-a03 .shape-b{right:31px;top:29px}.visual-a03 .shape-c{bottom:21px}
.visual-a04 .shape-a { left:18px; top:47px; }.visual-a04 .shape-b{right:18px;top:47px}.visual-a04 .visual-path{left:31px;right:31px;border-top:1px solid var(--visual-ink);border-radius:50%;}
.visual-a05 { transform:rotate(-2deg); }.visual-a05 .shape-a{left:11px;top:18px}.visual-a05 .shape-b{right:10px;top:55px}.visual-a05 .shape-c{left:38%;bottom:9px}
.visual-a06 { border-radius:45px; }.visual-a06 .shape-d{width:38px;height:38px;background:transparent;box-shadow:inset 0 0 0 7px rgba(36,35,31,.12)}
.visual-a07 .shape { background:var(--visual-ink); }.visual-a07 .shape-d{box-shadow:0 0 0 12px rgba(36,35,31,.09)}
.visual-a08 .shape { border-radius:4px; }.visual-a08 .shape-a,.visual-a08 .shape-b{top:72px}.visual-a08 .shape-c{bottom:17px}.visual-a08 .visual-path{top:92px;height:28px}
.visual-a09 .shape-a,.visual-a09 .shape-b{opacity:.45}.visual-a09 .shape-c{opacity:.72}.visual-a09 .visual-path{border-style:dashed;opacity:.55}
.visual-a10 .visual-path { border-bottom-width:3px; transform:rotate(-7deg); }.visual-a10 .shape-d{left:72%;top:35%}
.visual-a11 .shape-a{left:8px;top:73px}.visual-a11 .shape-b{right:11px;top:17px}.visual-a11 .shape-c{left:62%;bottom:4px}.visual-a11 .visual-path{transform:rotate(-25deg) skewX(20deg);border-radius:50%}
.visual-a12 .shape-a{left:16px;top:24px}.visual-a12 .shape-b{right:16px;top:79px}.visual-a12 .shape-c{left:46%;bottom:12px}.visual-a12 .visual-path{transform:rotate(8deg);border-top:1px solid var(--visual-ink)}
.axes { margin:22px 0; }
.axis { display:grid; grid-template-columns:86px 1fr 35px; gap:10px; align-items:center; margin:12px 0; font-size:14px; }
.bar { height:7px; background:var(--soft); border-radius:99px; overflow:hidden; }
.bar > i { display:block; height:100%; background:var(--ink); border-radius:inherit; }
.feedback { display:flex; gap:8px; margin-top:14px; }
.feedback button { flex:1; padding:9px 10px; border-radius:999px; border:1px solid var(--line); background:transparent; color:var(--muted); }
.recognition-feedback { margin:0 0 20px; }
.explanation-intro,.profile-heading { text-align:center; padding:28px 8px 18px; }
.spectrum-card { border-top:1px solid var(--line); padding:22px 2px 18px; }
.spectrum-head { display:flex; justify-content:space-between; align-items:flex-end; gap:15px; }
.spectrum-head h3 { margin-top:4px; }
.spectrum-head > b { font-size:24px; }
.spectrum-role { color:var(--muted); font-size:11px; letter-spacing:.08em; }
.spectrum-track { height:8px; position:relative; margin:14px 0 18px; border-radius:999px; background:var(--soft); }
.spectrum-track > i { display:block; height:100%; background:var(--ink); border-radius:inherit; }
.spectrum-track > span { position:absolute; top:-4px; width:1px; height:16px; background:#a49e92; }
.gift-cost { display:grid; grid-template-columns:1fr 1fr; gap:10px; color:#504d46; font-size:13px; line-height:1.55; }
.gift-cost > div { padding:12px; border-radius:13px; background:rgba(235,230,219,.65); }
.gift-cost small { display:block; color:var(--muted); margin-bottom:5px; }
.spectrum-note { margin-bottom:18px; }
.rule-bridge { border-left:2px solid var(--ink); padding-left:12px; color:#504d46; }
.secondary-card { background:#f0ece4; }
.identity-card { margin:24px 0; padding:27px 22px; border-radius:24px; background:var(--ink); color:white; }
.identity-card .eyebrow { color:#aaa69b; }
.identity-card p { color:#d6d1c8; }
.identity-card .growth-line { padding-top:15px; border-top:1px solid rgba(255,255,255,.2); color:white; }
.dossier-card .eyebrow { margin-bottom:8px; }
.share-picker { display:grid; gap:9px; margin:14px 0 24px; }
.share-option { width:100%; border:1px solid var(--line); background:var(--card); border-radius:16px; text-align:left; padding:15px; }
.share-option span { display:block; line-height:1.55; }
.share-option small { display:block; margin-top:7px; color:var(--muted); }
.share-option.selected { border-color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink); }
.share-card { margin:18px 0; padding:28px 22px; text-align:center; border:1px solid var(--ink); border-radius:28px; background:var(--card); }
.share-card .semantic-visual { width:142px; height:119px; transform:scale(.92); }
.share-card > p { font-family:"Kaiti SC","STKaiti",serif; font-size:20px; line-height:1.6; }
.relationship-cta { margin:22px 0; padding:26px 20px; border-radius:24px; background:#24231f; color:white; text-align:center; }
.relationship-cta p { color:#cac6bc; }
.relationship-cta .btn { background:white; color:var(--ink); border-color:white; }
.type-pair { display:flex; gap:12px; align-items:center; justify-content:center; margin:22px 0; }
.type-node { border:1px solid var(--line); border-radius:16px; padding:14px 16px; background:var(--card); min-width:120px; text-align:center; }
.locked { filter:none; position:relative; }
.lock-icon { display:inline-grid; width:24px; height:24px; place-items:center; border:1px solid var(--line); border-radius:50%; margin-right:7px; }
.price { text-align:center; font-size:28px; font-weight:800; margin:22px 0 10px; }
.notice { padding:12px 14px; border-radius:14px; background:#efe9dd; color:#5c574e; font-size:13px; margin:14px 0; }
.error { color:var(--danger); }
.pending { text-align:center; padding:60px 10px; }
.copy-box { border:1px solid var(--line); border-radius:14px; padding:12px; word-break:break-all; font-size:12px; color:var(--muted); background:white; margin:12px 0; }
.section-title { margin:28px 0 10px; }
.spacer { height:10px; }
.sr-only { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width: 380px) { h1{font-size:34px}.app-shell{padding-left:14px;padding-right:14px}.axis{grid-template-columns:78px 1fr 32px;}.gift-cost{grid-template-columns:1fr}.recognition-hit{font-size:20px;} }
