/* 站台广播 · 移动端控制台
   视觉方向：主流手机 App 的分组列表语言 + 铁路靛蓝 / 中国红单点强调 */

:root {
  --bg: #F1F3F6;
  --surface: #FFFFFF;
  --surface-2: #F6F8FA;
  --line: #E7EAF0;
  --ink: #151A23;
  --ink-2: #5A6472;
  --ink-3: #98A2B0;
  --brand: #1B4E8C;
  --brand-soft: #E9F0F9;
  --accent: #D63A2C;
  --accent-soft: #FCEDEB;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(21, 26, 35, .035), 0 6px 18px rgba(21, 26, 35, .035);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  background: #E8ECF2;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.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;
}

/* ---------- 应用容器：内容区自身滚动，底栏常驻 ---------- */
.app {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 460px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(21, 26, 35, .05), 0 20px 60px rgba(21, 26, 35, .10);
  overflow: hidden;
}

@media (min-width: 560px) {
  body { padding: 18px 0; }
  .app { height: min(880px, calc(100dvh - 36px)); border-radius: 26px; }
}

/* ---------- 顶栏 ---------- */
.appbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 18px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
.appbar__brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.appbar__mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 12px;
  color: #fff; background: var(--brand);
}
.appbar__mark svg { width: 22px; height: 22px; }
.appbar__titles { display: flex; flex-direction: column; min-width: 0; }
.appbar__titles strong { font-size: 17px; font-weight: 650; letter-spacing: .01em; line-height: 1.3; }
.appbar__titles small { font-size: 11.5px; color: var(--ink-3); letter-spacing: .02em; }
.appbar__info {
  display: grid; place-items: center;
  width: 36px; height: 36px; flex: none;
  border-radius: 50%; color: var(--ink-2);
  background: var(--surface-2);
  transition: background .2s;
}
.appbar__info:active { background: var(--brand-soft); }
.appbar__info svg { width: 19px; height: 19px; }

/* ---------- 内容区 ---------- */
.content {
  flex: 1; min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.card__head h2 {
  margin: 0; font-size: 13px; font-weight: 650;
  color: var(--ink-2); letter-spacing: .04em;
}
.card__titles { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
/* 真人播音：红色活点 + 细标签，克制地标示音源，不抢标题层级 */
.voice-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; line-height: 1; color: var(--ink-3);
  letter-spacing: .01em; white-space: nowrap;
}
.voice-tag i {
  width: 5px; height: 5px; border-radius: 50%; flex: none;
  background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.counter {
  font-size: 12px; color: var(--ink-3);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}

/* 车站 */
.card--station { display: flex; align-items: center; gap: 13px; padding: 12px 14px; }
.station__badge {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 17px; font-weight: 700;
}
.station__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.station__label { font-size: 11.5px; color: var(--ink-3); letter-spacing: .03em; }
.station__name {
  font-size: 17px; font-weight: 650; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.station__meta { font-size: 11.5px; color: var(--ink-3); }
.station__change {
  flex: none; display: flex; align-items: center; gap: 2px;
  padding: 8px 10px 8px 12px; border-radius: 10px;
  font-size: 13px; color: var(--brand); font-weight: 600;
  background: var(--brand-soft);
  transition: transform .18s var(--ease);
}
.station__change:active { transform: scale(.96); }
.station__change span { font-size: 17px; line-height: 1; }

/* 编辑器 */
.editor {
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color .2s, background .2s;
}
.editor:focus-within { border-color: var(--brand); background: var(--surface); }
.editor textarea {
  display: block; width: 100%; min-height: 92px;
  padding: 12px 13px 4px;
  border: 0; outline: 0; resize: none;
  background: transparent;
  font-size: 15.5px; line-height: 1.72; letter-spacing: .01em;
}
.editor textarea::placeholder { color: var(--ink-3); }
.editor__foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 10px 9px 14px;
}
.text-btn {
  padding: 5px 2px; font-size: 12.5px; font-weight: 600;
  color: var(--brand); letter-spacing: .01em;
}
.text-btn:active { opacity: .6; }
.text-btn--muted { color: var(--ink-3); font-weight: 500; }

.chips {
  display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 12px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 2px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 7px 13px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 12.5px; font-weight: 500;
  transition: background .2s, border-color .2s, color .2s, transform .18s var(--ease);
}
.chip:active { transform: scale(.95); }
.chip.is-active {
  background: var(--accent-soft); border-color: rgba(214, 58, 44, .35); color: var(--accent); font-weight: 600;
}

/* 设置 */
.setting { padding: 2px 0 4px; }
.setting + .setting { margin-top: 10px; padding-top: 11px; border-top: 1px solid var(--line); }
.setting__top {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 14px; font-weight: 500; margin-bottom: 6px;
}
.setting__top output {
  font-size: 13px; font-weight: 650; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 26px; margin: 0; background: transparent;
}
.range::-webkit-slider-runnable-track {
  height: 5px; border-radius: 999px; background: var(--line);
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; margin-top: -7.5px;
  border-radius: 50%; background: var(--surface);
  border: 2px solid var(--brand);
  box-shadow: 0 2px 6px rgba(21, 26, 35, .16);
}
.range::-moz-range-track { height: 5px; border-radius: 999px; background: var(--line); }
.range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--brand);
}
.range__marks {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-3); margin-top: -1px;
}
.setting--inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.segmented {
  display: flex; gap: 2px; padding: 3px;
  background: var(--surface-2); border-radius: 10px;
}
.segmented button {
  min-width: 48px; padding: 6px 10px; border-radius: 8px;
  font-size: 12.5px; color: var(--ink-2); font-weight: 500;
  transition: background .2s, color .2s, box-shadow .2s;
}
.segmented button.is-active {
  background: var(--surface); color: var(--brand); font-weight: 650;
  box-shadow: 0 1px 3px rgba(21, 26, 35, .10);
}

