/* ============================================================
   秘境罗盘 · 设计系统
   浅色 Bento 风格：#f9fafb 背景 / 白色卡片 / 单一金色强调
   ============================================================ */

:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #a8a29e;
  --line: rgba(28, 25, 23, 0.1);
  --line-strong: rgba(28, 25, 23, 0.18);
  --accent: #b45309;
  --accent-soft: #fef3c7;
  --accent-ink: #78350f;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 8px 24px -12px rgba(28, 25, 23, 0.12);
  --shadow-lift: 0 2px 4px rgba(28, 25, 23, 0.05), 0 18px 40px -16px rgba(28, 25, 23, 0.2);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-head: "Outfit", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main.container { flex: 1; padding-top: 2.5rem; padding-bottom: 4rem; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(249, 250, 251, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f59e0b, #b45309 70%);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.18);
}
.nav { display: flex; gap: 1.75rem; }
.nav a {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--ink); text-decoration: none; }

/* ---------------- 语言切换器 ---------------- */
.lang-switch { position: relative; }
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.lang-switch__btn:hover { border-color: var(--accent); color: var(--ink); }
.lang-switch__icon { font-size: 0.9375rem; }
.lang-switch__caret { font-size: 0.625rem; opacity: 0.6; }
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 8rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  list-style: none;
  padding: 0.25rem 0;
  z-index: 50;
  animation: rise 0.2s var(--ease) both;
}
.lang-switch__menu.hidden { display: none; }
.lang-switch__menu li { margin: 0; }
.lang-switch__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-switch__item:hover { background: var(--surface-2); color: var(--ink); }
.lang-switch__item.active { color: var(--accent); font-weight: 600; }

/* ---------------- 年龄确认 ---------------- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.age-gate.hidden { display: none; }
.age-gate__card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  max-width: 32rem;
  width: 100%;
  padding: 2.75rem 2.25rem 2.25rem;
  text-align: center;
  animation: rise 0.5s var(--ease) both;
}
.age-gate__icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fbbf24, #b45309 75%);
  box-shadow: 0 10px 24px -8px rgba(180, 83, 9, 0.5);
}
.age-gate__card h1 { font-size: 1.5rem; margin-bottom: 1rem; }
.age-gate__card p { color: var(--ink-2); font-size: 0.9375rem; text-align: left; margin-bottom: 0.875rem; }
.age-gate__note {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.875rem !important;
}
.age-gate__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.age-gate__actions .btn { flex: 1; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover:not(:disabled) {
  background: #000;
  box-shadow: 0 12px 28px -10px rgba(28, 25, 23, 0.45);
  text-decoration: none;
}
.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover:not(:disabled) {
  background: #92400e;
  box-shadow: 0 12px 28px -10px rgba(180, 83, 9, 0.5);
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line-strong);
}
.btn--ghost:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
}
.btn--lg { padding: 0.9375rem 2rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* ---------------- 首页 Hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 2.75rem;
  align-items: center;
  padding: 2.5rem 0 3.5rem;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.875rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.hero h1 .hero__accent {
  color: var(--accent);
  background: linear-gradient(120deg, #d97706, #b45309 55%, #92400e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__sub {
  color: var(--ink-2);
  font-size: 1.0625rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; gap: 0.875rem; flex-wrap: wrap; }
.hero__trust {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  color: var(--ink-3);
  font-size: 0.8125rem;
}
.hero__trust span { display: inline-flex; align-items: center; gap: 0.375rem; }
.hero__trust span::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero 视觉：浮动的瓶子群 */
.hero__visual {
  position: relative;
  min-height: 22rem;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 80% 10%, rgba(245, 158, 11, 0.14), transparent 55%),
    radial-gradient(100% 100% at 15% 90%, rgba(180, 83, 9, 0.1), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.jar-cluster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
}
.jar-cluster .jar { animation: float 5s ease-in-out infinite; }
.jar-cluster .jar:nth-child(2) { animation-delay: -1.6s; }
.jar-cluster .jar:nth-child(3) { animation-delay: -3.2s; }

