:root {
  --cream: #fffbf3;
  --cream-deep: #fbf3e6;
  --white: #ffffff;
  --ink: #28303b;
  --ink-soft: #3d4654;
  --muted: #66707e;
  --line: #ebe2d5;
  --line-strong: #dccfbd;

  --mint: #cdefe1;
  --mint-soft: #e8f8f1;
  --mint-deep: #246b55;

  --pink: #fbdce6;
  --pink-soft: #fdf0f4;
  --pink-deep: #96485f;

  --lavender: #e6e0fa;
  --lavender-soft: #f3f0fd;
  --lavender-deep: #564796;

  --butter: #fcefc4;
  --butter-soft: #fef9e8;
  --butter-deep: #7a5b0e;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 18px 40px rgba(75, 60, 42, 0.08);
  --shadow-soft: 0 8px 24px rgba(75, 60, 42, 0.06);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(760px 480px at 8% -10%, rgba(205, 239, 225, 0.75), transparent 60%),
    radial-gradient(680px 420px at 96% 4%, rgba(251, 220, 230, 0.7), transparent 62%),
    radial-gradient(760px 520px at 70% 100%, rgba(230, 224, 250, 0.55), transparent 65%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--lavender-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 750;
}

h3 {
  font-size: 1.08rem;
  font-weight: 750;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(235, 226, 213, 0.8);
  background: rgba(255, 251, 243, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  font-size: 1.12rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.brand-sub {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--mint-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
}

.site-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  background: var(--white);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 30px;
}

/* 入场动效：依次浮现 */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(var(--tilt, 0deg));
  }
  50% {
    transform: translateY(-9px) rotate(var(--tilt, 0deg));
  }
}

.hero-copy > * {
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.hero-copy > :nth-child(1) { animation-delay: 0.04s; }
.hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.hero-copy > :nth-child(3) { animation-delay: 0.2s; }
.hero-copy > :nth-child(4) { animation-delay: 0.28s; }
.hero-copy > :nth-child(5) { animation-delay: 0.36s; }

.hero-side {
  min-width: 0;
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.22s backwards;
}

.hero-visual {
  position: relative;
  margin: 0;
  padding: 0 10px;
}

.hero-illustration {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 34px rgba(75, 60, 42, 0.12));
}

.float-chip {
  position: absolute;
  z-index: 2;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(75, 60, 42, 0.12);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  white-space: nowrap;
  animation: floaty 5.5s ease-in-out infinite;
}

.float-chip-a {
  top: 7%;
  left: -4px;
  color: var(--mint-deep);
  background: rgba(232, 248, 241, 0.95);
  --tilt: -3deg;
}

.float-chip-b {
  right: 2%;
  bottom: 26%;
  color: var(--pink-deep);
  background: rgba(253, 240, 244, 0.95);
  --tilt: 2.5deg;
}

.float-chip-late {
  animation-delay: 2.6s;
}

.hero-panel {
  position: relative;
  z-index: 3;
  margin: -58px 34px 0 44px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.highlight {
  position: relative;
  display: inline-block;
  color: var(--ink);
}

.highlight::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 4px;
  z-index: -1;
  height: 38%;
  border-radius: 6px;
  background: var(--butter);
}

.lead {
  margin-top: 20px;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--mint-deep);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(36, 107, 85, 0.2);
}

.btn-primary:hover {
  background: #1c5a47;
  color: var(--white);
}

.btn-soft {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--ink);
}

