/* ============================================================
   main.css - 主站布局 / 组件
   风格:胶囊 + 倾斜切角 + 自绘 SVG 符号,不使用图标库
   纯色填充,严禁渐变。
   ============================================================ */

/* ============================================================
   容器 / 工具
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.divider {
  height: 1px;
  background: var(--line-soft);
  margin: 24px 0;
  border: none;
}

/* ============================================================
   按钮体系 - 全站通用
   ============================================================ */
.btn,
button.btn,
a.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: var(--bg-elev);
  color: var(--fg-strong);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.btn:hover { border-color: var(--line-strong); background: var(--bg-surface); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.btn:disabled,
.btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 14px; height: 14px; }

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.btn.primary:hover {
  background: var(--accent-deep);
  border-color: transparent;
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--fg-muted);
}
.btn.ghost:hover { background: var(--bg-elev); color: var(--fg-strong); }

.btn.danger {
  background: transparent;
  color: var(--state-err);
  border-color: color-mix(in srgb, var(--state-err) 40%, transparent);
}
.btn.danger:hover { background: var(--state-err-soft); }

.btn.success {
  background: var(--state-ok);
  color: var(--fg-on-accent);
  border-color: transparent;
}
.btn.success:hover { filter: brightness(.94); }

.btn.sm { padding: 6px 12px; font-size: 12.5px; border-radius: 10px; }
.btn.lg { padding: 12px 22px; font-size: 14.5px; border-radius: 14px; }
.btn.block { width: 100%; }

/* 按钮组 */
.btn-group {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-group .btn:not(:first-child):not(:last-child) { border-radius: 12px; }
.btn-group .btn:first-child:not(:only-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.btn-group .btn:last-child:not(:only-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.btn-group .btn + .btn { margin-left: -1px; }
.btn-group .btn:hover { z-index: 1; }

/* ============================================================
   输入框 / 编辑框 / 选择器 - 全部配套完整样式
   ============================================================ */
.field {
  width: 100%;
  background: var(--bg-elev);
  color: var(--fg-strong);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.4;
  transition:
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}
.field:hover:not(:focus):not(:disabled) { border-color: var(--line-strong); }
.field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  background: var(--bg-surface);
}
.field::placeholder { color: var(--fg-faint); }
.field:disabled { opacity: .55; cursor: not-allowed; }

textarea.field { resize: vertical; min-height: 100px; line-height: 1.55; }

/* 搜索框内嵌图标 —— 用包装层 + 伪元素绘制,避免与全局 input 背景简写冲突 */
.search-field {
  position: relative;
  display: block;
  width: 100%;
}
.search-field > input {
  padding-left: 38px !important;
  width: 100%;
}
.search-field::before,
.search-field::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.search-field::before {
  left: 13px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 1.6px solid var(--fg-muted);
  border-radius: 50%;
  transform: translateY(-50%);
}
.search-field::after {
  left: 25px;
  top: 50%;
  width: 5px;
  height: 1.6px;
  background: var(--fg-muted);
  border-radius: 1px;
  transform: translateY(2px) rotate(45deg);
}
:root[data-theme="dark"] .search-field::before { border-color: var(--fg-faint); }
:root[data-theme="dark"] .search-field::after { background: var(--fg-faint); }

.input-with-suffix {
  display: flex;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.input-with-suffix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); background: var(--bg-surface); }
.input-with-suffix input { border: none !important; background: transparent !important; box-shadow: none !important; }
.input-with-suffix .suffix { padding: 0 14px; color: var(--fg-muted); font-size: 13px; }

/* 表单组(标签 + 控件 + 提示) */
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group > label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-strong);
  letter-spacing: .01em;
}
.field-group .hint {
  font-size: 11.5px;
  color: var(--fg-muted);
}
.field-group .err {
  font-size: 11.5px;
  color: var(--state-err);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 复选项行 */
.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-normal);
  cursor: pointer;
  user-select: none;
}
.check-row input { margin: 0; }

