/* ==========================================================================
   问卷页
   ========================================================================== */

.survey-page {
  background: var(--paper);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.survey-shell {
  display: grid;
  grid-template-columns: minmax(340px, 40%) minmax(0, 1fr);
  min-height: 100vh;
  background: linear-gradient(90deg, #10332d 0 40%, transparent 40%);
}

.survey-shell[hidden] {
  display: none;
}

/* 左侧品牌区 ------------------------------------------------------------- */

.brand-panel {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 40px 44px 32px;
  overflow: hidden;
  color: #f4eddd;
  background:
    radial-gradient(120% 80% at 15% 0%, #1c4a40 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 100%, #0b2823 0%, transparent 60%),
    #10332d;
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(244, 237, 221, 0.14) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  opacity: 0.45;
  pointer-events: none;
}

.brand-panel::after {
  content: "";
  position: absolute;
  right: -190px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(244, 237, 221, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(244, 237, 221, 0.035),
    0 0 0 104px rgba(244, 237, 221, 0.025),
    0 0 0 156px rgba(244, 237, 221, 0.018);
  pointer-events: none;
}

.brand-top,
.brand-main,
.brand-stats,
.brand-foot {
  position: relative;
  z-index: 1;
}

.brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-mark .mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(244, 237, 221, 0.35);
  border-radius: 50%;
}

.brand-mark .mark::before,
.brand-mark .mark::after {
  content: "";
  position: absolute;
  background: var(--gold);
}

.brand-mark .mark::before {
  width: 1px;
  height: 16px;
}

.brand-mark .mark::after {
  width: 16px;
  height: 1px;
}

.brand-mark .mark i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  z-index: 1;
}

.brand-index {
  color: rgba(244, 237, 221, 0.45);
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.brand-main {
  margin-top: auto;
  padding-top: 48px;
}

.brand-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: rgba(244, 237, 221, 0.58);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.brand-panel h1 {
  max-width: 8em;
  font-family: var(--font-serif);
  font-size: clamp(40px, 4.1vw, 60px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.brand-panel h1 em {
  position: relative;
  color: #e8c98f;
  font-style: normal;
}

.brand-panel h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 201, 143, 0.75), transparent);
}

.brand-sub {
  max-width: 27em;
  margin-top: 24px;
  color: rgba(244, 237, 221, 0.62);
  font-size: 13.5px;
  line-height: 1.9;
}

.brand-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(244, 237, 221, 0.16);
}

.brand-stats div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-stats strong {
  color: #f4eddd;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.brand-stats span {
  color: rgba(244, 237, 221, 0.46);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.brand-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  color: rgba(244, 237, 221, 0.42);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.brand-foot .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

/* 右侧表单区 ------------------------------------------------------------- */

.form-panel {
  position: relative;
  min-width: 0;
  padding: 34px clamp(22px, 5vw, 72px) 40px;
  background:
    radial-gradient(60% 40% at 80% 0%, rgba(255, 255, 255, 0.8), transparent 70%),
    linear-gradient(180deg, #f8f4ec 0%, var(--paper) 55%, #f2ecdf 100%);
}

.form-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.form-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  margin-bottom: 38px;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #e4d2aa;
  border-radius: 999px;
  background: #fbf3e1;
  color: #8a6524;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.mode-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.form-top-note {
  color: var(--ink-mute);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.admin-entry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  transition: color 0.2s;
}

.admin-entry:hover {
  color: var(--accent);
}

.admin-entry svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s var(--ease);
}

.admin-entry:hover svg {
  transform: translateX(2px);
}

/* 介绍 ------------------------------------------------------------------ */

.intro {
  margin-bottom: 30px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.intro > p {
  max-width: 36em;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  color: var(--ink-mute);
  font-size: 12px;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-row svg {
  width: 14px;
  height: 14px;
  color: var(--teal-mid);
}

/* 卡片 ------------------------------------------------------------------ */

.card {
  position: relative;
  margin-bottom: 18px;
  padding: 27px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow-sm), var(--shadow-md);
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 22px;
}

.step-no {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.card-head h3 {
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.5;
}

.card-head p {
  margin-top: 3px;
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.6;
}

.req-pill {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* 定位面板 --------------------------------------------------------------- */

.geo-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 15px;
  border: 1px solid #e3dccd;
  border-radius: 14px;
  background: #f8f3e8;
  transition: background 0.25s, border-color 0.25s;
}

.geo-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fffdf8;
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px rgba(22, 43, 39, 0.06);
}

.geo-icon svg {
  width: 17px;
  height: 17px;
}

.geo-copy {
  min-width: 0;
  flex: 1;
}

.geo-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.geo-desc {
  margin-top: 2px;
  color: var(--ink-mute);
  font-size: 11.5px;
  line-height: 1.65;
}

.geo-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-top: 5px;
}

.geo-actions .btn-text {
  min-height: 26px;
  padding: 0;
  font-size: 11.5px;
  font-weight: 600;
}

.geo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-mute);
  flex: 0 0 auto;
}

