/* =========================================================
   给你把流量 · 黑红设计令牌系统 (Design Tokens)
   总后台修改主题色会实时覆盖 :root 变量，全站联动
   ========================================================= */
:root {
  /* 颜色令牌（可被总后台配置覆盖） */
  --bg: #0B0B0D;
  --surface: #15151A;
  --surface2: #1E1E26;
  --primary: #E60012;
  --primary2: #FF3B3B;
  --text: #F5F5F7;
  --muted: #9A9AA5;
  --line: rgba(255, 255, 255, 0.08);

  /* 语义色 */
  --ok: #2ecc71;
  --warn: #f5a623;
  --danger: #ff4d4f;

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* 字号 */
  --fs-xs: 12px; --fs-sm: 13px; --fs-base: 14px; --fs-lg: 16px;
  --fs-xl: 20px; --fs-2xl: 26px; --fs-3xl: 34px;

  /* 间距（8pt 基准） */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;

  /* 圆角 */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px;

  /* 阴影 / 光晕 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(255, 59, 59, 0.25), 0 10px 40px rgba(230, 0, 18, 0.18);

  /* 动效 */
  --t-fast: 140ms ease;
  --t: 260ms cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* 背景氛围：黑底 + 红色径向光 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(230, 0, 18, 0.16), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(255, 59, 59, 0.10), transparent 55%);
}

/* ============ 通用组件 ============ */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(8px);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface2); color: var(--text); cursor: pointer; font-size: var(--fs-base);
  transition: all var(--t-fast); border: none; user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #fff; box-shadow: var(--glow);
}
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(255,59,59,.4), 0 14px 50px rgba(230,0,18,.35); }
.btn--ghost { background: transparent; border: 1px solid var(--line); }
.btn--danger { background: rgba(255, 77, 79, .12); color: var(--danger); border: 1px solid rgba(255,77,79,.35); }
.btn--sm { padding: 6px 12px; font-size: var(--fs-sm); }

.input, .textarea, .select {
  width: 100%; padding: 11px 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font-size: var(--fs-base); transition: all var(--t-fast); outline: none;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--primary2); box-shadow: 0 0 0 3px rgba(255, 59, 59, .15);
}
.textarea { resize: vertical; min-height: 70px; font-family: inherit; }
.label { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 6px; display: block; }

.tag { font-size: var(--fs-xs); padding: 2px 9px; border-radius: 20px; background: rgba(255,255,255,.08); color: var(--muted); }
.tag--ok { background: rgba(46,204,113,.14); color: var(--ok); }
.tag--off { background: rgba(154,154,165,.14); color: var(--muted); }

/* ============ 登录页 ============ */
.auth-wrap {
  position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: var(--s6);
}
.auth-card { width: 100%; max-width: 420px; padding: var(--s10) var(--s8); }
.auth-logo { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: var(--s6); }
.auth-logo .mark {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 22px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary2)); box-shadow: var(--glow);
}
.auth-logo .mark img { width: 100%; height: 100%; object-fit: cover; }
.auth-logo .mark.has-img { width: auto; height: auto; min-width: 48px; min-height: 48px; padding: 6px 10px; background: transparent; box-shadow: none; }
.auth-logo .mark.has-img img { width: auto; height: 46px; max-width: 220px; object-fit: contain; border-radius: 8px; }
.auth-logo .name { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: .5px; }
.auth-title { text-align: center; font-size: var(--fs-lg); color: var(--muted); margin: 0 0 var(--s6); }
.auth-hint { text-align: center; font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s5); }
.auth-tabs { display: flex; gap: 8px; margin-bottom: var(--s5); background: var(--surface); padding: 5px; border-radius: 12px; }
.auth-tabs button { flex: 1; padding: 9px; border-radius: 9px; border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: var(--fs-base); transition: var(--t-fast); }
.auth-tabs button.active { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; }

/* ============ 应用骨架（用户端 + 总后台共用）============ */
.app { position: relative; z-index: 1; display: flex; min-height: 100vh; }

.sidebar {
  width: 248px; flex-shrink: 0; background: var(--surface);
  border-right: 1px solid var(--line); display: flex; flex-direction: column;
  padding: var(--s5) var(--s4); position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; }