/* ============================================================
   顶栏 / 品牌 / 导航
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 22px;
  margin: 14px 14px 0;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--bg-surface) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--fg-strong);
}
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 12px;
  background: var(--accent);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.brand .mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 6px;
  border: 1.5px solid color-mix(in srgb, var(--accent-ink) 60%, transparent);
  pointer-events: none;
}
.brand .name { font-size: 16px; }
.brand .sub  {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: 2px;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
}
.tabs a {
  position: relative;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg-muted);
  border-radius: var(--r-pill);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.tabs a:hover { color: var(--fg-normal); }
.tabs a.active {
  color: var(--accent-ink);
  background: var(--accent);
}
.tabs a[data-locked="1"] {
  opacity: .65;
  cursor: not-allowed;
}
.tabs a[data-locked="1"]::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-left: 8px;
  vertical-align: middle;
  opacity: .55;
}

.tools { display: inline-flex; align-items: center; gap: 10px; }

/* 主题切换按钮 */
.theme-toggle,
.icon-btn {
  appearance: none;
  border: 1px solid var(--line-soft);
  background: var(--bg-elev);
  color: var(--fg-strong);
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.theme-toggle:hover,
.icon-btn:hover { border-color: var(--line-strong); background: var(--bg-surface); }
.theme-toggle:active,
.icon-btn:active { transform: scale(.96); }
.theme-toggle:focus-visible,
.icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-light { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-dark { display: block; }

/* ============================================================
   主舞台 (Hero)
   ============================================================ */
.stage {
  position: relative;
  margin: 36px 14px 0;
  padding: 60px 32px 44px;
  border-radius: var(--r-lg);
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-1);
  text-align: center;
  overflow: hidden;
}
/* 装饰小元素(纯几何,不依赖渐变) */
.stage::before {
  content: "";
  position: absolute;
  top: 24px; right: 24px;
  width: 12px; height: 12px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  opacity: .55;
}
.stage::after {
  content: "";
  position: absolute;
  left: 28px; bottom: 28px;
  width: 64px; height: 1px;
  background: var(--line-strong);
  opacity: .4;
}

.stage .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.stage h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--fg-strong);
  font-weight: 800;
}
.stage h1 .hl {
  color: var(--accent);
  position: relative;
  padding: 0 4px;
}
.stage h1 .hl::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 4px;
  height: 6px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 4px;
  z-index: -1;
}
.stage p.lead {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--fg-muted);
  font-size: 16px;
}

.stage .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 13px;
}
.stage .meta .k { color: var(--fg-faint); margin-right: 6px; }
.stage .meta .v { color: var(--fg-strong); font-weight: 600; }

/* ============================================================
   区块标题
   ============================================================ */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 36px 14px 16px;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg-strong);
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-head h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  color: var(--fg-muted);
  font-size: 12px;
  font-weight: 700;
}
.section-head .filter {
  display: inline-flex; gap: 8px; align-items: center;
  min-width: 280px;
}
.section-head .filter input {
  width: 100%;
  font-size: 13.5px;
}

/* ============================================================
   游戏网格 / 卡片
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  padding: 0 14px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--t-mid) var(--ease),
    border-color var(--t-mid) var(--ease),
    box-shadow var(--t-mid) var(--ease);
  text-decoration: none;
  color: inherit;
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line-soft));
  box-shadow: var(--shadow-2);
}
.card:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring), var(--shadow-2); }

.card .cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-elev);
  overflow: hidden;
}
.card .cover .ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: var(--bg-elev);
}
.card .cover .ph .glyph {
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.04em;
}
.card .cover img.cover-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.card:hover .cover img.cover-img { transform: scale(1.04); }
.card .cover .stamp {
  position: absolute;
  left: 10px; top: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg-surface) 78%, transparent);
  border: 1px solid var(--line-soft);
  color: var(--fg-muted);
  backdrop-filter: blur(8px);
}

.card .body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card .title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-strong);
  display: flex; align-items: center; gap: 8px;
  letter-spacing: -.005em;
}
.card .title .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.card .title .custom-mark {
  font-size: 10px;
  color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 1px 6px;
  border-radius: var(--r-pill);
  font-weight: 600;
  letter-spacing: .05em;
  margin-left: auto;
}
.card .desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--fg-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}
.card .tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 2px;
}
.card .tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  color: var(--fg-muted);
}

.card .foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--fg-faint);
  font-family: "JetBrains Mono", monospace;
}
.card .play {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent);
  font-weight: 600;
}
.card .play .arrow { transition: transform var(--t-mid) var(--ease); }
.card:hover .play .arrow { transform: translateX(2px); }

/* 锁定卡片(无入口) */
.card.locked { opacity: .6; cursor: not-allowed; }
.card.locked:hover { transform: none; border-color: var(--line-soft); box-shadow: none; }

/* ============================================================
   空状态
   ============================================================ */
.empty {
  margin: 30px 14px;
  padding: 48px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--bg-surface);
  text-align: center;
  color: var(--fg-muted);
}
.empty.solid { border-style: solid; border-color: var(--line-soft); }
.empty.success { border-style: solid; border-color: var(--state-ok); background: var(--state-ok-soft); color: var(--state-ok); }
.empty.error   { border-style: solid; border-color: var(--state-err); background: var(--state-err-soft); color: var(--state-err); }
.empty.warn    { border-style: solid; border-color: var(--state-warn); background: var(--state-warn-soft); color: var(--state-warn); }

