/* ==========================================================================
   取号 / 接码平台 · 共用底色与组件
   ========================================================================== */
:root {
  --paper: #f4ecda;
  --paper-2: #ebe0c8;
  --paper-3: #fffaf0;
  --ink: #241f19;
  --ink-soft: #5d5447;
  --line: #c9b58e;
  --line-soft: rgba(122, 100, 68, 0.22);
  --cinnabar: #9d2b25;
  --cinnabar-deep: #7c1f1b;
  --gold: #a9853f;
  --jade: #476b57;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", "楷体", var(--serif);
  --mono: "Courier New", "Consolas", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--serif);
  color: var(--ink);
  background-color: #efe6d2;
  -webkit-font-smoothing: antialiased;
}

body.page-take,
body.page-login {
  background-image:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.6), transparent 44%),
    radial-gradient(circle at 84% 90%, rgba(157, 118, 60, 0.14), transparent 48%),
    repeating-linear-gradient(90deg, rgba(120, 95, 60, 0.05) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(0deg, rgba(120, 95, 60, 0.04) 0 1px, transparent 1px 7px);
}

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

button, input { font: inherit; color: inherit; }

a { color: inherit; }

button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 2px;
}

.btn {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-align: center;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

.btn.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #f8f0de;
}

.btn.primary:hover {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #fff6ea;
}

.btn.ghost { font-size: 13px; padding: 7px 14px; }

.btn:disabled,
.btn[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
}

.btn.wide { width: 100%; }

.hint {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.muted { color: var(--ink-soft); font-size: 14px; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  word-break: break-all;
}

/* ==========================================================================
   登录页
   ========================================================================== */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.login-card {
  width: min(392px, 100%);
  padding: 42px 38px 32px;
  background: rgba(255, 251, 241, 0.86);
  border: 1px solid var(--line);
  position: relative;
  text-align: center;
  box-shadow: 0 24px 60px rgba(90, 70, 40, 0.16);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}

.login-card h1 {
  margin-top: 18px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
}

.login-sub {
  margin-top: 8px;
  font-family: var(--kai);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.login-card form {
  margin-top: 26px;
  text-align: left;
  position: relative;
}

.login-card label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.login-card input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  font-size: 16px;
  letter-spacing: 0.12em;
  outline: none;
}

.login-card input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(169, 133, 63, 0.14);
}

.form-error {
  margin-top: 16px;
  padding: 8px 10px;
  border: 1px solid rgba(157, 43, 37, 0.4);
  background: rgba(157, 43, 37, 0.08);
  color: var(--cinnabar-deep);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.login-foot {
  margin-top: 24px;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}

/* 印章 */
.seal {
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--cinnabar);
  color: #fdf6e7;
  font-family: var(--kai);
  font-size: 21px;
  line-height: 1.02;
  text-align: center;
  border-radius: 4px;
  transform: rotate(-3deg);
  box-shadow: inset 0 0 0 2px rgba(253, 246, 231, 0.92), 0 6px 16px rgba(80, 20, 15, 0.2);
}

.seal span { display: block; }

.seal-sm {
  width: 66px;
  height: 66px;
  margin: 0 auto;
  font-size: 23px;
  border-radius: 6px;
}

/* ==========================================================================
   取号台
   ========================================================================== */
.page {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 26px 20px 40px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-text h1 {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.2;
}

.brand-text p {
  margin-top: 4px;
  font-family: var(--kai);
  font-size: 12.5px;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
}

.masthead-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.balance {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.balance b {
  font-size: 19px;
  color: var(--cinnabar);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.balance em { font-style: normal; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}

.panel {
  position: relative;
  padding: 18px 18px 16px;
  background: rgba(255, 251, 241, 0.74);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(90, 70, 40, 0.08);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}

.panel > * { position: relative; }

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-head h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.26em;
}

.panel-head .mark {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 11px;
  background: var(--cinnabar);
  transform: rotate(45deg) translateY(-1px);
}

.search input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  font-size: 14.5px;
  letter-spacing: 0.04em;
  outline: none;
}

.search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(169, 133, 63, 0.13);
}

.project-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  max-height: min(56vh, 560px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.project-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 10px 11px 14px;
  border-bottom: 1px dashed var(--line-soft);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
}

.project-list li:hover { background: rgba(169, 133, 63, 0.08); }

.project-list li.active { background: rgba(157, 43, 37, 0.07); }

.project-list li.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cinnabar);
}

