:root {
  color-scheme: light;
  --bg: #edf3f9;
  --bg-strong: #e4edf7;
  --surface: rgba(255, 255, 255, 0.5);
  --surface-strong: rgba(255, 255, 255, 0.72);
  --surface-soft: rgba(255, 255, 255, 0.2);
  --line: rgba(255, 255, 255, 0.68);
  --line-soft: rgba(23, 39, 69, 0.1);
  --ink: #102034;
  --muted: #60708b;
  --blue: #2d72ff;
  --cyan: #6be7ff;
  --pink: #ff9fd1;
  --gold: #f5cf77;
  --green: #c2ff8d;
  --shadow: 0 28px 80px rgba(36, 54, 94, 0.16);
  --shadow-soft: 0 16px 38px rgba(36, 54, 94, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(107, 231, 255, 0.34), transparent 24%),
    radial-gradient(circle at 92% 10%, rgba(255, 159, 209, 0.32), transparent 22%),
    radial-gradient(circle at 88% 82%, rgba(194, 255, 141, 0.22), transparent 18%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 40%, #eef4fa 100%);
  font-family:
    "SF Pro Display",
    "PingFang SC",
    "Noto Sans SC",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 92%);
  pointer-events: none;
}

body.page-qianxi {
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 123, 123, 0.18), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(231, 176, 255, 0.14), transparent 22%),
    radial-gradient(circle at 82% 78%, rgba(255, 111, 111, 0.12), transparent 24%),
    linear-gradient(180deg, #121018 0%, #15141d 36%, #181a23 100%);
  color: #f4f0f3;
}

body.page-qianxi::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

.page-shell {
  position: relative;
  width: min(1220px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.ambient {
  position: absolute;
  z-index: 0;
  filter: blur(72px);
  pointer-events: none;
  opacity: 0.78;
}

.ambient-a {
  top: 120px;
  left: -36px;
  width: 240px;
  height: 240px;
  background: rgba(107, 231, 255, 0.34);
}

.ambient-b {
  top: 340px;
  right: 0;
  width: 220px;
  height: 220px;
  background: rgba(255, 159, 209, 0.32);
}

.ambient-c {
  bottom: 140px;
  left: 24%;
  width: 320px;
  height: 180px;
  background: rgba(194, 255, 141, 0.24);
}

.ambient-red {
  top: 120px;
  left: -10px;
  width: 280px;
  height: 220px;
  background: rgba(255, 83, 83, 0.25);
}

.ambient-rose {
  top: 280px;
  right: 0;
  width: 260px;
  height: 240px;
  background: rgba(255, 143, 171, 0.14);
}

.glass-panel,
.glass-subpanel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.24)),
    var(--surface-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
}

.glass-panel {
  border-radius: var(--radius-xl);
}

.glass-subpanel {
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.glass-panel::before,
.glass-subpanel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.34), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 26%);
  pointer-events: none;
}

.qianxi-shell {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(26, 23, 33, 0.6);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.qianxi-shell::before {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(255, 96, 96, 0.08), transparent 30%);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 20px;
}

.brand {
  position: relative;
  z-index: 1;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-qianxi {
  color: #fff2f3;
}

.topnav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.topnav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.28);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

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

.topnav-link.is-current {
  background: rgba(45, 114, 255, 0.12);
  border-color: rgba(45, 114, 255, 0.24);
  color: #1d4f9d;
}

.page-qianxi .topnav-link {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 240, 243, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
}

.page-qianxi .topnav-link.is-current {
  background: rgba(255, 106, 106, 0.14);
  border-color: rgba(255, 106, 106, 0.3);
  color: #ffe6e8;
}

.main-grid {
  display: grid;
  gap: 22px;
}

.hero,
.quiz-layout,
.jump-section {
  display: grid;
  gap: 22px;
}

.hero {
  align-items: stretch;
  padding: 28px;
}

.hero-home {
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
}

.hero-qianxi {
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
}

.hero-copy,
.hero-visual,
.poster-stage {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  gap: 20px;
  align-content: center;
}

