/* ============ 星战铁粉 · 紫色星云主题 ============ */
:root {
  --bg: #0b0a1c;
  --bg-2: #131129;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --txt: #eef0fb;
  --txt-dim: #a6aed0;
  --txt-faint: #7b84a8;
  --blue: #6ea8ff;
  --red: #ff6b8a;
  --cyan: #7ee7ff;
  --grad: linear-gradient(120deg, var(--blue), #a06bff 45%, var(--red));
  --radius: 16px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--txt);
  line-height: 1.75;
  font-size: 15px;
  min-height: 100vh;
  background-color: #0b0a1c;
}
/* 流动星云背景（伪元素，缓慢漂移） */
body::before {
  content: ""; position: fixed; inset: -12%; z-index: -3;
  background: url('../img/hero.jpg') no-repeat center center;
  background-size: cover;
  animation: nebula-drift 46s ease-in-out infinite alternate;
  will-change: transform;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 10, 34, 0.46) 0%, rgba(12, 9, 30, 0.55) 50%, rgba(10, 8, 26, 0.70) 100%);
}
@keyframes nebula-drift {
  0%   { transform: scale(1.04) translate(0, 0); }
  50%  { transform: scale(1.20) translate(-2.6%, -2%); }
  100% { transform: scale(1.12) translate(2.6%, 2%); }
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* 星空画布 */
#stars {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.page { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: min(1080px, 92vw); margin: 0 auto; }
.main { flex: 1; padding: 34px 0 70px; }

/* ============ 顶部导航 ============ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 12, 38, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: 2px; }
.brand-mark {
  width: 26px; height: 27px; object-fit: contain; flex: none;
  filter: drop-shadow(0 0 9px rgba(255, 160, 60, 0.55));
  animation: badge-pulse 3.2s ease-in-out infinite;
}
.brand-text {
  background: linear-gradient(90deg, #ffd24a, #ff6a3d, #ff2d95, #8a5cff, #3fb6ff, #54e8c8, #ffd24a);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: slogan-flow 6s linear infinite;
}
.nav { display: flex; gap: 6px; }
.nav a {
  padding: 7px 16px; border-radius: 999px; color: var(--txt-dim);
  font-size: 14px; transition: all .2s;
}
.nav a:hover { color: var(--txt); background: var(--panel-2); }
.nav a.on { color: #fff; background: linear-gradient(120deg, rgba(110,168,255,.22), rgba(255,107,138,.22)); box-shadow: inset 0 0 0 1px var(--line-2); }
.tabbar { display: none; }

/* 公告 */
.announce {
  margin-top: 14px; padding: 10px 16px; border-radius: 12px;
  background: linear-gradient(120deg, rgba(110,168,255,.12), rgba(255,107,138,.12));
  border: 1px solid var(--line-2); font-size: 14px; color: #cfe0ff;
}
.ann-icon { margin-right: 8px; }

/* flash */
.flash-zone { margin-top: 14px; }
.flash { padding: 11px 16px; border-radius: 12px; margin-bottom: 8px; font-size: 14px; border: 1px solid var(--line-2); }
.flash-ok { background: rgba(46, 204, 113, .12); color: #7fe6ab; }
.flash-error { background: rgba(255, 87, 87, .12); color: #ff9b9b; }

/* ============ 首屏 Hero ============ */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; margin-top: 26px;
  min-height: 460px; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(140, 170, 255, .22);
  box-shadow: 0 0 0 1px rgba(4,6,12,.6), 0 24px 70px rgba(60, 40, 140, .28), inset 0 0 80px rgba(90, 70, 255, .10);
}
.hero-bg {
  position: absolute; inset: -8%;
  background-size: cover; background-position: center 30%;
  animation: hero-breathe 26s ease-in-out infinite alternate;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; pointer-events: none;
  background: #0b0a1c;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 115%, rgba(4,6,12,0) 0%, rgba(4,6,12,.18) 80%),
    linear-gradient(180deg, rgba(4,6,12,.03), rgba(4,6,12,.08) 55%, rgba(4,6,12,.18));
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% -10%, rgba(110,168,255,.18), transparent 55%),
              radial-gradient(ellipse at 85% 110%, rgba(255,107,138,.12), transparent 45%),
              radial-gradient(ellipse at 12% 100%, rgba(160,107,255,.14), transparent 45%);
  animation: glow-pulse 7s ease-in-out infinite;
}
.hero-scan {
  position: absolute; left: 0; right: 0; height: 2px; pointer-events: none; opacity: .5;
  background: linear-gradient(90deg, transparent, rgba(126,231,255,.85), transparent);
  filter: drop-shadow(0 0 8px rgba(126,231,255,.8));
  animation: scan-move 7s linear infinite;
}
.sound-btn {
  position: absolute; right: 18px; bottom: 18px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(126,231,255,.35);
  background: rgba(4,6,12,.45); color: #d8e2ff; font-size: 17px; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.sound-btn:hover { border-color: rgba(126,231,255,.7); box-shadow: 0 0 16px rgba(126,231,255,.3); transform: scale(1.08); }
.sound-btn.off { opacity: .85; }
.sound-hint {
  position: absolute; right: 50px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 12px; color: #cfe0ff; font-weight: 500;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(4,6,12,.72); border: 1px solid rgba(126,231,255,.35);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none; transition: opacity .3s;
  animation: hint-float 2.6s ease-in-out infinite;
}
.sound-btn.off:hover .sound-hint, .sound-btn.off:focus .sound-hint { opacity: 1; }
@keyframes hint-float {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(-3px); }
}
.hero-inner { position: relative; text-align: center; padding: 80px 24px; max-width: 800px; }
.hero-kicker {
  display: inline-block; font-size: 12px; letter-spacing: 5px; color: var(--cyan);
  border: 1px solid rgba(126,231,255,.4); border-radius: 999px; padding: 6px 18px;
  text-transform: uppercase; margin-bottom: 24px;
  background: rgba(126,231,255,.07);
  text-shadow: 0 0 6px rgba(5, 5, 16, 0.9), 0 2px 10px rgba(5, 5, 16, 0.7);
  box-shadow: 0 0 18px rgba(126,231,255,.18), inset 0 0 12px rgba(126,231,255,.08);
  animation: kicker-glow 4s ease-in-out infinite;
}
.hero-title {
  font-size: clamp(44px, 7.5vw, 82px); font-weight: 900; letter-spacing: 10px; line-height: 1.12;
  background: linear-gradient(90deg, #ffd24a, #ff6a3d, #ff2d95, #8a5cff, #3fb6ff, #54e8c8, #ffd24a);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: slogan-flow 6s linear infinite;
}
.hero-sub { margin-top: 18px; color: #c3cde4; font-size: 16px; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(5,5,16,.95), 0 0 4px rgba(5,5,16,.8), 0 2px 14px rgba(0,0,0,.75); }
.hero-chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; }
.chip {
  padding: 8px 17px; border-radius: 999px; font-size: 13px; color: #d8e2ff;
  background: rgba(255,255,255,.07); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: all .25s; cursor: default;
}
.chip:hover {
  color: #fff; border-color: rgba(126,231,255,.55);
  box-shadow: 0 0 18px rgba(126,231,255,.25), inset 0 0 10px rgba(126,231,255,.08);
  transform: translateY(-2px);
}
.hero-cta { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  position: relative; overflow: hidden;
  display: inline-block; padding: 12px 30px; border-radius: 999px; font-size: 15px;
  font-weight: 600; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  font-family: var(--font);
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: linear-gradient(120deg, #5f8dff, #b06bff);
  color: #fff; box-shadow: 0 8px 26px rgba(120, 100, 255, .35);
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(120, 100, 255, .55); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); animation: btn-shine 3.2s ease-in-out infinite;
}
.btn-ghost { background: rgba(255,255,255,.06); color: var(--txt); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.13); border-color: rgba(126,231,255,.4); box-shadow: 0 0 16px rgba(126,231,255,.15); }
.btn-block { width: 100%; }

/* 数据条 */
.stat-strip {
  margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.stat {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 12px; text-align: center; transition: all .3s;
}
.stat::before {
  content: ""; position: absolute; left: 18%; right: 18%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126,231,255,.7), transparent);
  opacity: 0; transition: opacity .3s;
}
.stat:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 10px 30px rgba(70,60,160,.25); }
.stat:hover::before { opacity: 1; }
.stat b {
  display: block; font-size: 30px; font-weight: 900; letter-spacing: 1px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(150,110,255,.35));
  transition: transform .25s;
}
.stat:hover b { transform: scale(1.08); }
.stat span { font-size: 13px; color: var(--txt-dim); }