.btn-soft:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: #171d26;
  color: var(--white);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.fineprint {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.84rem;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.panel-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.pill,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pill-butter,
.chip-butter {
  background: var(--butter);
  color: var(--butter-deep);
}

.pill-mint,
.chip-mint {
  background: var(--mint);
  color: var(--mint-deep);
}

.pill-pink,
.chip-pink {
  background: var(--pink);
  color: var(--pink-deep);
}

.pill-lavender,
.chip-lavender {
  background: var(--lavender);
  color: var(--lavender-deep);
}

.today-card {
  min-height: 230px;
}

.today-card h2 {
  margin-bottom: 10px;
  font-size: 1.42rem;
}

.today-card .today-scenario {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.today-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.today-count {
  color: var(--muted);
  font-size: 0.82rem;
}

.text-link {
  color: var(--mint-deep);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.skeleton-line {
  height: 14px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cream-deep), #fff6ea, var(--cream-deep));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

.skeleton-line.short {
  width: 62%;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

.section {
  padding-top: 44px;
  padding-bottom: 44px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin-top: 2px;
}

.section-note {
  color: var(--muted);
  font-size: 0.83rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}

.category-card .cat-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-soft);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-card .cat-icon svg {
  width: 21px;
  height: 21px;
}

.category-card:hover .cat-icon {
  transform: scale(1.12) rotate(-4deg);
  background: rgba(255, 255, 255, 0.85);
}

.category-card strong {
  display: block;
  margin-top: 18px;
  font-size: 1.03rem;
  font-weight: 800;
}

.category-card span {
  color: rgba(40, 48, 59, 0.68);
  font-size: 0.79rem;
}

.tone-0 {
  background: var(--mint);
}

.tone-1 {
  background: var(--pink);
}

.tone-2 {
  background: var(--lavender);
}

.tone-3 {
  background: var(--butter);
}

.tone-4 {
  background: var(--mint-soft);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.list-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.list-card h3 {
  margin-bottom: 14px;
}

.poll-list {
  list-style: none;
}

.poll-list li {
  border-top: 1px solid var(--line);
}

.poll-list li:first-child {
  border-top: 0;
}

.poll-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  color: var(--ink);
  text-decoration: none;
}

.poll-item:hover .poll-item-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.poll-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.poll-item-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.45;
}

.poll-item-meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.poll-item-arrow {
  color: var(--muted);
  font-size: 1rem;
}

.diagnose-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(205, 239, 225, 0.9), rgba(230, 224, 250, 0.9) 65%, rgba(251, 220, 230, 0.85));
  box-shadow: var(--shadow);
}

.banner-mascot {
  position: absolute;
  top: -34px;
  right: 208px;
  width: 104px;
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(75, 60, 42, 0.16));
  animation: floaty 6s ease-in-out infinite;
  pointer-events: none;
}

.diagnose-banner h2 {
  max-width: 24ch;
  margin-bottom: 10px;
}

.diagnose-banner p {
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.sample-note {
  padding: 12px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--butter-soft);
  color: var(--butter-deep);
  font-size: 0.82rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.page {
  padding-top: 34px;
  padding-bottom: 60px;
}

.page-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.page-head.narrow {
  max-width: 640px;
}

.page-head h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}

.filter-btn {
  min-height: 38px;
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 0.87rem;
  font-weight: 650;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--ink);
}

.filter-btn[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.question-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.question-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.question-card h2 {
  margin-top: 13px;
  font-size: 1.12rem;
  font-weight: 750;
}

.question-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.88rem;
}

.question-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.78rem;
}

.question-card-foot strong {
  color: var(--mint-deep);
  font-weight: 750;
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 650;
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

.poll-head {
  max-width: 820px;
  margin-bottom: 26px;
}

.poll-head h1 {
  margin-top: 12px;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
}

.scenario {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.poll-root {
  max-width: 820px;
}

.vote-card,
.result-card,
.explain-card,
.gate-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.vote-card form {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.option-list {
  display: grid;
  gap: 11px;
}

.option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 15px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.option:hover {
  border-color: var(--line-strong);
}

.option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.option-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.option-text strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 750;
  line-height: 1.45;
}

.option-text span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.option:has(input:checked) {
  border-color: var(--mint-deep);
  background: var(--mint-soft);
  box-shadow: 0 0 0 3px rgba(205, 239, 225, 0.7);
}

.option:has(input:checked) .option-key {
  border-color: var(--mint-deep);
  background: var(--mint-deep);
  color: var(--white);
}

.option:has(input:focus-visible) {
  outline: 3px solid var(--lavender-deep);
  outline-offset: 2px;
}

.vote-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.form-message {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.form-message.error {
  background: var(--pink-soft);
  color: var(--pink-deep);
}

.form-message.success {
  background: var(--mint-soft);
  color: var(--mint-deep);
}

.result-card {
  margin-top: 18px;
}

.result-card h2,
.explain-card h2 {
  font-size: 1.3rem;
}

.result-summary {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.result-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  list-style: none;
}

.result-row {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.result-row.is-mine {
  border-color: var(--mint-deep);
  background: var(--mint-soft);
}

.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.result-head strong {
  font-weight: 700;
}

.result-number {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: 8px;
  vertical-align: middle;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.badge-mine {
  background: var(--mint-deep);
  color: var(--white);
}

.badge-standard {
  background: var(--butter);
  color: var(--butter-deep);
}

progress {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--cream-deep);
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}

progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--cream-deep);
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--mint-deep));
}

progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--mint-deep));
}

.result-row:nth-child(2) progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--pink), var(--pink-deep));
}

.result-row:nth-child(2) progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--pink), var(--pink-deep));
}

.result-row:nth-child(3) progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--lavender), var(--lavender-deep));
}

.result-row:nth-child(3) progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--lavender), var(--lavender-deep));
}

.result-row:nth-child(4) progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--butter), var(--butter-deep));
}

.result-row:nth-child(4) progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--butter), var(--butter-deep));
}

.explain-preview {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--lavender-soft), var(--white) 70%);
}

.explain-preview h2 {
  font-size: 1.22rem;
}

.explain-preview p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.explain-preview .btn {
  margin-top: 18px;
}

.revote-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.explain-root {
  max-width: 860px;
}

.explain-card + .explain-card {
  margin-top: 18px;
}

.explain-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.explain-card ul {
  display: grid;
  gap: 9px;
  padding-left: 0;
  list-style: none;
}

.explain-card li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.explain-card li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.66em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-deep);
}

.risk-list li::before {
  background: var(--pink-deep);
}

.explain-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.disclaimer {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--cream-deep);
  color: var(--muted);
  font-size: 0.82rem;
}

.diagnose-cta {
  margin-top: 18px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--mint), var(--lavender));
  box-shadow: var(--shadow-soft);
}

.diagnose-cta h2 {
  margin-bottom: 8px;
}

.diagnose-cta p {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.diagnose-cta .btn {
  margin-top: 18px;
}

.gate-card {
  max-width: 620px;
}

.gate-card h2 {
  margin-bottom: 10px;
}

.gate-card p {
  color: var(--ink-soft);
}

.gate-card .btn {
  margin-top: 18px;
}

.diagnose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 20px;
  align-items: start;
}

