:root {
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --card: #ffffff;
  --line: #e5e7eb;
  --text: #1a1d26;
  --muted: #6b7280;
  --accent: #e84d1a;
  --accent-2: #c2410c;
  --teal: #0d9488;
  --danger: #dc2626;
  --ok: #16a34a;
  --shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  --radius: 18px;
  --page-width: 1120px;
  --page-gutter: 8px;
  --page-edge-inset: 1px;
  --query-bleed-right: calc(-1 * var(--page-gutter) + var(--page-edge-inset));
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Noto Sans SC", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(232, 77, 26, 0.08), transparent 55%),
    radial-gradient(700px 380px at -10% 110%, rgba(13, 148, 136, 0.06), transparent 50%),
    linear-gradient(180deg, #ffffff, #f8f9fb 45%, #ffffff);
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 75%);
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: Syne, "Noto Sans SC", sans-serif; letter-spacing: -0.03em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 0.6rem; }
h2 { font-size: 1.6rem; }
p { margin: 0 0 1rem; }

.site-header, .site-footer, .site-main {
  width: min(var(--page-width), calc(100% - var(--page-gutter) * 2));
  margin: 0 auto;
}
.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0 8px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--accent); color: #fff; border-radius: 10px;
  font-family: Syne, sans-serif;
}
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}
.site-nav { display: flex; gap: 10px; flex: 1; min-width: 0; align-items: center; }
.site-nav__link {
  color: var(--muted);
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-nav__link:hover { color: var(--text); background: var(--bg-2); }
.site-nav__link.is-active,
.site-nav__link.is-active:hover {
  background: var(--text);
  color: #fff;
}
.site-nav__link--primary { flex: 0 0 auto; }
.site-nav__link--extra { flex: 0 0 auto; }
.header-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; flex: 0 0 auto; flex-shrink: 0; }
.header-menu { display: none; }
.user-menu {
  position: relative;
}
.user-menu__trigger {
  gap: 6px;
  cursor: pointer;
  font: inherit;
}
.user-menu__trigger.chip {
  color: var(--teal);
}
.user-menu__caret {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}
.user-menu__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 148px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: grid;
  gap: 2px;
}
.user-menu__menu[hidden] {
  display: none !important;
}
.user-menu__item {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  padding: 8px 10px;
  cursor: pointer;
}
.user-menu__item:hover,
.user-menu__item:focus-visible {
  background: rgba(232, 77, 26, 0.08);
  color: var(--text);
  outline: none;
}
.user-menu__item.is-active,
.user-menu__item.is-active:hover,
.user-menu__item.is-active:focus-visible {
  background: var(--text);
  color: #fff;
}
.user-menu__logout {
  margin: 0;
}
.user-menu__nav {
  display: none;
  gap: 2px;
  padding-bottom: 4px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
}
.user-menu__account {
  display: grid;
  gap: 2px;
  padding-top: 2px;
}
.user-menu__account .user-menu__logout {
  padding-top: 2px;
  border-top: 1px solid var(--line);
}
.header-menu__trigger {
  gap: 6px;
}
.site-main { padding: 28px 0 64px; }
.site-footer {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 24px 0 40px; color: var(--muted); border-top: 1px solid var(--line);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 10px 16px; font-weight: 700; font-size: 14px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); color: #fff; }
.btn-purple { background: #7c3aed; color: #fff; }
.btn-purple:hover { filter: brightness(1.06); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-2); }
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.chip {
  display: inline-flex; padding: 6px 10px; border-radius: 999px;
  background: #f0fdf9; color: var(--teal); font-size: 12px;
  border: 1px solid #ccfbf1;
}

