/* =========================================================
   星援打榜聚合站 · styles.css
   深色渐变 / 玻璃拟态 / 细腻微动效
   ========================================================= */

:root {
  --bg: #070713;
  --bg-soft: #0d0d21;
  --card: rgba(255, 255, 255, .055);
  --card-hover: rgba(255, 255, 255, .09);
  --stroke: rgba(255, 255, 255, .10);
  --text: #f2f3ff;
  --text-dim: #9aa0c0;
  --text-faint: #6a7092;
  --accent: #ff5f9e;
  --accent2: #b16cff;
  --accent3: #6c8cff;
  --good: #37e2a5;
  --bad: #ff5f6d;
  --gold: #ffc95e;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .35);
  --grad: linear-gradient(135deg, var(--accent), var(--accent2) 52%, var(--accent3));
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(177, 108, 255, .4); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
img, svg { display: block; }

/* ---------------- 背景装饰 ---------------- */
.bg-decor {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #161636 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .42; animation: drift 22s ease-in-out infinite alternate; }
.orb-1 { width: 480px; height: 480px; background: #7b2ff7; top: -160px; left: -140px; }
.orb-2 { width: 420px; height: 420px; background: #ff2f92; top: 28%; right: -180px; animation-delay: -7s; }
.orb-3 { width: 400px; height: 400px; background: #2f7bff; bottom: -140px; left: 18%; animation-delay: -13s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.15); }
}

/* ---------------- 头部 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(8, 8, 20, .68);
  border-bottom: 1px solid var(--stroke);
}
.header-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .3px; }
.brand-logo {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 11px; background: var(--grad); color: #fff;
  font-size: 17px; box-shadow: 0 6px 20px rgba(177, 108, 255, .45);
  transition: transform .3s ease;
}
.brand:hover .brand-logo { transform: rotate(20deg) scale(1.06); }
.brand-text { font-size: 16px; background: linear-gradient(90deg, #fff, #d9d3ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--text-dim);
  transition: color .25s, background .25s;
}
.top-nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.top-nav a.active { color: #fff; background: var(--grad); box-shadow: 0 6px 18px rgba(177,108,255,.4); }

.header-action { flex-shrink: 0; }

/* ---------------- 布局 ---------------- */
.app { max-width: 1120px; margin: 0 auto; padding: 26px 20px 60px; }

.page { animation: fadeUp .45s ease both; }

.noscript { color: var(--text-dim); text-align: center; padding: 40px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .25s ease, background .25s ease, opacity .2s;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(177, 108, 255, .4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255, 95, 158, .45); }
.btn-ghost { background: rgba(255,255,255,.05); border-color: var(--stroke); color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-soft { background: rgba(255, 95, 158, .12); color: #ff9dc4; border-color: rgba(255,95,158,.25); }
.btn-soft:hover { background: rgba(255, 95, 158, .22); transform: translateY(-2px); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-pulse { animation: pulse 2.6s infinite; }
.btn:disabled { opacity: .5; pointer-events: none; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(177, 108, 255, .4); }
  50%      { box-shadow: 0 8px 34px rgba(255, 95, 158, .65), 0 0 0 8px rgba(255, 95, 158, .08); }
}

/* ---------------- 卡片 & 网格 ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: background .3s ease, transform .3s ease, border-color .3s ease;
}

.section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 34px 2px 16px;
}
.section-head h2 { margin: 0; font-size: 19px; letter-spacing: .4px; }
.section-head h3 { margin: 0; }

.live-dot {
  font-size: 12px; color: var(--text-faint); display: inline-flex; align-items: center; gap: 6px;
}
.live-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--good); box-shadow: 0 0 8px var(--good);
  animation: blink 1.8s infinite;
}
@keyframes blink { 50% { opacity: .35; } }

.grid2 { display: grid; grid-template-columns: 1.25fr .9fr; gap: 16px; margin-top: 16px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden; padding: 40px 36px 30px;
  background:
    radial-gradient(90% 120% at 80% -20%, rgba(255, 95, 158, .22), transparent 55%),
    radial-gradient(80% 120% at 10% 110%, rgba(108, 140, 255, .18), transparent 55%),
    var(--card);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.05) 50%, transparent 60%);
  transform: translateX(-100%); animation: sheen 6s 1.2s ease infinite;
}
@keyframes sheen { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px;
  background: rgba(55, 226, 165, .1); color: var(--good);
  border: 1px solid rgba(55, 226, 165, .25);
}
.hero h1 {
  margin: 18px 0 6px; font-size: clamp(28px, 5vw, 42px); letter-spacing: 1px;
  background: linear-gradient(90deg, #fff 20%, #d3b8ff 60%, #ffc7dd);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { margin: 0 0 22px; color: var(--text-dim); font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--stroke);
  display: flex; gap: 34px; flex-wrap: wrap;
}
.hero-stats b {
  font-size: 24px; background: linear-gradient(90deg, #ff9dc4, #c9b8ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stats span { display: block; font-size: 12px; color: var(--text-faint); margin-top: 2px; }

/* ---------------- 榜单卡片 ---------------- */
.board-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.board-card { padding: 18px; }
.board-card:hover {
  transform: translateY(-4px); border-color: rgba(255,255,255,.2);
  background: var(--card-hover);
}
.bc-top { display: flex; align-items: center; gap: 12px; }
.p-ico {
  width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 13px; font-size: 21px; background: color-mix(in srgb, var(--c, #b16cff) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, #b16cff) 30%, transparent);
}
.p-ico.sm { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
.p-ico.big { width: 58px; height: 58px; font-size: 27px; border-radius: 16px; }

.bc-name { min-width: 0; }
.bc-name b { display: block; font-size: 15.5px; }
.bc-name span { display: block; font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rank-chip {
  margin-left: auto; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: rgba(255,255,255,.08); border: 1px solid var(--stroke); flex-shrink: 0;
}
.rank-chip.r1 { color: #2a1500; background: linear-gradient(135deg, #ffd98a, #ffb84d); border-color: transparent; }
.rank-chip.r2 { color: #152028; background: linear-gradient(135deg, #d8e6f0, #aebcc9); border-color: transparent; }
.rank-chip.r3 { color: #2a1706; background: linear-gradient(135deg, #f0c39a, #d99a63); border-color: transparent; }

.bc-votes { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; }
.v-label { font-size: 12px; color: var(--text-faint); margin-right: 8px; }
.bc-votes b { font-size: 22px; letter-spacing: .3px; }
.delta { font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.delta.up { color: var(--good); background: rgba(55,226,165,.1); }
.delta.down { color: var(--bad); background: rgba(255,95,109,.1); }
.delta.flat { color: var(--text-faint); background: rgba(255,255,255,.06); }

.bar {
  height: 6px; border-radius: 999px; background: rgba(255,255,255,.07);
  margin-top: 12px; overflow: hidden;
}
.bar i {
  display: block; height: 100%; border-radius: inherit;
  background: var(--grad); width: 0; transition: width 1s cubic-bezier(.22,1,.36,1);
}
.bar.big { height: 10px; }

.bc-foot { display: flex; gap: 8px; margin-top: 16px; }
.bc-foot .btn { flex: 1; }

/* ---------------- 详情页 ---------------- */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; margin-bottom: 16px;
  font-size: 13px; color: var(--text-dim); background: rgba(255,255,255,.05);
  border: 1px solid var(--stroke); transition: color .25s, transform .25s;
}
.back-btn:hover { color: var(--text); transform: translateX(-3px); }

.detail-head { display: flex; align-items: center; gap: 16px; padding: 22px; }
.detail-head h1 { margin: 0; font-size: 22px; }
.detail-head p { margin: 4px 0 0; font-size: 13px; color: var(--text-dim); }
.detail-rank { margin-left: auto; text-align: right; }
.detail-rank .lbl { font-size: 12px; color: var(--text-faint); }
.big-rank { font-size: 34px; background: linear-gradient(90deg, #ffd98a, #ffb84d); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.chart-card { padding: 20px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; }
.chart-head h3 { margin: 0; font-size: 16px; }
.chart-head span { font-size: 12px; color: var(--text-faint); }
.trend-wrap { margin: 14px 0 6px; }
.trend { width: 100%; height: auto; }
.trend-line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len, 700); stroke-dashoffset: var(--len, 700); animation: draw 1.4s .15s cubic-bezier(.22,1,.36,1) forwards; }
.trend-area { opacity: 0; animation: fadeIn 1s .5s ease forwards; }
.trend-dot { animation: pop .5s .9s cubic-bezier(.34,1.56,.64,1) backwards; transform-origin: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.chart-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-faint); }

.rank-list-card { padding: 20px; }
.rank-list-card h3 { margin: 0 0 14px; font-size: 16px; }
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rank-item { display: grid; grid-template-columns: 26px 1fr 2fr 64px 40px; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; transition: background .25s; }
.rank-item:hover { background: rgba(255,255,255,.05); }
.rank-item.top { background: linear-gradient(90deg, rgba(255, 201, 94, .12), transparent); }
.r-num { font-weight: 800; font-size: 15px; color: var(--text-faint); }
.rank-item.top .r-num { color: var(--gold); }
.r-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.r-bar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; width: 0; transition: width 1s cubic-bezier(.22,1,.36,1); }
.rank-item b { text-align: right; font-size: 13px; }
.rank-item .delta { justify-self: end; padding: 1px 7px; font-size: 11px; }

.speed-box { margin-top: 16px; padding: 22px; text-align: center; }
.speed-box h3 { margin: 0 0 6px; font-size: 17px; }
.tips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 12px 0 18px; }
.tip {
  font-size: 12.5px; color: var(--text-dim); padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--stroke);
}

/* ---------------- 任务页 ---------------- */
.progress-card { display: flex; gap: 22px; align-items: center; padding: 22px; }
.ring { width: 88px; height: 88px; flex-shrink: 0; }
.ring-bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 8; }
.ring-fg { fill: none; stroke: url(#ringGrad); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 213.6; stroke-dashoffset: 213.6; transition: stroke-dashoffset 1s cubic-bezier(.22,1,.36,1); }
.progress-info { flex: 1; min-width: 0; }
.progress-info h3 { margin: 0 0 4px; font-size: 17px; }
.progress-info p { margin: 0 0 14px; font-size: 13px; color: var(--text-dim); }

.task-form { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.tf-row { display: flex; gap: 10px; }
.tf-row input[type="time"], .tf-row input[type="text"], .tf-row select {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--stroke); color: var(--text);
  font-size: 14px; outline: none; transition: border-color .25s, background .25s;
}
.tf-row input:focus, .tf-row select:focus { border-color: var(--accent2); background: rgba(255,255,255,.08); }
.tf-row select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.tf-row select option { background: #12122a; color: var(--text); }
input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(.7); }
.tf-row .btn { flex-shrink: 0; }

.switch-row { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-dim); cursor: pointer; width: fit-content; }
.switch-row input { width: 16px; height: 16px; accent-color: var(--accent2); cursor: pointer; }

.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.task-item:hover { background: var(--card-hover); }
.task-item.done { opacity: .55; }
.task-item.done .task-body b { text-decoration: line-through; color: var(--text-faint); }
.task-check { width: 19px; height: 19px; flex-shrink: 0; accent-color: var(--good); cursor: pointer; }
.task-body { flex: 1; min-width: 0; }
.task-body b { display: block; font-size: 14.5px; }
.task-meta { font-size: 12px; color: var(--text-faint); }
.task-status { font-size: 12px; padding: 3px 9px; border-radius: 999px; flex-shrink: 0; }
.task-status.todo { color: var(--text-dim); background: rgba(255,255,255,.06); }
.task-status.done { color: var(--good); background: rgba(55,226,165,.12); }
.task-del {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; color: var(--text-faint);
  font-size: 14px; transition: background .25s, color .25s;
}
.task-del:hover { background: rgba(255,95,109,.15); color: var(--bad); }
.empty-tip { text-align: center; padding: 40px 20px; color: var(--text-faint); font-size: 14px; }
.empty-tip .big { font-size: 34px; margin-bottom: 8px; }

.notify-banner {
  margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: rgba(108, 140, 255, .1); border: 1px solid rgba(108,140,255,.3);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-dim);
}

/* ---------------- 帮助页 ---------------- */
.help-hero { padding: 30px; text-align: center; }
.help-hero h1 { margin: 0 0 6px; font-size: 24px; }
.help-hero p { margin: 0; color: var(--text-dim); font-size: 14px; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.guide-card { padding: 20px; position: relative; }
.guide-num {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(177,108,255,.4);
}
.guide-card b { font-size: 15px; display: block; margin-bottom: 4px; }
.guide-card p { margin: 0; font-size: 13px; color: var(--text-dim); }

.faq-list { padding: 6px 20px; }
.faq-list details { border-bottom: 1px solid var(--stroke); padding: 16px 0; }
.faq-list details:last-child { border-bottom: none; }
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 15px; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 19px; color: var(--accent2); transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 10px 0 0; font-size: 13.5px; color: var(--text-dim); line-height: 1.75; }

.note-card { margin-top: 16px; padding: 18px 20px; font-size: 12.5px; color: var(--text-faint); line-height: 1.8; }

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(4, 4, 12, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.modal-mask.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 430px; padding: 22px; max-height: 82vh; overflow-y: auto;
  transform: scale(.92) translateY(14px); transition: transform .28s cubic-bezier(.22,1,.36,1);
  background: linear-gradient(180deg, rgba(30,30,60,.92), rgba(16,16,36,.94));
  border: 1px solid rgba(255,255,255,.14);
}
.modal-mask.open .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-close { width: 30px; height: 30px; border-radius: 50%; color: var(--text-dim); font-size: 16px; transition: background .25s, color .25s; }
.modal-close:hover { background: rgba(255,255,255,.1); color: var(--text); }
.modal-sub { margin: 8px 0 14px; font-size: 13px; color: var(--text-dim); }
.modal-plats { display: flex; flex-direction: column; gap: 8px; }
.mp-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--stroke); cursor: pointer; transition: background .25s, border-color .25s;
}
.mp-row:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); }
.mp-row input { width: 17px; height: 17px; accent-color: var(--accent2); flex-shrink: 0; }
.mp-row b { flex: 1; font-size: 14px; }
.mp-row .rank-chip { margin-left: 0; }
.modal-foot { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.hint { font-size: 11.5px; color: var(--text-faint); text-align: center; }

/* ---------------- 一键助力全屏动效 ---------------- */
.boost-overlay {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center;
  background: radial-gradient(80% 80% at 50% 50%, rgba(40, 20, 70, .92), rgba(7, 7, 19, .96));
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.boost-overlay.show { opacity: 1; pointer-events: auto; }
.boost-inner { text-align: center; padding: 20px; }
.boost-title {
  font-size: 26px; font-weight: 800; margin-bottom: 18px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.boost-icons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; min-height: 54px; }
.boost-icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px;
  font-size: 23px; background: rgba(255,255,255,.08); border: 1px solid var(--stroke);
  animation: boostPop .5s cubic-bezier(.34,1.56,.64,1) backwards;
}
.boost-sub { margin-top: 16px; color: var(--text-dim); font-size: 13px; }
@keyframes boostPop { from { transform: scale(0) rotate(-20deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }

/* ---------------- Toast ---------------- */
.toast-wrap { position: fixed; top: 74px; right: 16px; z-index: 120; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  max-width: 320px; padding: 12px 16px; border-radius: 13px; font-size: 13.5px;
  background: rgba(26, 26, 52, .92); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: toastIn .35s cubic-bezier(.22,1,.36,1) both;
}
.toast.out { animation: toastOut .3s ease both; }
.toast.ok { border-left: 3px solid var(--good); }
.toast.warn { border-left: 3px solid var(--gold); }
.toast.err { border-left: 3px solid var(--bad); }
@keyframes toastIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateX(30px); opacity: 0; } }

/* ---------------- 底部导航 ---------------- */
.site-footer {
  text-align: center; padding: 26px 20px 90px; font-size: 12.5px; color: var(--text-faint);
}
.bottom-nav {
  display: none;
}

/* ---------------- 动画 ---------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 820px) {
  .top-nav { display: none; }
  .header-inner { padding: 10px 14px; gap: 10px; }
  .app { padding: 18px 14px 110px; }
  .hero { padding: 30px 22px 24px; }
  .hero-stats { gap: 22px; }
  .board-grid { grid-template-columns: 1fr; }
  .detail-head { flex-wrap: wrap; }
  .detail-rank { margin-left: auto; }
  .tf-row { flex-wrap: wrap; }
  .tf-row input, .tf-row select { flex: 1 1 100%; }
  .tf-row .btn { flex: 1; }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 24, .85); backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-top: 1px solid var(--stroke);
  }
  .bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 10.5px; color: var(--text-faint); padding: 4px 0; border-radius: 12px;
    transition: color .25s, background .25s;
  }
  .bottom-nav a .bn-ico { font-size: 19px; line-height: 1; }
  .bottom-nav a.active { color: #fff; background: rgba(177,108,255,.14); }
  .bottom-nav a.active .bn-ico { filter: drop-shadow(0 0 8px rgba(177,108,255,.7)); }
  .site-footer { padding-bottom: 84px; }
  .progress-card { flex-direction: column; text-align: center; }
  .toast-wrap { top: 66px; right: 10px; left: 10px; align-items: flex-end; }
  .toast { width: 100%; }
}

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