/* 播放状态 */
.player {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px 16px;
  box-shadow: var(--shadow);
}
/* 播放状态常驻在底栏内，播报时始终可见 */
.dock .player {
  background: var(--surface-2); border-radius: 13px;
  padding: 8px 12px 9px; margin-bottom: 9px;
  box-shadow: none;
}
.dock .player__top { margin-bottom: 5px; }
.player__top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.player__dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--ink-3);
}
.player__status { flex: 1; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.player__time {
  font-size: 12px; color: var(--ink-3);
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.player[data-state="loading"] .player__dot { background: #E0A32B; }
.player[data-state="playing"] .player__dot { background: var(--accent); animation: pulse 1.3s ease-in-out infinite; }
.player[data-state="playing"] .player__status { color: var(--accent); font-weight: 600; }
.player[data-state="error"] .player__dot { background: var(--accent); }
.player[data-state="error"] .player__status { color: var(--accent); }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

.wave { display: flex; align-items: center; gap: 3px; height: 24px; margin-bottom: 7px; }
.wave i {
  flex: 1; min-width: 2px; height: 4px; border-radius: 3px;
  background: #DCE6F3;
  transition: background .3s;
}
.player[data-state="playing"] .wave i {
  background: var(--accent);
  animation: wave 900ms var(--ease) infinite alternate;
  animation-delay: calc(var(--i) * 42ms);
}
@keyframes wave {
  from { height: 4px; opacity: .5; }
  to   { height: calc(var(--h) * .55px); opacity: 1; }
}
.progress { height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress i {
  display: block; width: 0%; height: 100%; border-radius: 999px;
  background: var(--brand); transition: width .18s linear;
}
.player[data-state="playing"] .progress i { background: var(--accent); }

/* ---------- 底部主操作 ---------- */
.dock {
  flex: none;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.cta {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; height: 54px; border-radius: 15px;
  background: var(--accent); color: #fff;
  font-size: 17px; font-weight: 650; letter-spacing: .02em;
  box-shadow: 0 8px 20px rgba(214, 58, 44, .22);
  transition: transform .18s var(--ease), background .25s, box-shadow .25s;
}
.cta:active { transform: scale(.985); }
.cta__icon { display: grid; place-items: center; }
.cta__icon svg { width: 21px; height: 21px; }
.cta.is-playing {
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(21, 26, 35, .18);
}
.cta.is-loading { background: #A9B0BA; box-shadow: none; }
.cta.is-loading .cta__icon svg { animation: spin 1s linear infinite; }
.cta[disabled] { background: #C9CED6; box-shadow: none; cursor: not-allowed; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 弹层：车站选择 ---------- */
.sheet-backdrop, .backdrop {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(15, 20, 30, .45);
  opacity: 0; transition: opacity .3s;
}
.sheet-backdrop.is-open, .backdrop.is-open { opacity: 1; }
.sheet {
  position: fixed; z-index: 31;
  left: 50%; bottom: 0; width: min(100%, 460px);
  max-height: 80dvh;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 40px rgba(15, 20, 30, .16);
  transform: translate(-50%, 100%);
  transition: transform .4s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.is-open { transform: translate(-50%, 0); }
@media (min-width: 560px) {
  .sheet { bottom: 18px; border-radius: 22px; }
}
.sheet__grab {
  width: 38px; height: 4px; border-radius: 999px;
  background: var(--line); margin: 10px auto 2px; flex: none;
}
.sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px 12px; flex: none;
}
.sheet__head h2 { margin: 0; font-size: 17px; font-weight: 650; }
.sheet__done { font-size: 14px; font-weight: 650; color: var(--brand); padding: 6px 2px; }
.searchbox {
  display: flex; align-items: center; gap: 9px;
  margin: 0 16px 8px; padding: 0 12px;
  height: 42px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--line);
  flex: none;
}
.searchbox svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.searchbox input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: 0; background: transparent; font-size: 14px;
  -webkit-appearance: none; appearance: none;
}
.searchbox input::placeholder { color: var(--ink-3); }
.sheet__body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 20px; -webkit-overflow-scrolling: touch; }
.sheet__section + .sheet__section { margin-top: 18px; }
.sheet__label {
  font-size: 11.5px; font-weight: 650; color: var(--ink-3);
  letter-spacing: .06em; margin: 8px 2px 10px;
}
.hot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hot__item {
  padding: 10px 4px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-2); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .2s, color .2s, transform .18s var(--ease);
}
.hot__item:active { transform: scale(.96); }
.hot__item.is-active { background: var(--brand-soft); border-color: rgba(27, 78, 140, .28); color: var(--brand); font-weight: 600; }
.results { display: flex; flex-direction: column; }
.result {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 11px 4px;
  border-bottom: 1px solid var(--line); text-align: left;
}
.result:active { background: var(--surface-2); }
.result__name { flex: 1; font-size: 14.5px; font-weight: 550; }
.result__tag {
  flex: none; font-size: 10.5px; color: var(--brand);
  background: var(--brand-soft); border-radius: 5px; padding: 2px 6px;
}
.result__meta { font-size: 11.5px; color: var(--ink-3); }
.empty { padding: 26px 10px; text-align: center; font-size: 13px; color: var(--ink-3); }

/* ---------- 关于 ---------- */
.about {
  position: fixed; z-index: 41;
  left: 50%; top: 50%; width: min(86%, 360px);
  transform: translate(-50%, -48%) scale(.96);
  opacity: 0; pointer-events: none;
  background: var(--surface); border-radius: 20px;
  padding: 22px 20px 18px;
  box-shadow: 0 24px 70px rgba(15, 20, 30, .26);
  transition: opacity .26s, transform .34s var(--ease);
}
.about.is-open { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.about h2 { margin: 0 0 12px; font-size: 17px; font-weight: 650; }
.about p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.72; color: var(--ink-2); }
.about__ok {
  width: 100%; margin-top: 8px; padding: 11px;
  border-radius: 11px; background: var(--brand-soft);
  color: var(--brand); font-size: 14px; font-weight: 650;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 60;
  left: 50%; bottom: calc(168px + env(safe-area-inset-bottom));
  transform: translate(-50%, 8px);
  max-width: min(86%, 380px);
  padding: 10px 16px; border-radius: 11px;
  background: rgba(21, 26, 35, .92); color: #fff;
  font-size: 13px; line-height: 1.5; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .3s var(--ease);
}
.toast.is-open { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 关于：激活凭证与退出 ---------- */
.about__card {
  display: flex; flex-direction: column; gap: 3px;
  margin: 4px 0 14px; padding: 12px 14px;
  border: 1px dashed var(--line); border-radius: 10px;
  background: var(--surface-2);
}
.about__card-label { font-size: 10.5px; letter-spacing: .12em; color: var(--ink-3); }
.about__card strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px; letter-spacing: .04em; font-weight: 650;
}
.about__card small { font-size: 11.5px; color: var(--ink-3); }
.about__logout { width: 100%; margin-top: 6px; padding: 9px; font-size: 12.5px; color: var(--ink-3); }
.about__logout:active { color: var(--accent); }

/* ---------- 卡密门禁：检票凭证 ---------- */
.gate-body { overflow-y: auto; }
.gate-app { height: auto; min-height: 100dvh; overflow: visible; }
.gate-admin {
  flex: none; font-size: 11px; letter-spacing: .06em; color: var(--ink-3);
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface-2);
}

.gate-main { flex: 1; display: flex; flex-direction: column; gap: 24px; padding: 30px 20px 36px; }

.gate-intro { position: relative; padding-right: 58px; }
.gate-intro h1 {
  margin: 0 0 9px; font-size: 27px; line-height: 1.25;
  font-weight: 700; letter-spacing: -.02em;
}
.gate-intro p { margin: 0; max-width: 29ch; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.gate-stamp {
  position: absolute; right: 0; top: 0;
  width: 47px; height: 47px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent);
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700;
  transform: rotate(-13deg); opacity: .9;
  box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 4px rgba(214, 58, 44, .34);
}

.ticket {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 60px; z-index: 1;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line);
}
.ticket::before { left: -10px; }
.ticket::after  { right: -10px; }
.ticket__head {
  height: 68px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ticket__eyebrow { display: block; font-size: 9.5px; letter-spacing: .17em; color: var(--ink-3); }
.ticket__head h2 { margin: 3px 0 0; font-size: 17px; font-weight: 680; }
.ticket__no {
  flex: none; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px; letter-spacing: .07em; color: var(--ink-3); white-space: nowrap;
}
.ticket__tear { height: 1px; border-top: 1px dashed #CBD3DE; margin: 0 10px; }
.ticket__body { padding: 22px 20px 20px; }
.ticket__label { display: block; margin-bottom: 10px; font-size: 11px; letter-spacing: .13em; color: var(--ink-3); }

.ticket__field {
  display: flex; align-items: center; gap: 8px;
  padding: 3px 6px 3px 14px;
  border: 1.5px solid var(--line); border-radius: 11px;
  background: var(--surface-2);
  transition: border-color .2s, box-shadow .2s;
}
.ticket__field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ticket__field.is-error { border-color: var(--accent); }
.ticket__field input {
  flex: 1; min-width: 0; height: 43px;
  border: 0; outline: 0; background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
}
.ticket__field input::placeholder {
  color: #B7C1CD; font-size: 15px; font-weight: 500; letter-spacing: .14em;
}
.ticket__paste { flex: none; padding: 6px 9px; border-radius: 7px; font-size: 12px; color: var(--brand); }
.ticket__paste:active { background: var(--brand-soft); }
.gate-error { margin: 9px 2px 0; font-size: 12.5px; line-height: 1.55; color: var(--accent); }

.gate-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 50px; margin-top: 18px;
  border-radius: 11px; background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 650;
  transition: transform .18s var(--ease), opacity .2s, background .2s;
}
.gate-submit:not(:disabled):active { transform: scale(.985); }
.gate-submit:disabled { opacity: .62; cursor: wait; }
.gate-submit__arrow { font-size: 18px; transition: transform .25s var(--ease); }
.gate-submit:not(:disabled):hover .gate-submit__arrow { transform: translateX(3px); }
.ticket__hint { margin: 12px 0 0; text-align: center; font-size: 11.5px; color: var(--ink-3); }
.ticket__foot {
  display: flex; justify-content: space-between;
  padding: 10px 20px; border-top: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9.5px; letter-spacing: .09em; color: var(--ink-3);
}

.gate-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.gate-notes li { display: flex; align-items: baseline; gap: 11px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.gate-notes li span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px; letter-spacing: .06em; color: var(--brand);
}
.gate-foot {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 11px; line-height: 1.6; color: var(--ink-3);
}
.gate-foot a { flex: none; color: var(--brand); text-decoration: none; }

.gate-success {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  background: rgba(244, 247, 251, .97);
}
.gate-success__mark {
  width: 56px; height: 56px; margin-bottom: 10px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 28px;
}
.gate-success strong { font-size: 18px; }
.gate-success small { font-size: 12.5px; color: var(--ink-3); }

@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.shake { animation: gate-shake .34s ease; }

@media (min-width: 560px) {
  .gate-app { height: auto; min-height: min(880px, calc(100dvh - 36px)); }
}

/* ---------- 前台公告横幅 ---------- */
.notices { display: flex; flex-direction: column; gap: 8px; }
.notice-bar {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 11px; border: 1px solid var(--line);
  border-left: 3px solid var(--brand); border-radius: var(--radius-sm);
  background: var(--brand-soft);
}
.notice-bar--warn { border-left-color: #C08A2E; background: #FBF5E8; }
.notice-bar--alert { border-left-color: var(--accent); background: var(--accent-soft); }
.notice-bar__tag {
  flex: none; margin-top: 1px; padding: 2px 7px; border-radius: 4px;
  background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 650; letter-spacing: .04em;
}
.notice-bar--warn .notice-bar__tag { background: #A5761F; }
.notice-bar--alert .notice-bar__tag { background: var(--accent); }
.notice-bar__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notice-bar__text strong { font-size: 13px; font-weight: 650; line-height: 1.5; text-wrap: pretty; }
.notice-bar__text span { font-size: 11.8px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; text-wrap: pretty; }
.notice-bar__close {
  flex: none; width: 24px; height: 24px; margin: -2px -4px 0 0;
  border-radius: 50%; color: var(--ink-3); font-size: 19px; line-height: 1;
}
.notice-bar__close:active { background: rgba(0, 0, 0, .06); color: var(--ink); }

/* ---------- 维护模式服务通知 ---------- */
.maint-body { overflow: auto; display: grid; place-items: center; padding: 26px 20px 40px; }
.maint { width: min(100%, 440px); }
.maint__head { display: flex; align-items: center; gap: 11px; }
.maint__head > span {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center; background: var(--brand); color: #fff;
}
.maint__head svg { width: 22px; height: 22px; }
.maint__head strong { display: block; font-size: 16px; font-weight: 650; }
.maint__head small { display: block; font-size: 11.5px; color: var(--ink-3); }

.maint__card {
  position: relative; margin-top: 22px; padding: 28px 24px 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.maint__stamp {
  position: absolute; right: 22px; top: 20px;
  width: 46px; height: 46px; border: 2px solid var(--accent); border-radius: 50%;
  display: grid; place-items: center; color: var(--accent);
  font-size: 22px; font-weight: 700; transform: rotate(-12deg); opacity: .85;
}
.maint__eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px; letter-spacing: .14em; color: var(--ink-3);
}
.maint__card h1 { margin: 10px 0 12px; font-size: 26px; letter-spacing: -.02em; }
.maint__msg { margin: 0; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.maint__card .notices { margin-top: 18px; }
.maint__tear { margin: 22px -24px 0; border-top: 1px dashed var(--line); }
.maint__foot {
  display: flex; justify-content: space-between; gap: 10px; padding-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9.5px; letter-spacing: .08em; color: var(--ink-3);
}
.maint__hint { margin: 16px 4px 0; text-align: center; font-size: 11.5px; color: var(--ink-3); }
