:root {
  --ink: #16343c;
  --muted: #617a80;
  --line: #d6e5e6;
  --surface: #ffffff;
  --soft: #f1f8f7;
  --teal: #0d6b78;
  --teal-dark: #084b55;
  --orange: #f18f45;
  --yellow: #fff3c9;
  --green: #2e8b68;
  --red: #bd4d4d;
  --shadow: 0 14px 40px rgba(29, 80, 88, .10);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #f4fbfa 0%, #fffaf3 100%);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.site-header {
  height: 70px;
  padding: 0 max(22px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 12px; background: var(--yellow); font-size: 21px;
}
.top-nav { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.top-nav a { text-decoration: none; }
.top-nav a:hover, .top-nav a:focus-visible { color: var(--teal); }
.page-shell { max-width: 1120px; margin: 0 auto; padding: 34px 22px 54px; min-height: calc(100vh - 120px); }
.site-footer { text-align: center; padding: 18px 22px 30px; color: var(--muted); font-size: 12px; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch; margin-bottom: 28px; }
.hero-copy, .hero-art, .question-card, .result-card, .admin-card, .notice {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.hero-copy { padding: clamp(28px, 5vw, 58px); }
.eyebrow { color: var(--teal); font-weight: 700; letter-spacing: .12em; font-size: 12px; }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.15; margin: 12px 0 18px; letter-spacing: -.03em; }
h2 { margin: 0 0 12px; line-height: 1.3; }
h3 { margin: 0 0 8px; line-height: 1.35; }
.lead { color: var(--muted); font-size: 17px; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { padding: 24px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 45% 35%, #ffffff 0 22%, #dff3ef 23% 55%, #b9e1d7 56%); }
.orbit { width: min(270px, 70vw); aspect-ratio: 1; border: 2px dashed rgba(13,107,120,.35); border-radius: 50%; display: grid; place-items: center; position: relative; }
.orbit::before, .orbit::after { content: ""; position: absolute; border: 1px solid rgba(13,107,120,.22); border-radius: 50%; }
.orbit::before { inset: 16%; transform: rotate(40deg) scaleX(1.7); }
.orbit::after { inset: 16%; transform: rotate(-40deg) scaleX(1.7); }
.earth { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: #4fb6a6; color: white; font-size: 58px; box-shadow: 0 12px 26px rgba(13,107,120,.25); z-index: 1; }
.spark { position: absolute; font-size: 20px; }
.spark.one { top: 8%; right: 13%; } .spark.two { bottom: 15%; left: 8%; } .spark.three { bottom: 4%; right: 23%; }
.feature-grid, .dimension-grid, .admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature, .dimension, .admin-stat { background: rgba(255,255,255,.70); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.feature strong { display: block; color: var(--teal); margin-bottom: 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.notice { padding: 18px 20px; margin: 18px 0; background: #fffdf6; border-color: #f0dfae; box-shadow: none; }
.notice strong { color: #956519; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 9px 18px; border-radius: 12px; border: 1px solid var(--line);
  color: var(--ink); background: #fff; cursor: pointer; text-decoration: none; font-weight: 700;
}
.btn:hover, .btn:focus-visible { border-color: var(--teal); color: var(--teal-dark); }
.btn-primary { color: #fff; background: var(--teal); border-color: var(--teal); }
.btn-primary:hover, .btn-primary:focus-visible { color: #fff; background: var(--teal-dark); }
.btn-warm { color: #6e3a16; background: #ffd99e; border-color: #f4c779; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 28px 0 14px; }
.quiz-head { margin-bottom: 18px; }
.progress-track { height: 10px; background: #dceceb; border-radius: 10px; overflow: hidden; margin: 12px 0 8px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--teal), #54b5a4); border-radius: inherit; transition: width .25s ease; }
.question-card { padding: clamp(22px, 4vw, 38px); }
.question-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border-radius: 999px; background: #e3f3ef; color: var(--teal-dark); font-weight: 700; }
.question-title { font-size: clamp(21px, 3vw, 30px); margin: 0 0 22px; }
.options { display: grid; gap: 11px; }
.option, .confidence {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px;
  padding: 12px 15px; text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: 13px; cursor: pointer; color: var(--ink);
}
.option:hover, .confidence:hover, .option:focus-visible, .confidence:focus-visible { border-color: var(--teal); background: var(--soft); }
.option.selected, .confidence.selected { border-color: var(--teal); background: #e1f1ee; box-shadow: 0 0 0 3px rgba(13,107,120,.10); }
.option-mark { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #afc8ca; border-radius: 50%; color: var(--teal); font-weight: 700; flex: 0 0 auto; }
.confidence-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 25px; }
.confidence { justify-content: center; flex-direction: column; gap: 0; min-height: 66px; text-align: center; font-size: 14px; }
.confidence small { color: var(--muted); }
.question-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.field { display: grid; gap: 7px; margin: 14px 0; }
.field label { font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(13,107,120,.16); border-color: var(--teal); }
.error, .success { padding: 12px 14px; border-radius: 11px; margin: 12px 0; }
.error { color: #8f3030; background: #fff0f0; border: 1px solid #f0c2c2; }
.success { color: #21684c; background: #edf9f2; border: 1px solid #bce5ca; }
.result-card { padding: clamp(22px, 4vw, 36px); margin-bottom: 18px; }
.score-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.score-number { font-size: clamp(46px, 8vw, 76px); font-weight: 700; color: var(--teal); line-height: 1; }
.score-number small { font-size: 19px; color: var(--muted); }
.dimension-grid { grid-template-columns: repeat(5, 1fr); margin: 18px 0; }
.dimension { padding: 14px; }
.dimension .score { font-size: 25px; font-weight: 700; color: var(--teal); }
.status { color: var(--green); font-weight: 700; }
.flag-list { display: grid; gap: 8px; padding-left: 0; list-style: none; }
.flag-list li { padding: 10px 12px; background: #fff8e7; border-left: 4px solid var(--orange); border-radius: 8px; }
details { border-top: 1px solid var(--line); padding: 13px 0; }
details summary { cursor: pointer; font-weight: 700; }
.answer-line { margin-top: 10px; padding: 11px 13px; border-radius: 9px; background: var(--soft); }
.admin-card { padding: 24px; margin-bottom: 18px; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.admin-toolbar .field { min-width: 160px; flex: 1; margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 690px; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
th { color: var(--muted); font-weight: 700; background: #f7fbfa; }
td button { background: none; border: 0; color: var(--teal); cursor: pointer; font-weight: 700; padding: 0; }
.answer-admin { padding: 14px 0; border-top: 1px solid var(--line); }
.rubric { color: var(--muted); font-size: 13px; }
.admin-score-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: start; }
.admin-score-row input { width: 100%; }
.hidden { display: none !important; }
.center { text-align: center; }
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; }
  .dimension-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .site-header { height: 62px; padding: 0 15px; }
  .page-shell { padding: 22px 15px 42px; }
  .hero-copy { padding: 28px 22px; }
  .feature-grid, .admin-grid { grid-template-columns: 1fr; }
  .confidence-row { grid-template-columns: 1fr; }
  .question-actions { flex-direction: column-reverse; }
  .question-actions .btn { width: 100%; }
  .score-hero { display: block; }
  .admin-score-row { grid-template-columns: 1fr; }
}