.sidebar .brand .mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 17px;
  background: linear-gradient(135deg, var(--primary), var(--primary2)); box-shadow: var(--glow); flex-shrink: 0; overflow: hidden;
}
.sidebar .brand .mark img { width: 100%; height: 100%; object-fit: cover; }
.sidebar .brand .mark.has-img { width: auto; height: auto; min-width: 38px; min-height: 38px; padding: 4px 8px; background: transparent; box-shadow: none; }
.sidebar .brand .mark.has-img img { width: auto; height: 34px; max-width: 160px; object-fit: contain; border-radius: 7px; }
.sidebar .brand .bn { font-weight: 800; font-size: var(--fs-lg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.nav .nav-label { font-size: var(--fs-xs); color: var(--muted); padding: 14px 10px 6px; letter-spacing: 1px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-md);
  color: var(--muted); cursor: pointer; font-size: var(--fs-base); transition: var(--t-fast); border: 1px solid transparent;
}
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active { background: linear-gradient(135deg, rgba(230,0,18,.18), rgba(255,59,59,.10)); color: #fff; border-color: rgba(255,59,59,.35); }
.ico { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary2)); box-shadow: 0 6px 16px rgba(230,0,18,.22); }
.ico-lg { width: 46px; height: 46px; border-radius: 13px; font-size: 19px; }
.back-btn { margin-bottom: 16px; }
.nav-item .chev { margin-left: auto; font-size: 12px; opacity: .5; transition: transform .2s ease, opacity .2s ease; cursor: pointer; padding: 0 4px; }
.nav-item .chev:hover { opacity: 1; }
.nav-item.collapsed .chev { transform: rotate(-90deg); opacity: .8; }
.nav-sub { margin-left: 18px; border-left: 1px solid var(--line); padding-left: 6px; }
.nav-sub.collapsed { display: none; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 64px; flex-shrink: 0; display: flex; align-items: center; gap: 16px; padding: 0 var(--s6);
  border-bottom: 1px solid var(--line); background: rgba(11,11,13,.6); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5;
}
.topbar .announce {
  flex: 1; font-size: var(--fs-sm); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topbar .who { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.topbar .avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary2)); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.content { padding: var(--s8) var(--s6); max-width: 1180px; width: 100%; margin: 0 auto; }

.page-head { margin-bottom: var(--s6); }
.page-head h1 { font-size: var(--fs-3xl); margin: 0 0 6px; font-weight: 800; }
.page-head p { color: var(--muted); margin: 0; font-size: var(--fs-base); }

/* 卡片网格 */
.grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card-mod {
  padding: var(--s6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: var(--t); position: relative; overflow: hidden;
}
.card-mod:hover { transform: translateY(-3px); border-color: rgba(255,59,59,.4); box-shadow: var(--shadow-md); }
.card-mod .ico-lg {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-weight: 700; font-size: 19px; margin-bottom: 14px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary2)); box-shadow: 0 6px 16px rgba(230,0,18,.22);
}
.card-mod h3 { margin: 0 0 8px; font-size: var(--fs-lg); }
.card-mod p { margin: 0 0 16px; color: var(--muted); font-size: var(--fs-sm); min-height: 38px; }
.card-mod .go { font-size: var(--fs-sm); color: var(--primary2); display: inline-flex; align-items: center; gap: 6px; }

.empty { text-align: center; color: var(--muted); padding: var(--s12) 0; }

/* 首页海报 / Hero */
.hero {
  position: relative; border-radius: var(--r-xl); padding: var(--s12) var(--s10); margin-bottom: var(--s8);
  border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-md); min-height: 220px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.hero-badge {
  align-self: flex-start; font-size: var(--fs-xs); letter-spacing: 2px; color: #fff;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.25); padding: 5px 12px; border-radius: 20px; backdrop-filter: blur(4px);
}
.hero-title { font-size: var(--fs-3xl); font-weight: 800; margin: 0; line-height: 1.2; }
.hero-sub { color: rgba(255,255,255,.82); font-size: var(--fs-lg); margin: 0; max-width: 720px; }
.hero-btn { align-self: flex-start; margin-top: var(--s4); }
.hero-hint { font-size: var(--fs-xs); color: rgba(255,255,255,.6); margin-top: var(--s3); }

/* 板块配图 / 海报卡 */
.poster {
  display: block; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: var(--s5);
  box-shadow: var(--shadow-sm); transition: var(--t);
}
.poster:hover { border-color: rgba(255,59,59,.45); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.poster img { width: 100%; display: block; max-height: 420px; object-fit: cover; }
.card-poster { width: 100%; height: 132px; overflow: hidden; border-radius: 12px; margin-bottom: 12px; background: var(--surface2); }
.card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.btn-in-card { display: inline-block; margin-top: 8px; padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary2)); box-shadow: var(--glow); }

