@charset "UTF-8";
/* =========================================================
   大话西游2 · 账号中心 主题样式
   夜长安 · 鎏金 · 祥云
   ========================================================= */

:root {
  --ink-900: #0a0713;
  --ink-800: #120c20;
  --ink-700: #1a1130;
  --ink-600: #241741;
  --ink-500: #33215a;

  --gold-100: #fff4d2;
  --gold-200: #f7e0a4;
  --gold-300: #e8c37a;
  --gold-400: #d4a04a;
  --gold-500: #a87a28;
  --gold-600: #6d4d14;

  --crimson: #c0392b;
  --crimson-soft: #e0574a;
  --jade: #5fd3c4;
  --jade-soft: #9df0e6;
  --violet: #8b5cf6;
  --violet-soft: #b98cff;

  --text: #efe6d4;
  --text-dim: #b6a894;
  --text-mute: #857a6c;

  --line: rgba(232, 195, 122, 0.22);
  --line-strong: rgba(232, 195, 122, 0.45);
  --glass: rgba(18, 12, 32, 0.72);
  --glass-2: rgba(26, 17, 48, 0.55);

  --radius-s: 4px;
  --radius: 8px;
  --radius-l: 14px;

  --shadow-deep: 0 24px 60px rgba(0, 0, 0, 0.65);
  --glow-gold: 0 0 18px rgba(232, 195, 122, 0.35);

  --font-title: "STKaiti", "KaiTi", "楷体", "FZKai-Z03S", "Noto Serif SC", serif;
  --font-body: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-num: "Consolas", "Courier New", monospace;
}

* { box-sizing: border-box; }

/* display 类工具类（如 .form{display:grid}）会盖掉浏览器默认的 [hidden]，
   必须显式声明，否则 hidden 属性形同虚设 */
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ink-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============ 背景层 ============ */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(139, 92, 246, 0.22), transparent 62%),
    radial-gradient(900px 600px at 12% 108%, rgba(192, 57, 43, 0.16), transparent 60%),
    radial-gradient(900px 600px at 92% 96%, rgba(95, 211, 196, 0.10), transparent 60%),
    linear-gradient(180deg, #0d0918 0%, #0a0713 45%, #100a1c 100%);
}

.bg__moon {
  position: absolute;
  top: 6vh;
  right: 9vw;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #fff9e4, #f4dfae 42%, #d8b877 66%, rgba(216, 184, 119, 0.12) 74%, transparent 76%);
  box-shadow: 0 0 70px rgba(244, 223, 174, 0.18), 0 0 160px rgba(244, 223, 174, 0.08);
  opacity: 0.42;
  animation: float 14s ease-in-out infinite;
}

.bg__moon::after {
  content: "";
  position: absolute;
  inset: 18% 6% 8% 42%;
  border-radius: 50%;
  background: rgba(180, 148, 92, 0.14);
  filter: blur(2px);
}

.bg__stars, .bg__motes {
  position: absolute;
  inset: 0;
}

.bg__stars i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.5;
  animation: twinkle 4s ease-in-out infinite;
}

.bg__motes i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-200);
  box-shadow: 0 0 8px rgba(247, 224, 164, 0.8);
  opacity: 0;
  animation: rise linear infinite;
}

.bg__clouds {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 4vh;
  height: 46vh;
  background-repeat: repeat-x;
  background-size: 1200px 260px;
  background-position: center bottom;
  opacity: 0.32;
  animation: drift 68s linear infinite;
  pointer-events: none;
}

.bg__clouds--back {
  bottom: 12vh;
  height: 40vh;
  opacity: 0.18;
  filter: blur(2px);
  animation-duration: 108s;
  animation-direction: reverse;
}

.bg__mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34vh;
  background-repeat: repeat-x;
  background-size: 1600px 100%;
  background-position: bottom center;
  opacity: 0.9;
  pointer-events: none;
}

.bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.72) 100%);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50% { opacity: 0.9; transform: scale(1.25); }
}

