/* =============================================================
   职场打法测试 · 样式（照早餐 2026-10-28 UI 示意稿）
   风格：米黄方格纸底、粗黑描边、硬阴影、黄色胶带标签、红色主按钮。
   手机优先，最大宽度 480px。只用系统字体，不加载外部字体。
   ============================================================= */
:root {
  --ink: #1F1A17;          /* 描边和正文颜色 */
  --paper: #FFF8EB;        /* 方格纸底色 */
  --grid: #EFE3CF;         /* 方格线 */
  --yellow: #FFDD4A;       /* 胶带、选中 */
  --red: #E8173A;          /* 主按钮 */
  --pink: #FF9EC4;
  --muted: #6E655C;
  --radius: 22px;
  --shadow: 4px 4px 0 var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
#app { max-width: 480px; margin: 0 auto; padding: 22px 20px 40px; min-height: 100vh; }
[hidden] { display: none !important; }
.view { position: relative; }
.center-view { text-align: center; padding-top: 18vh; }
.center-view h2 { font-size: 24px; margin: 22px 0 12px; }
.center-view p { color: #3d3631; margin: 0 0 14px; }
.muted { color: var(--muted); }

/* ---------- 通用小部件 ---------- */
.tape {
  display: inline-block; background: var(--yellow); font-weight: 700; font-size: 14px;
  padding: 5px 14px; transform: rotate(-3deg); border-left: 2px dotted #d8b52a; border-right: 2px dotted #d8b52a;
}
.tape-pink { background: var(--pink); border-color: #e57aa6; }
.pill {
  display: inline-block; border: 2px solid var(--ink); border-radius: 999px; background: #fff;
  padding: 4px 13px; font-weight: 700; font-size: 14px;
}
.box { background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.btn {
  display: block; width: 100%; border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: var(--shadow);
  font: inherit; font-size: 18px; font-weight: 800; padding: 14px; margin: 22px 0 0; cursor: pointer;
}
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-red { background: var(--red); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.link-btn { background: none; border: 0; font: inherit; font-weight: 700; color: var(--muted); padding: 4px 0; cursor: pointer; }
.link-btn:disabled { opacity: .4; }
.hl { background: linear-gradient(transparent 55%, var(--yellow) 55%); padding: 0 4px; }

/* ---------- ① 首页 ---------- */
.home-top { display: flex; justify-content: space-between; align-items: center; }
.home-title { font-size: 46px; line-height: 1.18; margin: 28px 0 14px; font-weight: 900; letter-spacing: 1px; }
.spark { position: absolute; font-size: 26px; }
.spark-pink { color: #FF5C9A; top: 78px; right: 40px; }
.spark-green { color: #13A07A; top: 130px; right: 92px; font-size: 18px; }
.home-sub { font-size: 17px; margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.types-box { position: relative; padding: 30px 12px 16px; margin-bottom: 22px; }
.types-box .tape { position: absolute; top: -16px; left: 22px; }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 4px; text-align: center; }
.type-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.type-icon {
  width: 50px; height: 50px; border-radius: 50%; background: var(--c, #ccc); border: 2.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink); display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.type-name { font-size: 13px; font-weight: 700; }
.dashed-note { border: 2px dashed var(--ink); border-radius: 16px; background: #fff; padding: 11px 14px; font-weight: 700; font-size: 15px; }
.disclaimer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 24px; }

/* ---------- ② 答题页 ---------- */
.q-top { display: flex; justify-content: space-between; align-items: center; }
.q-count { font-weight: 800; font-size: 17px; }
.q-count b { color: var(--red); font-size: 24px; }
.progress { height: 14px; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; margin: 10px 0 30px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--yellow); border-right: 2px solid var(--ink); width: 0; transition: width .2s; }
.q-box { position: relative; padding: 34px 16px 18px; }
.q-tag {
  position: absolute; top: -18px; left: 22px; background: var(--yellow); border: 2.5px solid var(--ink);
  border-radius: 12px; padding: 2px 14px; font-weight: 900; font-size: 20px; transform: rotate(-4deg);
}
.q-text { font-size: 21px; line-height: 1.45; margin: 4px 4px 18px; font-weight: 800; }
.options { display: flex; flex-direction: column; gap: 12px; }
.option {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; font-size: 16px;
  color: var(--ink); background: #fff; border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 3px 3px 0 var(--ink);
  padding: 13px 14px; cursor: pointer;
}
.opt-text { text-wrap: pretty; } /* 防止折行后第二行只剩一个字（不改文字） */
.q-text { text-wrap: pretty; }
.option.selected { background: var(--yellow); font-weight: 800; }
.opt-key {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); background: #FFF8EB;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.option.selected .opt-key { background: var(--ink); color: #fff; }
.hint { text-align: center; color: var(--muted); font-size: 13px; margin: 16px 0 0; }

/* ---------- ③ 结果页 ---------- */
#view-result { text-align: center; }
.save-tip { margin: 0 auto 16px; font-size: 14px; }
.tie-note { text-align: left; background: #fff; border: 2px dashed var(--ink); border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.result-card {
  position: relative; text-align: center; background-color: var(--bg, #eee);
  background-image: radial-gradient(color-mix(in srgb, var(--c) 35%, transparent) 1.6px, transparent 1.6px);
  background-size: 22px 22px; border: 3px solid var(--ink); border-radius: 26px; padding: 20px 18px 18px; margin-top: 6px;
}
.card-top { display: flex; justify-content: space-between; align-items: center; }
.no-pill { border: 2.5px solid var(--c); color: var(--c); background: #fff; border-radius: 999px; padding: 1px 12px; font-weight: 800; }
.card-kicker { color: var(--c); font-weight: 800; margin: 14px 0 10px; filter: brightness(.8); }
.big-icon {
  width: 132px; height: 132px; margin: 0 auto; border-radius: 50%; background: var(--c); border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink); display: flex; align-items: center; justify-content: center; font-size: 64px;
}
.type-title { font-size: 52px; line-height: 1.1; margin: 22px 0 14px; font-weight: 900; letter-spacing: 4px; }
.hl-type { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--c) 55%, transparent) 58%); padding: 0 6px; }
.bubble {
  position: relative; background: #fff; border: 2.5px solid var(--ink); border-radius: 18px; padding: 12px 14px;
  font-weight: 800; font-size: 18px; margin: 0 6px 16px;
}
.bubble::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 18px; height: 18px; background: #fff;
  border-left: 2.5px solid var(--ink); border-top: 2.5px solid var(--ink); transform: translateX(-50%) rotate(45deg);
}
.card-adv { text-align: left; margin: 0 0 18px; }
.tag { background: var(--c); color: #fff; font-weight: 800; border-radius: 6px; padding: 1px 7px; font-size: 14px; }
.card-foot { border-top: 2px dashed #8a817a; padding-top: 10px; display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.card-foot b { color: var(--ink); letter-spacing: 3px; font-size: 14px; }
.scroll-hint { color: var(--muted); font-size: 14px; margin: 14px 0; }
.detail-box { text-align: left; padding: 14px 18px; margin-bottom: 16px; }
.detail-box p { margin: 6px 0 0; }
.detail-h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; }
.detail-icon {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); background: #F4EEFF;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
.ending { text-align: left; color: #3D3631; font-size: 15px; line-height: 1.7; margin-top: 24px; padding: 0 4px; text-wrap: pretty; }
.ending h3 { color: var(--ink); font-size: 17px; margin: 0 0 8px; }
.ending p { margin: 0 0 6px; }
.footer-note { color: var(--ink); font-weight: 700; }
.ai-note { color: var(--ink); }
.disclaimer.ai-note { margin-top: 4px; color: #3D3631; }

/* ---------- ⑪⑫⑬ 状态页 ---------- */
.state-icon {
  position: relative; width: 120px; height: 120px; margin: 0 auto; border-radius: 50%; border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink); display: flex; align-items: center; justify-content: center; font-size: 54px;
}
.state-yellow { background: var(--yellow); }
.state-pink { background: #FFE1EC; }
.state-blue { background: #D8F1F4; }
.stamp {
  position: absolute; top: 6px; right: -26px; background: var(--red); color: #fff; border: 2px solid #fff;
  outline: 2px solid var(--red); border-radius: 8px; padding: 0 8px; font-size: 14px; font-weight: 800; transform: rotate(12deg);
}