/* 总后台：海报/Logo 预览 */
.poster-prev {
  width: 240px; height: 96px; border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden;
  background: var(--surface2); display: grid; place-items: center; flex-shrink: 0;
}
.poster-prev img { width: 100%; height: 100%; object-fit: cover; }
.poster-prev .ph { color: var(--muted); font-size: var(--fs-xs); text-align: center; line-height: 1.5; }

.hint { font-size: var(--fs-xs); color: var(--muted); margin: 10px 0 0; }
.hint code { background: var(--surface2); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); color: var(--primary2); font-family: var(--mono); }

/* 实时预览 */
.preview-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s4); }
.live-prev { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }

/* 数据看板 KPI */
.kpis { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: var(--s6); }
.kpi { padding: var(--s5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.kpi .v { font-size: var(--fs-3xl); font-weight: 800; background: linear-gradient(135deg, var(--primary2), var(--primary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kpi .l { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; }

/* ============ 总后台专属 ============ */
.admin-layout .content { max-width: 1280px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); margin-bottom: var(--s6); }
.panel h2 { font-size: var(--fs-xl); margin: 0 0 4px; }
.panel .sub { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 var(--s5); }
.row { display: flex; gap: var(--s4); flex-wrap: wrap; align-items: end; }
.field { flex: 1; min-width: 160px; margin-bottom: var(--s4); }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 600; }
.tbl tr:hover td { background: rgba(255,255,255,.02); }

.section-editor { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4); margin-bottom: var(--s3); background: var(--surface2); }
.section-editor .se-top { display: flex; align-items: center; gap: 10px; }
.section-editor .se-top .drag { cursor: grab; color: var(--muted); }
.section-editor .se-top .t { font-weight: 600; flex: 1; }
.switch { position: relative; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; transition: var(--t); }
.switch .slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 2px; background: var(--muted); border-radius: 50%; transition: var(--t); }
.switch input:checked + .slider { background: linear-gradient(135deg, var(--primary), var(--primary2)); border-color: transparent; }
.switch input:checked + .slider::before { transform: translateX(18px); background: #fff; }

.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 50; display: none; align-items: center; justify-content: center; padding: var(--s5); }
.modal-mask.show { display: flex; }
.modal { width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; padding: var(--s6); }

/* 弹窗内子入口编辑区 */
.mc-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; background: var(--surface2); }
.mc-head { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.mc-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; background: var(--surface); }
.mc-row { display: flex; gap: 8px; align-items: center; }
.mc-detail { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.modal h3 { margin: 0 0 var(--s5); font-size: var(--fs-xl); }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: var(--s5); }

.swatch-row { display: flex; gap: 14px; flex-wrap: wrap; }
.swatch { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-xs); color: var(--muted); }
.swatch input[type=color] { width: 52px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--surface2); border: 1px solid var(--line); color: var(--text); padding: 12px 20px; border-radius: var(--r-md); box-shadow: var(--shadow-md); opacity: 0; transition: var(--t); z-index: 100; font-size: var(--fs-sm); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(46,204,113,.5); }
.toast.err { border-color: rgba(255,77,79,.5); }

.logo-preview { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 26px; background: linear-gradient(135deg, var(--primary), var(--primary2)); overflow: hidden; }
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .sidebar { width: 72px; padding: 16px 10px; }
  .sidebar .brand .bn, .nav .nav-label, .nav-item span.txt, .nav-item .chev { display: none; }
  .content { padding: 24px 16px; }
}

/* ============ 登录页警示 ============ */
.warn-banner {
  display: flex; gap: 8px; align-items: center; font-size: var(--fs-xs); line-height: 1.5;
  color: #ffd9b0; background: rgba(245,166,35,.12); border: 1px solid rgba(245,166,35,.35);
  padding: 10px 12px; border-radius: var(--r-md); margin-bottom: var(--s5);
}

/* ============ 首页快捷入口 ============ */
.sec-quick { margin-top: 4px; }
.q-head { display: flex; align-items: baseline; gap: 12px; margin: 4px 2px 16px; }
.q-head span:first-child { font-size: var(--fs-xl); font-weight: 800; }
.q-sub { color: var(--muted); font-size: var(--fs-sm); }
.q-count { font-style: normal; font-size: var(--fs-xs); color: var(--primary2); background: rgba(255,59,59,.12); padding: 1px 8px; border-radius: 20px; margin-left: 6px; }
.quick-card { cursor: pointer; }

/* ============ 板块详情卡 ============ */
.detail-card { padding: var(--s6); margin-top: 4px; }
.detail-card .poster { margin-top: 4px; }

