/* ===================== 北斗·卫星互联网热点 · 纸面阅读风格（2026-09 改版，版式对标 aihot.news） =====================
   浅色是默认；深色靠 <html data-theme="dark"> 切换。所有颜色都走变量，别在组件里写死颜色。
   断点：≤640 手机（单列、底部导航、无卡片边框）；641–960 平板（无侧栏）；≥961 电脑（左侧栏 + 内容）。 */
:root, :root[data-theme="light"] {
  color-scheme: light;
  --bg: #faf9f6;            /* 页面底色：暖白纸 */
  --bg-2: #f1f2ee;          /* 日期条、输入框底 */
  --panel: #ffffff;         /* 卡片 */
  --panel-2: #eef1ed;       /* 卡片里的次级块（推荐理由、代码） */
  --line: #e9ede9;          /* 细分隔线 */
  --line-2: #dfe4e1;        /* 卡片边框 */
  --line-3: #cfd7d3;        /* 输入框、强调边框 */
  --text: #202a30;
  --text-2: #4f5b61;
  --muted: #616d73;
  --brand: #0957c3;
  --accent: #1a5ba6;        /* 唯一的强调色：品牌蓝（压暗一点，适合纸面） */
  --accent-2: #1a5ba6;
  --accent-weak: rgba(26, 91, 166, .08);
  --accent-contrast: #ffffff;
  --hi: #2a6e51;
  --mid: #7c5a24;
  --lo: #69757b;
  --heat: #b3402a;
  --star: #b8873a; --star-ink: #7c5a24;
  --rank-1: #b3402a; --rank-2: #a3642f; --rank-3: #96702e; --rank-rest-bg: #eceef0; --rank-rest-ink: #57626e; --rank-ink: #ffffff;
  --topbar-h: 53px;
  --note-fg: #4a6473;
  --sidebar-bg: #fdfdfb;
  --shadow-card: 0 1px 2px rgba(32, 42, 48, .03);
  --shadow-card-hover: 0 3px 12px rgba(32, 42, 48, .06);
  --radius: 12px; --radius-sm: 8px;
  --nav-w: 208px; --time-w: 58px; --rail-w: 22px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #13191c; --bg-2: #1a2226; --panel: #1a2226; --panel-2: #222d32;
  --line: rgba(255, 255, 255, .06); --line-2: rgba(255, 255, 255, .09); --line-3: rgba(255, 255, 255, .16);
  --text: #e7eceb; --text-2: #b3bdc0; --muted: #8a979d;
  --accent: #78aef0; --accent-2: #78aef0; --accent-weak: rgba(120, 174, 240, .12); --accent-contrast: #0f1518;
  --hi: #5fc79a; --mid: #d3b26a; --lo: #8a979d; --heat: #e0785f; --star: #d3b26a;
  --star-ink: #d3b26a;
  --rank-1: #d86a52; --rank-2: #d18a5e; --rank-3: #d3b26a; --rank-rest-bg: rgba(255, 255, 255, .08); --rank-rest-ink: #a5b0b3; --rank-ink: #151b1e;
  --note-fg: #8fb0c4;
  --sidebar-bg: #161e21;
  --shadow-card: none; --shadow-card-hover: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 700; }