.eyebrow {
  margin: 0;
  color: #346dc2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-qianxi .eyebrow {
  color: #ffb7b9;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero h1,
.lexicon-hero h1 {
  font-size: clamp(38px, 6vw, 70px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.page-qianxi .lead,
.page-qianxi .section-subtitle,
.page-qianxi .question-note,
.page-qianxi .axis-caption,
.page-qianxi .result-subtitle,
.page-qianxi .result-summary,
.page-qianxi .copy-feedback,
.page-qianxi .lexicon-flavor,
.page-qianxi .lexicon-tip {
  color: rgba(244, 240, 243, 0.72);
}

.hero-actions,
.quiz-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 16px 32px rgba(45, 114, 255, 0.22);
}

.qianxi-btn {
  background: linear-gradient(135deg, #fd6d6f, #e53e63);
  box-shadow: 0 16px 30px rgba(229, 62, 99, 0.28);
}

.secondary-btn,
.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.3);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.page-qianxi .secondary-btn,
.page-qianxi .ghost-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff4f4;
  border-color: rgba(255, 255, 255, 0.14);
}

.ghost-btn.is-disabled {
  opacity: 0.45;
}

.micro-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.micro-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.3);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.page-qianxi .micro-list span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 244, 244, 0.74);
}

.hero-visual {
  min-height: 420px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
}

.hero-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(320px, calc(100% - 36px));
  padding: 18px;
}

.hero-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-note p {
  color: rgba(16, 32, 52, 0.82);
  font-size: 14px;
  line-height: 1.7;
}

.poster-stage {
  min-height: 420px;
  position: relative;
  z-index: 1;
}

.poster {
  position: absolute;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.poster-main {
  inset: 10px 0 0 auto;
  width: min(88%, 460px);
  height: 390px;
}

.poster-a {
  left: 0;
  top: 26px;
  width: 168px;
  animation: floatA 7.6s ease-in-out infinite;
}

.poster-b {
  left: 44px;
  bottom: 18px;
  width: 150px;
  animation: floatB 8.4s ease-in-out infinite;
}

.poster-c {
  right: 18px;
  bottom: -4px;
  width: 164px;
  animation: floatC 9s ease-in-out infinite;
}

@keyframes floatA {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-12px) rotate(-1deg);
  }
}

@keyframes floatB {
  0%,
  100% {
    transform: translateY(0) rotate(4deg);
  }
  50% {
    transform: translateY(-16px) rotate(1deg);
  }
}

@keyframes floatC {
  0%,
  100% {
    transform: translateY(0) rotate(3deg);
  }
  50% {
    transform: translateY(-14px) rotate(-2deg);
  }
}

.quiz-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}

.quiz-card,
.axis-card,
.result-card,
.lexicon-page,
.lexicon-hero,
.jump-card {
  padding: 24px;
}

.quiz-card,
.axis-card,
.result-card,
.lexicon-page {
  min-width: 0;
}

.quiz-card {
  display: grid;
  gap: 22px;
}

.quiz-top {
  display: grid;
  gap: 12px;
}

.progress-copy {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 900;
}

.progress-shell {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.progress-shell span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.page-qianxi .progress-shell span {
  background: linear-gradient(90deg, #ff8f8f, #ff5479);
}

.question-meta {
  display: grid;
  gap: 12px;
}

.question-kicker {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.question-title {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.12;
}

.question-note,
.section-subtitle,
.axis-caption,
.result-subtitle,
.result-summary,
.copy-feedback,
.lexicon-flavor,
.lexicon-tip {
  color: var(--muted);
}

.question-note {
  font-size: 15px;
  line-height: 1.7;
}

.answers {
  display: grid;
  gap: 12px;
}

.answer-card {
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.36);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.answer-card:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 114, 255, 0.24);
  background: rgba(255, 255, 255, 0.52);
}

.page-qianxi .answer-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8f3f6;
}