/* ============ 通用区块 ============ */
.sec { margin-top: 48px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.sec-head h2 { font-size: 22px; font-weight: 800; letter-spacing: 1px; position: relative; padding-left: 14px; }
.sec-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 18px; border-radius: 4px; background: var(--grad);
}
.more { color: var(--blue); font-size: 13px; }
.more:hover { color: var(--cyan); }

/* 卡片 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(110,168,255,.5), transparent 35%, transparent 70%, rgba(255,107,138,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.card::after {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  opacity: 0; transition: opacity .3s;
}
.card:hover {
  transform: translateY(-5px); border-color: transparent;
  box-shadow: 0 16px 44px rgba(60,50,160,.35);
  background: linear-gradient(165deg, rgba(120,140,255,.09), rgba(255,120,160,.04));
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 16.5px; font-weight: 700; line-height: 1.45; transition: color .2s; }
.card:hover .card-title { color: var(--cyan); text-shadow: 0 0 18px rgba(126,231,255,.35); }
.card-excerpt {
  color: var(--txt-dim); font-size: 13.5px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.card-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--txt-faint); }
.season { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tag {
  font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600;
}
.tag-live { background: rgba(110,168,255,.16); color: #9cc6ff; border: 1px solid rgba(110,168,255,.3); }
.tag-news { background: rgba(255,107,138,.14); color: #ffa3b8; border: 1px solid rgba(255,107,138,.3); }
.tag-season { background: rgba(126,231,255,.1); color: var(--cyan); border: 1px solid rgba(126,231,255,.25); }
.tag-feat { background: rgba(255,200,80,.14); color: #ffd97a; border: 1px solid rgba(255,200,80,.3); }
.tag-ok { background: rgba(80,255,160,.14); color: #7dffb2; border: 1px solid rgba(80,255,160,.35); }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-row input[type="text"] { flex: 1; min-width: 200px; padding: 10px 12px; border-radius: 8px;
  background: rgba(255,255,255,.07); border: 1px solid var(--line-2); color: var(--txt); outline: none; }
.form-row input[type="text"]:focus { border-color: var(--blue); }
.plain-ol { padding-left: 20px; line-height: 1.9; color: var(--txt-dim); font-size: 13.5px; }
.plain-ol b { color: var(--txt); }
.date { font-size: 12.5px; color: var(--txt-faint); }
.views { font-size: 12.5px; color: var(--txt-faint); }


/* 资讯列表 */
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); transition: background .2s;
}
.news-item:hover { background: var(--panel); }
.news-item:last-child { border-bottom: none; }
.news-date { color: var(--txt-faint); font-size: 13px; flex: none; width: 86px; }
.news-title { flex: 1; font-weight: 600; }
.news-item:hover .news-title { color: var(--cyan); }
.news-src { color: var(--txt-faint); font-size: 12.5px; flex: none; }
.empty { color: var(--txt-faint); text-align: center; padding: 40px 0; }

