:root {
  --ink: #171714;
  --paper: #f2efe7;
  --acid: #d7ff3f;
  --orange: #ff6338;
  --blue: #4158ff;
  --line: rgba(23, 23, 20, .18);
  --muted: #6b6a63;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
.noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .24; z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}
.site-header, footer {
  display: flex; justify-content: space-between; align-items: center;
  width: min(1180px, calc(100% - 48px)); margin: auto;
}
.site-header { height: 88px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; color: inherit; text-decoration: none; }
.brand-logo { display: block; width: 228px; height: auto; max-height: 58px; object-fit: contain; object-position: left center; }
.edition, footer { font-family: Consolas, monospace; font-size: 12px; letter-spacing: .08em; }
main { width: min(1080px, calc(100% - 48px)); margin: auto; }
.screen { display: none; animation: rise .45s ease both; }
.screen.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.intro { padding: 72px 0 56px; }
.eyebrow { display: flex; gap: 10px; align-items: center; font: 700 12px Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow span { width: 26px; height: 9px; background: var(--orange); display: inline-block; }
h1 { font-size: clamp(54px, 8vw, 96px); line-height: .98; letter-spacing: -.07em; margin: 26px 0; max-width: 900px; }
h1 em { font-style: normal; position: relative; z-index: 0; }
h1 em::after { content: ""; position: absolute; height: .28em; left: -.02em; right: -.05em; bottom: .08em; background: var(--acid); z-index: -1; transform: rotate(-1deg); }
.lead { width: min(680px, 100%); font-size: 19px; line-height: 1.8; color: #45453f; }
.formula-card { margin: 48px 0 38px; border: 1px solid var(--ink); display: grid; grid-template-columns: 1fr auto 1fr auto 1.5fr; background: rgba(255,255,255,.3); box-shadow: 8px 8px 0 var(--ink); }
.atom, .outcome { padding: 22px 26px; display: flex; align-items: center; gap: 14px; }
.atom b { display: grid; place-items: center; width: 50px; height: 50px; border: 2px solid var(--ink); font: 800 23px Georgia, serif; }
.atom small, .outcome small { color: var(--muted); }
.silicon b { background: var(--blue); color: white; border-color: var(--blue); }
.operator { display: grid; place-items: center; font-size: 26px; }
.outcome { flex-direction: column; justify-content: center; align-items: flex-start; background: var(--acid); border-left: 1px solid var(--ink); }
.intro-actions { display: flex; align-items: center; gap: 22px 28px; flex-wrap: wrap; }
.participant-fields { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 12px; }
.participant-fields label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.participant-fields input { width: 100%; border: 1px solid var(--ink); background: rgba(255,255,255,.45); padding: 12px 13px; font: inherit; outline: none; }
.participant-fields input:focus { background: white; box-shadow: 3px 3px 0 var(--acid); }
.data-note { flex-basis: 100%; max-width: 680px; margin: -5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
.admin-panel { max-width: 760px; min-height: calc(100vh - 160px); }
.admin-fields { margin: 36px 0 6px; grid-template-columns: minmax(280px, 520px); }
.primary-btn { border: 0; background: var(--ink); color: white; padding: 18px 22px; font-weight: 800; box-shadow: 5px 5px 0 var(--orange); transition: transform .16s, box-shadow .16s; }
.primary-btn:hover { transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--orange); }
.primary-btn span { color: var(--acid); margin-left: 20px; }
.meta { color: var(--muted); font-size: 13px; }
.meta b { color: var(--ink); }

.quiz { padding: 42px 0 80px; }
.quiz-top { display: grid; grid-template-columns: 100px 1fr 120px; align-items: center; gap: 28px; }
.text-btn { border: 0; background: transparent; text-align: left; padding: 0; color: var(--muted); }
.progress-label { display: flex; justify-content: space-between; font: 12px Consolas, monospace; margin-bottom: 8px; }
.progress { height: 8px; background: #d9d5ca; }
.progress div { height: 100%; background: var(--orange); width: 8.33%; transition: width .3s ease; }
.dimension-tag { font: 700 12px Consolas, monospace; border: 1px solid var(--ink); padding: 8px; text-align: center; }
.question-card { margin: 72px auto 0; max-width: 800px; }
.question-number { font: 800 68px/1 Consolas, monospace; color: transparent; -webkit-text-stroke: 1px var(--ink); opacity: .35; }
.question-card h2 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -.04em; line-height: 1.25; margin: 8px 0 10px; }
.question-hint { color: var(--muted); min-height: 24px; margin-bottom: 30px; }
.options { display: grid; gap: 10px; }
.option { width: 100%; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 15px; text-align: left; border: 1px solid var(--line); background: rgba(255,255,255,.35); padding: 15px 18px; transition: .15s ease; }
.option:hover, .option.selected { border-color: var(--ink); background: white; transform: translateX(4px); box-shadow: -5px 0 0 var(--acid); }
.option-key { font: 700 12px Consolas, monospace; width: 32px; height: 32px; border: 1px solid var(--ink); display: grid; place-items: center; }
.option.selected .option-key { background: var(--ink); color: var(--acid); }

.result { padding: 56px 0 72px; }
.result-heading h1 { font-size: clamp(48px, 7vw, 78px); margin-bottom: 12px; }
.result-tagline { font-size: 18px; color: var(--muted); margin-bottom: 36px; }
.result-grid { display: grid; grid-template-columns: 1fr 1.45fr; gap: 14px; }
.score-card { border: 1px solid var(--ink); background: rgba(255,255,255,.38); padding: 26px; min-height: 220px; }
.card-label { font: 800 12px Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.hero-score { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 24px; background: var(--acid); }
.hero-score .card-label { grid-column: 1 / -1; }
.donut { --score: 0; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ink) calc(var(--score) * 1%), rgba(255,255,255,.65) 0); margin-top: 18px; }
.donut::before { content:""; width: 106px; height: 106px; border-radius: 50%; background: var(--acid); position: absolute; }
.donut div { position: relative; z-index: 1; }
.donut b { font: 800 42px Consolas, monospace; }
.donut small, .effective-number small { font-weight: 800; }
.hero-score p { align-self: end; line-height: 1.7; }
.card-head { display: flex; justify-content: space-between; }
.card-head > span:last-child { font: 11px Consolas, monospace; color: var(--muted); }
.recipe-bars { display: grid; gap: 13px; margin-top: 26px; }
.recipe-row { display: grid; grid-template-columns: 88px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; }
.bar-track { height: 12px; background: #d8d4ca; }
.bar-fill { height: 100%; transition: width .8s ease; }
.recipe-note { margin-top: 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.effective-card { background: var(--blue); color: white; }
.effective-number { margin: 28px 0 8px; }
.effective-number b { font: 800 64px/1 Consolas, monospace; }
.mini-meter { height: 10px; background: rgba(255,255,255,.25); }
.mini-meter span { display: block; height: 100%; width: 0; background: var(--acid); transition: width .8s ease; }
.effective-card p { color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.6; }
.dimension-scores { display: grid; gap: 18px; margin-top: 28px; }
.dim-row { display: grid; grid-template-columns: 58px 1fr 34px; gap: 10px; align-items: center; font-size: 13px; }
.dim-track { height: 7px; background: #d8d4ca; }
.dim-track i { display: block; height: 100%; background: var(--orange); }
.verdict { margin-top: 14px; border: 1px solid var(--ink); padding: 24px 28px; display: flex; gap: 26px; background: white; }
.verdict-stamp { align-self: flex-start; background: var(--orange); color: white; padding: 7px 10px; font: 700 11px Consolas, monospace; transform: rotate(-2deg); white-space: nowrap; }
.verdict h3 { margin: 0 0 7px; }
.verdict p { margin: 0; line-height: 1.7; color: #4e4d47; }
.result-actions { margin-top: 30px; display: flex; gap: 14px; }
.secondary-btn { border: 1px solid var(--ink); background: transparent; padding: 16px 20px; font-weight: 700; }
footer { border-top: 1px solid var(--line); height: 72px; color: var(--muted); }

@media (max-width: 720px) {
  .site-header, footer, main { width: calc(100% - 28px); }
  .edition { display: none; }
  .brand-logo { width: 190px; }
  .intro { padding-top: 46px; }
  .formula-card { grid-template-columns: 1fr 1fr; }
  .formula-card .operator { display: none; }
  .outcome { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--ink); }
  .quiz-top { grid-template-columns: 70px 1fr; gap: 15px; }
  .dimension-tag { grid-column: 2; justify-self: end; }
  .question-card { margin-top: 38px; }
  .result-grid { grid-template-columns: 1fr; }
  .hero-score { grid-template-columns: auto 1fr; }
  .result-actions { flex-direction: column; }
  .participant-fields { grid-template-columns: 1fr; }
  footer span:last-child { display: none; }
}