.hero { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 32px; align-items: start; padding: 24px 0 48px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 46ch; }
.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 15px;
  margin: 0 0 0.45rem;
}
.eyebrow--hero {
  font-size: 18px;
  letter-spacing: 0.16em;
}
.hero-actions, .inline-field { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.inline-field { margin: 0 0 12px; }
.hero-panel, .panel, .plan-card, .auth-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-grid div, .hero-panel .stat-grid div {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
}
.stat-grid strong { display: block; font-size: 1.3rem; }
.stat-grid span, .muted { color: var(--muted); }
.role-list { list-style: none; padding: 0; margin: 0; }
.role-list li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); }
.role-list b { display: block; color: var(--text); }

.section { margin: 18px 0 46px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 18px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.price { font-size: 2rem; font-family: Syne, sans-serif; margin: 8px 0; }
.price small { font-size: 0.9rem; color: var(--muted); margin-left: 6px; }
.is-locked { opacity: 0.72; background-image: repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(232,77,26,0.04) 10px, rgba(232,77,26,0.04) 12px); }

.profile-grid .auth-card { width: auto; }
.auth-layout { display: grid; place-items: start center; padding-top: 20px; }
.auth-card { width: min(460px, 100%); }
.auth-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
}
.auth-tab {
  flex: 1;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.auth-tab.is-on {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(232, 77, 26, 0.08);
}
.form-stack { display: grid; gap: 12px; }
.profile-field { display: grid; gap: 6px; }
.profile-field > .muted { margin: 0; font-size: 14px; }
.profile-username-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}
.profile-username-value {
  font-size: 16px;
  color: var(--text);
}
.profile-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.profile-edit-btn:hover {
  color: var(--accent);
  background: rgba(232, 77, 26, 0.08);
}
.profile-phone {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}
.profile-username-edit .errorlist { margin-top: 6px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.check-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}
.check-row label {
  display: inline;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.field-input, select.field-input, textarea {
  width: 100%; background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit;
}
.errorlist { color: var(--danger); list-style: none; padding: 0; margin: 6px 0 0; font-size: 13px; }
.inline-field .field-input { flex: 1; min-width: 220px; }
.captcha-field { margin: 2px 0 4px; }
.captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.captcha-status { font-size: 14px; }

.roster-note-form { display: flex; gap: 8px; align-items: center; margin: 0; }
.roster-note-form .field-input { min-width: 140px; width: 180px; padding: 6px 10px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; }
.code-block {
  margin: 0;
  padding: 12px 14px;
  overflow: auto;
  max-height: 420px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  background: color-mix(in srgb, var(--line) 35%, transparent);
  border-radius: 12px;
}
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}
input.field-input[type="datetime-local"] {
  min-width: 210px;
}
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 13px; background: var(--bg-2); }