/* 资讯卡片 */
.news-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.ncard {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: all .2s;
}
.ncard:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--panel-2); }
.ncard-top { display: flex; justify-content: space-between; align-items: center; }
.ncard-title { font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.ncard:hover .ncard-title { color: var(--cyan); }
.ncard-excerpt { color: var(--txt-dim); font-size: 13.5px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--txt-faint); }
.src { color: var(--blue); }

/* 分页 */
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 34px; }
.pg { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; transition: all .2s; }
.pg:hover { background: var(--panel-2); border-color: var(--blue); }
.pg-now { color: var(--txt-dim); font-size: 14px; }

/* 筛选栏 */
.filter-bar {
  display: flex; gap: 10px; margin: 22px 0; flex-wrap: wrap;
  padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.filter-bar select, .filter-bar input {
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--txt);
  padding: 9px 14px; border-radius: 10px; font-size: 14px; font-family: var(--font);
  outline: none;
}
/* 下拉列表展开为深色面板 */
.filter-bar select { color-scheme: dark; }
.filter-bar select option {
  background: #10131f; color: #d8e2ff; font-size: 13.5px;
}
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--blue); }
.filter-bar input[type=search] { flex: 1; min-width: 200px; }

/* 页面头 */
.page-head { margin-top: 8px; }
.page-head h1 { font-size: 30px; font-weight: 900; letter-spacing: 2px; }
.page-head p { color: var(--txt-dim); margin-top: 6px; font-size: 14px; }

