/* =====================================================
   FUTTNAV 福天天导航 - 全局样式（零框架，CSS 变量主题）
   设计原则：
   1. 语义化 CSS 变量，主题切换零 JS
   2. 原子类（.btn-primary / .c-primary / .sz-20 等）+ 组件类
   3. 响应式：桌面(≥1280) 三栏 / 平板(768-1279) 隐藏右侧挂件 / 手机(<768) 折叠左分类
   ===================================================== */

/* ---------- 1. 主题变量（浅/深） ---------- */
:root {
  /* 品牌色（可由 appr.brand / appr.darkBrand 动态覆盖） */
  --brand: #2563eb;
  --brand-dark: #60a5fa;
  --brand-hi: color-mix(in srgb, var(--brand) 12%, transparent);

  /* 浅色主题 */
  --bg: #f8fafc;
  --bg-2: #ffffff;
  --bg-3: #f1f5f9;
  --line: #e2e8f0;
  --text: #0f172a;
  --text-2: #334155;
  --text-muted: #64748b;
  --text-brand: var(--brand);
  --brand-on: #fff;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px -1px rgba(15,23,42,.04);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,.08), 0 2px 4px -2px rgba(15,23,42,.04);
  --trans: .2s ease;
  --hd-h: 64px;
}
:root[data-theme="dark"] {
  --bg: #0b1120;
  --bg-2: #111827;
  --bg-3: #1e293b;
  --line: #1f2937;
  --text: #f3f4f6;
  --text-2: #cbd5e1;
  --text-muted: #94a3b8;
  --text-brand: var(--brand-dark);
  --brand-on: #0b1120;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 1px 3px rgba(0,0,0,.35);
  --shadow-md: 0 4px 10px rgba(0,0,0,.5);
  /* 暗色模式下彩色分类图标降低饱和度，防止刺眼 */
  --cat-ic-filter: saturate(.85) brightness(.92);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text-brand); }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

/* ---------- 2. 通用原子类 ---------- */
.inner { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 18px; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* 大小（文字+图标） */
.sz-14 { font-size: 14px; } .sz-14 svg { width: 14px; height: 14px; }
.sz-16 { font-size: 16px; } .sz-16 svg { width: 16px; height: 16px; }
.sz-20 { font-size: 20px; } .sz-20 svg { width: 20px; height: 20px; }
.sz-24 { font-size: 24px; } .sz-24 svg { width: 24px; height: 24px; }

/* 颜色 */
.c-muted { color: var(--text-muted); }
.c-primary { color: var(--text-brand); }
.c-on { color: var(--brand-on); }

/* 间距 */
.mt-8 { margin-top: 8px; } .mb-8 { margin-bottom: 8px; }
.mt-16 { margin-top: 16px; } .mb-16 { margin-bottom: 16px; }

/* 按钮 */
.btn-primary {
  background: var(--brand); color: var(--brand-on);
  padding: 9px 18px; border-radius: var(--radius-sm); border: 0;
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
  transition: transform var(--trans), box-shadow var(--trans), opacity var(--trans);
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent; color: var(--text-2); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--trans);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--text-brand); }

.hbtn {
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: all var(--trans);
}
.hbtn:hover { background: var(--bg-3); color: var(--text-brand); border-color: var(--line); }

/* ---------- 3. 顶部 Header ---------- */
.st-hd {
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  z-index: 50;
}
.st-hd.sticky { position: sticky; top: 0; backdrop-filter: saturate(1.5) blur(8px); background: color-mix(in srgb, var(--bg-2) 88%, transparent); }
.st-hd .inner {
  height: var(--hd-h); display: flex; align-items: center; gap: 18px;
}
.lg { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.lg:hover { color: inherit; }
.lg.sm .lg-nm { font-size: 15px; }
.lg-ic {
  width: 40px; height: 40px; border-radius: 8px; display: inline-flex;
  align-items: center; justify-content: center; color: var(--brand);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, transparent), color-mix(in srgb, var(--brand) 3%, transparent));
}
.lg-tx { display: inline-flex; flex-direction: column; line-height: 1.15; }
.lg-nm { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.lg-en { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }

/* 搜索框 */
.sch {
  flex: 1; max-width: 620px; height: 44px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 6px 0 0;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 999px; transition: all var(--trans);
}
.sch:focus-within { border-color: var(--brand); background: var(--bg-2); box-shadow: 0 0 0 3px var(--brand-hi); }
.sch-eng {
  padding: 0 12px 0 14px; height: 32px; border-right: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2); cursor: pointer; user-select: none;
  white-space: nowrap;
}
.sch-eng:hover { color: var(--text-brand); }
.sch-dd { opacity: .6; margin-left: 2px; }
.sch input[type="search"] {
  flex: 1; background: transparent; border: 0; outline: 0;
  height: 100%; font-size: 14px; padding: 0 8px; color: var(--text);
}
.sch-btn {
  height: 34px; padding: 0 16px; border-radius: 999px;
  background: var(--brand); color: var(--brand-on); border: 0;
  display: inline-flex; align-items: center; gap: 5px; font-weight: 600;
  transition: all var(--trans);
}
.sch-btn:hover { filter: brightness(1.08); }