.project-list li.empty-row {
  cursor: default;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 13px;
  border-bottom: 0;
}

.project-name {
  font-size: 14.5px;
  line-height: 1.5;
  word-break: break-word;
}

.project-meta {
  flex: none;
  text-align: right;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.project-meta b {
  color: var(--cinnabar);
  font-weight: 600;
}

.selected {
  min-height: 66px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.selected-name {
  font-size: 15.5px;
  line-height: 1.5;
  margin-bottom: 5px;
}

.selected-meta {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.selected-meta b { color: var(--cinnabar); font-weight: 600; }

.rent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.field-inline {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.stepper button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 17px;
  color: var(--ink);
}

.stepper button:hover { color: var(--cinnabar); }

.stepper input {
  width: 54px;
  height: 34px;
  border: 0;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  background: transparent;
  text-align: center;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.rent-row .btn { margin-left: auto; letter-spacing: 0.24em; }

.panel-sub {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.panel-sub h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.stage {
  margin-top: 12px;
  min-height: 110px;
  max-height: min(42vh, 420px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.empty {
  padding: 26px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  border: 1px dashed var(--line-soft);
}

/* 号池统计 */
.pool-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.stat {
  padding: 14px 8px 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.stat b {
  display: block;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--cinnabar);
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.take-action {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.take-action .btn {
  padding: 12px 38px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

.take-action .hint { flex: 1; min-width: 140px; }

.steps {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 2.05;
  color: var(--ink-soft);
}

.steps code { font-family: var(--mono); font-size: 11.5px; }

.current-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--gold);
  background: rgba(255, 250, 238, 0.72);
}

.current-phone {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.current-meta {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.token-open {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-soft);
}

.token-open input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
}

.token-open input:focus { border-color: var(--gold); }

@media (max-width: 620px) {
  .pool-stats { gap: 7px; }
  .stat b { font-size: 22px; }
  .current-phone { font-size: 21px; }
}

.link-card {
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}

.link-card:last-child { margin-bottom: 0; }

.link-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.link-tel {
  font-size: 19px;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.link-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.link-url {
  margin: 9px 0;
  padding: 7px 9px;
  background: rgba(120, 95, 60, 0.08);
  border-left: 2px solid var(--gold);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  word-break: break-all;
}

.link-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.link-actions .btn {
  padding: 6px 12px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
}

.foot {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

/* 弹窗与提示 */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(24, 19, 14, 0.52);
}

.modal-mask.show { display: grid; }

.modal {
  width: min(420px, 100%);
  padding: 24px 24px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}

.modal h3 {
  font-size: 17px;
  letter-spacing: 0.22em;
  margin-bottom: 12px;
}

.modal p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  word-break: break-word;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 80;
  max-width: min(90vw, 520px);
  padding: 11px 20px;
  background: rgba(34, 29, 23, 0.95);
  border: 1px solid rgba(216, 180, 122, 0.5);
  color: #f6edd9;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.toast.error { border-color: rgba(220, 110, 90, 0.7); }

.copy-helper {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   接码页（朱漆暗色）
   ========================================================================== */
body.page-code {
  color: #f3e6d6;
  background-color: #1a0807;
  background-image:
    radial-gradient(120% 82% at 50% -12%, rgba(198, 74, 41, 0.42), transparent 62%),
    radial-gradient(80% 60% at 102% 102%, rgba(120, 32, 20, 0.36), transparent 56%),
    linear-gradient(180deg, #2b0d09 0%, #1a0706 46%, #110403 100%);
  background-attachment: fixed;
}

body.page-code::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 45%, transparent 52%, rgba(0, 0, 0, 0.58) 100%);
}

.code-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 16px 38px;
}

.code-brand {
  margin-bottom: 14px;
  font-family: var(--kai);
  font-size: 12px;
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  color: rgba(240, 214, 180, 0.6);
}

.code-card {
  position: relative;
  width: min(560px, 100%);
  overflow: hidden;
  border: 1px solid rgba(198, 122, 76, 0.34);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(46, 16, 12, 0.92), rgba(25, 9, 8, 0.95));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 220, 180, 0.08);
}

.code-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(216, 160, 110, 0.12);
  border-radius: 12px;
  pointer-events: none;
}

.code-head {
  position: relative;
  padding: 19px 56px;
  text-align: center;
  border-bottom: 1px solid rgba(198, 122, 76, 0.22);
}

.code-head h1 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: #f0d9bd;
}

.sound-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(216, 160, 110, 0.35);
  background: rgba(90, 30, 20, 0.4);
  color: #e7c9a6;
  font-family: var(--kai);
  font-size: 14px;
}

.sound-btn.on {
  background: rgba(190, 70, 40, 0.45);
  color: #ffe9d2;
}

.code-body { padding: 26px 26px 20px; }

.field { margin-bottom: 22px; }

.field:last-child { margin-bottom: 0; }

.field-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: #c9a88a;
}

.field-label::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #d24a2e;
}

.phone {
  margin: 4px 0 16px;
  text-align: center;
  font-size: clamp(27px, 6.4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff4e6;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  text-shadow: 0 2px 18px rgba(255, 120, 60, 0.18);
}

.copy-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(214, 150, 104, 0.32);
  background: rgba(60, 22, 16, 0.55);
  color: #e7cbaa;
  font-size: 14px;
  letter-spacing: 0.22em;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.copy-btn:hover:not(:disabled) {
  border-color: rgba(230, 160, 110, 0.62);
  background: rgba(112, 38, 24, 0.52);
  color: #ffe9d2;
}

.copy-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.copy-btn.done {
  border-color: rgba(230, 180, 120, 0.8);
  color: #ffe9d2;
}

.country {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #b28f74;
}

.divider {
  height: 1px;
  margin: 0 0 22px;
  background: linear-gradient(90deg, transparent, rgba(200, 130, 90, 0.38), transparent);
}

.waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 76px;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: #d9b495;
}

.waiting .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0603c;
  box-shadow: 0 0 12px rgba(224, 96, 60, 0.85);
  animation: pulse 1.3s ease-in-out infinite;
}