/* ---------------- 瓶子组件 ---------------- */
.jar {
  position: relative;
  width: var(--jar-w, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.jar__body {
  position: relative;
  width: 100%;
  height: var(--jar-h, 9.5rem);
  border-radius: 1rem 1rem 1.25rem 1.25rem;
  border: 2px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}
.jar__neck {
  width: 52%;
  height: 0.875rem;
  border: 2px solid var(--line-strong);
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: -2px;
}
.jar__liquid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--fill, 0%);
  background: linear-gradient(180deg, var(--jar-color, #d97706), color-mix(in srgb, var(--jar-color, #d97706) 78%, #000 22%));
  transition: height 0.9s var(--ease);
}
.jar__liquid::before {
  content: "";
  position: absolute;
  top: -0.375rem;
  left: -20%;
  width: 140%;
  height: 0.875rem;
  background: color-mix(in srgb, var(--jar-color, #d97706) 72%, #fff 28%);
  border-radius: 50%;
  animation: wave 3.2s ease-in-out infinite;
}
.jar__pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  mix-blend-mode: multiply;
  z-index: 2;
}
.jar__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.35;
}

/* ---------------- 测试卡片（Bento） ---------------- */
.section-head { margin: 1.5rem 0 1.75rem; }
.section-head h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.section-head p { color: var(--ink-2); max-width: 42rem; }

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19.5rem, 1fr));
  gap: 1.25rem;
}
.test-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
  overflow: hidden;
}
.test-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}
.test-card__tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.test-card__tag--standard { background: var(--accent-soft); color: var(--accent-ink); }
.test-card__tag--bottle { background: #e0e7ff; color: #3730a3; }
.test-card__tag--custom { background: var(--ok-soft); color: var(--ok); }
.test-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.test-card__sub { color: var(--ink-3); font-size: 0.875rem; margin-bottom: 0.75rem; }
.test-card__desc {
  color: var(--ink-2);
  font-size: 0.9375rem;
  flex: 1;
  margin-bottom: 1.25rem;
}
.test-card__meta {
  display: flex;
  gap: 1.25rem;
  color: var(--ink-3);
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
}
.test-card__meta strong { color: var(--ink-2); font-family: var(--font-head); }

/* ---------------- 测试流程页 ---------------- */
.quiz-shell { max-width: 46rem; margin: 0 auto; }
.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.quiz-top__count { color: var(--ink-3); font-size: 0.875rem; font-weight: 600; }
.quiz-top__count strong { color: var(--ink); font-family: var(--font-head); font-size: 1.0625rem; }

.progress {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 2.25rem;
}
.progress__bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d97706, #b45309);
  transition: width 0.5s var(--ease);
}

.question-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow);
  animation: rise 0.45s var(--ease) both;
}
.question-card__index {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}
.question-card__text {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 2rem;
}

/* Likert 量表 */
.scale { display: flex; flex-direction: column; gap: 0.625rem; }
.scale__option {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.125rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  background: var(--surface);
  font-size: 0.9375rem;
}
.scale__option:hover { border-color: var(--accent); background: var(--accent-soft); }
.scale__option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}
.scale__dot {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s var(--ease);
}
.scale__option.selected .scale__dot { border-color: var(--accent); }
.scale__option.selected .scale__dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--accent);
}
.scale__label { flex: 1; color: var(--ink); }
.scale__val { color: var(--ink-3); font-family: var(--font-head); font-size: 0.8125rem; }

/* 瓶子测试：5 档滑杆 */
.rate-wrap { display: flex; flex-direction: column; gap: 1.25rem; }
.rate-jar-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.rate-jar-row .jar { flex-shrink: 0; }
.rate-ctrl { flex: 1; }
.rate-ctrl__title {
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.rate-ctrl__hint { color: var(--ink-3); font-size: 0.8125rem; margin-bottom: 1rem; }
.rate-buttons { display: flex; gap: 0.5rem; }
.rate-buttons button {
  flex: 1;
  padding: 0.875rem 0;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink-2);
  transition: all 0.18s var(--ease);
}
.rate-buttons button:hover { border-color: var(--accent); color: var(--accent); }
.rate-buttons button.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(0.97);
}
.rate-scale-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-top: 0.375rem;
}