.card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.prose-card h2 {
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.prose-card h2:first-child {
  margin-top: 0;
}

.check-list {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.check-list li::before {
  content: "·";
  position: absolute;
  left: 6px;
  top: -2px;
  color: var(--mint-deep);
  font-size: 1.4rem;
  font-weight: 800;
}

.status-card h2 {
  margin: 14px 0 8px;
  font-size: 1.25rem;
}

.status-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.status-card .btn {
  width: 100%;
  margin-top: 18px;
}

.site-footer {
  margin-top: 40px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner strong {
  color: var(--ink);
  font-weight: 750;
}

.footer-inner span {
  margin-left: 10px;
}

.footer-note {
  text-align: right;
}

.notice {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-size: 0.9rem;
}

.center-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.center-page .btn {
  margin-top: 24px;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--lavender-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 46px;
  }

  .hero-panel {
    margin: -46px 14px 0;
  }

  .banner-mascot {
    top: -26px;
    right: 26px;
    width: 84px;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-col,
  .question-grid,
  .diagnose-layout {
    grid-template-columns: 1fr;
  }

  .diagnose-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15.5px;
  }

  .wrap {
    padding: 0 18px;
  }

  .header-inner {
    min-height: 62px;
  }

  .brand-mark {
    font-size: 1rem;
  }

  .brand-sub {
    font-size: 0.7rem;
    padding: 2px 7px;
  }

  .site-nav {
    gap: 2px;
    font-size: 0.84rem;
  }

  .site-nav a {
    padding: 6px 8px;
  }

  .hero {
    padding-top: 36px;
    padding-bottom: 20px;
  }

  .hero-panel {
    padding: 18px;
    margin: -38px 6px 0;
    border-radius: var(--radius);
  }

  .float-chip {
    padding: 6px 12px;
    font-size: 0.72rem;
  }

  .float-chip-a {
    left: 0;
  }

  .banner-mascot {
    display: none;
  }

  .section {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-card {
    min-height: 112px;
    padding: 15px;
  }

  .category-card strong {
    margin-top: 12px;
    font-size: 0.97rem;
  }

  .category-grid .category-card:last-child {
    grid-column: span 2;
  }

  .list-card,
  .question-card,
  .vote-card,
  .result-card,
  .explain-card,
  .gate-card,
  .card {
    padding: 19px;
    border-radius: var(--radius);
  }

  .diagnose-banner {
    padding: 24px 20px;
    border-radius: var(--radius);
  }

  .btn {
    width: 100%;
  }

  .cta-row .btn {
    width: 100%;
  }

  .diagnose-banner .btn,
  .diagnose-cta .btn {
    width: 100%;
  }

  .poll-head h1 {
    font-size: 1.6rem;
  }

  .option {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 13px 14px;
  }

  .option-key {
    width: 28px;
    height: 28px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-note {
    text-align: left;
  }
}

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

/* ---------- 第三阶段：诊断表单 ---------- */
.form-card {
  padding: 26px;
}

.diagnose-form {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: block;
}

.field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 750;
}

.field .required {
  color: var(--pink-deep);
}

.field input,
.field select,
.field textarea,
.toolbar input,
.toolbar select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.6;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.toolbar input:focus-visible,
.toolbar select:focus-visible {
  outline: none;
  border-color: var(--mint-deep);
  box-shadow: 0 0 0 3px rgba(205, 239, 225, 0.65);
}

.field .hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--pink-deep);
  background: #fff8fa;
}

.field-error {
  display: block;
  margin-top: 5px;
  color: var(--pink-deep);
  font-size: 0.8rem;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.success-card {
  margin-top: 18px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--mint-soft);
  border: 1px solid rgba(36, 107, 85, 0.18);
}

.success-card h2 {
  margin-bottom: 8px;
}

.field-stacked {
  margin-top: 14px;
}

.success-actions {
  margin-top: 16px;
}

/* ---------- 第三阶段：管理后台 ---------- */
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-main {
  padding-top: 28px;
  padding-bottom: 64px;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 6px;
}

.tab {
  padding: 9px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.stat-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.stat-value {
  margin-top: 6px;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th,
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: rgba(255, 251, 243, 0.9);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 750;
  white-space: nowrap;
}

.badge-new {
  background: var(--butter);
  color: var(--butter-deep);
}

.badge-contacted {
  background: var(--lavender);
  color: var(--lavender-deep);
}

.badge-qualified {
  background: var(--mint);
  color: var(--mint-deep);
}

.badge-invalid,
.badge-archived,
.badge-closed {
  background: #f1ece6;
  color: var(--muted);
}

.badge-published {
  background: var(--mint);
  color: var(--mint-deep);
}

.badge-reviewed {
  background: var(--lavender);
  color: var(--lavender-deep);
}

.badge-draft {
  background: #f1ece6;
  color: var(--muted);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.toolbar input,
.toolbar select {
  width: auto;
  min-width: 150px;
  padding: 9px 12px;
  border-radius: 999px;
}

.toolbar .spacer {
  flex: 1;
}

.funnel-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 80px 80px;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.86rem;
}

.funnel-row:last-child {
  border-bottom: 0;
}

.funnel-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--mint);
}

.funnel-track {
  background: #f3eee7;
  border-radius: 999px;
  overflow: hidden;
}

.funnel-num {
  text-align: right;
  font-weight: 750;
}

.funnel-rate {
  color: var(--muted);
  font-size: 0.76rem;
  text-align: right;
}

.admin-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

.admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.detail-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-panel h2 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  font-size: 0.85rem;
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.76rem;
}

.detail-list dd {
  margin: 2px 0 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.status-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn-sm {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.btn-ghost {
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
}

.btn-danger {
  border: 1.5px solid rgba(150, 72, 95, 0.35);
  background: var(--pink-soft);
  color: var(--pink-deep);
}

.admin-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.empty-state {
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.login-wrap {
  width: 100%;
  max-width: 420px;
  margin: 8vh auto 0;
}

.audit-detail {
  max-width: 320px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.78rem;
}

.ai-panel {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--mint-soft);
  font-size: 0.86rem;
  line-height: 1.65;
}

.data-table tbody tr {
  cursor: pointer;
}

.data-table tbody tr:hover {
  background: rgba(205, 239, 225, 0.2);
}

.data-table tbody tr.is-selected {
  background: var(--mint-soft);
}

.funnel-row progress {
  width: 100%;
  height: 8px;
  margin-top: 6px;
}

@media (max-width: 980px) {
  .admin-split {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .funnel-row {
    grid-template-columns: minmax(0, 1.4fr) 60px 62px;
  }

  .form-card {
    padding: 19px;
  }
}

