/* ============================================================
   白小纯粉丝站 · 设计系统
   深色电竞风：午夜蓝底 + 琥珀金主色 + 战术网格纹理
   ============================================================ */
:root {
  --bg: #0a0e14;
  --bg-2: #0e1420;
  --panel: #121a28;
  --panel-2: #172234;
  --line: rgba(255, 255, 255, 0.08);
  --txt: #e9eff8;
  --muted: #93a3b8;
  --gold: #f2b72b;
  --gold-2: #ffd166;
  --amber: #ff9f43;
  --gold-deep: #b97e0f;
  --gold-rgb: 242, 183, 43;
  --amber-rgb: 255, 159, 67;
  --green: #62c662;
  --red: #e5484d;
  --blue: #4da3ff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-num: "DIN Alternate", "Bahnschrift", "Arial Narrow", var(--font);
}

/* ---------- 主题配色（后台「站点设置」可切换，存于 site.json 的 theme 字段） ---------- */
:root[data-theme="gold"]    { --gold:#f2b72b; --gold-2:#ffd166; --amber:#ff9f43; --gold-deep:#b97e0f; --gold-rgb:242,183,43; --amber-rgb:255,159,67; }
:root[data-theme="crimson"] { --gold:#ff5f5f; --gold-2:#ffc7c2; --amber:#ff8a5c; --gold-deep:#a12a2a; --gold-rgb:255,95,95;  --amber-rgb:255,138,92; }
:root[data-theme="ocean"]   { --gold:#4da3ff; --gold-2:#a8d4ff; --amber:#6fb6ff; --gold-deep:#1f5fa8; --gold-rgb:77,163,255; --amber-rgb:111,182,255; }
:root[data-theme="violet"]  { --gold:#b48cff; --gold-2:#e2d2ff; --amber:#c9a0ff; --gold-deep:#6b3fd4; --gold-rgb:180,140,255;--amber-rgb:201,160,255; }
:root[data-theme="tjb"]     { --gold:#ff9040; --gold-2:#ffc896; --amber:#ff6f3c; --gold-deep:#c25a12; --gold-rgb:255,144,64; --amber-rgb:255,111,60; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(var(--gold-rgb), 0.07), transparent 60%),
    radial-gradient(900px 420px at -10% 20%, rgba(77, 163, 255, 0.05), transparent 60%),
    var(--bg);
  color: var(--txt);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
::selection { background: rgba(var(--gold-rgb), .35); }

/* ---------- 布局 ---------- */
.container { width: min(1160px, 92vw); margin: 0 auto; }
.page { padding: calc(96px + var(--bar-h, 0px)) 0 60px; }
.section { margin: 42px 0; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }

/* ---------- 顶部公告 ---------- */
.demo-bar {
  background: linear-gradient(90deg, #2b3a55, #1d2b40);
  color: #cbd8ee; font-size: 13px; text-align: center;
  padding: 7px 12px; position: fixed; top: 0; left: 0; right: 0; z-index: 300;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed; top: var(--bar-h, 0px); left: 0; right: 0; z-index: 200;
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .inner { display: flex; align-items: center; gap: 20px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--txt); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: conic-gradient(from 210deg, var(--gold), var(--gold-deep), var(--gold-2), var(--gold));
  display: grid; place-items: center; color: #14100a; font-weight: 900; font-size: 17px;
  box-shadow: 0 0 14px rgba(var(--gold-rgb), .45);
}
.logo small { color: var(--muted); font-weight: 600; font-size: 11px; display: block; line-height: 1; }
.nav { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: 6px; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); font-size: 14px; padding: 7px 11px; border-radius: 8px;
  white-space: nowrap; font-weight: 500;
}
.nav a:hover { color: var(--txt); background: rgba(255, 255, 255, .06); text-decoration: none; }
.nav a.active { color: #161006; background: linear-gradient(135deg, var(--gold), var(--gold-2)); font-weight: 700; }
.topbar .spacer { flex: 1; }
.userchip { display: flex; align-items: center; gap: 8px; flex: none; }
.userchip .who {
  display: flex; align-items: center; gap: 2px;
  font-size: 13px; color: var(--muted);
  min-width: 0; max-width: 190px; white-space: nowrap;
}
.userchip .who .hello { flex: none; }
.userchip .who b {
  color: var(--gold-2); font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; max-width: 108px;
}
.userchip .who .admin-link { color: var(--gold-2); font-size: 12px; flex: none; }
.userchip .pts {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  height: 26px; min-width: 52px; padding: 0 10px;
  font-size: 12.5px; white-space: nowrap;
  background: rgba(var(--gold-rgb), .12);
  border: 1px solid rgba(var(--gold-rgb), .32);
  color: var(--gold-2); border-radius: 999px; line-height: 1;
}

/* 移动端汉堡 */
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--txt); border-radius: 8px; padding: 6px 10px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(150px + var(--bar-h, 0px)) 0 90px;
  background:
    radial-gradient(700px 340px at 85% 18%, rgba(var(--gold-rgb), 0.16), transparent 65%),
    linear-gradient(180deg, rgba(var(--gold-rgb),.05), transparent 40%),
    var(--bg-2);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(800px 500px at 60% 30%, #000 30%, transparent 75%);
}
.hero .crosshair {
  position: absolute; right: 6%; top: 24%; width: 220px; height: 220px; opacity: .5; pointer-events: none;
}
.hero .eyebrow { color: var(--gold); letter-spacing: .35em; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.hero h1 {
  font-size: clamp(40px, 7vw, 74px); font-weight: 900; margin: 10px 0 6px;
  background: linear-gradient(120deg, #fff 20%, var(--gold-2) 55%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: .04em;
}
.hero .sub { color: var(--muted); font-size: clamp(15px, 2vw, 18px); max-width: 620px; }
.hero .quote { margin-top: 14px; color: var(--gold-2); font-size: 15px; }
.hero .quote i { color: var(--muted); font-style: normal; font-size: 13px; margin-left: 8px; }

/* 数据计数 */
.stats { display: flex; gap: 0; margin-top: 38px; flex-wrap: wrap; }
.stat {
  flex: 1 1 150px; padding: 18px 22px; border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num { font-family: var(--font-num); font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: var(--gold-2); line-height: 1; }
.stat .num small { font-size: .5em; color: var(--amber); font-weight: 700; }
.stat .lab { color: var(--muted); font-size: 13px; margin-top: 6px; letter-spacing: .06em; }

/* ---------- 卡片 ---------- */
.panel {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.panel.hover { transition: transform .25s ease, border-color .25s ease; }
.panel.hover:hover { transform: translateY(-4px); border-color: rgba(var(--gold-rgb), .4); }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-title h3 { margin: 0; font-size: 18px; }
.card-title .bar { width: 5px; height: 18px; border-radius: 3px; background: linear-gradient(var(--gold), var(--amber)); }

/* 模块入口卡 */
.entry { display: block; color: var(--txt); }
.entry:hover { text-decoration: none; }
.entry .ico { font-size: 26px; }
.entry .desc { color: var(--muted); font-size: 13px; margin-top: 6px; min-height: 40px; }
.entry .go { color: var(--gold-2); font-size: 13px; margin-top: 10px; display: inline-block; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: var(--font); white-space: nowrap;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #191104; font-weight: 800; font-size: 14px;
  padding: 11px 22px; border-radius: 10px; transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost {
  background: transparent; color: var(--txt); border: 1px solid var(--line); font-weight: 600;
}
.btn.ghost:hover { border-color: rgba(var(--gold-rgb), .5); color: var(--gold-2); }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn.green { background: linear-gradient(135deg, #58b858, #46a758); color: #07130a; }
.btn.red { background: linear-gradient(135deg, #e5484d, #c73138); color: #fff; }
.btn.blue { background: linear-gradient(135deg, #4da3ff, #3b7fd4); color: #04101f; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: rgba(var(--gold-rgb), .1); border: 1px solid rgba(var(--gold-rgb), .35); color: var(--gold-2);
}
.tag.gray { background: rgba(255,255,255,.05); border-color: var(--line); color: var(--muted); }
.tag.green { background: rgba(98,198,98,.1); border-color: rgba(98,198,98,.4); color: var(--green); }
.tag.blue { background: rgba(77,163,255,.1); border-color: rgba(77,163,255,.4); color: var(--blue); }
.tag.red { background: rgba(229,72,77,.12); border-color: rgba(229,72,77,.4); color: #ff8a8e; }

/* ---------- 区块标题 ---------- */
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(22px, 3vw, 30px); margin: 0; font-weight: 800; }
.sec-head .en { color: var(--muted); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.sec-head .more { margin-left: auto; color: var(--gold-2); font-size: 14px; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--gold), rgba(var(--gold-rgb),.15));
}
.t-item { position: relative; padding: 0 0 26px 14px; }
.t-item::before {
  content: ""; position: absolute; left: -26px; top: 7px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--gold); box-shadow: 0 0 8px rgba(var(--gold-rgb),.5);
}
.t-item .t-date { font-family: var(--font-num); color: var(--gold-2); font-weight: 800; font-size: 14px; letter-spacing: .05em; }
.t-item h4 { margin: 2px 0 4px; font-size: 16px; }
.t-item p { color: var(--muted); font-size: 14px; margin: 0; }
.t-item.champion::before { border-color: #ffd166; background: #f2b72b; }
.t-item.transfer::before { border-color: var(--blue); box-shadow: 0 0 8px rgba(77,163,255,.4); }
.t-item.moment::before { border-color: var(--green); box-shadow: 0 0 8px rgba(98,198,98,.4); }
.t-item.show::before { border-color: #d68fff; box-shadow: 0 0 8px rgba(214,143,255,.4); }
.t-item.award::before, .t-item.debut::before, .t-item.start::before, .t-item.match::before { }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; background: var(--panel); }
.tbl th {
  text-align: left; padding: 13px 16px; color: var(--gold-2); font-size: 13px;
  background: rgba(var(--gold-rgb), .07); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.04); color: var(--txt); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(255,255,255,.025); }
.rank-1 { color: var(--gold-2); font-weight: 900; }
.rank-2, .rank-3 { color: #cdd8e6; font-weight: 700; }

/* ---------- 表单 ---------- */
.form { display: grid; gap: 14px; }
.form .field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form .field label b { color: var(--gold-2); }
.form input, .form textarea, .form select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--txt);
  border-radius: 10px; padding: 11px 14px; font-size: 14px; font-family: var(--font);
  transition: border-color .2s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: rgba(var(--gold-rgb), .6); }
.form textarea { min-height: 90px; resize: vertical; }
.form .hint { font-size: 12px; color: var(--muted); }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--txt); }
.check input { width: auto; }

/* ---------- 投票 ---------- */
.poll-option {
  position: relative; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  cursor: pointer; transition: border-color .2s, background .2s; overflow: hidden; margin-top: 10px;
}
.poll-option:hover { border-color: rgba(var(--gold-rgb), .5); }
.poll-option input { accent-color: var(--gold); }
.poll-option .bar-bg {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, rgba(var(--gold-rgb),.22), rgba(var(--amber-rgb),.12));
  transition: width .8s cubic-bezier(.22, 1, .36, 1); z-index: 0;
}
.poll-option span.txt { position: relative; z-index: 1; font-size: 14px; }
.poll-option .pct { position: relative; z-index: 1; margin-left: auto; font-family: var(--font-num); color: var(--gold-2); font-weight: 800; }
.poll-option.chosen { border-color: var(--gold); }
.poll-option.chosen .txt { color: var(--gold-2); font-weight: 700; }
.poll-option.disabled { cursor: default; }

/* ---------- 应援墙 ---------- */
.wall-grid { columns: 4 240px; column-gap: 14px; }
.wall-card {
  break-inside: avoid; margin-bottom: 14px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 12px; padding: 16px;
}
.wall-card .who { font-size: 13px; color: var(--gold-2); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.wall-card .who .avatar {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #191104; display: grid; place-items: center; font-size: 12px; font-weight: 900;
}
.wall-card .txt { font-size: 14px; margin: 8px 0 10px; word-break: break-word; }
.wall-card .meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.like-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 2px 6px; border-radius: 6px; }
.like-btn:hover { color: #ff8a8e; background: rgba(229,72,77,.08); }
.like-btn.liked { color: #ff8a8e; }

/* ---------- 图库 ---------- */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-row .f {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 6px 16px; font-size: 13px; cursor: pointer; font-family: var(--font);
}
.filter-row .f.on { background: linear-gradient(135deg, var(--gold), var(--amber)); color: #191104; border-color: transparent; font-weight: 700; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.g-item {
  position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line); background: var(--panel);
}
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px;
  background: linear-gradient(transparent, rgba(5, 8, 12, 0.92));
  font-size: 13px; display: flex; justify-content: space-between; align-items: end; gap: 8px;
}
.g-item .cap .src { color: var(--muted); font-size: 11px; }

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 400; display: none;
  background: rgba(4, 6, 10, .92); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; flex-direction: column; padding: 5vh 5vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 78vh; max-width: 90vw; border-radius: 12px; border: 1px solid var(--line); }
.lightbox .lb-cap { margin-top: 14px; color: var(--txt); font-size: 14px; text-align: center; }
.lightbox .lb-src { color: var(--muted); font-size: 12px; margin-top: 4px; }
.lightbox .lb-close {
  position: absolute; top: 18px; right: 26px; font-size: 30px; color: var(--txt);
  background: none; border: none; cursor: pointer;
}
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); font-size: 40px;
  background: none; border: none; color: var(--muted); cursor: pointer; padding: 20px;
}
.lightbox .lb-nav:hover { color: var(--gold-2); }
.lightbox .lb-prev { left: 8px; }
.lightbox .lb-next { right: 8px; }

/* ---------- 视频 ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.video-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.video-card .frame { aspect-ratio: 16 / 9; background: #000; }
.video-card .frame iframe { width: 100%; height: 100%; border: 0; }
.video-card .v-body { padding: 14px 16px; }
.video-card .v-title { font-size: 15px; font-weight: 700; }
.video-card .v-meta { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.video-card .v-placeholder {
  aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--muted);
  background:
    radial-gradient(300px 140px at 50% 40%, rgba(var(--gold-rgb),.08), transparent 70%),
    var(--bg-2);
  font-size: 13px; text-align: center; padding: 12px;
}
.slot-note {
  border: 1px dashed rgba(var(--gold-rgb),.45); border-radius: 12px; padding: 16px;
  color: var(--muted); font-size: 13px; background: rgba(var(--gold-rgb),.04);
}

/* ---------- 新闻/动态 ---------- */
.news-item {
  display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.news-item:last-child { border-bottom: none; }
.news-item .n-date {
  font-family: var(--font-num); color: var(--gold-2); font-weight: 800; font-size: 14px;
  flex: none; width: 86px; padding-top: 3px;
}
.news-item .n-body h4 { margin: 0 0 4px; font-size: 16px; }
.news-item .n-body p { color: var(--muted); font-size: 13.5px; margin: 0; }
.news-item .n-src { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- 名言卡 ---------- */
.quotes { display: grid; gap: 12px; }
.quote-card {
  border-left: 3px solid var(--gold); padding: 10px 16px;
  background: rgba(var(--gold-rgb), .05); border-radius: 0 10px 10px 0;
  font-size: 15px;
}
.quote-card i { display: block; color: var(--muted); font-style: normal; font-size: 12px; margin-top: 4px; }

/* ---------- 徽章墙 ---------- */
.honor {
  display: flex; gap: 14px; align-items: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 12px; padding: 16px;
}
.honor .medal { font-size: 26px; }
.honor b { display: block; font-size: 15px; }
.honor span { font-size: 12.5px; color: var(--muted); }

/* ---------- 登录页 ---------- */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-tabs button {
  flex: 1; padding: 10px; border-radius: 10px; cursor: pointer; font-family: var(--font);
  background: transparent; border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 700;
}
.auth-tabs button.on { background: linear-gradient(135deg, var(--gold), var(--amber)); color: #191104; border-color: transparent; }
.oauth-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.oauth-row button {
  padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--txt); cursor: pointer; font-size: 13px; font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.oauth-row button:hover { border-color: rgba(var(--gold-rgb),.5); }
.oauth-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }

/* ---------- 管理后台 ---------- */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-tabs button {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); cursor: pointer; font-size: 13.5px; font-family: var(--font);
}
.admin-tabs button.on { background: var(--panel-2); color: var(--gold-2); border-color: rgba(var(--gold-rgb),.45); font-weight: 700; }
.stat-mini { text-align: center; padding: 18px 8px; }
.stat-mini .v { font-family: var(--font-num); font-size: 30px; font-weight: 800; color: var(--gold-2); }
.stat-mini .l { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.mini-bars .bar-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 13px; }
.mini-bars .bar-label { width: 110px; color: var(--muted); text-align: right; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-bars .bar-track { flex: 1; height: 10px; background: rgba(255,255,255,.05); border-radius: 999px; overflow: hidden; }
.mini-bars .bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--amber)); border-radius: 999px; }
.mini-bars .bar-num { width: 34px; font-family: var(--font-num); color: var(--gold-2); }

/* ---------- Toast ---------- */
.toast-box { position: fixed; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 500; display: grid; gap: 8px; width: max-content; max-width: 88vw; }
.toast {
  background: #1d2839; border: 1px solid var(--line); color: var(--txt);
  padding: 11px 20px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow);
  animation: toast-in .25s ease;
}
.toast.ok { border-color: rgba(98,198,98,.5); }
.toast.err { border-color: rgba(229,72,77,.55); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 回顶 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 180;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(18, 26, 40, .9); color: var(--gold-2); font-size: 18px; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- 页脚 ---------- */
footer.site {
  border-top: 1px solid var(--line); margin-top: 70px; padding: 40px 0 30px;
  background: linear-gradient(180deg, transparent, rgba(var(--gold-rgb),.03));
}
footer.site .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
footer.site h5 { margin: 0 0 10px; font-size: 14px; color: var(--txt); }
footer.site a, footer.site .f-link { display: block; color: var(--muted); font-size: 13px; padding: 3px 0; }
footer.site .socials { display: flex; gap: 10px; flex-wrap: wrap; }
footer.site .socials a {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 13px;
}
footer.site .socials a:hover { color: var(--gold-2); border-color: rgba(var(--gold-rgb),.4); text-decoration: none; }
footer.site .legal { margin-top: 26px; color: #6b7a90; font-size: 12px; line-height: 1.8; }

/* ---------- 响应式 ---------- */
@media (max-width: 1300px) {
  .nav a { padding: 6px 8px; font-size: 13px; }
  .topbar .inner { gap: 12px; }
  .btn.small { padding: 7px 12px; }
}
@media (max-width: 1080px) {
  .topbar .inner { gap: 10px; }
  .nav a { padding: 6px 8px; font-size: 13px; }
  .userchip .who .hello { display: none; }
  .userchip .who b { max-width: 76px; }
  .userchip .pts { min-width: 44px; padding: 0 8px; }
}
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-2 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .page { padding-top: calc(84px + var(--bar-h, 0px)); }
  .hero { padding: calc(120px + var(--bar-h, 0px)) 0 60px; }
  .stat { flex: 1 1 40%; padding: 14px 12px; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .nav { display: none; }
  .nav.open {
    display: grid; position: absolute; top: 62px; left: 0; right: 0;
    background: rgba(10,14,20,.97); padding: 12px; gap: 2px;
    border-bottom: 1px solid var(--line); max-height: 70vh; overflow: auto;
  }
  .burger { display: inline-block; }
  .userchip .who { display: none; }
  .userchip { gap: 6px; }
  .btn.small { padding: 7px 11px; font-size: 12.5px; }
  .topbar .inner { gap: 8px; }
  .toast-box { bottom: 20px; max-width: 92vw; }
}

/* ---------- Logo 图片（站点设置可配） ---------- */
.logo .logo-img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: none; }

/* ---------- 视频封面点击播放（懒加载，提升页面速度） ---------- */
.video-card .facade { position: relative; aspect-ratio: 16 / 9; cursor: pointer; background: var(--bg-2); overflow: hidden; }
.video-card .facade img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .3s ease, opacity .3s ease; }
.video-card .facade:hover img { transform: scale(1.04); opacity: 1; }
.video-card .facade .play-btn { position: absolute; inset: 0; display: grid; place-items: center; }
.video-card .facade .play-btn i {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(10, 14, 20, .75); border: 1px solid rgba(var(--gold-rgb), .6);
  display: grid; place-items: center; font-style: normal;
  color: var(--gold-2); font-size: 22px; padding-left: 5px;
}
.video-card .facade iframe { width: 100%; height: 100%; border: 0; }

/* ---------- 动态条目可点击 ---------- */
.news-item.linked { cursor: pointer; border-radius: 10px; transition: background .2s; }
.news-item.linked:hover { background: rgba(255,255,255,.03); }
.news-item.linked:hover .n-body h4 { color: var(--gold-2); }

/* ---------- 应援排行榜 ---------- */
.rank-list { display: grid; gap: 8px; }
.rank-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: 10px; font-size: 13.5px;
}
.rank-item .no {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: rgba(var(--gold-rgb), .14); color: var(--gold-2);
  font-weight: 800; font-family: var(--font-num);
}
.rank-item:first-child .no { background: linear-gradient(135deg, var(--gold), var(--amber)); color: #191104; }
.rank-item .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item .pt { margin-left: auto; color: var(--gold-2); font-weight: 700; white-space: nowrap; }

/* ---------- 分享按钮 ---------- */
.share-btn {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 10px; padding: 10px 18px; cursor: pointer; font-family: var(--font);
  font-size: 14px; font-weight: 600;
}
.share-btn:hover { color: var(--gold-2); border-color: rgba(var(--gold-rgb), .5); }

/* ---------- 后台编辑弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 420;
  background: rgba(4, 6, 10, .8); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 5vh 5vw;
}
.modal-mask.open { display: flex; }
.modal { width: min(560px, 94vw); max-height: 86vh; overflow: auto; }

/* ---------- 主/侧栏布局（应援墙等） ---------- */
.layout-main-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .layout-main-side { grid-template-columns: 1fr; } }

/* ---------- 视频弹窗播放（竖版/横版自适应） ---------- */
.vlb {
  position: fixed; inset: 0; z-index: 430; display: none;
  background: rgba(4, 6, 10, .92); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.vlb.open { display: flex; }
.vlb-frame {
  border-radius: 12px; overflow: hidden; background: #000;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.vlb-frame iframe { width: 100%; height: 100%; border: 0; }
.vlb.close-btn { position: absolute; top: 18px; right: 26px; }
.vlb .vclose {
  position: absolute; top: 16px; right: 24px; font-size: 30px;
  color: var(--txt); background: none; border: none; cursor: pointer; z-index: 2;
}
.vlb .vcap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--txt); font-size: 14px; padding: 0 16px; }