/* 导航按钮 */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.25rem;
}

/* ---------------- 结果页 ---------------- */
.result-hero {
  text-align: center;
  padding: 1.5rem 0 2.5rem;
}
.result-hero h1 { font-size: 2.25rem; margin-bottom: 0.625rem; }
.result-hero p { color: var(--ink-2); }

.jar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 1.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.25rem;
}
.jar-grid .jar { margin: 0 auto; }

.rank-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2.25rem;
}
.rank-item {
  display: grid;
  grid-template-columns: 2.25rem 1fr 4.5rem;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.rank-item:last-child { border-bottom: none; }
.rank-item__no {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink-3);
}
.rank-item__no.top { color: var(--accent); }
.rank-item__body h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.rank-item__body p { color: var(--ink-2); font-size: 0.875rem; }
.rank-item__bar {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin-top: 0.5rem;
}
.rank-item__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--bar-color, var(--accent));
  width: 0;
  transition: width 1s var(--ease);
}
.rank-item__pct {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  text-align: right;
}

.disclaimer-box {
  background: var(--accent-soft);
  border: 1px solid rgba(180, 83, 9, 0.25);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  color: var(--accent-ink);
  font-size: 0.9375rem;
  margin-bottom: 2.25rem;
}
.disclaimer-box h4 { color: var(--accent-ink); margin-bottom: 0.5rem; font-size: 1rem; }

.share-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  align-items: center;
}
.share-bar__label { font-weight: 600; font-size: 0.9375rem; }
.share-bar input {
  flex: 1;
  min-width: 12rem;
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-2);
}

/* ---------------- 表单（联系方式 / 自定义构建器） ---------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.form-card h3 { margin-bottom: 0.5rem; font-size: 1.125rem; }
.form-card__hint { color: var(--ink-3); font-size: 0.875rem; margin-bottom: 1.5rem; }

.field { margin-bottom: 1.125rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
  color: var(--ink-2);
}
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14);
}
.field textarea { resize: vertical; min-height: 4.5rem; }
.field__error {
  color: var(--danger);
  font-size: 0.8125rem;
  margin-top: 0.375rem;
}
.field-row { display: flex; gap: 1rem; }
.field-row .field { flex: 1; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.checkbox-row:hover { border-color: var(--accent); }
.checkbox-row.checked { border-color: var(--accent); background: var(--accent-soft); }
.checkbox-row input { margin-top: 0.3125rem; accent-color: var(--accent); width: 1.0625rem; height: 1.0625rem; }
.checkbox-row__text strong { display: block; font-size: 0.9375rem; }
.checkbox-row__text span { color: var(--ink-2); font-size: 0.8125rem; }

/* 构建器 */
.builder-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  background: var(--surface);
}
.builder-item__swatch {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  flex-shrink: 0;
  margin-top: 1.5625rem;
  cursor: pointer;
  border: 2px solid var(--line-strong);
  padding: 0;
  overflow: hidden;
  position: relative;
}
.builder-item__swatch input[type="color"] {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border: none;
  cursor: pointer;
  padding: 0;
}
.builder-item .field { flex: 1; margin-bottom: 0; }
.builder-item__remove {
  margin-top: 1.5625rem;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-3);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.8125rem;
  transition: all 0.2s;
}
.builder-item__remove:hover { color: var(--danger); border-color: var(--danger); }