.flash-stack {
  width: min(var(--page-width), calc(100% - var(--page-gutter) * 2));
  margin: 12px auto 0;
  display: grid;
  gap: 8px;
}
.flash { padding: 10px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.flash-success { background: rgba(22, 163, 74, 0.08); color: var(--ok); border-color: rgba(22, 163, 74, 0.2); }
.flash-error, .flash-warning { background: rgba(220, 38, 38, 0.08); color: var(--danger); border-color: rgba(220, 38, 38, 0.2); }
.flash-info { background: rgba(13, 148, 136, 0.08); color: var(--teal); border-color: rgba(13, 148, 136, 0.2); }

.staff-nav, .staff-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px;
}
.staff-nav a, .staff-tabs a {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.staff-nav a.is-on, .staff-tabs a.is-on { color: var(--text); border-color: var(--accent); background: rgba(232,77,26,0.08); }
.staff-log-title { margin: 22px 0 6px; font-size: 1.05rem; }
.staff-burst-prefs {
  margin: 22px 0 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.staff-burst-prefs h2 { margin: 0 0 6px; font-size: 1.1rem; }
.staff-burst-prefs__form { display: grid; gap: 14px; margin-top: 12px; }
.staff-burst-prefs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 16px;
  align-items: end;
}
.staff-burst-prefs__grid label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.staff-burst-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  grid-template-columns: none !important;
  min-height: 42px;
  color: var(--text) !important;
}
.staff-burst-check input { width: 16px; height: 16px; }
.staff-burst-editor { margin-top: 28px; }
.staff-burst-slot-list { display: grid; gap: 14px; }
.staff-burst-slot {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--card);
}
.staff-burst-slot.is-empty { opacity: 0.78; }
.staff-burst-slot.is-locked {
  border-color: rgba(232, 77, 26, 0.45);
  box-shadow: inset 3px 0 0 var(--accent);
}
.staff-burst-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(232, 77, 26, 0.35);
  vertical-align: middle;
}
.staff-burst-badge--rec {
  color: var(--ok, #15803d);
  border-color: rgba(22, 163, 74, 0.35);
}
.staff-burst-slot__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.staff-burst-slot__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.staff-burst-slot__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 12px;
  margin-bottom: 10px;
}
.staff-burst-slot__fields label { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.staff-burst-slot__note { grid-column: 1 / -1; }
.staff-burst-slot__meta { margin: 0 0 10px; font-size: 13px; }
.scope-grid { display: grid; gap: 8px; margin: 0 0 16px; }
.burst-block { margin: 28px 0; }
.burst-block--plain { margin: 12px 0 0; }
.mode-label-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  color: #fff;
  user-select: none;
}
.mode-label-badge--single { background: var(--accent); }
.mode-label-badge--double { background: #7c3aed; }
.query-filters { margin-bottom: 12px; }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-top: 10px; }
.filter-row label { min-width: 140px; }
.paywall-panel { max-width: 560px; }
.slot-meta { display: grid; gap: 8px; margin: 10px 0 0; font-size: 14px; }
.slot-meta div { display: grid; grid-template-columns: 72px 1fr; gap: 8px; align-items: start; }
.slot-meta dt { margin: 0; color: var(--muted); font-weight: 600; }
.slot-meta dd { margin: 0; }
.slot-meta .slot-note { grid-column: 1 / -1; display: grid; grid-template-columns: 72px 1fr; gap: 8px; }
.slot-gain { font-weight: 800; font-size: 1.05rem; }
.burst-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.slot-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
}
.slot-card h4 { margin: 0 0 6px; }
.slot-card.is-empty { opacity: 0.55; }
.slot-bonly {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.02);
}
.slot-bonly > summary {
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  user-select: none;
}
.slot-bonly > summary::-webkit-details-marker { display: none; }
.slot-bonly > summary::before {
  content: "▸ ";
  color: var(--accent);
}
.slot-bonly[open] > summary {
  margin-bottom: 10px;
  color: var(--text);
}
.slot-bonly[open] > summary::before { content: "▾ "; }
.slot-bonly .slot-card { margin: 0; }