button, input, select, textarea { font-family: inherit; }
code { font-family: var(--mono); font-size: .9em; background: var(--panel-2); padding: 1px 6px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.bg-stars { display: none; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.only-m { display: none !important; }

/* ---------------- 外壳：左侧栏 + 内容 ---------------- */
.shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow: auto; padding: 22px 12px 14px; border-right: 1px solid var(--line-2); background: var(--sidebar-bg); display: flex; flex-direction: column; gap: 14px; }
.main { min-width: 0; padding: 26px 32px 72px; max-width: 1240px; width: 100%; }
.rail { display: none; }
.topbar { display: none; }

.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 2px 12px; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; flex: none; position: relative; background: radial-gradient(circle at 35% 35%, #4a8df0, var(--brand) 62%, #073f93); }
.brand-mark::after { content: ""; position: absolute; inset: -5px -8px; border: 1.5px solid color-mix(in srgb, var(--brand) 55%, transparent); border-radius: 50%; transform: rotate(-25deg) scaleY(.38); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text b { font-size: 13.5px; font-weight: 800; white-space: nowrap; }
/* 英文字标：SatNet 粗、News 细并用强调色；字距收一点，像个刊名而不是一行正文 */
.wordmark { font-family: "SF Pro Display", "Helvetica Neue", "Segoe UI", Inter, Arial, sans-serif; font-size: 17px !important; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--text); }
.wordmark i { font-style: normal; font-weight: 500; color: var(--accent); margin-left: 3px; letter-spacing: -.01em; }
.brand-text small { color: var(--muted); font-size: 10.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: flex; flex-direction: column; gap: 1px; }
.nav-group { color: var(--muted); font-size: 11px; margin: 14px 10px 5px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 13.5px; font-weight: 500; transition: background .12s, color .12s; }
.nav a .ico { opacity: .85; }
.nav a:hover { background: var(--accent-weak); color: var(--text); }
.nav a.active { background: var(--accent-weak); color: var(--accent); font-weight: 700; }
.nav a.active .ico { opacity: 1; }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.side-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.side-stats div { text-align: center; padding: 6px 2px; }
.side-stats b { display: block; font-family: var(--mono); font-size: 15px; color: var(--text); }
.side-stats span { font-size: 10px; color: var(--muted); white-space: nowrap; }
.side-foot { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; padding: 0 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.on { background: var(--hi); } .dot.off { background: var(--mid); }
.theme-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-2); }
.theme-seg button { background: none; border: none; color: var(--muted); border-radius: 999px; padding: 5px 0; cursor: pointer; display: grid; place-items: center; }
.theme-seg button:hover { color: var(--text); }
.theme-seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
:root[data-theme="dark"] .theme-seg button.on { background: var(--line-3); }
.theme-seg .ico { width: 15px; height: 15px; }

/* ---------------- 页头 / 标签 / 搜索 ---------------- */
.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: 20px; font-weight: 800; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.page-head h1 small { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.page-sub { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.crumb { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.crumb a:hover { color: var(--accent); }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }

/* 下划线式标签（分类、日报/周报/月报、时间范围） */
.tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line-2); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; padding: 9px 1px 10px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--accent); font-weight: 700; }
.tabs a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.tabs a.plain { margin-left: auto; font-size: 12.5px; }
.tabs-row { display: flex; align-items: flex-end; gap: 16px; margin-top: 10px; }
.tabs-row .tabs { flex: 1; min-width: 0; }
.tabs-row .quick-search { margin-bottom: 8px; }
.topic-chips { display: flex; align-items: center; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; white-space: nowrap; }
.topic-chips::-webkit-scrollbar { display: none; }
.topic-chips-label { flex: none; font-size: 12px; color: var(--muted); margin-right: 2px; }
.topic-chips a { flex: none; font-size: 12.5px; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); background: var(--panel); transition: border-color .12s, color .12s; }
.topic-chips a:hover { border-color: var(--accent); color: var(--accent); }
.topic-chips a.more { border-color: transparent; background: transparent; color: var(--muted); }
.tab-search { display: none; }
.m-section { display: none; }

/* 胶囊式按钮组（筛选、工具） */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.chips a { padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line-3); color: var(--text-2); font-size: 13px; background: var(--panel); }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.chips a.active { background: var(--text); border-color: var(--text); color: var(--panel); }
.chips a.plain { border-style: dashed; color: var(--muted); background: none; }
.chip-run { color: var(--hi); font-size: 13px; }
.msg { color: var(--accent); font-size: 13px; }

.quick-search { display: flex; align-items: center; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 4px 0 12px; width: 280px; max-width: 100%; }
.quick-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.quick-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-size: 13.5px; padding: 8px 0; }
.quick-search button { background: none; border: none; color: var(--muted); cursor: pointer; padding: 6px 8px; display: grid; place-items: center; }
.search { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.search input, .search select, .search button { background: var(--panel); border: 1px solid var(--line-3); color: var(--text); border-radius: var(--radius-sm); padding: 7px 10px; font-size: 13.5px; }
.search input { flex: 1 1 240px; min-width: 0; }
.search input:focus, .search select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.search button { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); cursor: pointer; font-weight: 600; }