.geo-box[data-state="locating"] {
  border-color: #cfdcd4;
  background: #f0f6f1;
}

.geo-box[data-state="locating"] .geo-dot {
  background: var(--ok);
  animation: pulse 1.2s infinite;
}

.geo-box[data-state="success"] {
  border-color: #cfe2d6;
  background: #edf6f0;
}

.geo-box[data-state="success"] .geo-dot {
  background: var(--ok);
}

.geo-box[data-state="success"] .geo-icon {
  color: var(--ok);
}

.geo-box[data-state="denied"],
.geo-box[data-state="timeout"],
.geo-box[data-state="unavailable"],
.geo-box[data-state="error"] {
  border-color: #e8d3c2;
  background: #fbf2e9;
}

.geo-box[data-state="denied"] .geo-dot,
.geo-box[data-state="timeout"] .geo-dot,
.geo-box[data-state="unavailable"] .geo-dot,
.geo-box[data-state="error"] .geo-dot {
  background: var(--warn);
}

.geo-box[data-state="denied"] .geo-icon,
.geo-box[data-state="timeout"] .geo-icon,
.geo-box[data-state="unavailable"] .geo-icon,
.geo-box[data-state="error"] .geo-icon {
  color: var(--warn);
}

.geo-box[data-state="insecure"] {
  border-color: #e4d2aa;
  background: #fbf5e5;
}

.geo-box[data-state="insecure"] .geo-dot {
  background: var(--gold);
}

.geo-tips {
  margin-top: 6px;
  padding: 10px 12px;
  border-left: 2px solid #dfc79a;
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.55);
  color: #756449;
  font-size: 11.5px;
  line-height: 1.75;
}

.geo-tips[hidden] {
  display: none;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(47, 125, 95, 0.35);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(47, 125, 95, 0);
  }
}

/* 题目 ------------------------------------------------------------------ */

.questions-card .card-head {
  margin-bottom: 8px;
}

.questions-mount {
  margin-top: 2px;
}

.q {
  padding: 24px 0 22px;
  border-top: 1px dashed var(--line);
}

.q:first-child {
  border-top: 0;
  padding-top: 12px;
}

.q-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.q-index {
  flex: 0 0 auto;
  padding-top: 1px;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.q-title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.65;
}

.q-required {
  margin-left: 4px;
  color: var(--accent);
  font-weight: 700;
}

.q-desc {
  margin-top: 3px;
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.65;
}

.q-body {
  margin-top: 13px;
  padding-left: 28px;
}

.q-error {
  display: none;
  margin-top: 8px;
  color: var(--danger);
  font-size: 11.5px;
}

.q.has-error .q-error {
  display: block;
}

.q.has-error .choice,
.q.has-error .input,
.q.has-error .textarea {
  border-color: #dca999;
}

.choices {
  display: grid;
  gap: 9px;
}

.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.choice:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice .control {
  position: relative;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border: 1.5px solid #b9b2a3;
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.18s, background 0.18s;
}

.choice.is-multi .control {
  border-radius: 5px;
}