.empty .ico {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: var(--bg-elev);
  display: grid; place-items: center;
  color: var(--fg-faint);
}
.empty.success .ico,
.empty.warn .ico,
.empty.error .ico { background: color-mix(in srgb, currentColor 18%, transparent); color: currentColor; }

.empty p + p { margin-top: 10px; }
.empty code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  color: var(--fg-strong);
  font-size: 13px;
}
.empty .actions { margin-top: 18px; display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   分页
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 36px 14px;
  flex-wrap: wrap;
}
.pagination .pg {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px; height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--bg-surface);
  color: var(--fg-normal);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.pagination .pg:hover { border-color: var(--line-strong); }
.pagination .pg.active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.pagination .pg.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.pagination .pg svg { width: 12px; height: 12px; }
.pagination .gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px; height: 34px;
  color: var(--fg-faint);
}

/* ============================================================
   标签 / 徽章
   ============================================================ */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: .03em;
  border: 1px solid transparent;
}
.tag-pill.ok    { background: var(--state-ok-soft);  color: var(--state-ok); }
.tag-pill.warn  { background: var(--state-warn-soft); color: var(--state-warn); }
.tag-pill.err   { background: var(--state-err-soft);  color: var(--state-err); }
.tag-pill.info  { background: var(--state-info-soft); color: var(--state-info); }
.tag-pill.mute  { background: var(--bg-elev); color: var(--fg-muted); border-color: var(--line-soft); }
.tag-pill.accent{ background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-deep); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }

/* 状态行 */
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--fg-muted);
}
.status-line .status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fg-muted);
}
.status-line.ok .status-dot { background: var(--state-ok); }
.status-line.warn .status-dot { background: var(--state-warn); }
.status-line.err .status-dot { background: var(--state-err); }
.status-line.info .status-dot { background: var(--state-info); }

/* ============================================================
   页脚
   ============================================================ */
.footer {
  margin: 28px 14px 22px;
  padding: 22px 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--fg-faint);
  font-size: 12.5px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  align-items: center;
}
.footer .left  { display: flex; align-items: center; gap: 8px; }
.footer .right { display: flex; gap: 14px; }
.footer .right a { color: var(--fg-muted); transition: color var(--t-fast) var(--ease); }
.footer .right a:hover { color: var(--accent); }

/* ============================================================
   自定义弹窗
   ============================================================ */
.modal-root {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 80;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: var(--bg-overlay);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -42%) scale(.96);
  width: min(440px, calc(100vw - 32px));
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  padding: 22px 22px 18px;
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.modal-root[data-open="1"] { pointer-events: auto; }
.modal-root[data-open="1"] .modal-backdrop { opacity: 1; }
.modal-root[data-open="1"] .modal {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal .head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
}
.modal .head .badge {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-deep);
}
.modal .head .badge svg { width: 18px; height: 18px; }
.modal h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-strong);
}
.modal .body {
  color: var(--fg-muted);
  font-size: 14px;
  margin: 6px 0 16px;
  line-height: 1.6;
  word-break: break-word;
}
.modal input.field,
.modal textarea.field {
  margin-bottom: 14px;
}
.modal .modal-prompt-msg { margin-bottom: 8px; }
.modal .actions {
  display: flex; justify-content: flex-end; gap: 8px;
}

/* ============================================================
   Toast 通知
   ============================================================ */
.toast-stack {
  position: fixed;
  top: 22px; right: 22px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 90;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 220px;
  max-width: 360px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px;
  color: var(--fg-strong);
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.toast.success .dot { background: var(--state-ok); }
.toast.error .dot { background: var(--state-err); }
.toast.warn .dot { background: var(--state-warn); }
.toast.info .dot { background: var(--state-info); }

/* ============================================================
   加载指示器
   ============================================================ */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: gp-spin .8s linear infinite;
}
@keyframes gp-spin { to { transform: rotate(360deg); } }

.spinner.lg { width: 32px; height: 32px; border-width: 3px; }

/* ============================================================
   面包屑
   ============================================================ */
.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--fg-muted);
  font-family: "JetBrains Mono", monospace;
}
.crumbs a:hover { color: var(--fg-strong); }
.crumbs .sep { color: var(--fg-faint); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; padding: 14px 16px; margin: 10px 10px 0; }
  .stage { padding: 40px 18px 28px; margin: 22px 10px 0; }
  .stage::before { right: 16px; top: 16px; }
  .stage::after { left: 16px; bottom: 20px; width: 36px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; padding: 0 10px; }
  .section-head { margin: 24px 10px 12px; flex-direction: column; align-items: stretch; }
  .section-head .filter { min-width: 0; width: 100%; }
  .footer { margin: 22px 10px; }
  .empty { margin: 22px 10px; padding: 36px 18px; }
  .pagination { margin: 24px 10px; }
}