/* ---------------- 首页热点卡 ---------------- */
.hot-box { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 12px 18px 4px; margin: 0 0 26px; }
.hot-box-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.hot-box-head b { font-size: 14px; font-weight: 800; }
.hot-box-head a { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.hot5 { list-style: none; margin: 0; padding: 0; }
.hot5 li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.hot5 li:first-child { border-top: none; }
.hot5-rank { font-family: var(--mono); font-weight: 800; font-size: 14px; color: var(--rank-rest-ink); text-align: center; }
.hot5-rank.r1 { color: var(--rank-1); } .hot5-rank.r2 { color: var(--rank-2); } .hot5-rank.r3 { color: var(--rank-3); }
.hot5-title { font-size: 14px; font-weight: 700; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot5-heat { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hot-status { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; margin-right: 7px; vertical-align: 1px; }
.hot-status.s-boom { background: color-mix(in srgb, var(--heat) 12%, transparent); color: var(--heat); }
.hot-status.s-new { background: color-mix(in srgb, var(--hi) 12%, transparent); color: var(--hi); }
.tr { font-style: normal; margin-left: 4px; font-size: 13px; }
.tr.up { color: var(--heat); } .tr.down { color: var(--hi); } .tr.flat { color: var(--muted); }

/* ---------------- 时间线 ---------------- */
.day { margin-bottom: 30px; }
.day-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; padding: 6px 0; cursor: pointer; user-select: none; position: sticky; top: 0; z-index: 2; background: var(--bg); }
.day-head span { font-size: 17px; font-weight: 800; }
.day-head small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.day-head .fold { font-style: normal; color: var(--muted); font-size: 12px; transition: transform .15s; }
.day.collapsed .fold { transform: rotate(-90deg); }
.day.collapsed .day-body { display: none; }
.day-head.static { cursor: default; position: static; }

.item { display: grid; grid-template-columns: var(--time-w) var(--rail-w) minmax(0, 1fr); padding-bottom: 12px; position: relative; }
.item-time { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--text-2); text-align: right; padding-top: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-rail { position: relative; }
.item-rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: -12px; width: 1px; background: var(--line-2); transform: translateX(-.5px); }
.item:last-child .item-rail::before { bottom: 0; }
.item-rail i { position: absolute; left: 50%; top: 22px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--line-3); box-shadow: 0 0 0 3px var(--bg); }
.item.featured .item-rail i { background: var(--accent); }
.item-card { min-width: 0; padding: 14px 18px 13px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-card); transition: border-color .18s, box-shadow .18s; }
.item-card:hover { border-color: var(--line-3); box-shadow: var(--shadow-card-hover); }
.item-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; min-width: 0; }
.item-head .src { color: var(--text-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-head .cat { color: var(--muted); white-space: nowrap; }
.item-head .cat::before { content: "·"; margin-right: 8px; color: var(--line-3); }
.item-head .cat:hover { color: var(--accent); }
.tier { font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 5px; white-space: nowrap; line-height: 18px; }
.tier.tT1 { color: var(--hi); background: color-mix(in srgb, var(--hi) 10%, transparent); }
.tier.tT15 { color: var(--accent); background: var(--accent-weak); }
.tag-featured { font-size: 11px; font-weight: 700; color: var(--star-ink); background: color-mix(in srgb, var(--star) 12%, transparent); padding: 0 6px; border-radius: 5px; line-height: 18px; white-space: nowrap; }
.lang { font-family: var(--mono); font-size: 10.5px; color: var(--muted); border: 1px solid var(--line-2); padding: 0 5px; border-radius: 4px; }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.score { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.score::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lo); }
.score.hi::before { background: var(--hi); } .score.mid::before { background: var(--mid); }
.score.hi { color: var(--hi); }
.score small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.star { background: none; border: none; color: var(--line-3); cursor: pointer; font-size: 15px; line-height: 1; padding: 2px; transition: color .15s, transform .15s; }
.star:hover { color: var(--star); transform: scale(1.12); }
.star.on { color: var(--star); }
.title { font-size: 16px; line-height: 1.45; font-weight: 700; }
.title a:hover { color: var(--accent); }
.summary { color: var(--text-2); margin: 6px 0 0; font-size: 14px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.summary.lead { font-size: 15.5px; color: var(--text); display: block; -webkit-line-clamp: unset; }
.reason { margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.6; }
.reason span::after { content: "："; }
.item-foot { display: flex; align-items: center; gap: 14px; margin-top: 9px; font-size: 12.5px; color: var(--muted); }
.item-foot a:hover { color: var(--accent); }
.item-foot .sib { color: var(--text-2); font-weight: 500; }
.item-foot .ext { margin-left: auto; }
.orig-title { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.item.read .title a, .item.read .summary { opacity: .5; }
.item.read .item-rail i { background: var(--line-2); }
.fb { margin-top: 8px; }
.fb-btn { background: none; border: 1px solid var(--line-3); color: var(--muted); font-size: 11.5px; padding: 1px 9px; border-radius: 999px; cursor: pointer; }
.fb-btn:hover { color: var(--accent); border-color: var(--accent); }
.fb-btn:disabled { opacity: .7; cursor: default; }
#favList .item-rail { visibility: hidden; }

.empty { padding: 48px 20px; text-align: center; border: 1px dashed var(--line-3); border-radius: var(--radius); color: var(--text-2); }
.empty p { margin: 6px 0; }
.pager { display: flex; justify-content: center; gap: 18px; align-items: center; margin: 24px 0; color: var(--muted); font-size: 13.5px; }
.pager a { color: var(--accent); font-weight: 600; }

/* ---------------- 热点榜 ---------------- */
.hot-meta-line { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin: 14px 0 10px; }
.hot-list { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.hot-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 132px; gap: 8px 14px; padding: 18px 22px; border-top: 1px solid var(--line); }
.hot-row:first-child { border-top: none; }
.rank { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--rank-rest-ink); padding-top: 3px; }
.hot-row:nth-child(1) .rank { color: var(--rank-1); } .hot-row:nth-child(2) .rank { color: var(--rank-2); } .hot-row:nth-child(3) .rank { color: var(--rank-3); }
.hot-main { min-width: 0; }
.hot-title { font-size: 16.5px; font-weight: 700; line-height: 1.45; }
.hot-sum { margin: 7px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-sum b { font-size: 11px; font-weight: 500; color: var(--muted); margin-right: 8px; }
.hot-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.hot-meta a { color: var(--text-2); font-weight: 500; }
.hot-meta .cat { color: var(--muted); }
.hot-side { text-align: right; }
.hot-side .heat-n { font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hot-side .heat-n small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 5px; }
.spark { display: block; width: 110px; height: 30px; margin: 6px 0 0 auto; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--panel); stroke: var(--accent); stroke-width: 1.6; }
.heat { color: var(--heat); font-variant-numeric: tabular-nums; }
.srcs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.srcs span, .srcs a { font-size: 11.5px; padding: 1px 8px; border-radius: 5px; background: var(--panel-2); color: var(--text-2); }
.srcs a:hover { color: var(--accent); }
.story-h1 { font-size: 24px; line-height: 1.4; margin-top: 4px; font-weight: 800; }

/* 事件页：报道时间线 */
.tline-box { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px 18px 8px; margin-bottom: 24px; }
.rail-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.rail-head a, .rail-head small { font-weight: 400; font-size: 12px; color: var(--muted); }
.tline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--line-3); }
.tline li { position: relative; padding: 0 0 12px 12px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 13.5px; }
.tline li::before { content: ""; position: absolute; left: -18px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--panel); }
.tline time { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tline a { font-weight: 600; }
.tline span { font-size: 12px; }

/* ---------------- 详情页 / 文章版式 ---------------- */
.detail { max-width: 780px; }
.detail h1 { font-size: 26px; line-height: 1.38; margin: 10px 0 8px; font-weight: 800; }
.detail .item-head { font-size: 13px; flex-wrap: wrap; }
.lead { font-size: 15px; color: var(--text-2); }
.entities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.entities a { font-size: 12.5px; padding: 2px 11px; border-radius: 999px; border: 1px solid var(--line-3); color: var(--text-2); background: var(--panel); }
.entities a:hover { border-color: var(--accent); color: var(--accent); }
.detail .reason { border-top: none; padding: 11px 14px; background: var(--panel-2); border-radius: var(--radius-sm); color: var(--text-2); margin-top: 14px; font-size: 13.5px; }
.actions { margin: 20px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 8px 16px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-contrast) !important; font-weight: 600; font-size: 13.5px; border: 1px solid var(--accent); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--panel); border: 1px solid var(--line-3); color: var(--text-2) !important; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent) !important; filter: none; }
.btn.small { padding: 4px 12px; font-size: 12.5px; }
button.btn { cursor: pointer; font-family: inherit; }
.dims { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); }
.dim { display: grid; grid-template-columns: 56px 1fr 30px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); margin: 5px 0; }
.dim i { display: block; height: 6px; border-radius: 3px; background: var(--accent); opacity: .8; max-width: 100%; }
.dim b { font-family: var(--mono); font-weight: 600; text-align: right; }
.dims-foot { margin-top: 8px; }
.content { margin-top: 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); }
.content summary { cursor: pointer; padding: 11px 16px; color: var(--muted); font-size: 13px; }
.content-body { padding: 4px 18px 18px; white-space: pre-wrap; color: var(--text-2); font-size: 14.5px; line-height: 1.85; max-height: 60vh; overflow: auto; }
.detail-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line-2); line-height: 1.9; }
.about h2 { font-size: 17px; margin: 30px 0 8px; font-weight: 800; }
.about p, .about li { color: var(--text-2); font-size: 14.5px; line-height: 1.85; }
.about a { color: var(--accent); }
.how { padding-left: 20px; } .how li { margin-bottom: 6px; }