.choice .control::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s var(--ease);
}

.choice:not(.is-multi) .control::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0.4);
}

.choice.is-multi .control::after {
  width: 8px;
  height: 4px;
  margin-top: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0.6);
}

.choice input:checked + .control {
  border-color: var(--teal-mid);
  background: var(--teal-mid);
}

.choice input:checked + .control::after {
  opacity: 1;
  transform: scale(1);
}

.choice.is-multi input:checked + .control::after {
  transform: rotate(-45deg) scale(1);
}

.choice input:checked ~ .choice-label {
  color: var(--teal);
  font-weight: 600;
}

.choice:has(input:checked) {
  border-color: #a9c7ba;
  background: #f2f8f4;
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.choice-label {
  font-size: 13.5px;
  line-height: 1.65;
}

.q .input,
.q .textarea {
  background: #fff;
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rating-row label {
  position: relative;
}

.rating-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rating-row span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.rating-row span:hover {
  border-color: var(--line-strong);
  color: var(--teal);
}

.rating-row input:checked + span {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.rating-row input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rating-scale {
  display: flex;
  justify-content: space-between;
  max-width: 260px;
  margin-top: 6px;
  color: var(--ink-mute);
  font-size: 10.5px;
}

.empty-state {
  padding: 30px 10px 18px;
  text-align: center;
}

.empty-state .empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  color: var(--ink-mute);
}

.empty-state .empty-icon svg {
  width: 20px;
  height: 20px;
}

.empty-state h4 {
  font-size: 14px;
  font-weight: 600;
}

.empty-state p {
  max-width: 30em;
  margin: 5px auto 0;
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.7;
}

/* 提交区 ---------------------------------------------------------------- */

.submit-area {
  margin-top: 24px;
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-width: 230px;
  min-height: 56px;
  padding: 0 20px 0 24px;
  border: 0;
  border-radius: 14px;
  background: var(--teal);
  color: #fdf8ec;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 16px 30px -18px rgba(18, 59, 53, 0.75);
  transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}

.btn-submit:hover:not(:disabled) {
  background: var(--teal-mid);
  transform: translateY(-1px);
  box-shadow: 0 20px 34px -18px rgba(18, 59, 53, 0.65);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-submit .arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(253, 248, 236, 0.14);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.btn-submit:hover .arrow {
  transform: translateX(2px);
  background: rgba(253, 248, 236, 0.22);
}

.btn-submit .arrow svg {
  width: 14px;
  height: 14px;
}

.submit-hint {
  color: var(--ink-mute);
  font-size: 11.5px;
  line-height: 1.6;
}

.form-error {
  display: none;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  background: #fae9e4;
  color: var(--danger);
  font-size: 12.5px;
}

.form-error.is-visible {
  display: block;
}

.privacy-note {
  margin-top: 14px;
  color: var(--ink-mute);
  font-size: 11px;
  line-height: 1.75;
}

.site-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(201, 191, 171, 0.5);
  color: var(--ink-mute);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.site-foot a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-foot a:hover {
  color: var(--accent);
}

/* 成功页 ---------------------------------------------------------------- */

.success-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 26px;
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(255, 255, 255, 0.9), transparent 70%),
    linear-gradient(180deg, #f8f4ec, var(--paper));
}

.success-screen[hidden] {
  display: none;
}

.success-card {
  width: min(560px, 100%);
  padding: 48px 42px 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.success-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-mid);
}

.success-mark::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(47, 125, 95, 0.25);
  border-radius: 50%;
  animation: success-ring 0.9s var(--ease) both;
}

.success-mark svg {
  width: 32px;
  height: 32px;
  animation: pop-in 0.4s 0.15s var(--ease) both;
}