.dots i {
  font-style: normal;
  animation: blink 1.4s infinite;
}

.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }

.code-value {
  margin: 6px 0 10px;
  text-align: center;
  font-size: clamp(32px, 7.2vw, 46px);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ffd9a8;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 26px rgba(255, 140, 60, 0.34);
  word-break: break-all;
}

.sms {
  max-height: 76px;
  margin: 0 0 14px;
  overflow-y: auto;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.75;
  color: #b28f74;
  word-break: break-word;
  white-space: pre-wrap;
}

.status-line {
  min-height: 18px;
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #9d7a63;
}

.link-btn {
  display: block;
  margin: 8px auto 0;
  padding: 4px 8px;
  border: 0;
  border-bottom: 1px solid rgba(214, 150, 104, 0.45);
  background: transparent;
  color: #d8b18f;
  font-size: 12.5px;
  letter-spacing: 0.12em;
}

.link-btn:hover { color: #ffe0bd; }

.code-foot {
  padding: 14px 24px 18px;
  border-top: 1px solid rgba(198, 122, 76, 0.2);
  background: rgba(12, 4, 3, 0.36);
  text-align: center;
}

.remain {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #d3ae8e;
  font-variant-numeric: tabular-nums;
}

.remain b { color: #ffc98f; font-weight: 600; }

.remain.expired b { color: #e0785f; }

.expire {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #96745f;
}

.note {
  margin-top: 10px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #856659;
}

/* 404 页 */
.lost-card {
  padding: 46px 34px 42px;
  text-align: center;
}

.lost-seal {
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(210, 90, 60, 0.75);
  color: #e08a6c;
  font-family: var(--kai);
  font-size: 20px;
  letter-spacing: 0.08em;
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 2px rgba(210, 90, 60, 0.18);
}

.lost-card h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #f0d9bd;
}

.lost-card p {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #b28f74;
}

.lost-card .lost-hint { margin-top: 8px; color: #8f6d59; }

/* ==========================================================================
   动画
   ========================================================================== */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

@keyframes blink {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

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

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 940px) {
  .layout { grid-template-columns: 1fr; }
  .project-list { max-height: 42vh; }
  .stage { max-height: none; }
}

@media (max-width: 620px) {
  .page { padding: 18px 12px 30px; }
  .masthead { flex-wrap: wrap; }
  .brand-text h1 { font-size: 23px; }
  .masthead-right { width: 100%; justify-content: flex-start; }
  .balance { margin-right: auto; }
  .panel { padding: 14px 13px 13px; }
  .panel-head h2 { font-size: 17px; }
  .code-body { padding: 22px 18px 16px; }
  .code-head { padding: 16px 50px; }
  .login-card { padding: 34px 24px 26px; }
  .code-wrap { padding: 18px 12px 26px; }
}