@keyframes rise {
  0% { opacity: 0; transform: translateY(0) translateX(0); }
  12% { opacity: 0.75; }
  88% { opacity: 0.35; }
  100% { opacity: 0; transform: translateY(-88vh) translateX(28px); }
}

@keyframes drift {
  from { background-position-x: 0; }
  to { background-position-x: -1200px; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(232, 195, 122, 0); }
  50% { box-shadow: 0 0 26px rgba(232, 195, 122, 0.35); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

/* ============ 布局 ============ */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px clamp(16px, 4vw, 56px) 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand__seal {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-family: var(--font-title);
  font-size: 24px;
  color: #2a1405;
  background: linear-gradient(145deg, var(--gold-200), var(--gold-400) 55%, var(--gold-500));
  box-shadow: 0 6px 18px rgba(168, 122, 40, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.brand__name {
  font-family: var(--font-title);
  font-size: 22px;
  letter-spacing: 3px;
  background: linear-gradient(180deg, var(--gold-100), var(--gold-300) 60%, var(--gold-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-mute);
  margin-top: 2px;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.linkbtn {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.linkbtn:hover {
  color: var(--gold-200);
  border-color: var(--line);
  background: rgba(232, 195, 122, 0.07);
}

.linkbtn.is-active {
  color: var(--gold-200);
  border-color: var(--line-strong);
  background: rgba(232, 195, 122, 0.11);
}

.stage {
  flex: 1;
  display: flex;
  /* safe center：内容比容器高时自动退回 flex-start，
     避免 flex 居中把内容顶到滚动区之外导致上半段永远滚不到 */
  align-items: safe center;
  justify-content: center;
  padding: 26px 0 10px;
}

@supports not (align-items: safe center) {
  .stage { align-items: flex-start; }
}

.shell {
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.shell--split {
  max-width: 1120px;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: stretch;
}
/* 小屏时月亮让位给内容 */
@media (max-width: 900px) {
  .bg__moon {
    width: 104px;
    height: 104px;
    top: 2vh;
    right: 3vw;
    opacity: 0.3;
  }
}

@media (max-width: 880px) {
  .shell--split { grid-template-columns: 1fr; }
  .aside { order: -1; }
}

/* ============ 左侧展示面板 ============ */

.aside {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(51, 33, 90, 0.6), rgba(12, 8, 22, 0.82)),
    var(--glass);
  box-shadow: var(--shadow-deep);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  min-height: 260px;
}

.aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 195, 122, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 195, 122, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 30% 30%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 30% 30%, #000 10%, transparent 72%);
  pointer-events: none;
}

.aside > * { position: relative; }

.aside__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold-300);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(232, 195, 122, 0.08);
}

.aside__kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 10px var(--jade);
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.aside__title {
  font-family: var(--font-title);
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.24;
  margin: 0;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #fff8e6 0%, var(--gold-200) 42%, var(--gold-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 42px rgba(232, 195, 122, 0.16);
}

.aside__title em {
  font-style: normal;
  color: var(--crimson-soft);
  -webkit-text-fill-color: var(--crimson-soft);
}

.aside__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--text-dim);
  max-width: 44ch;
}

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

.feature__item {
  padding: 14px 14px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(10, 7, 19, 0.5);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.feature__item:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgba(26, 17, 48, 0.6);
}

.feature__icon {
  font-size: 19px;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.feature__name {
  font-family: var(--font-title);
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--gold-200);
  margin-bottom: 4px;
}

.feature__note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-mute);
}

.quote {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--gold-500);
  font-family: var(--font-title);
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-dim);
}

.quote span {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 4px;
}

/* ============ 表单卡片 ============ */

.card {
  position: relative;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 17, 48, 0.86), rgba(12, 8, 22, 0.9));
  box-shadow: var(--shadow-deep);
  padding: clamp(24px, 3.4vw, 38px);
  backdrop-filter: blur(8px);
}

.card__corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold-400);
  opacity: 0.55;
}

.card__corner--tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.card__corner--tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.card__corner--bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.card__corner--br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.card__head {
  margin-bottom: 22px;
}