/* 天气挂件（头部） */
.hd-wt { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.hd-wt .hd-wt-cur { font-size: 18px; font-weight: 700; }
.hd-wt .hd-wt-ic svg { width: 24px; height: 24px; }

.hd-act { display: inline-flex; align-items: center; gap: 6px; }
#thBtn svg use { display: none; }
:root[data-theme="light"] #thBtn svg use:nth-child(1) { display: inline; } /* sun */
:root[data-theme="dark"] #thBtn svg use:nth-child(2) { display: inline; } /* moon */
#thBtn svg use:first-child { }
/* 正确的主题切换（sun 是 symbol 列表里的第一个，moon 是第二个，图标 sprite 里顺序是 icon-sun、icon-moon）*/
#thBtn svg use { pointer-events: none; }
/* 使用两个不同的引用方式：根据图标 id，我们用不同 class 控制 */
#thBtn { position: relative; }
:root[data-theme="light"] #thBtn::before { /* 月亮模式才显示月亮，太阳显示当前 */ }
/* 更简单：HTML 里写两个 use，各自带 icon-sun/icon-moon id */

/* ---------- 4. 公告条 / 置顶条 ---------- */
.ntc {
  background: color-mix(in srgb, var(--brand) 10%, var(--bg-2));
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 13px;
  display: flex; align-items: center; gap: 8px;
}
.ntc[data-level="warn"] { background: #fffbeb; color: #92400e; border-color: #fde68a; }
:root[data-theme="dark"] .ntc[data-level="warn"] { background: #422006; color: #fef3c7; border-color: #713f12; }
.ntc .inner { display: inline-flex; align-items: center; gap: 8px; }

.pin-bar {
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.pin-bar .inner { display: flex; align-items: center; gap: 12px; }
.pin-tg {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  padding: 3px 8px; background: var(--bg-3); border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
}
.pin-list { flex: 1; display: flex; gap: 8px; flex-wrap: wrap; }
.pin-it {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-3); transition: all var(--trans);
  font-size: 13px; color: var(--text-2);
}
.pin-it:hover { border-color: var(--brand); color: var(--text-brand); background: var(--bg-2); }
.pin-ic { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- 5. 三栏主布局 ---------- */
.st-mn {
  display: grid;
  grid-template-columns: 220px 1fr 300px;
  gap: 18px;
  align-items: start;
  padding-top: 20px;
  padding-bottom: 30px;
}

/* 左栏：分类导航 */
.cat-nav {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 8px; position: sticky; top: calc(var(--hd-h) + 14px);
  box-shadow: var(--shadow-sm);
}
.cat-nav-hd { display: none; }
.cat-nav-list { list-style: none; padding: 0; margin: 0; }
.cnl-it + .cnl-it { margin-top: 2px; }
.cnl-a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500;
  transition: background var(--trans), color var(--trans);
}
.cnl-a:hover { background: var(--bg-3); color: var(--text-brand); }
.cnl-it.on > .cnl-a {
  background: var(--brand-hi); color: var(--text-brand);
  font-weight: 600;
}
.cnl-ic {
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cnl-ic svg { width: 22px; height: 22px; }
.cnl-tx { flex: 1; font-size: 14px; }
.cnl-ar { display: none; }
.cnl-sub { display: none; }

/* 友情链接（侧栏旧样式已废弃，友链移至页脚） */
.flk-box { display: none; }

/* 中栏：分类区块 */
.ct { min-width: 0; }
.cat-sec + .cat-sec { margin-top: 22px; }
.cat-sec-hd {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.cat-sec-ti {
  margin: 0; font-size: 17px; font-weight: 700; color: var(--text);
  display: inline-flex; align-items: center; gap: 10px;
}
.cat-sec-ti .cic { filter: var(--cat-ic-filter, none); }
.cat-sec-ti .cem { font-size: 20px; }
.tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px;
}
.tab {
  background: transparent; border: 1px solid transparent;
  padding: 4px 12px; border-radius: 999px;
  font-size: 13px; color: var(--text-muted); transition: all var(--trans);
}
.tab:hover { background: var(--bg-3); color: var(--text-2); }
.tab.on { background: var(--brand); color: var(--brand-on); border-color: var(--brand); }

/* 链接卡片网格 */
.lnk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.lnk-cd {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; display: flex; align-items: center; gap: 12px;
  transition: all var(--trans);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.lnk-cd:hover {
  border-color: var(--brand); transform: translateY(-1px);
  box-shadow: var(--shadow-md); background: var(--bg-2);
}
.lnc-ic {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--bg-3); border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.lnc-ic svg { width: 26px; height: 26px; filter: var(--cat-ic-filter, none); }
.lnc-ic img { width: 26px; height: 26px; border-radius: 6px; }
.lnc-ic .eic { font-size: 22px; }
.lnc-mn { flex: 1; min-width: 0; }
.lnc-nm {
  font-size: 14px; font-weight: 600; color: var(--text);
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lnc-off {
  font-size: 10px; color: #fff; background: #ef4444; padding: 1px 5px;
  border-radius: 3px; margin-left: 4px; vertical-align: middle;
}
.lnc-dc {
  font-size: 12px; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-top: 2px;
}
.lnc-ex {
  opacity: 0; transform: translateX(6px); transition: all var(--trans);
  flex-shrink: 0; color: var(--text-muted);
}
.lnk-cd:hover .lnc-ex { opacity: 1; transform: translateX(0); }

.empty {
  padding: 30px; text-align: center; color: var(--text-muted);
  background: var(--bg-2); border: 1px dashed var(--line); border-radius: var(--radius);
}

/* 右栏：挂件 */
.wd-bar { position: sticky; top: calc(var(--hd-h) + 14px); }
.wd + .wd { margin-top: 14px; }
.wd {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.wd-hd {
  padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--text-2);
  border-bottom: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 6px; width: 100%;
}
.wd-bd { padding: 12px 14px; }
.wd-emp { padding: 16px; text-align: center; color: var(--text-muted); font-size: 12px; }
.ld { color: var(--text-muted); }

/* 挂件：日历 */
.wg-cl-da { display: flex; align-items: baseline; gap: 10px; }
.wg-cl-da b { font-size: 30px; font-weight: 800; color: var(--brand); line-height: 1; }
.wg-cl-da span { color: var(--text-muted); font-size: 12px; }
.wg-cl-xt {
  margin-top: 10px; padding: 8px 10px; background: var(--bg-3);
  border-radius: var(--radius-sm); font-size: 12px; color: var(--text-2);
}

/* 挂件：天气 */
.wg-wt-bd { display: flex; align-items: center; gap: 14px; }
.wg-wt-bd .cur { font-size: 32px; font-weight: 700; color: var(--text); line-height: 1; }
.wg-wt-bd .desc { font-size: 13px; color: var(--text-2); }
.wg-wt-bd .city { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.wg-wt-ic svg { width: 46px; height: 46px; color: #0ea5e9; }
.wg-wt-fore { margin-top: 12px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
.wg-wt-fore div { text-align: center; font-size: 11px; color: var(--text-muted); }
.wg-wt-fore b { display: block; color: var(--text-2); font-size: 12px; margin-top: 2px; }

/* 挂件：热榜 */
.wg-ht-bd { list-style: none; padding: 0; margin: 0; counter-reset: hot; }
.wg-ht-bd li {
  counter-increment: hot; padding: 7px 0; display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-2); border-bottom: 1px dashed var(--line);
}
.wg-ht-bd li:last-child { border-bottom: 0; }
.wg-ht-bd li::before {
  content: counter(hot); width: 18px; text-align: center;
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  background: var(--bg-3); border-radius: 4px; padding: 1px 0;
}
.wg-ht-bd li:nth-child(1)::before { background: #ef4444; color: #fff; }
.wg-ht-bd li:nth-child(2)::before { background: #f97316; color: #fff; }
.wg-ht-bd li:nth-child(3)::before { background: #eab308; color: #fff; }
.wg-ht-bd li a {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-2);
}
.wg-ht-bd li a:hover { color: var(--text-brand); }
.wg-ht-bd li .hot { color: #ef4444; font-size: 11px; opacity: .85; }

/* 挂件：一言 */
.wg-yk-bd { margin: 0; padding: 6px 10px; }
.wg-yk-bd p {
  font-size: 13px; color: var(--text-2); line-height: 1.8; margin: 0;
  font-style: italic; position: relative; padding: 0 4px;
}
.wg-yk-bd cite {
  display: block; margin-top: 10px; text-align: right;
  color: var(--text-muted); font-size: 11px; font-style: normal;
}

/* ---------- 6. 广告位 ---------- */
.ad-sl {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px;
  border-radius: var(--radius); margin: 14px 0; overflow: hidden;
  border: 1px solid var(--line);
}
.ad-sl img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.ad-sl b { font-size: 15px; color: var(--text); display: block; }
.ad-sl span { font-size: 12px; color: var(--text-muted); display: block; margin-top: 2px; }
.ad-tp { background: linear-gradient(90deg, #eef2ff, #fff7ed); border-color: #e0e7ff; }
.ad-ct { background: linear-gradient(90deg, #f0fdf4, #eff6ff); border-color: #bbf7d0; }
.ad-bt { background: linear-gradient(90deg, #fdf4ff, #fef2f2); border-color: #fce7f3; }
:root[data-theme="dark"] .ad-tp,
:root[data-theme="dark"] .ad-ct,
:root[data-theme="dark"] .ad-bt { background: var(--bg-2); border-color: var(--line); }

/* 友情链接（页脚） */
.flk-ft { padding: 14px 0; border-top: 1px solid var(--line); background: var(--bg-2); }
.flk-ft .inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.flk-ft .flk-hd { font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.flk-ft .flk-list { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.flk-ft .flk-list a { color: var(--text-2); font-size: 12px; padding: 2px 4px; border-radius: 3px; }
.flk-ft .flk-list a:hover { color: var(--text-brand); background: var(--bg-3); }

/* ---------- 7. 页脚 ---------- */
.st-ft {
  border-top: 1px solid var(--line); background: var(--bg-2);
  padding: 14px 0; color: var(--text-muted); font-size: 12px;
}
.ft-copy {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.ft-copy a { color: var(--text-muted); }
.ft-copy a:hover { color: var(--text-brand); }
.ft-copy .gba { color: var(--text-muted); }
.ft-copy .ft-ls { margin-left: auto; display: inline-flex; gap: 12px; }
.ft-copy .ft-ls a { color: var(--text-muted); }
.ft-copy .ft-ls a:hover { color: var(--text-brand); }

/* ---------- 8. 登录页 ---------- */
.lg-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(1000px 600px at 20% -10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent),
              radial-gradient(800px 500px at 90% 110%, color-mix(in srgb, #0891b2 14%, transparent), transparent),
              var(--bg);
}
.lg-box {
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 28px 32px 24px; border-radius: 18px; width: 100%; max-width: 380px;
  box-shadow: var(--shadow-md);
}
.lg-center { justify-content: center; margin-bottom: 18px; }
.lg-form { display: flex; flex-direction: column; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > span { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.fld input[type="password"], .fld input[type="text"], .fld textarea, .fld select {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 14px; outline: none; transition: all var(--trans);
}
.fld input:focus, .fld textarea:focus, .fld select:focus {
  border-color: var(--brand); background: var(--bg-2);
  box-shadow: 0 0 0 3px var(--brand-hi);
}
.lg-sub { width: 100%; justify-content: center; padding: 12px; font-size: 15px; }
.lg-tip {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--text-muted);
}
.err-msg {
  background: #fef2f2; color: #991b1b;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 13px; margin: 0; border: 1px solid #fecaca;
}
:root[data-theme="dark"] .err-msg { background: #450a0a; color: #fecaca; border-color: #7f1d1d; }

/* ---------- 9. 后台 SPA 样式 ---------- */
.ad-hd-row { gap: 20px; }
.ad-mn {
  flex: 1; display: flex; gap: 2px; overflow: auto;
  scrollbar-width: none;
}
.ad-mn::-webkit-scrollbar { display: none; }
.ad-mn a {
  padding: 7px 12px; border-radius: 7px; color: var(--text-muted);
  font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: all var(--trans);
}
.ad-mn a:hover { background: var(--bg-3); color: var(--text-2); }
.ad-mn a.on { background: var(--brand-hi); color: var(--text-brand); font-weight: 600; }

.ad-bd { padding-top: 22px; padding-bottom: 60px; }
.ad-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.ad-card + .ad-card { margin-top: 16px; }
.ad-card h3 {
  margin: 0 0 14px 0; font-size: 16px; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.ad-card h3 .ad-num {
  background: var(--brand); color: var(--brand-on); font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
}
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 12px; }
.ad-stat {
  padding: 14px; background: var(--bg-3); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 4px;
}
.ad-stat b { font-size: 22px; font-weight: 800; color: var(--text-brand); }
.ad-stat span { font-size: 12px; color: var(--text-muted); }

.pub {
  width: auto; padding: 0 14px; background: var(--brand);
  color: var(--brand-on); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--radius-sm);
}
.pub:hover { background: var(--brand); filter: brightness(1.1); }

/* 表单 */
.frm-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.frm-grid .fld-full { grid-column: 1 / -1; }
.btn-row {
  display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; align-items: center;
}
.btn-danger {
  background: #ef4444; color: #fff; padding: 8px 14px;
  border: 0; border-radius: var(--radius-sm); font-weight: 600;
}
.btn-danger:hover { background: #dc2626; }

/* 列表表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td {
  padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left;
  vertical-align: middle;
}
.tbl th { background: var(--bg-3); color: var(--text-muted); font-weight: 600; font-size: 12px; }
.tbl tr:hover td { background: color-mix(in srgb, var(--brand) 3%, transparent); }
.tbl .tbl-ic { width: 22px; height: 22px; vertical-align: middle; margin-right: 6px; }
.btn-icon {
  background: transparent; border: 1px solid var(--line); border-radius: 6px;
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  margin: 0 2px; transition: all var(--trans);
}
.btn-icon:hover { border-color: var(--brand); background: var(--brand-hi); }
.ic-edit svg { stroke: #2563eb !important; }
.ic-del svg { stroke: #dc2626 !important; }

/* 内容页 */
.pg-ct { padding: 40px 16px; max-width: 860px; margin: 0 auto; min-height: 60vh; }
.pg-ct article {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 40px; box-shadow: var(--shadow-sm);
}
.pg-ct h1 {
  margin: 0 0 20px 0; font-size: 22px; padding-bottom: 14px;
  border-bottom: 2px solid var(--brand-hi); color: var(--text-brand);
}
.pg-bd { font-size: 14px; line-height: 1.9; color: var(--text-2); }
.pg-bd h2 { margin: 24px 0 10px; font-size: 17px; color: var(--text); }
.pg-bd p { margin: 10px 0; }
.pg-bd code { background: var(--bg-3); padding: 2px 6px; border-radius: 4px; font-family: Consolas, monospace; }

/* ---------- 10. 响应式：平板（≤1279px） ---------- */
@media (max-width: 1279px) {
  .st-mn { grid-template-columns: 180px 1fr; }
  .wd-bar { display: none; }
}

/* ---------- 11. 响应式：手机（≤768px） ---------- */
@media (max-width: 768px) {
  :root { --hd-h: 112px; }
  .st-hd .inner {
    flex-wrap: wrap; gap: 8px; padding: 8px 14px; height: auto;
    align-content: space-around;
  }
  .lg { order: 1; }
  .hd-wt { order: 2; margin-left: auto; }
  .hd-act { order: 3; }
  .sch { order: 4; width: 100%; max-width: 100%; height: 42px; }

  .st-mn {
    grid-template-columns: 1fr; padding: 12px 10px 24px; gap: 14px;
  }
  .inner { padding: 0 14px; }
  .cat-nav {
    position: static; padding: 4px;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  }
  .cat-nav-list {
    display: flex; flex-wrap: wrap; gap: 4px;
  }
  .cnl-it + .cnl-it { margin-top: 0; }
  .cnl-a { padding: 6px 10px; }
  .cnl-tx { font-size: 13px; }
  .cnl-ic { display: none; }

  .cat-sec-hd { align-items: flex-start; flex-direction: column; }
  .tabs { gap: 3px; }
  .lnk-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
  .lnc-ic { width: 36px; height: 36px; }
  .lnc-ic svg { width: 22px; height: 22px; }
  .lnc-mn .lnc-dc { display: none; }

  .ft-copy .ft-ls { margin-left: 0; width: 100%; }

  .lg-wrap { padding: 14px; }
  .lg-box { padding: 22px 20px; }
  .pg-ct { padding: 20px 10px; }
  .pg-ct article { padding: 20px 18px; }

  /* 后台 */
  .ad-hd-row { flex-wrap: wrap; gap: 8px; height: auto !important; padding: 10px 12px !important; }
  .ad-mn { overflow-x: auto; width: 100%; order: 3; }
  .tbl { font-size: 12px; }
  .tbl th, .tbl td { padding: 7px 8px; }
  .tbl-hide-sm { display: none; }
}