/* ============ 文章详情 ============ */
.post {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(20px, 4vw, 44px);
}
.post-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-title { font-size: clamp(22px, 3.4vw, 32px); font-weight: 900; letter-spacing: 1px; margin: 14px 0 10px; line-height: 1.35; }
.post-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--txt-faint); font-size: 13px; }
.post-cover { margin: 24px 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.post-body { margin-top: 26px; font-size: 15.5px; color: #dde4f3; }
.post-body .evt {
  display: flex; gap: 14px; padding: 12px 16px; margin-bottom: 10px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px;
  transition: background .2s;
}
.post-body .evt:hover { background: rgba(110,168,255,.06); }
.evt-num {
  flex: none; min-width: 26px; height: 26px; line-height: 26px; text-align: center;
  border-radius: 8px; font-size: 13px; font-weight: 800; margin-top: 2px;
  background: linear-gradient(135deg, rgba(110,168,255,.25), rgba(255,107,138,.25));
  color: #cfe0ff; border: 1px solid var(--line-2);
}
.evt-txt { flex: 1; }
.evt-plain { padding: 4px 0; margin-bottom: 10px; }
.evt-media { margin: 14px 0; }
.evt-media img { width: 100%; max-width: 720px; border-radius: 14px; border: 1px solid var(--line); display: block; }
.evt-media video { width: 100%; max-width: 720px; border-radius: 14px; border: 1px solid var(--line); background: #000; display: block; }
.evt-media-cap { display: block; margin-top: 6px; font-size: 12.5px; color: var(--txt-faint); }
/* 编辑器工具栏 */
.edit-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 10px; }
.tb-btn {
  padding: 7px 14px; border-radius: 10px; font-size: 13.5px; cursor: pointer;
  background: rgba(110,168,255,.1); border: 1px solid var(--line-2); color: var(--txt);
  transition: all .2s;
}
.tb-btn:hover { border-color: var(--blue); background: rgba(110,168,255,.2); box-shadow: 0 0 12px rgba(110,168,255,.15); }
.tool-tip { font-size: 12px; color: var(--txt-faint); }
.post-source {
  margin-top: 28px; padding: 13px 16px; border-radius: 12px; font-size: 13.5px;
  background: rgba(255,200,80,.07); border: 1px solid rgba(255,200,80,.22); color: #ffd97a;
}
.post-source a { color: var(--cyan); text-decoration: underline; }
.post-nav {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 34px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.pn { font-size: 13.5px; color: var(--txt-dim); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn:hover { color: var(--cyan); }
.pn-prev { text-align: left; }
.pn-next { text-align: right; }

/* 错误页 */
.error-box { text-align: center; padding: 90px 0; }
.error-code {
  font-size: 96px; font-weight: 900; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.1;
}
.error-msg { color: var(--txt-dim); margin: 10px 0 28px; }

/* ============ 页脚 ============ */
.site-foot {
  border-top: 1px solid var(--line); background: rgba(16, 12, 38, 0.62);
  padding: 30px 0; margin-top: auto;
}
.foot-inner { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.foot-brand {
  font-weight: 800; letter-spacing: 3px; font-size: 17px;
  background: linear-gradient(90deg, #ffd24a, #ff6a3d, #ff2d95, #8a5cff, #3fb6ff, #54e8c8, #ffd24a);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: slogan-flow 6s linear infinite;
  display: flex; align-items: center; gap: 8px;
}
.foot-mark { width: 20px; height: 21px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255,160,60,.5)); }
.foot-slogan {
  font-size: 22px; font-weight: 900; letter-spacing: 10px; margin: 4px 0 2px;
  background: linear-gradient(90deg, #ffd24a, #ff6a3d, #ff2d95, #8a5cff, #3fb6ff, #54e8c8, #ffd24a);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: slogan-flow 6s linear infinite;
  filter: drop-shadow(0 0 14px rgba(255,170,60,.35));
  text-indent: 10px; /* 抵消 letter-spacing 造成的视觉右偏 */
}
.foot-text { color: var(--txt-faint); font-size: 12.5px; max-width: 640px; }
.foot-links { display: flex; gap: 18px; color: var(--txt-dim); font-size: 12.5px; flex-wrap: wrap; justify-content: center; }
.foot-links a:hover { color: var(--cyan); }

/* ============ 后台 ============ */
.admin-layout { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; }
.admin-side {
  position: sticky; top: 82px; display: flex; flex-direction: column; gap: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.admin-side-title { font-size: 13px; color: var(--txt-faint); letter-spacing: 2px; margin-bottom: 8px; text-align: center; }
.asi { padding: 10px 14px; border-radius: 10px; font-size: 14px; color: var(--txt-dim); transition: all .2s; }
.asi:hover { background: var(--panel-2); color: var(--txt); }
.asi.on { background: linear-gradient(120deg, rgba(110,168,255,.18), rgba(255,107,138,.18)); color: #fff; }
.asi-out { color: #ff9b9b; margin-top: 6px; }
.admin-body { min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.admin-head h1 { font-size: 24px; font-weight: 900; }
.admin-head p { color: var(--txt-dim); font-size: 13px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center;
}
.stat-card b { display: block; font-size: 26px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card span { color: var(--txt-dim); font-size: 12.5px; }

.admin-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 22px; overflow-x: auto; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-head h2 { font-size: 17px; font-weight: 800; }

.atable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.atable th {
  text-align: left; color: var(--txt-faint); font-weight: 600; font-size: 12.5px;
  padding: 9px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.atable td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.atable tr:last-child td { border-bottom: none; }
.atable tr:hover td { background: rgba(255,255,255,.02); }
.td-title { font-weight: 600; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-ops { white-space: nowrap; }
.td-ops a { color: var(--blue); margin-right: 10px; font-size: 13px; }
.td-ops a:hover { color: var(--cyan); }
.st-ok { color: #7fe6ab; font-size: 12.5px; }
.st-off { color: var(--txt-faint); font-size: 12.5px; }
.inline-form { display: inline; }
.btn-danger {
  background: rgba(255,87,87,.14); border: 1px solid rgba(255,87,87,.45);
  color: #ff9b9b; border-radius: 8px; padding: 8px 16px; cursor: pointer;
  font-size: 13px; transition: all .2s;
}
.btn-danger:hover { background: rgba(255,87,87,.35); color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.link-danger { background: none; border: none; color: #ff8d8d; cursor: pointer; font-size: 13px; font-family: var(--font); padding: 0; }
.link-danger:hover { text-decoration: underline; }
.empty-td { text-align: center; color: var(--txt-faint); padding: 30px !important; }

.tips-box { background: rgba(255,200,80,.05); border: 1px solid rgba(255,200,80,.2); border-radius: var(--radius); padding: 18px 22px; }
.tips-box h3 { font-size: 15px; color: #ffd97a; margin-bottom: 10px; }
.tips-box li { margin-left: 20px; color: var(--txt-dim); font-size: 13.5px; margin-bottom: 4px; }

/* 编辑表单 */
.edit-form { display: flex; flex-direction: column; gap: 18px; }
.edit-form.narrow { max-width: 460px; }
.ef-row { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.ef-main, .ef-side {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
}
.edit-form label { font-size: 13px; color: var(--txt-dim); margin-top: 6px; }
.edit-form label:first-child { margin-top: 0; }
.edit-form .ef-sep {
  margin: 22px 0 4px; padding: 9px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 700; color: #cfe0ff;
  background: linear-gradient(135deg, rgba(110,168,255,.14), rgba(255,107,138,.14));
  border: 1px solid var(--line-2);
}
.edit-form input[type=text], .edit-form input[type=url], .edit-form input[type=number],
.edit-form input[type=password], .edit-form select, .edit-form textarea {
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--txt);
  padding: 10px 13px; border-radius: 10px; font-size: 14px; font-family: var(--font);
  width: 100%; outline: none; transition: border-color .2s;
}
.edit-form input:focus, .edit-form select:focus, .edit-form textarea:focus { border-color: var(--blue); }
.edit-form textarea.mono { font-family: Consolas, "Courier New", monospace; font-size: 13.5px; line-height: 1.8; }
.edit-form .chk { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--txt); cursor: pointer; }
.edit-form .chk input { width: auto; }
.ef-actions { display: flex; gap: 10px; margin-top: 16px; }
.cover-preview { min-height: 90px; border: 1px dashed var(--line-2); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--txt-faint); font-size: 12.5px; overflow: hidden; background: rgba(255,255,255,.02); }
.cover-preview.has { border-style: solid; }
.cover-preview img { width: 100%; object-fit: cover; }
.up-wrap input[type=file] { margin-top: 8px; font-size: 12.5px; color: var(--txt-dim); }
.up-tip { font-size: 12px; color: var(--txt-faint); }

/* 登录页 */
.login-wrap { display: flex; justify-content: center; padding: 60px 0; }
.login-box {
  width: min(400px, 92vw); background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 36px 34px; text-align: center;
}
.login-logo {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(110,168,255,.3), rgba(255,107,138,.3));
  border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.login-box h1 { font-size: 21px; font-weight: 800; margin-bottom: 22px; }
.login-box label { display: block; text-align: left; font-size: 13px; color: var(--txt-dim); margin: 12px 0 6px; }
.login-box input {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid var(--line-2);
  color: var(--txt); padding: 11px 14px; border-radius: 10px; font-size: 14px; outline: none;
}
.login-box input:focus { border-color: var(--blue); }
.login-box .btn { margin-top: 20px; }
.login-tip { color: var(--txt-faint); font-size: 12px; margin-top: 14px; }

/* ============ 平台直达 ============ */
.plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 26px; }
.plat-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: all .25s; position: relative; overflow: hidden;
}
.plat-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(110,168,255,.55), transparent 40%, transparent 65%, rgba(255,107,138,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.plat-card:hover {
  transform: translateY(-4px); border-color: transparent;
  box-shadow: 0 16px 40px rgba(60,50,160,.35);
  background: linear-gradient(160deg, rgba(120,140,255,.10), rgba(255,120,160,.04));
}
.plat-card:hover::before { opacity: 1; }
.plat-icon {
  flex: none; width: 52px; height: 52px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #5f8dff, #b06bff);
  box-shadow: 0 6px 18px rgba(120,100,255,.35);
  transition: transform .25s;
}
.plat-card:hover .plat-icon { transform: scale(1.1) rotate(-4deg); }
.p-bili { background: linear-gradient(135deg, #4fb3fe, #1e9cf0); }
.p-bili2 { background: linear-gradient(135deg, #36c6d0, #1fa5c8); }
.p-dy { background: linear-gradient(135deg, #2b2b2b, #111); color: #fff; }
.p-wb { background: linear-gradient(135deg, #ff8a5c, #e94040); }
.p-xz { background: linear-gradient(135deg, #8f6bff, #5f3dd8); }
.p-home { background: linear-gradient(135deg, #ffd97a, #ff9d3d); color: #3a2a00; }
.plat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.plat-name { font-size: 16px; font-weight: 800; }
.plat-card:hover .plat-name { color: var(--cyan); }
.plat-desc { font-size: 12.5px; color: var(--txt-dim); line-height: 1.55; }
.plat-go { flex: none; font-size: 13px; color: var(--blue); font-weight: 600; }
.plat-tip { margin-top: 20px; color: var(--txt-faint); font-size: 12.5px; text-align: center; }

/* ============ 直播回放日期列表（倒序 · 一天一篇） ============ */
.live-list { display: flex; flex-direction: column; gap: 9px; }
.live-item {
  display: flex; align-items: center; gap: 16px; padding: 10px 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: 14px;
  transition: all .25s; position: relative; overflow: hidden;
}
.live-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad); opacity: 0; transition: opacity .25s;
}
.live-item:hover {
  transform: translateX(6px); border-color: rgba(126,231,255,.35);
  background: rgba(110,168,255,.055);
  box-shadow: 0 8px 26px rgba(60,50,160,.28);
}
.live-item:hover::before { opacity: 1; }
.live-thumb {
  flex: none; width: 118px; height: 66px; border-radius: 10px; object-fit: cover;
  border: 1px solid rgba(140,170,255,.2);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.live-item:hover .live-thumb {
  transform: scale(1.05); border-color: rgba(126,231,255,.55);
  box-shadow: 0 6px 18px rgba(60,50,160,.45);
}
.live-meta {
  flex: none; min-width: 60px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.live-day {
  flex: none; font-size: 26px; font-weight: 900; line-height: 1.1; letter-spacing: 1px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(150,110,255,.35));
}
.live-ym { flex: none; min-width: 0; color: var(--txt-dim); font-size: 12px; letter-spacing: .5px; }
.live-title { flex: 1; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s, text-shadow .2s; }
.live-item:hover .live-title { color: var(--cyan); text-shadow: 0 0 16px rgba(126,231,255,.35); }
.live-season {
  flex: none; font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: rgba(126,231,255,.08); border: 1px solid rgba(126,231,255,.22); color: var(--cyan);
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.live-views { flex: none; color: var(--txt-faint); font-size: 12.5px; min-width: 58px; text-align: right; }

/* ============ 滚动入场 ============ */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

/* ============ 动画 ============ */
@keyframes hero-breathe {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.07) translateY(-12px); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@keyframes scan-move {
  0% { top: 4%; opacity: 0; }
  8% { opacity: .7; }
  50% { top: 92%; }
  92% { opacity: .7; }
  100% { top: 98%; opacity: 0; }
}
@keyframes kicker-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(126,231,255,.14), inset 0 0 10px rgba(126,231,255,.06); }
  50% { box-shadow: 0 0 26px rgba(126,231,255,.34), inset 0 0 14px rgba(126,231,255,.14); }
}
@keyframes title-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes hue-roll {
  0% { filter: hue-rotate(0deg) drop-shadow(0 2px 6px rgba(2,4,10,.9)) drop-shadow(0 0 26px rgba(140,110,255,.45)); }
  50% { filter: hue-rotate(180deg) drop-shadow(0 2px 6px rgba(2,4,10,.9)) drop-shadow(0 0 30px rgba(255,120,150,.5)); }
  100% { filter: hue-rotate(360deg) drop-shadow(0 2px 6px rgba(2,4,10,.9)) drop-shadow(0 0 26px rgba(140,110,255,.45)); }
}
@keyframes badge-pulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(255,160,60,.4)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 26px rgba(255,120,40,.85)); transform: scale(1.07); }
}
@keyframes slogan-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes btn-shine {
  0% { left: -60%; }
  55% { left: 130%; }
  100% { left: 130%; }
}

/* ============ 响应式 ============ */
@media (max-width: 860px) {
  .stat-strip, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .ef-row { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .admin-side-title { width: 100%; }
  .hero { min-height: 400px; }
  .hero-inner { padding: 60px 16px; }
  .hero-video { display: none; }
  .live-thumb { width: 84px; height: 48px; }
  .live-day { font-size: 22px; }
  .live-ym { display: none; }
  .live-season { display: none; }
  .live-views { display: none; }
  .live-item { padding: 10px 14px; }
  .plat-grid { grid-template-columns: 1fr; }
  .plat-go { display: none; }
  /* ---- 移动端导航：顶部简化为品牌，底部 Tab 导航 ---- */
  .nav { display: none; }
  .head-inner { justify-content: center; }
  .brand { font-size: 18px; }
  .brand-mark { font-size: 20px; }
  .main { padding-bottom: 76px; }
  /* 移动端 hero 取消固定比例（避免 min-height 与 aspect-ratio 冲突导致横向溢出） */
  .hero { aspect-ratio: auto; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(18, 14, 42, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 4px 0; font-size: 11px; color: var(--txt-dim);
    text-decoration: none; transition: color .2s;
  }
  .tabbar a .tb-i { font-size: 20px; line-height: 1; }
  .tabbar a.on { color: var(--cyan); }
  .tabbar a:active { color: #fff; }
  /* 聊天室页底部输入区避开 Tab 栏 */
  .chat-shell { margin-bottom: 0; }
}

/* ============ 聊天室 ============ */
.chat-head h1 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chat-shell {
  margin-top: 4px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 560px;
  box-shadow: 0 20px 60px rgba(30,20,80,.25);
  position: relative;
}
.chat-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; flex-wrap: wrap;
  background: rgba(255,255,255,.045); border-bottom: 1px solid var(--line);
}
.chat-theme-switch { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-btn {
  padding: 6px 15px; border-radius: 999px; cursor: pointer; font-size: 13px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: var(--txt-dim);
  transition: all .22s;
}
.theme-btn:hover { color: var(--txt); border-color: var(--blue); }
.theme-btn.on {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 4px 18px rgba(120,90,255,.4);
}
.chat-nick {
  font-size: 13px; color: var(--cyan); font-weight: 600; letter-spacing: .5px;
  padding: 5px 14px; border-radius: 999px; border: 1px dashed rgba(126,231,255,.4);
  background: rgba(126,231,255,.06);
}
.chat-top-right { display: flex; align-items: center; gap: 10px; }
.chat-am-btn {
  padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 12.5px;
  background: rgba(255,190,90,.08); border: 1px solid rgba(255,190,90,.35);
  color: #ffc46b; transition: all .2s;
}
.chat-am-btn:hover { background: rgba(255,190,90,.18); border-color: #ffc46b; }
.chat-list {
  flex: 1; overflow-y: auto; padding: 16px 16px 8px;
  display: flex; flex-direction: column; gap: 10px;
  max-height: 52vh; min-height: 300px;
  scroll-behavior: smooth;
}
.chat-tip { color: var(--txt-faint); text-align: center; font-size: 13px; padding: 30px 0; }
.chat-msg {
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px; padding: 9px 14px;
  animation: msg-in .3s ease;
  max-width: 92%;
}
.chat-msg.new { animation: msg-in .3s ease; }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.chat-msg-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.chat-nm {
  font-size: 13px; font-weight: 800; color: var(--cyan);
  background: rgba(126,231,255,.09); padding: 2px 10px; border-radius: 999px;
}
.chat-tm { font-size: 11px; color: var(--txt-faint); margin-left: auto; }
.chat-del {
  border: 0; background: rgba(255,87,87,.15); color: #ff9b9b; cursor: pointer;
  width: 22px; height: 22px; border-radius: 50%; font-size: 12px; line-height: 1;
  transition: all .2s;
}
.chat-del:hover { background: rgba(255,87,87,.4); color: #fff; }
.chat-banbtn {
  border: 0; background: rgba(255,200,80,.14); color: #ffd97a; cursor: pointer;
  width: 22px; height: 22px; border-radius: 50%; font-size: 12px; line-height: 1;
  transition: all .2s;
}
.chat-banbtn:hover { background: rgba(255,200,80,.4); color: #fff; }
.ban-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.ban-opts .btn { width: 100%; padding: 10px 8px; font-size: 13.5px; }
.chat-tx { font-size: 14.5px; line-height: 1.65; word-break: break-word; color: var(--txt); }
.chat-inputbar {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-top: 1px solid var(--line); background: rgba(255,255,255,.04);
}
.chat-inputbar input {
  flex: 1; background: rgba(255,255,255,.07); border: 1px solid var(--line-2);
  color: var(--txt); padding: 10px 14px; border-radius: 10px; font-size: 14px; outline: none;
}
.chat-inputbar input:focus { border-color: var(--blue); }
.emoji-btn {
  flex: none; font-size: 20px; width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,.07); border: 1px solid var(--line-2); cursor: pointer;
  transition: all .2s;
}
.emoji-btn:hover { border-color: var(--blue); transform: scale(1.06); }
.send-btn { flex: none; padding: 10px 26px; }
.emoji-panel {
  position: absolute; left: 14px; bottom: 74px; z-index: 20;
  display: grid; grid-template-columns: repeat(6, 40px); gap: 6px;
  padding: 12px; border-radius: 14px;
  background: rgba(8,10,20,.95); border: 1px solid var(--line-2);
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
}
.emoji-panel span {
  font-size: 22px; text-align: center; cursor: pointer; padding: 4px;
  border-radius: 8px; transition: all .15s; user-select: none;
}
.emoji-panel span:hover { background: rgba(126,231,255,.18); transform: scale(1.18); }
.chat-rules {
  padding: 8px 14px; font-size: 11.5px; color: var(--txt-faint);
  text-align: center; border-top: 1px solid var(--line);
}
/* 昵称弹窗 */
.nick-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3,5,12,.72); backdrop-filter: blur(6px);
}
.nick-modal[hidden], .emoji-panel[hidden] { display: none; }
.nick-box {
  width: min(420px, 92vw); padding: 30px 26px; border-radius: 20px; text-align: center;
  background: var(--panel); border: 1px solid var(--line-2);
  box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(126,231,255,.12);
}
.nick-box h3 { font-size: 21px; margin-bottom: 10px; }
.nick-box p { color: var(--txt-dim); font-size: 13px; margin-bottom: 16px; }
.nick-preview {
  font-size: 17px; font-weight: 800; letter-spacing: 1px; padding: 12px;
  border-radius: 12px; margin-bottom: 16px; color: var(--cyan);
  background: rgba(126,231,255,.08); border: 1px dashed rgba(126,231,255,.45);
}
.nick-box input {
  width: 100%; text-align: center; padding: 11px; font-size: 16px;
  border-radius: 10px; margin-bottom: 16px; outline: none;
  background: rgba(255,255,255,.07); border: 1px solid var(--line-2); color: var(--txt);
}
.nick-box input:focus { border-color: var(--blue); }
.nick-ok { width: 100%; padding: 12px; font-size: 15px; }
.nick-box .btn-plain {
  width: 100%; margin-top: 8px; padding: 10px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-2);
  color: var(--txt-dim); border-radius: 10px; cursor: pointer; font-size: 13px;
}
.nick-box .btn-plain:hover { color: var(--txt); }
.nick-box .btn-danger { width: 100%; margin-top: 8px; }
.am-ready {
  font-size: 13px; color: #7dffb2; padding: 10px; border-radius: 10px; margin-bottom: 14px;
  background: rgba(80,255,160,.08); border: 1px dashed rgba(80,255,160,.4);
}
.am-notready {
  font-size: 13px; color: var(--txt-dim); padding: 10px; border-radius: 10px; margin-bottom: 14px;
  background: rgba(255,255,255,.05); border: 1px dashed var(--line-2);
}

/* ===== 聊天室三主题 ===== */
/* 二次元：明亮多彩 */
body.chat-theme-anime .chat-shell {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,140,220,.22), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(120,220,255,.2), transparent 55%),
    linear-gradient(160deg, #241a3a, #1a1230 60%, #221b45);
  border-color: rgba(255,150,230,.35);
}
body.chat-theme-anime .chat-msg {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,160,230,.28);
}
body.chat-theme-anime .chat-nm { color: #ff9adf; background: rgba(255,154,223,.12); }
body.chat-theme-anime .chat-inputbar { background: rgba(255,255,255,.06); }
/* 废土世界：黄褐做旧 */
body.chat-theme-wasteland .chat-shell {
  background:
    radial-gradient(ellipse at 15% 10%, rgba(220,150,60,.2), transparent 55%),
    linear-gradient(160deg, #2a2012, #241a10 60%, #2e2413);
  border-color: rgba(230,170,90,.3);
}
body.chat-theme-wasteland .chat-msg {
  background: rgba(120,90,40,.14);
  border-color: rgba(230,170,90,.28);
}
body.chat-theme-wasteland .chat-nm { color: #ffb45e; background: rgba(255,180,94,.12); }
body.chat-theme-wasteland .chat-inputbar { background: rgba(120,90,40,.1); }
/* 机甲朋克：深蓝黑 + 青色机械光 */
body.chat-theme-mecha .chat-shell {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(60,220,255,.16), transparent 50%),
    radial-gradient(ellipse at 10% 100%, rgba(80,120,255,.18), transparent 55%),
    linear-gradient(160deg, #0b1226, #0a101f 60%, #0d1528);
  border-color: rgba(80,200,255,.35);
}
body.chat-theme-mecha .chat-msg {
  background: rgba(60,150,220,.12);
  border-color: rgba(80,200,255,.3);
}
body.chat-theme-mecha .chat-nm { color: #5fe0ff; background: rgba(95,224,255,.12); }
body.chat-theme-mecha .chat-inputbar { background: rgba(40,80,140,.12); }