.builder-q {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.builder-q .field { flex: 1; margin-bottom: 0; }
.builder-q select { max-width: 10rem; }

/* ---------------- 关于页 ---------------- */
.prose { max-width: 46rem; }
.prose h2 { margin: 2.25rem 0 0.875rem; font-size: 1.5rem; }
.prose p { color: var(--ink-2); margin-bottom: 1rem; }
.prose ul { color: var(--ink-2); padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.5rem; }

/* ---------------- Toast ---------------- */
.toast-root {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.375rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-lift);
  animation: rise 0.35s var(--ease) both;
}
.toast--ok { background: var(--ok); }
.toast--err { background: var(--danger); }

/* ---------------- 状态：加载 / 空 / 错误 ---------------- */
.page-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 5rem 0;
  color: var(--ink-3);
}
.spinner {
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.state-box {
  text-align: center;
  padding: 4.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.state-box h2 { margin-bottom: 0.625rem; }
.state-box p { color: var(--ink-2); margin-bottom: 1.5rem; }

/* ---------------- 页脚 ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0;
  margin-top: auto;
  color: var(--ink-3);
  font-size: 0.8125rem;
  text-align: center;
}
.site-footer__note { color: var(--ink-2); margin-bottom: 0.5rem; }
.site-footer__disclaimer { max-width: 42rem; margin: 0 auto; line-height: 1.8; }

/* ---------------- 动画 ---------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.75rem); }
}
@keyframes wave {
  0%, 100% { transform: translateX(-6%) rotate(-1.5deg); }
  50% { transform: translateX(6%) rotate(1.5deg); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem 0 2.5rem;
  }
  .hero__visual { min-height: 17rem; order: -1; }
  .nav { gap: 1.125rem; font-size: 0.875rem; }
}
@media (max-width: 560px) {
  .question-card { padding: 1.75rem 1.25rem; }
  .question-card__text { font-size: 1.1875rem; }
  .jar-grid { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 1.25rem 0.75rem; }
  .rate-jar-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .field-row { flex-direction: column; gap: 0; }
  .share-bar { flex-direction: column; align-items: stretch; }
  .age-gate__actions { flex-direction: column; }
  .site-header__inner { height: 3.75rem; }
  .brand__text { font-size: 1rem; }
  .hero__trust { flex-direction: column; gap: 0.5rem; }
  .nav { gap: 0.875rem; font-size: 0.8125rem; }
  .lang-switch__label { display: none; }
  .lang-switch__btn { padding: 0.375rem 0.5rem; }
}

/* ============================================================
   管理后台（#/admin，仅简体中文）
   ============================================================ */
.admin-shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.admin-header__sub {
  color: var(--ink-3);
  font-size: 0.875rem;
}

.admin-header__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* 表格 */
.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.admin-table th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--ink-2);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: var(--surface-2);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* 危险按钮 + 小尺寸按钮 */
.btn--danger {
  background: var(--danger);
  color: #fff;
  border: 1px solid var(--danger);
}

.btn--danger:hover:not(:disabled) {
  background: #991b1b;
  border-color: #991b1b;
}

.btn--sm {
  padding: 0.25rem 0.625rem;
  font-size: 0.8125rem;
  border-radius: 0.5rem;
}

/* 模态框 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  max-width: 28rem;
  width: 100%;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
}

.modal-card h3 {
  font-size: 1.125rem;
}

/* 页脚管理入口 */
.site-footer__admin {
  margin-top: 0.5rem;
  text-align: center;
}

.site-footer__admin-link {
  font-size: 0.75rem;
  color: var(--ink-3);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.site-footer__admin-link:hover {
  opacity: 1;
  color: var(--ink-2);
}

/* 页脚署名（制作者信息） */
.site-footer__credit {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
  text-align: center;
  letter-spacing: 0.02em;
}

.site-footer__credit strong {
  font-weight: 600;
}

.site-footer__credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
  transition: color 0.2s, border-color 0.2s;
}

.site-footer__credit a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink-3);
}

/* 分享图预览弹层 */
.share-modal {
  max-width: 26rem;
}

.share-modal__img {
  display: block;
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin: 0.75rem 0 1.25rem;
  background: var(--surface-2);
}