/* ---------------- 日报 / 周报 / 月报 ---------------- */
.issue-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 0 36px; align-items: start; }
.issue-nav { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; border-right: 1px solid var(--line-2); padding-right: 14px; margin-top: 4px; }
.issue-nav .mon { font-size: 12.5px; font-weight: 700; color: var(--text-2); display: flex; justify-content: space-between; padding: 12px 8px 6px; }
.issue-nav .mon small { font-weight: 400; color: var(--muted); }
.issue-nav a { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; padding: 9px 8px; border-radius: var(--radius-sm); border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.issue-nav a:hover { background: var(--accent-weak); color: var(--text); }
.issue-nav a.active { background: var(--accent-weak); color: var(--accent); font-weight: 600; }
.issue-nav a b { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--muted); }
.issue-nav a.active b { color: var(--accent); }
.issue-nav a span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.issue-pills { display: none; }
.issue { max-width: 760px; }
.issue-kicker { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; align-items: baseline; }
.issue-kicker b { color: var(--accent); font-weight: 800; }
.issue h1 { font-size: 28px; font-weight: 800; line-height: 1.3; margin: 8px 0 8px; }
.issue-meta { font-size: 12.5px; color: var(--muted); padding-bottom: 16px; border-bottom: 2px solid var(--text); }
.issue-intro { margin: 18px 0 4px; font-size: 15px; line-height: 1.9; color: var(--text-2); }
.issue-intro p { margin: 0 0 10px; }
.issue-list { list-style: none; margin: 0; padding: 0; }
.issue-list > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 0; padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.issue-no { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--accent); padding-top: 2px; }
.issue-cat { font-size: 12px; color: var(--muted); }
.issue-list h2 { grid-column: 2; font-size: 20px; line-height: 1.45; font-weight: 800; margin: 4px 0 8px; }
.issue-list p { grid-column: 2; margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.85; }
.issue-src { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.issue-src a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.daily header h2 { font-size: 22px; font-weight: 800; }
.md { margin-top: 16px; font-size: 14.5px; line-height: 1.85; color: var(--text-2); }
.md h2 { font-size: 17px; color: var(--text); margin: 28px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); font-weight: 800; }
.md h3 { font-size: 15px; margin: 18px 0 6px; color: var(--text); }
.md p { margin: 8px 0; }
.md strong { color: var(--text); }
.md a { color: var(--accent); }
.md ul, .md ol { padding-left: 22px; }
.md li { margin: 4px 0; }

