/* ============================================================
   CREME COBALT 设计系统 v2 —— taste-skill 合规
   Design Read: consumer quiz · bright editorial · V7/M6/D3
   Cobalt + Cream 家族：饱和钴蓝 × 奶油纸底 × 碰撞色卡系统
   动画：blur-fade 浮显 · expo-out · 有动机才动
   ============================================================ */

:root {
  /* 奶油纸底 */
  --bg:        #f7f3ea;
  --bg-raise:  #fdfbf5;
  --box:       #fffdf8;
  --ink:       #211d17;
  --ink-2:     #57503f;
  --ink-3:     #8a8069;
  --line:      rgba(33,29,23,.1);
  --line-hi:   rgba(33,29,23,.22);

  /* 全局强调：钴蓝 */
  --accent-main: #3b5bdb;

  /* 碰撞色板（muted bright：饱和但不刺眼） */
  --c-cobalt:   #3b5bdb;
  --c-terra:    #d65a31;
  --c-forest:   #2f8a5f;
  --c-mustard:  #d99e2b;
  --c-rose:     #cf5d84;
  --c-teal:     #22869b;

  --ease-out:    cubic-bezier(.22, .9, .32, 1);
  --ease-expo:   cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.28, .44, 1);

  --r-card: 20px;
  --r-opt: 14px;

  --shadow-1: 0 1px 2px rgba(60,50,30,.05), 0 3px 14px rgba(60,50,30,.07);
  --shadow-2: 0 4px 12px rgba(60,50,30,.08), 0 18px 44px rgba(60,50,30,.13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Lato', 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

::selection { background: var(--c-cobalt); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d8d0bd; border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(140%) blur(16px);
  background: rgba(247,243,234,.8);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-weight: 700; font-size: 17px; letter-spacing: .02em; color: var(--ink);
}
.brand em { font-style: normal; color: var(--c-cobalt); }
.topbar-meta { font-size: 13px; color: var(--ink-3); letter-spacing: .06em; }

/* ---------- hero ---------- */
.hero { padding: 92px 0 60px; }
.hero h1 {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-weight: 900; font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.14; letter-spacing: -.015em; max-width: 16em;
}
.hero h1 .blue { color: var(--c-cobalt); }
.hero h1 .terra { color: var(--c-terra); }
.hero p.sub {
  margin-top: 22px; max-width: 46ch;
  font-size: 16px; line-height: 1.85; color: var(--ink-2);
}
.hero .meta-row {
  margin-top: 32px; display: flex; gap: 12px 0; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3); letter-spacing: .04em;
  border-top: 1px solid var(--line); padding-top: 22px; max-width: 46ch;
}
.hero .meta-row > span { flex: 1 1 auto; text-align: center; position: relative; }
.hero .meta-row > span + span::before {
  content: ''; position: absolute; left: -6px; top: 15%;
  height: 70%; width: 1px; background: var(--line);
}
.hero .meta-row b { color: var(--ink); font-weight: 700; }

/* ---------- 量表网格：碰撞色卡 ---------- */
.section-head {
  padding: 52px 0 26px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.section-head h2 {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 21px; font-weight: 700; letter-spacing: -.01em;
}
.section-head span { font-size: 13px; color: var(--ink-3); }

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  padding-bottom: 90px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } .hero { padding: 60px 0 40px; } }

.scale-card {
  --ac: var(--c-cobalt);
  position: relative;
  display: flex; flex-direction: column;   /* 等高对齐：内容纵向排布 */
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--box);
  box-shadow: var(--shadow-1);
  padding: 24px 22px 20px;
  cursor: pointer;
  overflow: hidden;
  transition: transform .45s var(--ease-ios), border-color .3s ease,
              box-shadow .45s var(--ease-ios);
}
/* 顶部碰撞色条：卡片的身份色 */
.scale-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--ac);
  opacity: .85;
}
.scale-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--ac) 45%, transparent);
  box-shadow: var(--shadow-2);
}
.scale-card:active { transform: translateY(-1px) scale(.995); }

