:root {
  --bg: #f2f3ef;
  --surface: #ffffff;
  --soft: #e9ece6;
  --ink: #1d2421;
  --muted: #68716c;
  --line: #d7ddd7;
  --accent: #d65a38;
  --accent-soft: #f8e4dc;
  --green: #2e7658;
  --green-soft: #e0efe7;
  --blue: #335d8a;
  --blue-soft: #e1ebf5;
  --yellow: #9c6c12;
  --yellow-soft: #f7edcf;
  --red: #a84840;
  --red-soft: #f7e3e1;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.shell { width: min(100%, 1040px); margin: 0 auto; padding: 22px 20px 56px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 18px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.brand-mark { position: relative; width: 38px; height: 28px; border-radius: 7px; background: var(--ink); overflow: hidden; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; left: 7px; right: 7px; height: 2px; background: #f5f0e7; transform: skewX(-28deg); }
.brand-mark::before { top: 8px; }
.brand-mark::after { bottom: 8px; }
.meta { color: var(--muted); font-size: 12px; }
.progress-track { height: 6px; margin-top: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .22s ease; }
.screen { animation: rise .25s ease both; }
.intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr); gap: 52px; align-items: center; min-height: 560px; padding-top: 64px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.hero-title { margin: 0; font-size: clamp(42px, 7vw, 74px); line-height: 1; letter-spacing: -.035em; }
.intro-copy { max-width: 570px; margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.field { display: grid; gap: 8px; max-width: 340px; margin-top: 26px; color: var(--muted); font-size: 13px; }
.field input { height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); }
.actions, .quiz-actions, .result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--ink); }
.btn.primary { border-color: var(--ink); color: #fff; background: var(--ink); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.footnote { margin-top: 24px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.intro-visual { position: relative; min-height: 390px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.road-frame { position: absolute; inset: 34px 48px 84px; border: 2px solid var(--ink); border-radius: 120px 120px 24px 24px; }
.road-center { position: absolute; top: 80px; bottom: 124px; left: 50%; width: 4px; background: repeating-linear-gradient(to bottom, var(--accent) 0 20px, transparent 20px 38px); }
.car-shape { position: absolute; top: calc(50% - 25px); left: 50%; width: 72px; height: 112px; border: 2px solid var(--ink); border-radius: 26px; background: var(--surface); transform: translate(-50%, -50%); }
.car-shape i, .car-shape b { position: absolute; left: 12px; right: 12px; height: 18px; border-radius: 7px; background: var(--soft); }
.car-shape i { top: 16px; }
.car-shape b { bottom: 16px; }
.intro-visual p { position: absolute; right: 22px; bottom: 18px; max-width: 230px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; text-align: right; }
.quiz { max-width: 820px; margin: 42px auto 0; }
.quiz-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.counter { color: var(--accent); font-size: 13px; font-weight: 700; }
.module { margin-top: 4px; color: var(--muted); font-size: 13px; }
.question-panel { padding: clamp(22px, 5vw, 42px); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 18px 55px rgba(26,34,30,.08); }
.question-panel h2 { margin: 0; font-size: clamp(25px, 4vw, 38px); line-height: 1.35; letter-spacing: -.02em; }
.options { display: grid; gap: 10px; margin-top: 28px; }
.option { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 13px; align-items: center; min-height: 64px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); text-align: left; cursor: pointer; }
.option:hover { border-color: var(--ink); }
.option.selected { border-color: var(--accent); background: var(--accent-soft); }
.option-key { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--muted); border-radius: 50%; color: var(--muted); font-size: 12px; font-weight: 700; }
.option.selected .option-key { border-color: var(--accent); color: var(--accent); }
.quiz-actions { justify-content: space-between; }
.result { margin-top: 42px; }
.result-hero { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(260px,.7fr); gap: 38px; align-items: end; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.result-name { margin: 0; font-size: clamp(40px,7vw,74px); line-height: 1; letter-spacing: -.035em; }
.result-summary { max-width: 630px; margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.result-side { padding-left: 22px; border-left: 2px solid var(--accent); }
.result-side strong { display: block; font-size: 22px; }
.result-side p { margin: 7px 0 0; color: var(--muted); line-height: 1.65; }
.analysis-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 38px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.analysis-grid h3 { margin: 0 0 18px; font-size: 20px; }
.signal-row { display: grid; grid-template-columns: 90px minmax(0,1fr) 30px; gap: 12px; align-items: center; margin-bottom: 11px; font-size: 13px; }
.signal-row i { display: block; height: 7px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.signal-row b { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.signal-row em { color: var(--muted); font-style: normal; text-align: right; }
.kano-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kano-row strong { font-size: 14px; }
.kano-row p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.kano-chip { align-self: start; min-width: 66px; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; text-align: center; }
.kano-M { color: var(--red); background: var(--red-soft); }
.kano-O { color: var(--blue); background: var(--blue-soft); }
.kano-A { color: var(--green); background: var(--green-soft); }
.kano-I { color: var(--muted); background: var(--soft); }
.kano-R { color: var(--yellow); background: var(--yellow-soft); }
.offer-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(260px,.8fr); gap: 38px; padding: 36px 0 20px; }
.offer-name { margin: 0; font-size: clamp(28px,4vw,43px); line-height: 1.16; letter-spacing: -.025em; }
.selling-points { display: grid; gap: 11px; margin: 22px 0 0; padding: 0; list-style: none; }
.selling-points li { position: relative; padding-left: 18px; color: var(--muted); line-height: 1.6; }
.selling-points li::before { content: ""; position: absolute; top: .65em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.avoid-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.65; }
.price-box { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.price-label { color: var(--muted); font-size: 12px; }
.price { display: block; margin: 8px 0; color: var(--accent); font-size: 52px; line-height: 1; }
.price-box p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.price-lines { border-top: 1px solid var(--line); }
.price-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.price-lines strong { color: var(--ink); }
.feedback-panel {
  display: grid;
  gap: 16px;
  margin-top: 34px;
  padding: 26px 0 4px;
  border-top: 1px solid var(--line);
}
.feedback-panel h3 { margin: 0; font-size: 24px; }
.feedback-panel > div > p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.feedback-field { max-width: none; margin: 0; }
.feedback-field textarea {
  min-height: 128px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  resize: vertical;
  line-height: 1.6;
}
.feedback-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.feedback-status { min-height: 20px; margin: 0; color: var(--green); font-size: 13px; }
.error-box { max-width: 700px; margin: 60px auto; padding: 24px; border: 1px solid var(--red); border-radius: 8px; background: var(--red-soft); }
.error-box strong { color: var(--red); }
.admin-shell { width: min(100%, 1280px); margin: 0 auto; padding: 36px 24px 60px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-head h1 { margin: 0; }
.admin-head p { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-weight: 500; }
.feedback-cell { min-width: 260px; white-space: normal; line-height: 1.55; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .shell { padding: 16px 14px 40px; }
  .intro, .result-hero, .analysis-grid, .offer-grid { grid-template-columns: 1fr; gap: 26px; }
  .intro { min-height: 0; padding-top: 44px; }
  .intro-visual { min-height: 280px; }
  .result-side { padding-left: 0; padding-top: 16px; border-left: 0; border-top: 2px solid var(--accent); }
  .quiz-actions { position: sticky; bottom: 0; padding: 12px 0; background: var(--bg); }
  .admin-head { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