/* ---------------- 主题 ---------------- */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.topic-card { display: block; min-width: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 16px 18px 10px; transition: border-color .18s, box-shadow .18s; }
.topic-card:hover { border-color: var(--line-3); box-shadow: var(--shadow-card-hover); color: inherit; }
.topic-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.topic-top b { font-size: 15.5px; font-weight: 800; }
.topic-top span { color: var(--accent); font-size: 16px; font-weight: 700; white-space: nowrap; }
.topic-top small { font-size: 11px; color: var(--muted); font-family: var(--font); font-weight: 400; }
.topic-card p { margin: 6px 0 8px; }
.topic-card ul { list-style: none; margin: 0; padding: 0; }
.topic-card li { font-size: 13px; color: var(--text-2); padding: 7px 0; border-top: 1px solid var(--line); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-card li time { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-right: 8px; }
.kw { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.kw span { padding: 0 7px; border-radius: 4px; background: var(--panel-2); }

/* ---------------- "更多"页：分组列表 ---------------- */
.more-page { max-width: 560px; }
.more-card { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-card); margin-bottom: 16px; overflow: hidden; }
.more-card-head { font-size: 11.5px; color: var(--muted); padding: 11px 16px 3px; }
.more-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; min-height: 48px; }
.more-card-head + .more-row { border-top: none; }
.more-row .ico { width: 20px; height: 20px; color: var(--text-2); }
.more-row .chev { margin-left: auto; color: var(--muted); font-weight: 400; }
.more-row .theme-seg { margin-left: auto; width: 150px; }
a.more-row:hover { background: var(--accent-weak); color: inherit; }

/* ---------------- 更新日志 ---------------- */
.clog { max-width: 820px; }
.clog-day { margin-top: 34px; }
.clog-day > h2 { font-size: 20px; font-weight: 800; display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.clog-day > h2 small { font-size: 12px; font-weight: 400; color: var(--muted); }
.clog-entry { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.clog-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent); padding-top: 3px; }
.clog-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.clog-tag.t-new { color: var(--hi); } .clog-tag.t-fix { color: var(--mid); } .clog-tag.t-src { color: var(--note-fg); }
.clog-entry h3 { font-size: 15.5px; font-weight: 800; line-height: 1.5; }
.clog-body { color: var(--text-2); font-size: 14px; line-height: 1.8; margin-top: 5px; }
.clog-body p { margin: 0 0 6px; } .clog-body ul { margin: 4px 0; padding-left: 20px; } .clog-body a { color: var(--accent); }