@keyframes pop-in {
  from {
    transform: scale(0.55);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes success-ring {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-kicker {
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.success-card h2 {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
}

.success-card > p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

.response-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.response-code strong {
  color: var(--teal);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.1em;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

/* 响应式 ---------------------------------------------------------------- */

@media (max-width: 1040px) {
  .survey-shell {
    grid-template-columns: 1fr;
    background: none;
  }

  .brand-panel {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 24px 24px 28px;
  }

  .brand-panel::after {
    right: -230px;
    bottom: -330px;
  }

  .brand-main {
    margin-top: 34px;
    padding-top: 0;
  }

  .brand-eyebrow {
    margin-bottom: 14px;
  }

  .brand-panel h1 {
    max-width: none;
    font-size: clamp(32px, 8vw, 44px);
  }

  .brand-sub {
    max-width: 34em;
    margin-top: 14px;
    font-size: 12.5px;
  }

  .brand-stats {
    display: none;
  }

  .brand-foot {
    margin-top: 22px;
  }

  .form-panel {
    padding: 24px 20px 34px;
  }

  .form-top {
    margin-bottom: 26px;
  }
}

@media (max-width: 620px) {
  .brand-panel {
    padding: 20px 18px 24px;
  }

  .brand-index {
    display: none;
  }

  .brand-panel h1 {
    font-size: 31px;
    line-height: 1.25;
  }

  .brand-sub {
    display: none;
  }

  .brand-foot {
    margin-top: 16px;
    font-size: 9.5px;
  }

  .form-panel {
    padding: 18px 14px 28px;
  }

  .form-top {
    margin-bottom: 20px;
  }

  .intro h2 {
    font-size: 28px;
  }

  .intro > p {
    font-size: 13px;
  }

  .card {
    padding: 21px 18px;
    border-radius: 18px;
  }

  .select-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card-head {
    gap: 10px;
    margin-bottom: 18px;
  }

  .card-head h3 {
    font-size: 15.5px;
  }

  .req-pill {
    display: none;
  }

  .q-body {
    padding-left: 0;
    margin-top: 11px;
  }

  .submit-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-submit {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }

  .submit-hint {
    text-align: center;
  }

  .success-card {
    padding: 38px 22px 30px;
  }

  .success-card h2 {
    font-size: 28px;
  }

  .success-actions {
    flex-direction: column;
  }

  .site-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* 题库代码入口 ---------------------------------------------------------- */

.bank-gate {
  position: relative;
  margin-bottom: 18px;
  padding: 30px 30px 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(232, 201, 143, 0.18), transparent 60%),
    rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-sm), var(--shadow-md);
}

.bank-gate::after {
  content: "";
  position: absolute;
  right: -54px;
  top: -54px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(185, 143, 69, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(185, 143, 69, 0.05);
  pointer-events: none;
}

.gate-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.gate-head .eyebrow {
  margin-bottom: 7px;
}

.gate-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid #e3d3ad;
  border-radius: 50%;
  background: #fbf3e1;
  color: var(--gold);
}

.gate-icon svg {
  width: 17px;
  height: 17px;
}

.bank-gate h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
}

.gate-lead {
  max-width: 36em;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.gate-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.gate-input {
  flex: 1;
  height: 52px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gate-input::placeholder {
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.gate-btn {
  flex: 0 0 auto;
  min-width: 132px;
  min-height: 52px;
  border-radius: 12px;
}

.gate-error {
  display: none;
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 8px;
  background: #fae9e4;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.6;
}

.gate-error.is-visible {
  display: block;
}

.gate-hint {
  margin-top: 12px;
  color: var(--ink-mute);
  font-size: 10.5px;
}

.active-bank {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 1px dashed #d8c8a7;
  border-radius: 11px;
  background: #fbf6ea;
}

.active-bank-label {
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.active-bank strong {
  color: var(--teal);
  font-size: 12.5px;
}

.active-bank code {
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(185, 143, 69, 0.12);
  color: #8a6524;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.active-bank-switch {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}

.active-bank-switch:hover {
  color: var(--accent-dark);
}

@media (max-width: 620px) {
  .bank-gate {
    padding: 22px 18px 20px;
  }

  .bank-gate h3 {
    font-size: 22px;
  }

  .gate-form {
    flex-direction: column;
  }

  .gate-btn {
    width: 100%;
  }

  .active-bank-switch {
    margin-left: 0;
  }
}