.card__eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold-500);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card__title {
  font-family: var(--font-title);
  font-size: 27px;
  letter-spacing: 3px;
  margin: 0 0 8px;
  color: var(--gold-100);
}

.card__sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-mute);
}

/* ============ 步骤条 ============ */

.steps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}

.steps__item {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.steps__dot {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-family: var(--font-num);
  border: 1px solid var(--line);
  background: rgba(10, 7, 19, 0.6);
  color: var(--text-mute);
  transition: all 0.3s ease;
}

.steps__label {
  font-size: 12px;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.steps__bar {
  height: 1px;
  flex: 1;
  min-width: 14px;
  background: var(--line);
}

.steps__item.is-active .steps__dot {
  border-color: var(--gold-400);
  color: #2a1405;
  background: linear-gradient(145deg, var(--gold-200), var(--gold-400));
  box-shadow: var(--glow-gold);
}

.steps__item.is-active .steps__label { color: var(--gold-200); }

.steps__item.is-done .steps__dot {
  border-color: rgba(95, 211, 196, 0.5);
  color: var(--jade);
  background: rgba(95, 211, 196, 0.1);
}

.steps__item.is-done .steps__label { color: var(--jade-soft); }

@media (max-width: 560px) {
  .steps__label { display: none; }
}

/* ============ 表单 ============ */

.form { display: grid; gap: 16px; }

.form--two {
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}

.form__full { grid-column: 1 / -1; }

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

.field { display: grid; gap: 7px; }

.field__label {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.field__label .req {
  color: var(--crimson-soft);
  font-size: 12px;
}

.field__label .opt {
  color: var(--text-mute);
  font-size: 12px;
}

.control {
  position: relative;
  display: flex;
  align-items: center;
}

.control__icon {
  position: absolute;
  left: 13px;
  font-size: 14px;
  opacity: 0.6;
  pointer-events: none;
}

.input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(8, 5, 15, 0.62);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  outline: none;
}

.control__icon ~ .input { padding-left: 38px; }

.input::placeholder { color: #5f5566; }

.input:hover { border-color: rgba(232, 195, 122, 0.34); }

.input:focus {
  border-color: var(--gold-400);
  background: rgba(18, 11, 32, 0.82);
  box-shadow: 0 0 0 3px rgba(232, 195, 122, 0.12);
}

.input[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.input--num { font-family: var(--font-num); letter-spacing: 1px; }

.input.is-error { border-color: var(--crimson-soft); box-shadow: 0 0 0 3px rgba(224, 87, 74, 0.14); }
.input.is-ok { border-color: rgba(95, 211, 196, 0.55); }

.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; min-width: 0; }

.btn-ghost {
  flex: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gold-200);
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(232, 195, 122, 0.08);
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.btn-ghost:hover { background: rgba(232, 195, 122, 0.16); color: var(--gold-100); }
.btn-ghost:disabled { opacity: 0.45; cursor: not-allowed; }

.pw-toggle {
  position: absolute;
  right: 8px;
  min-width: 44px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-mute);
  font-size: 12px;
  font-family: var(--font-body);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.pw-toggle:hover { color: var(--gold-200); background: rgba(232, 195, 122, 0.09); }

.error {
  font-size: 12px;
  color: var(--crimson-soft);
  min-height: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hint {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.7;
}

/* 密码强度 */
.strength { display: grid; gap: 6px; }

.strength__bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.strength__bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(232, 195, 122, 0.14);
  transition: background 0.3s ease;
}

.strength__text {
  font-size: 11px;
  color: var(--text-mute);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.strength__text b { font-weight: 400; color: var(--gold-300); }

/* 验证码 */
.captcha {
  flex: none;
  width: 118px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, #1b1330, #0d0819);
  cursor: pointer;
  display: block;
  user-select: none;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

/* 选择卡 */
.picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
}

.picker__item {
  position: relative;
  text-align: center;
  padding: 12px 8px 11px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(10, 7, 19, 0.55);
  cursor: pointer;
  transition: all 0.22s ease;
  user-select: none;
}

.picker__item:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.picker__item.is-on {
  border-color: var(--gold-400);
  background: rgba(232, 195, 122, 0.12);
  box-shadow: 0 0 0 1px rgba(232, 195, 122, 0.3), 0 8px 20px rgba(168, 122, 40, 0.18);
}

.picker__item.is-on::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 7px;
  font-size: 11px;
  color: var(--gold-200);
}

.picker__name {
  display: block;
  font-family: var(--font-title);
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--gold-200);
}

.picker__note {
  display: block;
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 3px;
}

select.input {
  appearance: none;
  cursor: pointer;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold-400) 50%),
    linear-gradient(135deg, var(--gold-400) 50%, transparent 50%);
  background-position: calc(100% - 19px) 19px, calc(100% - 14px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

select.input option {
  background: #140d24;
  color: var(--text);
}

/* 复选 */
.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}

.check input { display: none; }

.check__box {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 5, 15, 0.6);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: transparent;
  transition: all 0.2s ease;
}