/* ---------------- 信源名录（访客版） ---------------- */
.src-group { margin-top: 26px; }
.src-group > h2 { font-size: 15px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.src-group > h2 small { font-size: 12px; font-weight: 400; color: var(--muted); }
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.src-cell { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; min-width: 0; }
.src-cell span.n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-cell small { margin-left: auto; color: var(--muted); font-weight: 400; font-size: 12px; white-space: nowrap; }
.src-cell:hover { border-color: var(--line-3); color: inherit; }

/* ---------------- 表格 / 状态 ---------------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 8px; border-bottom: 1px solid var(--line-3); white-space: nowrap; }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl .st, .tbl td.mono { white-space: nowrap; }
.tbl tr.off td { opacity: .5; }
.tbl-name { font-weight: 600; }
.tbl.compact td, .tbl.compact th { padding: 6px 8px; }
.tbl.compact td:first-child { white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }
.st { font-size: 12px; padding: 1px 8px; border-radius: 999px; }
.st.ok { background: color-mix(in srgb, var(--hi) 12%, transparent); color: var(--hi); }
.st.err { background: color-mix(in srgb, var(--heat) 12%, transparent); color: var(--heat); }
.st.wait, .st.off { background: var(--panel-2); color: var(--muted); }
.err-text { color: var(--heat); opacity: .85; margin-top: 4px; max-width: 320px; }

/* ---------------- Agent 接入 / 反馈 / 收件箱 ---------------- */
.codebox { position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); margin: 10px 0 14px; }
.codebox pre { margin: 0; padding: 14px 70px 14px 16px; font-family: var(--mono); font-size: 13px; line-height: 1.7; white-space: pre-wrap; word-break: break-all; color: var(--text); }
.copy { position: absolute; right: 8px; top: 8px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text-2); border-radius: 6px; font-size: 12px; padding: 3px 10px; cursor: pointer; }
.copy:hover { border-color: var(--accent); color: var(--accent); }
.agent .tbl td:first-child { white-space: nowrap; color: var(--text-2); width: 150px; }
.agent .tbl td, .agent .tbl td.mono { word-break: break-all; white-space: normal; }
.fb-form { display: flex; flex-direction: column; gap: 8px; max-width: 640px; margin-top: 16px; }
.fb-form label { font-size: 13px; color: var(--text-2); margin-top: 6px; font-weight: 600; }
.fb-form textarea, .fb-form input[type=text] { background: var(--panel); border: 1px solid var(--line-3); color: var(--text); border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; font-size: 14.5px; }
.fb-form textarea:focus, .fb-form input[type=text]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.fb-form .btn { align-self: flex-start; margin-top: 8px; }
.fb-form .btn:disabled { opacity: .6; }
.fb-row { display: flex; justify-content: flex-end; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.small.ok { color: var(--hi); } .small.err { color: var(--heat); }
.inbox-row { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.inbox-row p { margin: 6px 0; white-space: pre-wrap; word-break: break-word; }
.inbox-row.done { opacity: .55; }

/* ---------------- 页脚 / 回到顶部 ---------------- */
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 56px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.foot a { color: var(--text-2); } .foot a:hover { color: var(--accent); }
.to-top { position: fixed; right: 22px; bottom: 26px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); cursor: pointer; font-size: 16px; z-index: 9; box-shadow: var(--shadow-card-hover); }
.to-top:hover { border-color: var(--accent); color: var(--accent); }
.bottombar { display: none; }
.top-ico { background: none; border: none; color: var(--text-2); padding: 6px; cursor: pointer; display: grid; place-items: center; }
.top-ico .ico { width: 20px; height: 20px; }
.topbar-date { display: none; }

/* ===================== 发射记录页 + 管理后台（沿用原有类名） ===================== */
.c0 { background: #3f7fd6; stroke: #3f7fd6; } .c1 { background: #8a6fd6; stroke: #8a6fd6; } .c2 { background: #7f8fa6; stroke: #7f8fa6; } .c3 { background: #3a9d78; stroke: #3a9d78; }
.c4 { background: #c9973a; stroke: #c9973a; } .c5 { background: #d0694f; stroke: #d0694f; } .c6 { background: #2aa79b; stroke: #2aa79b; } .c7 { background: #c9669f; stroke: #c9669f; }
.c8 { background: #86b03a; stroke: #86b03a; } .c9 { background: #64748b; stroke: #64748b; } .cmuted { background: var(--line-3); }
.dotc { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpis > div { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 14px 16px; }
.kpis b { display: block; font-family: var(--mono); font-size: 26px; color: var(--text); line-height: 1.2; font-weight: 800; }
.kpis b.sm { font-size: 20px; padding-top: 5px; }
.kpis span { font-size: 12px; color: var(--muted); }
.lgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.lbox { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 14px 18px; min-width: 0; overflow-x: auto; }
.lbox.wide { grid-column: 1 / -1; }
.lbox .rail-head small { margin-left: 8px; }
.ltable tr.fail td { opacity: .75; }
.ybars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 8px; overflow-x: auto; }
.ybar { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1 0 34px; }
.ybar .stack { width: 100%; max-width: 46px; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 2px; }
.ybar .stack i { display: block; min-height: 2px; }
.ybar .n { font-size: 12px; color: var(--text-2); } .ybar .y { font-size: 11px; color: var(--muted); }
.ybars.thin { gap: 3px; height: 130px; } .ybars.thin .ybar { flex: 1 0 12px; } .ybars.thin .y { font-size: 9px; }
.cumsvg { width: 100%; height: auto; display: block; }
.cumsvg .grid { stroke: var(--line-2); stroke-width: 1; } .cumsvg .ax { fill: var(--muted); font-size: 10px; font-family: var(--mono); }
.cumsvg .ln { fill: none !important; stroke-width: 2.2; stroke-linejoin: round; background: none; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.hbar { display: grid; grid-template-columns: minmax(0, 46%) 1fr 34px; align-items: center; gap: 8px; font-size: 13px; margin: 6px 0; }
.hbar > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar i { display: block; height: 7px; border-radius: 4px; background: var(--accent); opacity: .8; min-width: 2px; }
.hbar b { text-align: right; font-weight: 600; }
.lfilter select { flex: 0 1 auto; }

.adm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.adm-top h1 { font-size: 20px; font-weight: 800; }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; border-bottom: 1px solid var(--line-2); margin-bottom: 18px; }
.adm-tabs a { padding: 8px 1px 10px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.adm-tabs a.active { color: var(--accent); border-color: var(--accent); font-weight: 700; }
.adm-msg { padding: 9px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14px; }
.adm-msg.ok { background: color-mix(in srgb, var(--hi) 12%, transparent); color: var(--hi); } .adm-msg.err { background: color-mix(in srgb, var(--heat) 12%, transparent); color: var(--heat); }
.adm-alerts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.adm-alerts a { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--mid) 14%, transparent); color: var(--mid); }
.adm-form { display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
.adm-form label { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.adm-form input[type=text], .adm-form input[type=password], .adm-form input:not([type]), .adm-form select, .adm-form textarea, .adm select, .adm-login input {
  background: var(--panel); border: 1px solid var(--line-3); color: var(--text); border-radius: var(--radius-sm); padding: 8px 10px; font: inherit; font-size: 14px; }
.adm-form .chk { display: flex; align-items: center; gap: 8px; }
.adm-form.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; max-width: none; margin-top: 12px; }
.adm-form.grid2 > div { display: flex; flex-direction: column; } .adm-form.grid2 .full { grid-column: 1 / -1; }
.row { display: flex; gap: 10px; margin-top: 10px; } .row.wrap { flex-wrap: wrap; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 4px 16px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.set-row label { margin: 0; display: flex; flex-direction: column; } .set-row .err { grid-column: 2; }
.acts { white-space: nowrap; } .acts .fb-btn { margin-right: 4px; }
.pending-row td { background: color-mix(in srgb, var(--mid) 8%, transparent); }
.logtail { margin: 0; max-height: 420px; overflow: auto; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--text-2); white-space: pre-wrap; word-break: break-all; }
.adm-login { max-width: 420px; margin: 8vh auto 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-card-hover); padding: 26px 28px; }
.adm-login.wide { max-width: 680px; }
.adm-login h1 { font-size: 20px; margin-bottom: 8px; }
.adm-login form { display: flex; gap: 8px; margin: 16px 0 12px; } .adm-login input { flex: 1; }
details.lbox summary { cursor: pointer; }
.adm-subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 6px; }
.adm-subtabs a { padding: 5px 12px; border: 1px solid var(--line-3); border-radius: 999px; font-size: 13px; color: var(--text-2); background: var(--panel); }
.adm-subtabs a.active { background: var(--text); border-color: var(--text); color: var(--panel); }
.relay-doc { overflow-x: auto; }
.relay-doc table { border-collapse: collapse; font-size: 13px; margin: 10px 0; }
.relay-doc th, .relay-doc td { border: 1px solid var(--line-2); padding: 5px 9px; text-align: left; vertical-align: top; }
.relay-doc th { white-space: nowrap; color: var(--text); }
.relay-doc td:first-child { white-space: nowrap; }
.relay-doc code { font-size: 12.5px; word-break: break-all; }
.relay-doc pre code { display: block; padding: 10px 12px; white-space: pre-wrap; }
.relay-doc blockquote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid var(--line-3); color: var(--text-2); }
.owner-note { margin-top: 28px; border: 1px dashed var(--line-3); border-radius: var(--radius); padding: 4px 16px 10px; background: var(--panel); }
.owner-note > summary { cursor: pointer; padding: 8px 0; color: var(--muted); font-size: 12.5px; }

/* ===================== 平板：无侧栏 ===================== */
@media (max-width: 960px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .topbar { display: flex; align-items: center; gap: 6px; padding: 0 18px; height: var(--topbar-h); position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); }
  .topbar .brand { flex: 1; min-width: 0; padding: 0; }
  .topbar .brand b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .brand .wordmark { font-size: 18px !important; }
  .topic-chips { margin: 8px 0 2px; }
  .topbar .brand-mark { width: 22px; height: 22px; }
  .topbar .brand-mark::after { inset: -4px -6px; }
  .topbar-date { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; margin-right: 4px; }
  .main { padding: 18px 18px calc(90px + env(safe-area-inset-bottom)); max-width: 760px; margin: 0 auto; }
  .day-head { top: var(--topbar-h); }
  .bottombar { display: grid; grid-template-columns: repeat(5, minmax(0, 120px)); justify-content: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line-2); }
  .bottombar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 44px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .bottombar a .ico { width: 22px; height: 22px; }
  .bottombar a.active { color: var(--accent); font-weight: 700; }
  .bottombar a.active .ico { stroke-width: 2.2; }
  .to-top { bottom: calc(74px + env(safe-area-inset-bottom)); right: 14px; }
  .lgrid { grid-template-columns: 1fr; } .set-row { grid-template-columns: 1fr; } .set-row .err { grid-column: 1; } .adm-form.grid2 { grid-template-columns: 1fr; }
  .issue-wrap { display: block; }
  .issue-nav { display: none; }
  .issue-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 12px 0 22px; }
  .issue-pills::-webkit-scrollbar { display: none; }
  .issue-pills a { flex: none; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-3); background: var(--panel); color: var(--text-2); font-size: 13px; font-weight: 600; }
  .issue-pills a.active { background: var(--text); border-color: var(--text); color: var(--panel); }
  .hot-row { grid-template-columns: 36px minmax(0, 1fr); }
  .hot-side { grid-column: 2; text-align: left; display: flex; align-items: flex-end; justify-content: space-between; margin-top: 4px; }
  .spark { margin: 0; }
}

