:root {
  --bg: #faf6f0;
  --ink: #26211d;
  --muted: #7b7168;
  --line: #e6ddd2;
  --card: #fffdf9;
  --accent: #b4553f;
  --accent-soft: #f3e2da;
  --green: #3f6b53;
  --shadow: 0 10px 30px rgba(70, 50, 35, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  font-size: 16px;
}

.app { max-width: 680px; margin: 0 auto; padding: 0 20px 48px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 2px 10px; gap: 12px;
}
.brand { font-weight: 650; letter-spacing: .02em; }
.brand span { color: var(--accent); }
.topbar-right { font-size: 13px; color: var(--muted); }

.foot {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); text-align: center;
}
.foot p { margin: 4px 0; }
.muted { color: var(--muted); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 30px; letter-spacing: -.01em; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }

p { margin: 0 0 12px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  margin: 14px 0;
}

.hero { padding: 18px 2px 6px; }
.hero .kicker { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin-top: 8px; }
.hero .lead { color: var(--muted); font-size: 16px; }
.hero .meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero .meta span { display: inline-flex; align-items: center; gap: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 11px 20px; font-size: 15px; font-weight: 550;
  cursor: pointer; transition: transform .12s ease, background .12s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #9e4632; }
.btn-block { width: 100%; }
.btn-ghost { color: var(--muted); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.options { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.option {
  text-align: left; width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 15px; line-height: 1.5; cursor: pointer; transition: border-color .12s, background .12s;
}
.option:hover { border-color: var(--accent); background: #fffaf6; }
.option b { color: var(--accent); margin-right: 8px; }

.progress { display: flex; align-items: center; gap: 10px; margin: 10px 0 18px; }
.progress-bar { flex: 1; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .25s ease; }
.progress-text { font-size: 12px; color: var(--muted); min-width: 44px; text-align: right; }

.q-index { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.q-text { font-size: 19px; font-weight: 600; margin: 6px 0 4px; }
.q-hint { font-size: 13px; color: var(--muted); }

.result-hero { text-align: center; padding: 10px 0 2px; }
.result-type { font-size: 34px; font-weight: 700; letter-spacing: .02em; margin: 8px 0 4px; }
.result-en { font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.result-tagline { font-size: 17px; margin: 14px 0 4px; }
.result-inner { font-size: 15px; color: var(--muted); font-style: italic; }

.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--muted); }
.pill-soft { background: var(--accent-soft); border-color: transparent; color: var(--accent); }

.list { margin: 10px 0 0; padding-left: 20px; }
.list li { margin: 7px 0; }

.quote { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; color: var(--muted); font-style: italic; margin: 14px 0; }

.unlock-card { border: 1px dashed #d9c9bb; background: #fff8f2; }
.unlock-card h3 { color: var(--accent); }
.gate-note { font-size: 13px; color: var(--muted); margin: 12px 0; }
.unlock-price { font-size: 26px; font-weight: 700; color: var(--accent); }
.unlock-price small { font-size: 13px; color: var(--muted); font-weight: 400; }

.report-section { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.report-section:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.scene { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 12px 0; background: var(--card); }
.scene .label { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.scene .default { color: var(--muted); }
.scene .replace { color: var(--green); }

.day { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.day:last-child { border-bottom: none; }
.day .n { width: 46px; flex: none; font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: .04em; }

.pay-box { text-align: center; margin: 14px 0 12px; }
.pay-box img { width: 100%; max-width: 260px; border-radius: 12px; display: block; margin: 0 auto 10px; }
.pay-box p { margin: 4px 0; font-size: 14px; }
.pay-box .muted { font-size: 12px; }

.code-row { display: flex; gap: 8px; margin-top: 10px; }
.code-input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 10px 14px; font-size: 14px; }
.code-input:focus { outline: 2px solid rgba(180, 85, 63, .3); outline-offset: 1px; }

.share-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.share-sheet {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, .4);
  display: flex; align-items: flex-end; justify-content: center;
}
.share-panel {
  width: 100%; max-width: 520px;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  padding: 22px 18px 28px;
  position: relative;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
}
.share-panel h3 { font-size: 18px; margin: 0 0 8px; }
.share-hint { font-size: 14px; color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
.share-actions { display: flex; flex-direction: column; gap: 8px; }
.share-close {
  position: absolute; right: 14px; top: 12px;
  border: none; background: transparent; color: var(--muted);
  font-size: 13px; cursor: pointer;
}

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: rgba(38,33,29,.92); color: #fff; font-size: 13px; padding: 8px 14px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }

@media (max-width: 420px) {
  h1 { font-size: 26px; }
  .card { padding: 18px 16px; }
  .result-type { font-size: 30px; }
}
