/* 艾特机器人 · 科技素养发现测评 v8 —— 基础样式（设计基调：克制、留白、教育测评机构气质） */
:root {
  --paper: #f5f7f8;
  --surface: #ffffff;
  --ink: #1c2a33;
  --ink-2: #3b4a55;
  --muted: #66757f;
  --line: #e1e8ec;
  --line-strong: #c9d3da;
  --accent: #1f7a6d;
  --accent-ink: #145a50;
  --accent-soft: #e3f2ee;
  --warm: #c9731f;
  --warm-soft: #fbeedd;
  --danger: #b3413f;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(28, 42, 51, 0.04), 0 8px 24px -18px rgba(28, 42, 51, 0.25);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fig-ink: var(--ink);
  --fig-muted: var(--muted);
  --fig-line: var(--line-strong);
  --fig-accent: var(--accent);
  --fig-accent-soft: var(--accent-soft);
  --fig-warm: var(--warm);
  --fig-paper: var(--surface);
  --fig-wall: #4a5b66;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.4em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.2rem); }
h2 { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.45rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 0.75em; }
ul, ol { margin: 0; padding-left: 1.2em; }
button, input, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
a { color: var(--accent-ink); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; z-index: 10; }
.noscript { padding: 24px; text-align: center; }

.app {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(14px, 3vw, 28px) clamp(14px, 3vw, 24px) 64px;
  min-height: 100dvh;
}

.screen { animation: screen-in 420ms var(--ease) both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } * { transition: none !important; } }

.eyebrow { margin: 0 0 6px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); font-weight: 700; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.9rem; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; cursor: pointer; text-decoration: none; background: var(--surface); color: var(--ink);
  transition: transform 160ms var(--ease), background 160ms, border-color 160ms, opacity 160ms;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: var(--line-strong); }
.btn-ghost:hover:not(:disabled) { background: var(--surface); }
.btn-link { background: none; border: none; color: var(--muted); padding: 6px 4px; min-height: 0; font-weight: 500; }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 1.05rem; }
.btn:focus-visible, .opt:focus-visible, .stage-card:focus-visible, .order-btn:focus-visible { outline: 3px solid rgba(31, 122, 109, 0.35); outline-offset: 2px; }

/* 启动页 */
.screen-boot { display: grid; place-items: center; min-height: 60vh; gap: 12px; color: var(--muted); }
.boot-mark, .brand-mark { display: block; width: 48px; height: 48px; border-radius: 14px; background: #111; object-fit: contain; }
.boot-mark { width: 72px; height: 72px; border-radius: 18px; }

/* 欢迎页 */
.hero { padding: clamp(18px, 4vw, 40px) 0 8px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font-weight: 700; color: var(--ink-2); }
.lead { font-size: 1.05rem; color: var(--ink-2); max-width: 60ch; }
.facts { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; }
.facts strong { font-size: 1.2rem; color: var(--accent-ink); }
.facts span { color: var(--muted); font-size: 0.9rem; }
.resume-card { background: var(--warm-soft); border: 1px solid #f0d9b8; border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 12px; }
.resume-card span { color: var(--muted); margin-left: 6px; font-size: 0.92rem; }
.welcome-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 28px; }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.note h2 { font-size: 1rem; color: var(--ink-2); margin-bottom: 10px; }
.note ul { color: var(--ink-2); display: grid; gap: 6px; font-size: 0.95rem; }
.foot { margin-top: 36px; color: var(--muted); font-size: 0.85rem; }

/* 信息页 */
.screen-head { margin-bottom: 18px; }
.info-form { display: grid; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.field { display: grid; gap: 10px; border: none; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-weight: 700; color: var(--ink-2); padding: 0; }
.field input { min-height: 50px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; background: var(--paper); font-size: 1.05rem; }
.field input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(31, 122, 109, 0.15); }
.stage-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stage-card { display: grid; gap: 4px; text-align: left; padding: 14px 14px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer; transition: border-color 160ms, background 160ms, transform 160ms var(--ease); }
.stage-card:hover { border-color: var(--accent); }
.stage-card[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.stage-grade { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--accent-ink); font-weight: 700; }
.stage-name { font-weight: 700; }
.stage-desc { color: var(--muted); font-size: 0.85rem; }
.helper { color: var(--muted); font-size: 0.92rem; margin: 0; min-height: 1.4em; }
.privacy { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* 错误 */
.screen-error { text-align: center; padding: 60px 0; display: grid; gap: 12px; justify-items: center; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .app { padding-bottom: 96px; }
  .btn-lg { width: 100%; }
}
