/* 悬赏榜单：独立 .bt 命名空间，直角细描边，紫色强调。 */
.bt-page { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.bt-page *, .bt-page *::before, .bt-page *::after { box-sizing: border-box; }
.bt-page .shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.bt-page .test-banner { padding: 6px 12px; background: #fff3c4; color: #6b5300; font-size: .76rem; font-weight: 800; text-align: center; }
.bt-page [hidden] { display: none !important; }
.bt-page :where(button, input, select, textarea) { font: inherit; color: inherit; }
.bt-page button, .bt-page select { cursor: pointer; }
.bt-page button:disabled { cursor: default; opacity: .45; }
.bt-page :focus-visible { outline: 3px solid var(--bt-accent); outline-offset: 3px; }
.bt-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bt-main { padding-bottom: 24px; }
.bt-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 48px; align-items: end; padding: 52px 0 40px; }
.bt-kicker { margin: 0 0 14px; color: var(--bt-accent); font-size: .72rem; font-weight: 900; letter-spacing: .18em; }
.bt-hero h1 { margin: 0; font-size: clamp(3rem, 6.5vw, 6.2rem); line-height: .98; letter-spacing: -.035em; }
.bt-sub { margin: 20px 0 0; color: var(--text); font-size: .92rem; }
.bt-rank-card { border: 1px solid var(--line); border-top: 3px solid var(--bt-accent); background: var(--card); }
.bt-rank-card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
#btRank { max-height: 328px; overflow: auto; overscroll-behavior: contain; }
.bt-rank-card h2 { margin: 0; font-size: 1rem; }
.bt-rank-card header span { color: var(--muted); font-size: .7rem; font-weight: 700; }
.bt-rank { width: 100%; border-collapse: collapse; font-size: .82rem; }
.bt-rank th, .bt-rank td { padding: 10px 16px; border-bottom: 1px solid var(--line); text-align: right; }
.bt-rank th { color: var(--muted); font-size: .68rem; font-weight: 800; }
.bt-rank th:nth-child(-n+2), .bt-rank td:nth-child(-n+2) { text-align: left; }
.bt-rank tr:last-child td { border-bottom: 0; }
.bt-rank tr.bt-top { background: var(--bt-accent-soft); }
.bt-rank tr.bt-top td:first-child { color: var(--bt-accent); font-weight: 900; }
.bt-rank-empty { padding: 28px 16px; color: var(--muted); font-size: .8rem; text-align: center; }
.bt-publish, .bt-board { border-top: 1px solid var(--ink); padding-top: 16px; }
.bt-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.bt-section-head h2 { margin: 0; font-size: 1.2rem; letter-spacing: -.02em; }
.bt-section-head > span { color: var(--muted); font-size: .72rem; font-weight: 700; }
.bt-form { display: grid; grid-template-columns: 1.4fr .85fr .8fr 1fr .9fr .65fr; gap: 12px; padding: 16px; border: 1px solid var(--line); background: var(--card); }
.bt-field { display: grid; align-content: start; gap: 6px; min-width: 0; color: var(--text); font-size: .72rem; font-weight: 800; }
.bt-field input, .bt-field select, .bt-field textarea, .bt-filters select {
  width: 100%; min-width: 0; min-height: 42px; padding: 9px 10px; border: 1px solid var(--line);
  border-radius: 0; background: transparent; color: var(--ink); font-size: .84rem; font-weight: 500;
}
.bt-field textarea { min-height: 66px; resize: vertical; line-height: 1.5; }
.bt-field input:focus, .bt-field select:focus, .bt-field textarea:focus, .bt-filters select:focus { border-color: var(--bt-accent); outline: 0; box-shadow: inset 0 0 0 1px var(--bt-accent); }
.bt-field input::placeholder, .bt-field textarea::placeholder { color: var(--muted); }
.bt-wide { grid-column: span 3; }
.bt-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0; background: var(--card); color: var(--ink); font-size: .78rem; font-weight: 800; white-space: nowrap; transition: border-color 140ms ease, background 140ms ease; }
.bt-button:hover:not(:disabled) { border-color: var(--bt-accent); color: var(--bt-accent); }
.bt-button.bt-primary { border-color: var(--bt-accent); background: var(--bt-accent); color: #fff; }
.bt-button.bt-primary:hover:not(:disabled) { background: #582a97; color: #fff; }
.bt-submit { align-self: end; min-height: 42px; }
.bt-board { margin-top: 36px; }
.bt-board-head { align-items: center; }
.bt-filters { display: flex; gap: 8px; }
.bt-filters select { min-height: 36px; padding: 6px 28px 6px 10px; font-size: .76rem; font-weight: 700; }
.bt-list { display: grid; gap: 10px; }
.bt-item { border: 1px solid var(--line); border-left: 3px solid var(--bt-accent); background: var(--card); }
.bt-item.bt-done { border-left-color: #4c8a63; }
.bt-item.bt-expired, .bt-item.bt-withdrawn { border-left-color: #a49da8; }
.bt-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 14px 16px 10px; }
.bt-item-head > div { min-width: 0; }
.bt-category { display: inline-block; margin-bottom: 5px; padding: 2px 7px; border: 1px solid color-mix(in srgb, var(--bt-accent) 35%, var(--line)); border-radius: 0; color: var(--bt-accent); font-size: .66rem; font-weight: 900; }
.bt-item h3 { margin: 0; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.45; }
.bt-status { flex: none; color: var(--muted); font-size: .72rem; font-weight: 900; }
.bt-open > .bt-item-head .bt-status, .bt-progress > .bt-item-head .bt-status { color: var(--bt-accent); }
.bt-done > .bt-item-head .bt-status { color: #39744e; }
.bt-item-body { display: grid; grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr); gap: 4px 28px; padding: 0 16px 14px; }
.bt-reward { grid-row: span 2; margin: 0; color: var(--bt-deep); font-family: var(--font-score); font-size: 1.45rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.bt-detail { grid-column: 2; margin: 0; color: var(--text); font-size: .82rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.bt-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 8px 0 0; font-size: .74rem; }
.bt-meta div { display: flex; gap: 6px; min-width: 0; }
.bt-meta dt { color: var(--muted); }
.bt-meta dd { margin: 0; overflow-wrap: anywhere; }
.bt-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bt-collapse { display: block; margin: 0 16px 12px auto; padding: 2px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); font-size: .7rem; }
.bt-empty { padding: 56px 20px; border: 1px dashed var(--line); color: var(--muted); text-align: center; font-size: .84rem; }
.bt-footer { padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; text-align: center; }
.bt-page .toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 0; background: var(--bt-deep); color: #fff; box-shadow: 0 10px 30px rgba(40,20,65,.22); font-size: .84rem; font-weight: 800; opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: 180ms ease; }
.bt-page .toast.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.bt-page .toast-action { padding: 2px 0; border: 0; border-bottom: 1px solid #d6b4ff; background: transparent; color: #d6b4ff; font-weight: 900; white-space: nowrap; }
.bt-page .brand-divider { width: 1px; height: 20px; background: var(--nav-line); }
.bt-page .brand-group { display: flex; align-items: center; gap: 12px; }
.bt-entry { --fg: #fbf7ff; --sub: #c9b9db; --accent: #d6b4ff; --on-accent: #281441; --rule: rgba(214,180,255,.22); --bg-card: #281441; grid-column: 1 / -1; min-height: 210px; margin-top: 16px; background: radial-gradient(ellipse at 85% 0, rgba(214,180,255,.2), transparent 55%), linear-gradient(120deg, #35204e, #281441); }
.bt-entry .art { width: 220px; height: 220px; right: 6%; top: 50%; transform: translateY(-50%); opacity: .8; }
.bt-entry h3 { margin-top: auto; }
.bt-entry .stats { max-width: 420px; }
@media (max-width: 1000px) {
  .bt-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bt-wide { grid-column: span 3; }
}
@media (max-width: 820px) {
  .bt-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .bt-rank-card { max-width: 520px; }
  #btRank { max-height: 232px; }
  .bt-board-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .bt-page .shell { width: calc(100% - 28px); }
  .bt-hero h1 { font-size: 3.4rem; }
  .bt-form { grid-template-columns: 1fr; padding: 12px; }
  .bt-wide { grid-column: auto; }
  .bt-submit { width: 100%; }
  .bt-filters { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .bt-filters select:last-child { grid-column: 1 / -1; }
  .bt-item-head { padding: 12px 12px 8px; gap: 10px; }
  .bt-item-body { grid-template-columns: 1fr; padding: 0 12px 12px; }
  .bt-reward, .bt-detail, .bt-meta, .bt-actions { grid-column: 1; grid-row: auto; }
  .bt-reward { font-size: 1.25rem; }
  .bt-meta { display: grid; gap: 4px; }
  .bt-actions { display: grid; grid-template-columns: 1fr; }
  .bt-actions .bt-button { width: 100%; }
  .bt-collapse { margin-right: 12px; }
  .bt-entry { min-height: 230px; }
  .bt-entry .art { right: -36px; width: 170px; height: 170px; }
}