.check input:checked + .check__box {
  background: linear-gradient(145deg, var(--gold-200), var(--gold-400));
  border-color: var(--gold-400);
  color: #2a1405;
}

.check a, .link {
  color: var(--gold-300);
  text-decoration: none;
  border-bottom: 1px dashed rgba(232, 195, 122, 0.4);
  transition: color 0.2s ease;
}

.check a:hover, .link:hover { color: var(--gold-100); }

/* ============ 按钮 ============ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  font-family: var(--font-title);
  font-size: 17px;
  letter-spacing: 6px;
  text-indent: 6px;
  color: #2b1503;
  padding: 13px 24px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(145deg, #ffeec0 0%, var(--gold-300) 38%, var(--gold-400) 70%, var(--gold-500) 100%);
  box-shadow: 0 10px 26px rgba(168, 122, 40, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transition: left 0.6s ease;
}

.btn:hover::after { left: 130%; }

.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(168, 122, 40, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn:active { transform: translateY(0); }

.btn:disabled {
  filter: grayscale(0.6) brightness(0.7);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--wide { width: auto; min-width: 168px; }

.btn--jade {
  color: #04211d;
  background: linear-gradient(145deg, var(--jade-soft), var(--jade) 45%, #34a99a 100%);
  box-shadow: 0 10px 26px rgba(95, 211, 196, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn--ghost {
  color: var(--gold-200);
  background: rgba(232, 195, 122, 0.07);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 2px;
  text-indent: 2px;
}

.btn--ghost:hover { background: rgba(232, 195, 122, 0.14); }

.btn.is-shake { animation: shake 0.42s ease; }

.spin {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(43, 21, 3, 0.28);
  border-top-color: #2b1503;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.actions--wrap { flex-wrap: wrap; }

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 12.5px;
  line-height: 1.75;
  border: 1px solid var(--line);
  background: rgba(232, 195, 122, 0.07);
  color: var(--text-dim);
}

.alert__icon { flex: none; }

.alert--jade { border-color: rgba(95, 211, 196, 0.3); background: rgba(95, 211, 196, 0.08); color: var(--jade-soft); }
.alert--warn { border-color: rgba(192, 57, 43, 0.36); background: rgba(192, 57, 43, 0.12); color: #f0a49b; }

/* 密保三问 */
.security {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: rgba(10, 7, 19, 0.4);
}

.security__q {
  display: grid;
  gap: 7px;
}

.security__q label {
  font-size: 13px;
  color: var(--gold-200);
}

.security__q .input { background: rgba(8, 5, 15, 0.75); }

/* 成功页 */
.result {
  text-align: center;
  padding: 16px 0 4px;
}

.result__seal {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  border: 2px solid var(--gold-400);
  background: radial-gradient(circle, rgba(232, 195, 122, 0.2), transparent 70%);
  box-shadow: var(--glow-gold);
  animation: pop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes pop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ticket {
  margin: 20px 0 22px;
  text-align: left;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(8, 5, 15, 0.55);
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}

.ticket__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: var(--text-dim);
  border-bottom: 1px dashed rgba(232, 195, 122, 0.16);
  padding-bottom: 9px;
}