.scale-card .cat {
  display: inline-block; font-size: 11.5px; letter-spacing: .12em;
  color: var(--ac); margin-bottom: 14px; font-weight: 600;
}
.scale-card h3 {
  font-size: 17.5px; font-weight: 700; letter-spacing: -.005em;
  color: var(--ink); line-height: 1.4;
  min-height: calc(1.4em * 2);             /* 两行容量：同排标题对齐 */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.scale-card p.desc {
  margin-top: 10px; font-size: 13.5px; line-height: 1.75; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(1.75em * 2);            /* 两行容量：简介区等高 */
}
.scale-card .foot {
  margin-top: auto;                        /* 推底：所有卡片底边严格对齐 */
  padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--ink-3);
}
.scale-card .foot .go { color: var(--ac); opacity: 0; transform: translateX(-6px); transition: all .3s var(--ease-out); font-weight: 600; }
.scale-card:hover .foot .go, .scale-card:focus-visible .foot .go { opacity: 1; transform: none; }

/* ---------- 答题页 ---------- */
.quiz-shell { max-width: 720px; margin: 0 auto; padding: 48px 24px 110px; }
.quiz-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; font-size: 13px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.quiz-top .quit { cursor: pointer; transition: color .2s; background: none; border: none; font: inherit; color: inherit; }
.quiz-top .quit:hover { color: var(--c-cobalt); }

.progress-track {
  height: 3px; border-radius: 999px; background: rgba(33,29,23,.08);
  overflow: hidden; margin-bottom: 44px;
}
.progress-fill {
  height: 100%; border-radius: 999px; background: var(--c-cobalt);
  transition: width .55s var(--ease-ios);
}

.q-stem {
  font-size: clamp(19px, 2.6vw, 23px); font-weight: 700; line-height: 1.65;
  letter-spacing: -.005em; margin-bottom: 34px; min-height: 3.2em;
}
.q-sub { font-size: 13px; color: var(--ink-3); margin: -24px 0 30px; }