/* ===================== 手机：单列、无卡片边框，版式对标 aihot 手机版 ===================== */
@media (max-width: 640px) {
  .only-m { display: revert !important; }
  .only-d { display: none !important; }
  body { font-size: 15px; }
  .main { padding: 12px 16px calc(90px + env(safe-area-inset-bottom)); }
  .page-head { margin-bottom: 14px; }
  .page-head h1 { font-size: 24px; }
  .page-head h1 small { flex-basis: 100%; font-size: 12px; }
  .head-row { display: block; }
  .hot-box { padding: 13px 16px 4px; margin-bottom: 0; }
  .hot-box-head b { font-size: 17px; font-weight: 900; }
  .hot5 li { grid-template-columns: 24px minmax(0, 1fr) auto; align-items: flex-start; padding: 11px 0; }
  .hot5-rank { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--rank-rest-bg); color: var(--rank-rest-ink); font-size: 14px; font-weight: 900; font-family: var(--font); }
  .hot5-rank.r1 { background: var(--rank-1); color: var(--rank-ink); } .hot5-rank.r2 { background: var(--rank-2); color: var(--rank-ink); } .hot5-rank.r3 { background: var(--rank-3); color: var(--rank-ink); }
  .hot5-title { font-size: 15.5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .hot5-heat { font-size: 11.5px; padding-top: 3px; }
  .m-section { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 6px; }
  .m-section h2 { font-size: 22px; font-weight: 700; }
  .tabs-row { margin-top: 0; }
  .tabs a { font-size: 15px; padding: 10px 1px 11px; }
  .tabs-row .quick-search { display: none; }
  .tab-search { display: grid; place-items: center; flex: none; width: 40px; height: 40px; color: var(--muted); margin-bottom: 2px; }
  .day { margin: 0 -16px 8px; }
  .day-head { margin: 0; padding: 7px 16px; background: var(--bg-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); top: var(--topbar-h); }
  .day-head span { font-size: 13.5px; font-weight: 900; }
  .day-head small { font-size: 11.5px; }
  .day-head .fold { margin-left: auto; }
  .day-body { padding: 0 16px; }
  .item { grid-template-columns: 44px minmax(0, 1fr); padding: 14px 0 15px; border-bottom: 1px solid var(--line-2); }
  .item:last-child { border-bottom: none; }
  .item-rail { display: none; }
  .item-time { text-align: left; padding-top: 1px; font-size: 12px; color: var(--muted); font-weight: 500; }
  .item-card { border: none; background: none; box-shadow: none; padding: 0; border-radius: 0; }
  .item-card:hover { box-shadow: none; }
  .item-head { margin-bottom: 5px; font-size: 13px; }
  .day-body:not(#favList) .item-head .star { display: none; }
  #favList .item-head .star, .detail .item-head .star { display: inline-block; font-size: 18px; padding: 4px 6px; }
  .score small { display: none; }
  .title { font-size: 17px; line-height: 1.42; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .summary { font-size: 15px; -webkit-line-clamp: 2; margin-top: 7px; }
  .reason { border-top: none; background: var(--panel-2); color: var(--text-2); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .detail h1 { font-size: 22px; }
  .detail .summary { -webkit-line-clamp: unset; display: block; }
  .detail .reason { display: block; -webkit-line-clamp: unset; }
  .hot-list { border: none; background: none; box-shadow: none; border-radius: 0; margin: 0 -16px; }
  .hot-row { padding: 16px; background: var(--panel); border-top: 1px solid var(--line-2); }
  .hot-title { font-size: 16.5px; font-weight: 800; }
  .issue h1 { font-size: 25px; }
  .issue-list h2 { font-size: 19px; }
  .issue-list > li { grid-template-columns: 34px minmax(0, 1fr); padding: 20px 0; }
  .clog-day > h2 { font-size: 19px; }
  .clog-entry { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .more-page { max-width: none; }
  .topic-grid, .src-grid { grid-template-columns: minmax(0, 1fr); }
  .foot { margin-top: 36px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 星座在轨看板：每个星座一条"状态构成"横条（工作中 / 部分工作 / 不工作或不明 / 已离轨） */
.obar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line-2); min-width: 120px; }
.obar i { display: block; height: 100%; }
.obar i + i { box-shadow: -1px 0 0 var(--panel); }
.obar .ok, .obar-legend .ok { background: #2f9e6e; }
.obar .part, .obar-legend .part { background: #d9a441; }
.obar .off, .obar-legend .off { background: #9aa5ab; }
.obar .gone, .obar-legend .gone { background: #c8553d; }
.obar-legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 0; font-size: 11.5px; color: var(--muted); }
.obar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.obar-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