.page-qianxi .answer-card:hover {
  border-color: rgba(255, 124, 124, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.answer-cue {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(45, 114, 255, 0.12);
  color: #2f5aa7;
  font-size: 12px;
  font-weight: 900;
}

.page-qianxi .answer-cue {
  background: rgba(255, 106, 106, 0.14);
  color: #ffd4d8;
}

.answer-text {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.74;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.section-head-wide {
  align-items: end;
}

.section-title {
  font-size: 20px;
  font-weight: 900;
}

.section-subtitle {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
}

.axis-list,
.result-tags,
.filter-row,
.lexicon-grid {
  display: grid;
  gap: 12px;
}

.axis-list {
  margin-top: 18px;
}

.axis-row {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.34);
}

.page-qianxi .axis-row {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.axis-headline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.axis-label {
  font-size: 14px;
  font-weight: 800;
}

.axis-score {
  font-size: 13px;
  font-weight: 700;
  color: #2d5eae;
}

.page-qianxi .axis-score {
  color: #ffd2d7;
}

.axis-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  overflow: hidden;
}

.page-qianxi .axis-track {
  background: rgba(255, 255, 255, 0.08);
}

.axis-fill {
  position: absolute;
  inset: 0;
  width: 50%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(45, 114, 255, 0.92), rgba(107, 231, 255, 0.96));
}

.page-qianxi .axis-fill {
  background: linear-gradient(90deg, #ff7070, #ff5479);
}

.axis-caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
}

.result-card {
  display: grid;
  gap: 20px;
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.result-name {
  margin-top: 8px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 0.94;
}

.result-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 132px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.22)),
    linear-gradient(135deg, rgba(45, 114, 255, 0.16), rgba(107, 231, 255, 0.18));
  color: #214891;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
}

.page-qianxi .result-code {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(255, 105, 105, 0.16), rgba(255, 168, 174, 0.12));
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff0f2;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 18px;
}

.result-main,
.result-points {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.32);
}

.page-qianxi .result-main,
.page-qianxi .result-points {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.result-main {
  display: grid;
  gap: 18px;
}

.result-summary {
  font-size: 16px;
  line-height: 1.86;
}

.result-tags {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.result-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.44);
  font-size: 13px;
  font-weight: 800;
}

.page-qianxi .result-tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.result-points {
  display: grid;
  gap: 12px;
}

.result-point {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.page-qianxi .result-point {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.result-point span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.page-qianxi .result-point span {
  color: rgba(255, 240, 242, 0.66);
}

.result-point strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.72;
}

.copy-feedback {
  min-height: 20px;
  font-size: 13px;
}

.jump-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-section {
  display: grid;
  gap: 16px;
}

.type-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.type-grid-qianxi {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.type-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-soft);
  min-height: 210px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.type-card-qianxi {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.type-code {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: max-content;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(45, 114, 255, 0.12);
  color: #305ca6;
  font-size: 12px;
  font-weight: 900;
}

.page-qianxi .type-code {
  background: rgba(255, 106, 106, 0.14);
  color: #ffe1e4;
}

.type-name {
  font-size: 24px;
  line-height: 1.1;
}

.page-qianxi .type-name {
  color: #fff4f4;
}

.type-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.page-qianxi .type-note {
  color: rgba(244, 240, 243, 0.72);
}

.type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.type-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 800;
}

.page-qianxi .type-tags span {
  background: rgba(255, 255, 255, 0.08);
  color: #fff2f3;
}

.jump-card {
  display: grid;
  gap: 12px;
}

.jump-card h2 {
  font-size: 28px;
  line-height: 1.08;
}

.jump-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.74;
}

.page-qianxi .jump-card p:not(.eyebrow) {
  color: rgba(244, 240, 243, 0.72);
}

.qianxi-accent {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, rgba(255, 99, 99, 0.16), rgba(255, 188, 188, 0.08));
}

.lexicon-hero,
.lexicon-page {
  padding: 24px;
}

.lexicon-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.96fr);
  gap: 20px;
  align-items: stretch;
}

.spotlight-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(45, 114, 255, 0.12);
  color: #305ca6;
  font-size: 12px;
  font-weight: 900;
}

.page-qianxi .spotlight-chip {
  background: rgba(255, 106, 106, 0.14);
  color: #ffd6da;
}

#lexicon-spotlight {
  position: relative;
  z-index: 1;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
}

#lexicon-spotlight h2 {
  font-size: 30px;
  line-height: 1.02;
}

#lexicon-spotlight p {
  font-size: 15px;
  line-height: 1.78;
}

.spotlight-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.page-qianxi .spotlight-meta {
  color: rgba(244, 240, 243, 0.68);
}

.lexicon-tools {
  min-width: min(360px, 100%);
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  outline: none;
}

.search-input::placeholder {
  color: rgba(96, 112, 139, 0.72);
}