/* —— 爆气查询列表 —— */
.site-main:has(.query-section) {
  padding-top: 10px;
}
.query-section {
  margin-top: 0;
}
.query-section .section-head {
  align-items: start;
  margin-bottom: 12px;
}
.query-section .section-head h1 {
  flex: 0 0 auto;
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
}
.query-section .section-head p {
  flex: 1 1 280px;
  margin: 0;
  max-width: 36em;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.query-shell {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.alpha-rail {
  /* 热区相对 28px 栏宽向外扩一截，便于鼠标/触屏滑动选字母 */
  --alpha-rail-pad-start: 14px;
  --alpha-rail-pad-end: 20px;
  --alpha-rail-pad-y: 10px;
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 28px;
  box-sizing: content-box;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: var(--alpha-rail-pad-y) var(--alpha-rail-pad-end) var(--alpha-rail-pad-y) var(--alpha-rail-pad-start);
  margin: calc(var(--alpha-rail-pad-y) * -1) calc(var(--alpha-rail-pad-end) * -1) calc(var(--alpha-rail-pad-y) * -1) calc(var(--alpha-rail-pad-start) * -1);
  border-right: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.alpha-rail::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 auto;
  left: calc(var(--alpha-rail-pad-start) + 28px);
  width: 1px;
  background: var(--line);
  pointer-events: none;
}
.alpha-rail::-webkit-scrollbar {
  display: none;
}
.alpha-rail__item {
  display: grid;
  place-items: center;
  width: 28px;
  min-height: 22px;
  padding: 2px 0;
  border-radius: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-family: "Noto Sans SC", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  flex: 0 0 auto;
}
.alpha-rail__item:hover,
.alpha-rail__item.is-scrub {
  color: var(--text);
  background: rgba(232, 77, 26, 0.1);
}
.alpha-rail__item.is-on,
.alpha-rail__item.is-on:hover,
.alpha-rail__item.is-on.is-scrub {
  color: #fff;
  background: var(--text);
  font-weight: 700;
}
.query-toolbar { margin-bottom: 8px; }
.query-section .query-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-bottom: 2px;
  padding: 6px 0 10px;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}
.query-section .bpm-combo__menu {
  z-index: 30;
}
.query-section .query-filters {
  margin-bottom: 0;
}
.query-section .query-mode-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0 2px;
  margin-bottom: 8px;
  width: 100%;
  min-width: 0;
}
.query-section .family-filter,
.query-section .star-filter,
.query-section .bpm-filter {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
}
.query-section .star-filter {
  margin-left: -1px;
}
.query-section .family-picker,
.query-section .star-picker,
.query-section .bpm-combo {
  flex: 1 1 auto;
  min-width: 0;
}
.query-section .family-filter__text,
.query-section .star-filter__text,
.query-section .bpm-filter__text {
  flex: 0 0 auto;
  min-width: 0;
  font-size: 12px;
  letter-spacing: -0.02em;
}
.query-section .star-picker__trigger,
.query-section .family-picker__trigger {
  width: 100%;
  min-width: 4.35rem;
  max-width: none;
  padding: 6px 3px 6px 6px;
  gap: 2px;
  font-size: 12px;
}
.query-section .family-picker__value {
  gap: 0.25em;
  font-size: 12px;
}
.query-section .family-picker__icon {
  width: 14px;
  height: 14px;
}
.query-section .star-picker__value {
  font-size: 12px;
}
.query-section .star-picker__caret,
.query-section .family-picker__caret {
  font-size: 10px;
}
.query-section .bpm-combo__field {
  box-sizing: border-box;
  width: 100%;
  min-width: calc(4.75ch + 1.05rem);
  max-width: none;
  border-radius: 12px;
  overflow: hidden;
}
.query-section .bpm-combo__input,
.query-section .bpm-combo__input[readonly] {
  width: auto;
  min-width: 4.75ch;
  max-width: none;
  flex: 1 1 auto;
  padding: 6px 2px 6px 6px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: clip;
}
.query-section .bpm-combo__caret {
  padding: 0 4px;
  font-size: 10px;
}
.query-section .query-search-line {
  width: 100%;
}
.query-section .family-filter__text,
.query-section .star-filter__text,
.query-section .bpm-filter__text,
.query-section .search-filter__text {
  flex: 0 0 auto;
}
.query-section .search-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.query-section .search-filter .search-box {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: none;
}
.query-section .search-filter .field-input {
  width: 100%;
  min-width: 0;
  padding: 8px 32px 8px 10px;
  font-size: 13px;
}
.query-section .search-filter .btn {
  flex: 0 0 auto;
  margin-right: calc(-1 * var(--query-bleed-right) + 8px);
  padding: 8px 12px;
  font-size: 13px;
}
.query-section .query-main {
  overflow: visible;
  min-width: 0;
  margin-right: var(--query-bleed-right);
}
.query-mode-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 12px;
}
.star-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}
.star-filter__text {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.star-picker {
  position: relative;
}
.star-picker__native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.star-picker__trigger,
.family-picker__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-sizing: border-box;
  width: 5.25rem;
  min-width: 5.25rem;
  max-width: 5.25rem;
  padding: 8px 8px 8px 10px;
  cursor: pointer;
  text-align: left;
}
.star-picker__value,
.family-picker__value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.star-picker__value {
  font-size: 13px;
  font-weight: 600;
}
.star-picker__caret,
.family-picker__caret {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  flex: 0 0 auto;
}
.star-picker__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  min-width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: grid;
  gap: 2px;
}
.star-picker__menu[hidden] {
  display: none !important;
}
.star-picker__option {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}
.star-picker__option:hover,
.star-picker__option.is-on {
  background: rgba(232, 77, 26, 0.08);
}
.search-filter__text {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.bpm-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}
.bpm-filter__text {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.bpm-combo {
  position: relative;
}
.bpm-combo__field {
  display: inline-flex;
  align-items: stretch;
  width: auto;
  min-width: 0;
  padding: 0;
  overflow: visible;
}
.bpm-combo__input {
  flex: 0 1 auto;
  width: 5.5ch;
  min-width: 5.5ch;
  max-width: 10ch;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 8px 4px 8px 10px;
  color: var(--text);
}
.bpm-combo__input::placeholder {
  color: var(--muted);
  font-weight: 600;
}
.bpm-combo__input:focus {
  outline: none;
}
.bpm-combo__input[readonly] {
  width: auto;
  min-width: 5.5ch;
  max-width: none;
  color: var(--muted);
  cursor: text;
}
.bpm-combo__caret {
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  border: none;
  border-left: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.02);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  padding: 0 7px;
  cursor: pointer;
}
.bpm-combo__caret:hover {
  color: var(--text);
  background: rgba(232, 77, 26, 0.06);
}
.bpm-combo__menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 4px;
}
.bpm-combo__menu[hidden] {
  display: none !important;
}
.bpm-combo__option {
  display: block;
  width: 100%;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.bpm-combo__option:hover,
.bpm-combo__option.is-on {
  background: rgba(232, 77, 26, 0.08);
}
.family-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}
.family-filter__text {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.family-picker {
  position: relative;
}
.family-picker__native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.family-picker__value {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 13px;
  font-weight: 600;
}
.family-picker__value > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.family-picker__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  min-width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: grid;
  gap: 2px;
}
.family-picker__menu[hidden] {
  display: none !important;
}
.family-picker__option {
  display: flex;
  align-items: center;
  gap: 0.45em;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.family-picker__option:hover,
.family-picker__option.is-on {
  background: rgba(232, 77, 26, 0.08);
}
.family-picker__icon {
  width: 1em;
  height: 1em;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}
.family-picker__icon.is-ornate {
  width: 1.35em;
  height: 1em;
}
.mode-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #334155;
  flex: 0 0 auto;
}
.mode-badge[data-family="xingdong"] { background: #e8408c; }
.mode-badge[data-family="dianfeng"] { background: #7c3aed; }
.mode-badge[data-family="pinball"] { background: #6d28d9; }
.mode-badge[data-family="bubble"] { background: #0ea5e9; }
.mode-badge[data-family="crescent"] { background: #ea580c; }
.mode-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}
.mode-icon-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-weight: 700;
  font-size: 13px;
}
.mode-icon-chip:hover,
.mode-icon-chip.is-on {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(232, 77, 26, 0.06);
}
.mode-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  object-fit: cover;
}
.mode-icon--ornate {
  width: 40px;
  height: 28px;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
  filter: drop-shadow(0 2px 6px rgba(124, 58, 237, 0.28));
}
.mode-icon--sm { width: 28px; height: 28px; }
.mode-icon--sm.mode-icon--ornate { width: 36px; height: 24px; }
.star-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}
.query-filter-row { margin-top: 0; align-items: end; }
.query-search-field { flex: 1; min-width: 200px; align-items: center; }
.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-box .field-input {
  width: 100%;
  min-width: 0;
  padding-right: 38px;
}
.search-box input[type="search"]::-webkit-search-cancel-button,
.query-search-field input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.search-box input[type="search"]::-ms-clear,
.query-search-field input[type="search"]::-ms-clear {
  display: none;
}
.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  display: none;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.search-clear.is-on { display: grid; }
.search-clear:hover { color: var(--text); background: rgba(15, 23, 42, 0.06); }
.query-hint { margin: 0 0 10px; }
.query-section .query-hint {
  margin: 0 0 8px;
}
.query-hint__summary { color: var(--text); }
.query-hint__mode,
.query-hint__star,
.query-hint__letter { font-weight: 700; }
.query-hint__mode[data-family="xingdong"] { color: #c026a8; } /* 粉紫 */
.query-hint__mode[data-family="dianfeng"] { color: #7c3aed; } /* 紫 */
.query-hint__mode[data-family="pinball"] { color: #0891b2; } /* 青蓝 */
.query-hint__mode[data-family="bubble"] { color: #ca8a04; } /* 金黄 */
.query-hint__mode[data-family="crescent"] { color: #ea580c; } /* 橙红 */
.query-hint__star { color: var(--text); }
.query-hint__letter { color: var(--text); }
.query-hint__bpm {
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.query-hint__q { color: var(--text); font-weight: 800; }
.song-list {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}
.song-row {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #e8eaee;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.song-row:last-child { border-bottom: 0; }
.song-row:hover { background: rgba(15, 23, 42, 0.03); }
.song-row.is-fire,
.song-row.is-fire .song-row__title { color: var(--danger); }
.song-row__title-rail {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  cursor: default;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.song-row__title-rail.is-overflow {
  cursor: grab;
  touch-action: none;
}
.song-row__title-rail.is-dragging {
  cursor: grabbing;
}
.song-row__title {
  display: inline-block;
  max-width: none;
  font-weight: 700;
  white-space: nowrap;
  will-change: transform;
}
.song-row__meta {
  display: inline-flex;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.song-row.is-fire .song-row__meta { color: #f87171; }
.song-row__bpm {
  flex: 0 0 auto;
  margin-left: 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.song-row.is-fire .song-row__bpm { color: #f87171; }
.song-tag { font-weight: 600; }
.song-list__empty { margin: 0; padding: 24px 16px; }

.category-modal[hidden] { display: none !important; }
.category-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}
.category-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.category-modal__panel {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px 24px 24px;
}
.category-modal__x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.category-modal__warn {
  margin: 0 0 14px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
}
.category-modal__mode {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  flex-wrap: wrap;
}
.category-modal__mode-lead {
  color: var(--text);
}
.category-modal__mode-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.category-modal__mode-name {
  font-weight: 700;
}
.category-modal__mode-meta {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.category-modal__mode-name[data-family="xingdong"] { color: #c026a8; }
.category-modal__mode-name[data-family="dianfeng"] { color: #7c3aed; }
.category-modal__mode-name[data-family="pinball"] { color: #0891b2; }
.category-modal__mode-name[data-family="bubble"] { color: #ca8a04; }
.category-modal__mode-name[data-family="crescent"] { color: #ea580c; }
.category-modal__title {
  margin: 0 0 18px;
  font-size: 1.45rem;
}
.category-modal__title:has(+ .category-modal__artist:not([hidden])) {
  margin-bottom: 4px;
}
.category-modal__artist {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.category-modal__artist[hidden] {
  display: none !important;
}
.category-modal__prompt {
  margin: 0 0 14px;
  color: var(--text);
}
.category-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.category-modal__lock { margin: 12px 0 0; }
.resume-modal__body {
  margin: 0 0 12px;
  line-height: 1.6;
}
.resume-modal .category-modal__title { font-size: 22px; }

/* —— 爆点详情 —— */
.burst-detail {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.burst-detail__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px 16px 18px;
  box-shadow: var(--shadow);
}
.burst-detail__head {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.burst-detail__mode-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.burst-family-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 3px 3px;
  border-radius: 999px;
  background: #fce7f3;
  color: #9d174d;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}
.burst-family-pill .mode-icon {
  width: 24px;
  height: 24px;
  box-shadow: none;
}
.burst-family-pill .mode-icon--ornate {
  width: 32px;
  height: 22px;
}
.burst-family-pill[data-family="xingdong"] { background: #fce7f3; color: #9d174d; }
.burst-family-pill[data-family="dianfeng"] { background: #ede9fe; color: #6d28d9; }
.burst-family-pill[data-family="pinball"] { background: #cffafe; color: #0e7490; }
.burst-family-pill[data-family="bubble"] { background: #fef9c3; color: #a16207; }
.burst-family-pill[data-family="crescent"] { background: #ffedd5; color: #c2410c; }
.burst-family-pill__text { white-space: nowrap; }
.burst-detail__mode-name {
  font-weight: 700;
  font-size: 15px;
}
.burst-detail__mode-name[data-family="xingdong"] { color: #c026a8; }
.burst-detail__mode-name[data-family="dianfeng"] { color: #7c3aed; }
.burst-detail__mode-name[data-family="pinball"] { color: #0891b2; }
.burst-detail__mode-name[data-family="bubble"] { color: #ca8a04; }
.burst-detail__mode-name[data-family="crescent"] { color: #ea580c; }
.burst-detail__star {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.burst-detail__title-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}
.burst-detail__skill {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  flex: 0 0 auto;
}
.burst-detail__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: "Noto Sans SC", "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.burst-detail__title.is-fire {
  color: var(--danger);
}
.burst-detail__bpm {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--muted);
  font-family: "Noto Sans SC", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.burst-detail__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.burst-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f3f4f6;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.burst-detail__close {
  width: 28px;
  height: 28px;
  margin-left: auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}
.burst-detail__close:hover { color: var(--text); border-color: var(--accent); }
.burst-detail__switch { margin-bottom: 8px; }
.burst-accordion { display: grid; gap: 14px; margin-bottom: 0; }
.burst-item {
  background: transparent;
  overflow: visible;
}
.burst-item--bonly .burst-item__box { border-style: dashed; }
.burst-item--empty {
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fff;
}
.burst-item__box {
  position: relative;
  background: #f3f4f6;
  border-radius: 14px;
  padding: 12px 12px 10px;
}
.burst-code-stack {
  display: grid;
  gap: 10px;
}
.burst-code-row {
  display: grid;
  grid-template-columns: minmax(72px, 96px) minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
}
.burst-code-col {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 4px;
  min-width: 0;
  max-width: 96px;
  width: 100%;
}
.burst-item.is-open .burst-code-col {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px 0;
  max-width: 96px;
}
.burst-code {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ff0000;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.burst-code-rank {
  color: var(--muted);
  font-family: "Noto Sans SC", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.burst-code-rank:empty {
  display: none;
}
.burst-code.is-fire,
.burst-item.is-fire .burst-code { color: #ff0000; }
.burst-desc-card {
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
}
.burst-descs {
  display: grid;
  gap: 1px;
}
.burst-item__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.burst-item__correct {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
}
.burst-item__cb-input.field-input {
  width: 118px;
  min-width: 0;
  flex: 0 1 118px;
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 8px;
  background: #fff;
}
.burst-item__calc,
.burst-item__undo {
  padding: 7px 10px;
  font-size: 13px;
  white-space: nowrap;
  border-radius: 8px;
  background: #fff;
}
.burst-item__calc:disabled,
.burst-item__undo:disabled {
  opacity: 1;
  color: var(--muted);
  background: #fff;
}
.burst-item__toggle {
  border: 0;
  background: none;
  padding: 0;
  margin-left: auto;
  color: #2563eb;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
}
.burst-item__box .burst-item__toggle--float {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 5;
  margin-left: 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 4px 8px;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.18);
}
.burst-item__toggle:hover { color: #1d4ed8; }
.burst-item:not(.is-open) .burst-desc-card,
.burst-item:not(.is-open) .burst-desc--type,
.burst-item:not(.is-open) .burst-item__correct {
  display: none;
}
.burst-item:not(.is-open) .burst-code-row {
  grid-template-columns: minmax(0, 1fr);
}
.burst-item:not(.is-open) .burst-code-col {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 4px;
  max-width: none;
  width: auto;
}
.burst-item:not(.is-open) .burst-code-rank {
  white-space: nowrap;
}
.burst-item:not(.is-open) .burst-item__box {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
}
.burst-item:not(.is-open) .burst-code-stack {
  flex: 1 1 auto;
  min-width: 0;
  gap: 4px;
}
.burst-item:not(.is-open) .burst-item__toolbar {
  margin-top: 0;
  flex: 0 0 auto;
}
.burst-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.burst-item.is-open .burst-item__panel { grid-template-rows: 1fr; }
.burst-item__panel-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.burst-item.is-open .burst-item__panel-inner { opacity: 1; }
.burst-item__tail { margin-top: 0; }
.burst-item.is-open .burst-item__tail { margin-top: 10px; }
.burst-item__body { padding: 0; text-align: left; }
.burst-desc-line {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
  text-align: left;
}
.burst-desc-tag {
  font-weight: 700;
  color: var(--text);
}
.burst-start-combo {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.burst-start-combo.is-fire { color: var(--danger); }
.burst-desc--note { color: var(--muted); margin: 4px 0 0; text-align: left; font-size: 12px; }
.burst-desc--type { padding-left: 0; }
.burst-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 8px;
}
.burst-stat {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 5px 8px 4px;
  text-align: left;
}
.burst-stat__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}
.burst-stat__value {
  display: block;
  margin-top: 1px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.burst-stat__value.slot-gain {
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
}
.score-delta {
  margin-left: 2px;
  font-weight: 700;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.score-delta.is-pos { color: var(--ok); }
.score-delta.is-neg { color: var(--danger); }
.burst-extra { display: grid; gap: 4px; margin: 0; font-size: 13px; }
.burst-extra div { display: grid; grid-template-columns: 72px 1fr; gap: 8px; }
.burst-extra dt { margin: 0; color: var(--muted); font-weight: 600; }
.burst-extra dd { margin: 0; }
.burst-extra__note { grid-column: 1 / -1; }

@media (max-width: 880px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    gap: 8px;
    align-items: center;
  }
  .brand {
    grid-area: brand;
    min-width: 0;
  }
  .header-actions {
    grid-area: actions;
    margin-left: 0;
    flex-shrink: 0;
    gap: 6px;
    justify-self: end;
  }
  .site-nav {
    grid-area: nav;
    display: flex;
    min-width: 0;
    gap: 10px;
    overflow: visible;
  }
  .site-nav__link--primary {
    font-size: 12px;
    padding: 6px 10px;
  }
  .site-nav__link--extra {
    display: none;
  }
  .brand-logo {
    height: 28px;
    max-width: min(108px, 42vw);
  }
  .header-actions__auth {
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  .user-menu__nav {
    display: grid;
  }
  .user-menu__menu {
    min-width: 168px;
  }
}

@media (max-width: 800px) {
  .burst-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .query-shell { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
  /* 手机端再扩一截：约等于栏宽，拇指更容易落在滑动热区内 */
  .alpha-rail {
    --alpha-rail-pad-start: 20px;
    --alpha-rail-pad-end: 32px;
    --alpha-rail-pad-y: 16px;
  }
}