.ticket__row:last-child { border-bottom: 0; padding-bottom: 0; }

.ticket__row b {
  font-family: var(--font-num);
  font-weight: 400;
  color: var(--gold-200);
  letter-spacing: 0.5px;
}

/* 协议弹层 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(5, 3, 10, 0.78);
  backdrop-filter: blur(4px);
}

.modal.is-open { display: grid; }

.modal__box {
  width: 100%;
  max-width: 640px;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-l);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #1b1230, #0e0919);
  box-shadow: var(--shadow-deep);
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.modal__title {
  font-family: var(--font-title);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--gold-200);
  margin: 0;
}

.modal__close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
}

.modal__close:hover { color: var(--crimson-soft); border-color: rgba(224, 87, 74, 0.5); }

.modal__body {
  padding: 20px 22px 24px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 2;
  color: var(--text-dim);
}

.modal__body h4 {
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--gold-200);
  margin: 18px 0 6px;
  letter-spacing: 1px;
}

.modal__body h4:first-child { margin-top: 0; }

.modal__body ol, .modal__body ul { margin: 0; padding-left: 22px; }

/* 底部 */
.foot {
  margin-top: 24px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 1px;
  color: #5b5266;
  line-height: 2;
}

.foot span { color: var(--gold-500); }

/* Toast */
.toast-wrap {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: grid;
  gap: 10px;
  width: max-content;
  max-width: 90vw;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(20, 13, 36, 0.95);
  box-shadow: var(--shadow-deep);
  color: var(--text);
  animation: toastIn 0.3s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}

.toast.is-out { animation: toastOut 0.28s ease forwards; }
.toast--ok { border-color: rgba(95, 211, 196, 0.5); color: var(--jade-soft); }
.toast--err { border-color: rgba(224, 87, 74, 0.5); color: #f0a49b; }
.toast--warn { border-color: rgba(232, 195, 122, 0.5); color: var(--gold-200); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(-10px) scale(0.97); }
}

/* ============ 首页入口 ============ */

.hero {
  text-align: center;
  padding: 20px 0 34px;
}

.hero .aside__kicker {
  margin-bottom: 18px;
}

.hero .aside__desc {
  margin: 18px auto 0;
}

.entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 16px;
}

.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 22px 22px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(51, 33, 90, 0.5), rgba(12, 8, 22, 0.86));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.3, 1),
              border-color 0.28s ease, box-shadow 0.28s ease;
}

.entry::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at 50% -20%, rgba(232, 195, 122, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.entry > * { position: relative; }

.entry:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.55), var(--glow-gold);
}

.entry:hover::before { opacity: 1; }

.entry__badge {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: 14px;
  border: 1px solid currentColor;
}

.entry__badge--gold { color: var(--gold-300); background: rgba(232, 195, 122, 0.1); }
.entry__badge--jade { color: var(--jade); background: rgba(95, 211, 196, 0.1); }
.entry__badge--violet { color: var(--violet-soft); background: rgba(185, 140, 255, 0.1); }

.entry__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--gold-200);
  border: 1px solid var(--line);
  background: rgba(8, 5, 15, 0.6);
  transition: color 0.28s ease, border-color 0.28s ease;
}

.entry:hover .entry__icon {
  color: var(--gold-100);
  border-color: var(--line-strong);
}

.entry__title {
  font-family: var(--font-title);
  font-size: 23px;
  letter-spacing: 3px;
  color: var(--gold-100);
}

.entry__desc {
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-dim);
  flex: 1;
}

.entry__more {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--gold-400);
  transition: color 0.28s ease, transform 0.28s ease;
}

.entry:hover .entry__more {
  color: var(--gold-100);
  transform: translateX(4px);
}

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.notes strong { color: var(--gold-200); font-weight: 400; }

/* 杂项 */
.sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--text-mute);
  font-size: 11px;
}

.sep::before, .sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.muted { color: var(--text-mute); }
.jade { color: var(--jade-soft); }
.gold { color: var(--gold-200); }

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