.search-input:focus {
  border-color: rgba(45, 114, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(107, 231, 255, 0.16);
}

.page-qianxi .search-input {
  background: rgba(255, 255, 255, 0.08);
  color: #f8f3f6;
  border-color: rgba(255, 255, 255, 0.12);
}

.page-qianxi .search-input::placeholder {
  color: rgba(244, 240, 243, 0.42);
}

.page-qianxi .search-input:focus {
  border-color: rgba(255, 124, 124, 0.36);
  box-shadow: 0 0 0 4px rgba(255, 106, 106, 0.12);
}

.filter-row {
  grid-template-columns: repeat(auto-fit, minmax(110px, max-content));
  margin-top: 18px;
}

.filter-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.32);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.filter-btn.active {
  background: linear-gradient(135deg, rgba(107, 231, 255, 0.28), rgba(45, 114, 255, 0.18));
  border-color: rgba(45, 114, 255, 0.24);
  color: #1d4f9d;
}

.page-qianxi .filter-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8f3f6;
}

.page-qianxi .filter-btn.active {
  background: rgba(255, 106, 106, 0.14);
  border-color: rgba(255, 106, 106, 0.3);
  color: #ffe6e9;
}

.lexicon-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.lexicon-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-soft);
  min-height: 224px;
  display: grid;
  gap: 12px;
}

.page-qianxi .lexicon-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.lexicon-card.is-warning {
  background:
    linear-gradient(145deg, rgba(255, 244, 240, 0.8), rgba(255, 222, 220, 0.34)),
    rgba(255, 255, 255, 0.24);
}

.lexicon-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.lexicon-head h3 {
  font-size: 28px;
  line-height: 1.02;
}

.page-qianxi .lexicon-head h3 {
  color: #fff2f3;
}

.lexicon-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: #335784;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.page-qianxi .lexicon-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #ffe1e4;
}

.lexicon-meaning {
  font-size: 15px;
  line-height: 1.76;
}

.page-qianxi .lexicon-meaning {
  color: rgba(248, 243, 246, 0.86);
}

.lexicon-flavor {
  font-size: 13px;
  line-height: 1.6;
}

.lexicon-tip {
  margin-top: auto;
  font-size: 13px;
  line-height: 1.65;
}

.empty-note {
  padding: 20px;
  border-radius: 20px;
  border: 1px dashed rgba(96, 112, 139, 0.28);
  color: var(--muted);
  text-align: center;
}

.page-qianxi .empty-note {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(244, 240, 243, 0.66);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass-panel,
  .glass-subpanel {
    background: rgba(255, 255, 255, 0.94);
  }

  .page-qianxi .glass-panel,
  .page-qianxi .glass-subpanel,
  .page-qianxi .qianxi-shell {
    background: rgba(24, 23, 30, 0.94);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1120px) {
  .hero-home,
  .hero-qianxi,
  .quiz-layout,
  .result-grid,
  .lexicon-hero {
    grid-template-columns: 1fr;
  }

  .jump-section,
  .type-grid,
  .lexicon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 20px, 100%);
    padding: 12px 0 32px;
  }

  .topbar,
  .hero,
  .quiz-card,
  .axis-card,
  .result-card,
  .lexicon-page,
  .lexicon-hero,
  .jump-card {
    padding: 18px;
  }

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

  .topnav,
  .hero-actions,
  .quiz-actions,
  .result-actions {
    width: 100%;
  }

  .topnav > *,
  .hero-actions > *,
  .quiz-actions > *,
  .result-actions > * {
    flex: 1 1 auto;
  }

  .hero h1,
  .lexicon-hero h1 {
    font-size: clamp(32px, 12vw, 48px);
  }

  .hero-visual,
  .poster-stage {
    min-height: 320px;
  }

  .poster-main {
    width: min(100%, 320px);
    height: 280px;
    left: auto;
    right: 0;
  }

  .poster-a {
    width: 122px;
    top: 10px;
  }

  .poster-b {
    width: 112px;
    left: 16px;
    bottom: 8px;
  }

  .poster-c {
    width: 122px;
    right: 6px;
  }

  .question-title {
    font-size: 30px;
  }

  .result-head {
    flex-direction: column;
    align-items: start;
  }

  .result-code {
    min-width: 112px;
    min-height: 112px;
  }

  .jump-section,
  .type-grid,
  .lexicon-grid,
  .filter-row {
    grid-template-columns: 1fr;
  }

  .lexicon-tools {
    min-width: 100%;
  }
}