/* ============ 头像图片 ============ */
.topbar .avatar { overflow: hidden; }
.topbar .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ============ 总后台开通信息卡 ============ */
.info-card { background: linear-gradient(180deg, rgba(46,204,113,.10), rgba(46,204,113,.04)); border: 1px solid rgba(46,204,113,.35); border-radius: var(--r-lg); padding: var(--s6); margin-top: var(--s4); }
.ic-head { font-size: var(--fs-lg); font-weight: 800; margin-bottom: 14px; }
.ic-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-base); }
.ic-row span { color: var(--muted); white-space: nowrap; }
.ic-row b { font-weight: 700; text-align: right; }
.ic-link { color: var(--primary2) !important; word-break: break-all; }
.ic-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ============ 滚动条美化 ============ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.22); }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 卡片入场动画 ============ */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.grid .card-mod { animation: rise .35s var(--t) both; }
.grid .card-mod:nth-child(2) { animation-delay: .04s; }
.grid .card-mod:nth-child(3) { animation-delay: .08s; }
.grid .card-mod:nth-child(4) { animation-delay: .12s; }
.grid .card-mod:nth-child(5) { animation-delay: .16s; }
.grid .card-mod:nth-child(6) { animation-delay: .20s; }

/* ============ 图片上传组件（点击上传，不填链接） ============ */
.up-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.up-preview {
  width: 96px; height: 64px; border-radius: 12px; overflow: hidden; flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(230,0,18,.10), rgba(255,59,59,.05));
  border: 1px dashed rgba(255,59,59,.4); display: grid; place-items: center;
}
.up-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-ph { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.5; padding: 4px; }
.up-acts { display: flex; gap: 8px; align-items: center; }