.opts { display: grid; gap: 11px; }
.opt {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--r-opt);
  background: var(--box);
  padding: 15px 18px; cursor: pointer; text-align: left;
  color: var(--ink); font: inherit; font-size: 15px; line-height: 1.6;
  width: 100%;
  transition: transform .25s var(--ease-ios), border-color .2s ease,
              background-color .2s ease, box-shadow .25s var(--ease-ios);
}
.opt .key {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 12.5px; font-weight: 600;
  color: var(--ink-3); border: 1px solid var(--line);
  transition: all .2s ease;
}
.opt:hover { transform: scale(1.01); border-color: var(--c-cobalt); background: #fff; box-shadow: var(--shadow-1); }
.opt:hover .key { color: var(--c-cobalt); border-color: var(--c-cobalt); }
.opt:active { transform: scale(.985); }
.opt.picked {
  border-color: var(--c-cobalt);
  background: #eef1fd;
  box-shadow: 0 0 0 1px var(--c-cobalt) inset;
}
.opt.picked .key { background: var(--c-cobalt); color: #fff; border-color: var(--c-cobalt); }

.quiz-nav { margin-top: 30px; display: flex; justify-content: space-between; align-items: center; }
.btn {
  border-radius: 999px; font-weight: 600; letter-spacing: .03em;
  padding: 13px 30px; font-size: 14.5px; cursor: pointer;
  transition: transform .25s var(--ease-ios), box-shadow .25s var(--ease-ios),
              background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-primary { background: var(--c-cobalt); color: #fff; border: none; }
.btn-primary:hover:not(:disabled) { background: #2f4dc4; transform: scale(1.03); box-shadow: 0 8px 28px rgba(59,91,219,.3); }
.btn-primary:active:not(:disabled) { transform: scale(.97); }
.btn-ghost { background: transparent; border: 1px solid var(--line-hi); color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--c-cobalt); color: var(--c-cobalt); }

/* ---------- 类型选择（six 第一步） ---------- */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
@media (max-width: 700px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
.type-cell {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 8px; text-align: center; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px;
  color: var(--ink-2); background: var(--box);
  transition: all .2s var(--ease-out);
}
.type-cell:hover { border-color: var(--c-cobalt); color: var(--c-cobalt); }
.type-cell.picked { border-color: var(--c-cobalt); color: var(--c-cobalt); background: #eef1fd; box-shadow: 0 0 0 1px var(--c-cobalt) inset; }

/* ---------- 结果页深度组件 ---------- */
.result-shell { max-width: 760px; margin: 0 auto; padding: 72px 24px 120px; }
.result-kind { font-size: 12.5px; letter-spacing: .18em; color: var(--c-cobalt); margin-bottom: 18px; font-weight: 600; }
.result-title {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: clamp(30px, 4.6vw, 46px); font-weight: 900; line-height: 1.2; letter-spacing: -.015em;
}
.big-num { margin-top: 26px; display: flex; align-items: baseline; gap: 8px; }
.big-num i {
  font-style: normal; font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(52px, 8vw, 76px); font-weight: 700; color: var(--c-cobalt);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.big-num span { font-size: 17px; color: var(--ink-2); }

.result-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 9px; }
.result-tags span {
  font-size: 12.5px; padding: 7px 15px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-hi); color: var(--ink-2);
}
.result-desc {
  margin-top: 30px; font-size: 15.5px; line-height: 2.05; color: var(--ink-2);
  white-space: pre-line;
}
.result-block { margin-top: 48px; }
.result-block h4 {
  font-size: 13px; letter-spacing: .14em; color: var(--ink-3);
  font-weight: 600; margin-bottom: 18px;
}

/* 信息卡体系 */
.info-card {
  border: 1px solid var(--line); border-radius: var(--r-opt);
  background: var(--box);
  padding: 18px 20px;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .three-col { grid-template-columns: 1fr; } }

.mini-tag {
  display: inline-block; font-size: 11.5px; letter-spacing: .1em; font-weight: 600;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
  background: rgba(33,29,23,.05); color: var(--ink-2);
}
.mini-tag.t-terra { background: rgba(214,90,49,.1); color: var(--c-terra); }
.mini-tag.t-forest { background: rgba(47,138,95,.1); color: var(--c-forest); }
.mini-tag.t-blue { background: rgba(59,91,219,.09); color: var(--c-cobalt); }

.card-lead { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.info-card .card-lead + .card-body { margin-top: 8px; }
.card-body { margin-top: 0; font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }
.card-body.long { white-space: pre-line; }
.card-quote {
  font-family: 'Space Grotesk', 'Noto Sans SC', serif;
  font-size: 16px; line-height: 1.75; color: var(--ink); font-weight: 500;
}
.card-note { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--ink-3); }

/* 统计对撞（对称：两侧等宽，VS 居中固定） */
.stat-pair { display: flex; align-items: stretch; gap: 12px; margin-bottom: 22px; }
.stat-box {
  flex: 1 1 0; min-width: 0; text-align: center; border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 10px; background: var(--box);
}
.stat-box i {
  font-style: normal; display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 38px; font-weight: 700; line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat-box span { display: block; margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
.stat-box.vs { flex: 0 0 auto; border: none; background: none; font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--ink-3); font-size: 14px; }

/* 维度卡（taa） */
.dim-card {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 12px; background: var(--box);
}
.dim-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.dim-card-head b { font-size: 14.5px; color: var(--ink); }
.dim-card-head i { font-style: normal; font-size: 13px; color: var(--c-cobalt); font-variant-numeric: tabular-nums; }

/* 城市卡 */
.city-card { border-color: var(--line-hi); background: linear-gradient(180deg, rgba(59,91,219,.04), transparent 60%), var(--box); }
.city-name {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 24px; font-weight: 900; color: var(--ink); margin-bottom: 10px;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.tag-row span {
  font-size: 11.5px; padding: 4px 11px; border-radius: 999px;
  background: rgba(59,91,219,.07); color: var(--c-cobalt);
}

.final-quote {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: clamp(19px, 3vw, 26px); font-weight: 700; line-height: 1.6;
  color: var(--ink); text-align: center; padding: 34px 10px 0;
}

/* 条形图基础 */
.dim-row { margin-bottom: 16px; }
.dim-row .dim-head { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 7px; gap: 12px; }
.dim-row .dim-head b { color: var(--ink); font-weight: 600; }
.dim-row .dim-head i { font-style: normal; color: var(--c-cobalt); font-variant-numeric: tabular-nums; text-align: right; }
.dim-track { height: 5px; border-radius: 999px; background: rgba(33,29,23,.07); overflow: hidden; }
.dim-fill {
  height: 100%; border-radius: 999px;
  width: 0; transition: width 1s var(--ease-ios);
}

.sugg-list { display: grid; gap: 12px; }
.sugg-list .sugg {
  border: 1px solid var(--line); border-radius: var(--r-opt);
  padding: 15px 18px; font-size: 14px; line-height: 1.8; color: var(--ink-2);
  background: var(--box);
}
.result-actions { margin-top: 56px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 浮显动画（blur-fade，无跳动） ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
  transition: opacity .7s var(--ease-expo), transform .7s var(--ease-expo), filter .7s var(--ease-expo);
}
.js .reveal.in-view { opacity: 1; transform: none; filter: none; }
.js .reveal[data-delay="1"].in-view { transition-delay: .1s; }
.js .reveal[data-delay="2"].in-view { transition-delay: .2s; }
.js .reveal:not(.in-view), .js .reveal:not(.in-view) * { animation: none !important; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.card-in { animation: cardIn .55s var(--ease-expo) both; }
.card-in.d1 { animation-delay: .06s; } .card-in.d2 { animation-delay: .12s; }
.card-in.d3 { animation-delay: .18s; } .card-in.d4 { animation-delay: .24s; }

/* ---------- 移动端适配 ---------- */
@media (max-width: 640px) {
  /* ---- 布局骨架 ---- */
  .wrap { padding: 0 18px; }
  .hero { padding: 40px 0 30px; }
  .hero p.sub { margin-top: 14px; font-size: 14.5px; line-height: 1.78; }
  .hero .meta-row { gap: 8px 18px; flex-wrap: wrap; font-size: 12px; margin-top: 20px; }

  /* ---- 顶栏 ---- */
  .topbar-inner { padding: 13px 18px; }
  .brand { font-size: 15.5px; }
  .beta-badge { font-size: 10.5px; padding: 4px 11px; letter-spacing: .1em; }

  /* ---- 区块头：单列左对齐，节奏统一 ---- */
  .section-head {
    padding: 36px 0 16px;
    flex-direction: column; align-items: flex-start; gap: 3px;
  }
  .section-head h2 { font-size: 18.5px; }

  /* ---- 卡片网格：单列等高，触摸优先 ---- */
  .grid { grid-template-columns: 1fr !important; gap: 12px; padding-bottom: 56px; }
  .scale-card { padding: 20px 18px 16px; border-radius: 16px; }
  .scale-card::before { height: 3px; }
  .scale-card .cat { margin-bottom: 10px; font-size: 11px; }
  .scale-card h3 { font-size: 16.5px; min-height: 0; }        /* 单列下无需两行预留 */
  .scale-card p.desc { font-size: 13px; line-height: 1.7; min-height: 0; -webkit-line-clamp: 2; }
  .scale-card .foot { padding-top: 14px; margin-top: auto; font-size: 12px; }
  .scale-card:active { transform: scale(.985); }
  .scale-card:hover { transform: none; box-shadow: var(--shadow-1); }  /* 触屏无悬停 */

  /* ---- 答题页：拇指热区 + 大字题干 ---- */
  .quiz-shell { padding: 22px 18px 96px; max-width: 100%; }
  .progress-track { margin-bottom: 26px; }
  .q-stem { font-size: 19px; line-height: 1.72; min-height: 0; margin-bottom: 26px; letter-spacing: 0; }
  .opts { gap: 10px; }
  .opt {
    padding: 15px 16px; gap: 12px; font-size: 15px; line-height: 1.6;
    border-radius: 13px;
    min-height: 52px;                    /* 拇指热区 ≥48px */
    transition-duration: .18s;
  }
  .opt:active { transform: scale(.975); background: var(--chip); }
  .opt .key { width: 25px; height: 25px; font-size: 12px; }
  .btn { padding: 14px 26px; font-size: 15px; min-height: 46px; }
  .quiz-nav { margin-top: 26px; position: sticky; bottom: 0;
              padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
              background: linear-gradient(180deg, transparent, var(--bg) 38%); }

  /* ---- 结果页 ---- */
  .result-shell { padding: 42px 18px 90px; }
  .result-title { font-size: clamp(27px, 7.4vw, 34px); }
  .result-desc { font-size: 14.5px; line-height: 2.0; margin-top: 24px; }
  .result-block { margin-top: 38px; }
  .info-card { padding: 15px 16px; border-radius: 13px; }
  .card-quote { font-size: 15px; line-height: 1.8; }
  .card-body { font-size: 13.5px; line-height: 1.85; }
  .stat-pair { gap: 9px; }
  .stat-box { padding: 16px 8px; border-radius: 13px; }
  .stat-box i { font-size: 28px; }
  .city-name { font-size: 21px; }
  .big-num i { font-size: 56px; }
  .final-quote { font-size: 18px; padding: 26px 4px 0; }
  .two-col, .three-col { grid-template-columns: 1fr; }
  .dim-card { padding: 14px 15px; }

  /* ---- 密钥门 ---- */
  .gate-card { width: 100%; padding: 34px 26px 30px; border-radius: 18px; }
  .gate-title { font-size: 21px; }
  .gate-sub { font-size: 13px; }

  /* ---- 安全区（iPhone 底部横条）---- */
  .topbar-inner { padding-top: calc(13px + env(safe-area-inset-top) * 0); }
}

/* 小屏横屏兜底 */
@media (max-height: 480px) and (orientation: landscape) {
  .key-gate { padding: 12px; }
  .gate-card { padding: 22px 28px 22px; }
  .gate-title { font-size: 19px; }
}

/* ---------- 无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 内测密钥门 ---------- */
body.gate-lock { overflow: hidden; }
.key-gate {
  position: fixed; inset: 0; z-index: 300;
  background:
    radial-gradient(ellipse 90% 45% at 50% -8%, rgba(59,91,219,.08), transparent 62%),
    var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.gate-card {
  width: min(420px, 100%);
  border: 1px solid var(--line-hi); border-radius: 22px;
  background: var(--box); box-shadow: var(--shadow-2);
  padding: 44px 38px 36px; text-align: center;
}
.gate-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px; letter-spacing: .22em; color: var(--c-cobalt);
  margin-bottom: 18px; font-weight: 600;
}
.gate-title { font-size: 24px; font-weight: 900; letter-spacing: -.01em; }
.gate-title em { font-style: normal; color: var(--c-cobalt); }
.gate-sub { margin-top: 14px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.gate-card input {
  display: block; width: 100%; margin: 26px 0 14px;
  border: 1px solid var(--line-hi); border-radius: 999px;
  background: #fff; color: var(--ink);
  padding: 14px 22px; font-size: 16px; text-align: center;
  letter-spacing: .35em; font-family: 'Space Grotesk', monospace;
  outline: none; transition: box-shadow .2s, border-color .2s;
}
.gate-card input:focus { border-color: var(--c-cobalt); box-shadow: 0 0 0 3px rgba(59,91,219,.12); }
.gate-card .btn { width: 100%; padding: 14px; }
.gate-err { margin-top: 14px; font-size: 13px; color: var(--c-terra); min-height: 18px; }

/* ---------- 爱情站卡片（玫瑰色身份） ---------- */
.love-card { --ac: var(--c-rose, #cf5d84); }
.beta-badge {
  display: inline-block; font-size: 11.5px; letter-spacing: .16em;
  color: var(--c-cobalt); border: 1px solid rgba(59,91,219,.35);
  border-radius: 999px; padding: 5px 14px; font-weight: 600;
}

/* ---------- 原版报告过渡层 ---------- */
.legacy-transition {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; color: var(--ink-2); font-size: 14px; letter-spacing: .05em;
}
.lt-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2.5px solid rgba(59,91,219,.15); border-top-color: var(--c-cobalt);
  animation: ltSpin .9s linear infinite;
}
@keyframes ltSpin { to { transform: rotate(360deg); } }
#legacy-app { position: relative; z-index: 150; min-height: 100dvh; }
body.legacy-active #app { display: none; }

:focus-visible { outline: 2px solid var(--c-cobalt); outline-offset: 3px; border-radius: 6px; }