/* ============ 板块管理表（重排后的数据表） ============ */
.sec-table { display: flex; flex-direction: column; gap: 10px; }
.sec-thead {
  display: grid; grid-template-columns: 56px 1fr 190px 90px 250px;
  gap: 10px; padding: 0 12px; font-size: 11px; letter-spacing: .1em;
  color: var(--muted); text-transform: uppercase;
}
.sec-thead .ops { text-align: right; }
.sec-card {
  border: 1px solid rgba(255,59,59,.14); border-radius: 14px; padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sec-card:hover { border-color: rgba(255,59,59,.35); box-shadow: 0 6px 24px rgba(230,0,18,.12); transform: translateY(-1px); }
.sec-card__main { display: grid; grid-template-columns: 56px 1fr 250px; gap: 12px; align-items: center; }
.sec-avo {
  width: 48px; height: 48px; border-radius: 12px; overflow: hidden; cursor: pointer;
  display: grid; place-items: center; background: linear-gradient(135deg, rgba(230,0,18,.18), rgba(255,59,59,.08));
  border: 1px solid rgba(255,59,59,.28); transition: transform .2s, box-shadow .2s;
}
.sec-avo:hover { transform: scale(1.06); box-shadow: 0 0 0 2px rgba(255,59,59,.35); }
.sec-avo img { width: 100%; height: 100%; object-fit: cover; }
.sec-avo .emo { font-size: 22px; }
.sec-avo--sm { width: 34px; height: 34px; border-radius: 9px; }
.sec-avo--sm .emo { font-size: 16px; }
.sec-card__info { min-width: 0; }
.sec-title {
  width: 100%; background: transparent; border: 1px solid transparent; border-radius: 8px;
  color: var(--text); font-size: 15px; font-weight: 700; padding: 6px 8px; font-family: inherit;
}
.sec-title:hover { border-color: rgba(255,255,255,.12); }
.sec-title:focus { outline: none; border-color: var(--primary2); background: rgba(0,0,0,.25); }
.sec-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.sec-card__ops { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.op-btn {
  width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 13px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--text);
}
.op-btn:hover { background: rgba(230,0,18,.28); border-color: rgba(255,59,59,.5); }
.tag {
  font-size: 11px; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.08); color: var(--muted); border: 1px solid rgba(255,255,255,.1);
}
.tag--group { background: rgba(230,0,18,.16); color: #ff8a8a; border-color: rgba(255,59,59,.35); }
.tag--on { background: rgba(34,197,94,.14); color: #6ee7a0; border-color: rgba(34,197,94,.3); }
.tag--off { background: rgba(255,255,255,.06); color: var(--muted); }
.tag--link { background: rgba(59,130,246,.14); color: #93c5fd; border-color: rgba(59,130,246,.3); }
.tag--nolink { background: rgba(255,255,255,.05); color: #8b8b96; }
.tag--img { background: rgba(168,85,247,.14); color: #d8b4fe; border-color: rgba(168,85,247,.3); }
.tag--noimg { background: rgba(255,255,255,.05); color: #8b8b96; }
.sec-children { margin: 10px 0 2px 24px; padding-left: 14px; border-left: 1px dashed rgba(255,59,59,.25); display: flex; flex-direction: column; gap: 8px; }
.child-row { display: flex; align-items: center; gap: 10px; }
.child-line { width: 14px; height: 1px; background: rgba(255,59,59,.35); flex: 0 0 auto; }
.child-title {
  flex: 1; min-width: 80px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; color: var(--text); font-size: 13px; padding: 6px 10px; font-family: inherit;
}
.child-title:focus { outline: none; border-color: var(--primary2); }
@media (max-width: 900px) {
  .sec-thead { display: none; }
  .sec-card__main { grid-template-columns: 44px 1fr; }
  .sec-card__ops { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
}

/* ================= AI 科技感视觉层（黑红高级感） ================= */
.ai-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.app { position: relative; z-index: 1; }

/* 点阵网格 */
.ai-grid {
  position: absolute; inset: -2px;
  background-image: radial-gradient(rgba(255,255,255,.075) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% 0%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 95% 75% at 50% 0%, #000 35%, transparent 100%);
  opacity: .55;
}
/* 红色光晕 */
.ai-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .26; }
.ai-glow--a {
  width: 640px; height: 640px; left: -190px; top: -230px;
  background: radial-gradient(circle, rgba(230,0,18,.6), transparent 70%);
  animation: aiFloat 14s ease-in-out infinite alternate;
}
.ai-glow--b {
  width: 540px; height: 540px; right: -170px; bottom: -210px;
  background: radial-gradient(circle, rgba(255,59,59,.42), transparent 70%);
  animation: aiFloat 18s ease-in-out infinite alternate-reverse;
}
/* 扫描线 */
.ai-scan {
  position: absolute; left: 0; right: 0; height: 200px; top: -200px;
  background: linear-gradient(180deg, transparent, rgba(255,59,59,.055), transparent);
  animation: aiScan 10s linear infinite;
}
@keyframes aiScan { 0% { top: -200px; } 100% { top: 100%; } }
@keyframes aiFloat {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(42px,32px,0) scale(1.09); }
}

/* AI 脉冲点 */
.ai-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px;
  background: var(--primary2); box-shadow: 0 0 0 0 rgba(255,59,59,.7);
  animation: aiPulse 1.8s ease-out infinite; vertical-align: middle;
}
@keyframes aiPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,59,59,.65); }
  70%  { box-shadow: 0 0 0 8px rgba(255,59,59,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); }
}

/* 图标容器：支持上传的 Logo 图片 */
.ico--img { overflow: hidden; padding: 0 !important; background: rgba(255,255,255,.05); }
.ico--img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.ico-lg.ico--img { border-radius: 14px; }

/* 海报卡上的扫描线动效 */
.card-poster { position: relative; overflow: hidden; }
.card-scan {
  position: absolute; left: 0; right: 0; height: 40%; top: -40%;
  background: linear-gradient(180deg, transparent, rgba(255,59,59,.22), transparent);
  animation: posterScan 4.5s linear infinite;
}
@keyframes posterScan { 0% { top: -40%; } 100% { top: 100%; } }

/* 卡片：AI 发光描边 + 悬停上浮 */
.card-mod { position: relative; overflow: hidden; }
.card-mod::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.07) 50%, transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.card-mod:hover::after { opacity: 1; }
.card-mod:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(230,0,18,.22); }

/* Hero 徽章 */
.hero-badge { display: inline-flex; align-items: center; }

/* 侧边栏：右侧发光分隔 */
.sidebar { position: relative; }
.sidebar::after {
  content: ''; position: absolute; right: 0; top: 12%; bottom: 12%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,59,59,.45), transparent);
}

/* 主按钮：流光效果 */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 45%; left: -50%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  animation: btnSheen 3.6s ease-in-out infinite;
}
@keyframes btnSheen { 0% { left: -50%; } 60%,100% { left: 120%; } }

/* 板块标题：AI 感渐隐下划线 */
.page-head h1 { position: relative; display: inline-block; }
.page-head h1::after {
  content: ''; position: absolute; left: 0; right: 30%; bottom: -8px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary2), transparent);
  border-radius: 2px; opacity: .8;
}

/* 登录页层级（置于 AI 背景之上） */
.auth-wrap { position: relative; z-index: 1; }
