/* ============================================================
   教务资料频道 —— 独立样式（前缀 dk-）
   ★ 刻意不引 /web/style.css：那边是给课件卡片网格用的，
     两套布局互相污染的风险大于复用收益。设计令牌保持一致。
   ============================================================ */
:root{
  --accent:#2f7cf6; --accent-soft:rgba(47,124,246,.10); --accent-deep:#1d4ed8;
  --text:#111827; --text-2:#4b5563; --text-3:#98a1ae;
  --bg:#f5f7fb; --card:#fff; --line:#e8ecf3; --line-2:#dce3ee;
  --ok:#16a34a; --warn:#d97706;
  --radius-l:20px; --radius-m:14px; --radius-s:10px;
  --shadow-s:0 1px 2px rgba(16,24,40,.04),0 2px 8px rgba(16,24,40,.05);
  --font:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Segoe UI",Roboto,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg); color:var(--text); font-family:var(--font);
  font-size:14px; line-height:1.65; -webkit-font-smoothing:antialiased;
  /* 文档类内容不允许随手选中复制 */
  -webkit-user-select:none; user-select:none;
}
input,textarea{-webkit-user-select:text; user-select:text}
a{color:inherit;text-decoration:none}
svg{display:block}
.ic{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* ---------- 顶栏 ---------- */
.dk-top{background:#fff;border-bottom:1px solid var(--line);height:62px;padding:0 24px;
  display:flex;align-items:center;gap:20px;position:sticky;top:0;z-index:60}
.dk-brand{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.dk-logo{width:32px;height:32px;border-radius:9px;background:var(--accent-soft);color:var(--accent);
  display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.dk-logo svg{width:20px;height:20px}
/* ★ <use> 引用的 symbol 不会自带 fill:none，不补这条就会渲染成实心黑方块 */
.dk-logo svg,.dk-hico svg,.dk-empty .big svg,.dk-dlg .dico svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dk-bname{font-size:15px;font-weight:600;letter-spacing:-.2px;line-height:1.2}
.dk-bsub{font-size:11.5px;color:var(--text-3);line-height:1.2}
/* 频道切换 Tab：与课件站 .ch-tabs 完全同一套数值（父级 sticky → 一直置顶） */
.ch-tabs{flex:0 0 auto;display:flex;gap:2px;padding:3px;margin-left:4px;
  background:#f1f4f9;border:1px solid var(--line);border-radius:11px}
.ch-tab{display:inline-flex;align-items:center;justify-content:center;padding:6px 15px;
  border-radius:8px;font-size:13.5px;font-weight:600;color:var(--text-2);white-space:nowrap;
  transition:background .16s,color .16s,box-shadow .16s}
.ch-tab:hover{color:var(--accent);background:rgba(255,255,255,.75)}
.ch-tab.on,.ch-tab.on:hover{background:var(--accent);color:#fff;box-shadow:0 1px 3px rgba(47,124,246,.35)}
.dk-search{display:flex;align-items:center;gap:8px;background:#f5f7fb;border:1px solid var(--line);
  border-radius:var(--radius-s);padding:0 12px;height:36px;color:var(--text-3);
  flex:1 1 auto;min-width:140px;max-width:400px;margin-left:6px}
.dk-search input{border:none;background:transparent;outline:none;font-family:inherit;
  font-size:13.5px;flex:1;min-width:0;color:var(--text)}
.dk-search input::placeholder{color:var(--text-3)}

/* ---------- 页面容器 ---------- */
.dk-page{max-width:1560px;margin:0 auto;padding:22px 24px 70px}
.dk-crumb{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--text-3);margin-bottom:14px;flex-wrap:wrap}
.dk-crumb b{color:var(--text-2);font-weight:500}
.dk-crumb a:hover{color:var(--accent)}

/* ---------- 频道头 ---------- */
.dk-head{background:#fff;border:1px solid var(--line);border-radius:var(--radius-l);
  padding:22px 24px;box-shadow:var(--shadow-s);margin-bottom:14px}
.dk-head-row{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap}
.dk-hico{width:44px;height:44px;border-radius:13px;background:var(--accent-soft);color:var(--accent);
  display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.dk-hico svg{width:23px;height:23px}
.dk-ht{font-size:21px;font-weight:600;letter-spacing:-.4px;line-height:1.35}
.dk-hd{font-size:13px;color:var(--text-3);margin-top:3px}
.dk-hstat{margin-left:auto;display:flex;gap:26px;padding-top:4px}
.dk-hstat .n{font-size:19px;font-weight:600;letter-spacing:-.3px;font-variant-numeric:tabular-nums;text-align:right}
.dk-hstat .l{font-size:12px;color:var(--text-3);text-align:right}

/* ---------- 筛选 ---------- */
.dk-filters{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 2px}
.dk-chip{padding:6px 13px;border-radius:9px;border:1px solid var(--line-2);background:#fff;
  color:var(--text-2);font-size:13px;cursor:pointer;font-family:inherit}
.dk-chip:hover{border-color:#c9d6ea}
.dk-chip.on{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:500}

/* ---------- 两栏 ---------- */
.dk-layout{display:grid;grid-template-columns:1fr 340px;gap:16px;align-items:start}
.dk-listcard{background:#fff;border:1px solid var(--line);border-radius:var(--radius-m);
  box-shadow:var(--shadow-s);overflow:hidden}
.dk-listbar{display:flex;align-items:center;gap:14px;padding:12px 18px;
  border-bottom:1px solid var(--line);background:#fcfdff}
.dk-listbar .cnt{font-size:12.5px;color:var(--text-3);margin-left:auto}

/* 三列标题列表 */
.dk-rows{display:grid;grid-template-columns:1fr 1fr 1fr;min-height:220px;align-content:start}
@media (min-width:1280px){ .dk-rows{grid-template-columns:repeat(4,1fr)} }
@media (min-width:1560px){ .dk-rows{grid-template-columns:repeat(5,1fr)} }
@media (max-width:1279px) and (min-width:900px){ .dk-rows{grid-template-columns:repeat(3,1fr)} }
@media (max-width:899px) and (min-width:600px){ .dk-rows{grid-template-columns:repeat(2,1fr)} }
.dk-row{display:flex;align-items:flex-start;gap:9px;padding:11px 18px;
  border-bottom:1px solid #f1f4f9;border-right:1px solid #f6f8fc;cursor:pointer}
.dk-row{border-right:1px solid #f6f8fc}
.dk-row:hover{background:#fafcff}
.dk-row .mid{flex:1;min-width:0}
/* 标题占满剩余宽度，编号顶到行尾 —— 与课件卡片 .card .title 同一套 flex 契约 */
.dk-row .tt{display:flex;align-items:flex-start;gap:8px;font-size:13.5px;line-height:1.5}
.dk-row .tt .ttx{flex:1 1 auto;min-width:0}
.dk-row:hover .tt .ttx{color:var(--accent)}
/* ★ 编号：橙色打底（与课件 .card-idx 同规格 #f97316 / 白字 / 800 / 圆角 6px） */
.dk-kid{flex:0 0 auto;background:#f97316;color:#fff;font-weight:800;font-size:11px;
  padding:2px 7px;border-radius:6px;letter-spacing:.3px;margin-top:1px;
  font-family:ui-monospace,Consolas,monospace}
.dk-row .meta{font-size:11.5px;color:var(--text-3);margin-top:5px;display:flex;gap:8px}
.dk-row .dt{margin-left:auto;padding-left:6px}

/* 分页 */
.dk-pager{display:flex;align-items:center;justify-content:center;gap:6px;padding:16px;flex-wrap:wrap}
.dk-pager button{min-width:32px;height:32px;border-radius:8px;border:1px solid var(--line-2);
  background:#fff;color:var(--text-2);font-size:13px;cursor:pointer;font-family:inherit}
.dk-pager button.on{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}
.dk-pager button:disabled{opacity:.45;cursor:not-allowed}
.dk-pager .gap{color:var(--text-3);padding:0 2px}

/* ---------- 侧栏 ---------- */
.dk-side{display:flex;flex-direction:column;gap:14px;
  position:sticky;top:calc(var(--dk-top-h, 62px) + 16px)}
.dk-box{background:#fff;border:1px solid var(--line);border-radius:var(--radius-m);
  box-shadow:var(--shadow-s);padding:16px 18px}
.dk-box .hd{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;margin-bottom:10px}
.dk-box .hd svg{color:var(--accent);width:15px;height:15px}
.dk-rank{display:flex;gap:9px;padding:8px 0;border-bottom:1px dashed var(--line);cursor:pointer}
.dk-rank:last-child{border-bottom:none}
.dk-rank .no{flex:0 0 17px;height:17px;border-radius:5px;background:#f1f4f9;color:var(--text-3);
  font-size:11px;font-weight:600;display:flex;align-items:center;justify-content:center;margin-top:2px}
.dk-rank:nth-child(2) .no{background:var(--accent);color:#fff}
.dk-rank:nth-child(3) .no{background:rgba(47,124,246,.62);color:#fff}
.dk-rank:nth-child(4) .no{background:rgba(47,124,246,.14);color:var(--accent-deep)}
.dk-rank .rt{font-size:13px;line-height:1.5;color:var(--text-2);display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dk-rank:hover .rt{color:var(--accent)}

.dk-wx{background:linear-gradient(180deg,#f7faff,#fff);border:1px solid #dbe7fb}
.dk-wx .t{font-size:13.5px;font-weight:600}
.dk-wx .d{font-size:12.5px;color:var(--text-3);margin:4px 0 10px;line-height:1.62}
.dk-wxrow{display:flex;align-items:center;gap:10px}
.dk-wxid{font-family:ui-monospace,Consolas,monospace;font-size:14px;font-weight:600;color:var(--accent)}
.dk-wxcap{font-size:11.5px;color:var(--text-3)}
/* 复制按钮（侧栏卡片 / 详情提示条 / 页脚）：与公告条 .cp 同一规格，橙底白字 */
.dk-wxcp{margin-top:10px;width:100%;height:34px;border:0;border-radius:9px;
  background:var(--warn);color:#fff;font-size:13px;font-weight:700;cursor:pointer;
  font-family:inherit;display:flex;align-items:center;justify-content:center;gap:6px}
.dk-wxcp:hover{filter:brightness(.95)}
.dk-ncp{display:inline-flex;align-items:center;height:20px;padding:0 9px;margin-left:2px;
  border:0;border-radius:999px;background:var(--warn);color:#fff;font-size:11.5px;
  font-weight:700;cursor:pointer;font-family:inherit;vertical-align:baseline}
.dk-ncp:hover{filter:brightness(.95)}

/* ---------- 详情 ---------- */
.dk-detail{display:grid;grid-template-columns:1fr 340px;gap:16px;align-items:start}
.dk-dmain{background:#fff;border:1px solid var(--line);border-radius:var(--radius-m);
  box-shadow:var(--shadow-s);overflow:hidden}
.dk-dhead{padding:20px 24px 16px;border-bottom:1px solid var(--line)}
.dk-dtitle{font-size:20px;font-weight:600;letter-spacing:-.3px;line-height:1.5;margin:0 0 10px}
.dk-dmeta{display:flex;flex-wrap:wrap;align-items:center;gap:14px;font-size:12.5px;color:var(--text-3)}
.dk-dmeta i{display:inline-flex;align-items:center;gap:5px;font-style:normal}
/* 详情页编号：播放器那一档规格 3px 9px / 12.5px */
.dk-dmeta .dk-kid{font-size:12.5px;padding:3px 9px}
.dk-notice{margin-top:14px;background:#fffaf2;border:1px solid #f6e3c4;border-radius:var(--radius-s);
  padding:10px 14px;display:flex;gap:9px;align-items:flex-start}
.dk-notice svg{color:var(--warn);flex:0 0 auto;margin-top:2px}
.dk-notice .tx{font-size:12.5px;color:#8a5b00;line-height:1.62}


/* 正文纸张 */
.dk-body{padding:20px 24px 26px;background:#fbfcfe}
.dk-paper{position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--radius-s);
  padding:36px 46px 30px;box-shadow:var(--shadow-s);font-size:14px;line-height:2.05;
  color:#1f2937;overflow:hidden}
.dk-paper h2.dk-h1{font-size:19px;font-weight:700;text-align:center;line-height:1.65;
  letter-spacing:.5px;margin:0 0 26px}
.dk-paper .dk-h2{font-weight:600;margin:20px 0 4px;font-size:15px}
.dk-paper .dk-h3{font-weight:600;margin:14px 0 3px;font-size:14px;color:#374151}
.dk-paper p{margin:0 0 2px;text-indent:2em}
.dk-paper .dk-li{margin:0 0 2px;padding-left:1.2em;text-indent:0}
.dk-paper table{border-collapse:collapse;width:100%;margin:14px 0;font-size:13px}
.dk-paper th,.dk-paper td{border:1px solid #dbe3ee;padding:7px 10px;text-align:left;line-height:1.6}
.dk-paper th{background:#f6f9fd;font-weight:600}
.dk-paper .dk-end{text-align:center;color:var(--text-3);font-size:12.5px;letter-spacing:3px;margin-top:26px}
/* 水印：平铺 K 编号，截图外传可溯源（低了看不见，高了碍读） */
.dk-wm{position:absolute;inset:0;pointer-events:none;display:grid;
  grid-template-columns:repeat(3,1fr);grid-auto-rows:78px;align-items:center;justify-items:center;
  transform:rotate(-22deg) scale(1.3);opacity:.06}
.dk-wm span{font-size:12px;color:#1e3a8a;font-weight:600;white-space:nowrap}
.dk-dfoot{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  margin-top:14px;padding:11px 16px;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius-s);font-size:12.5px;color:var(--text-2)}
.dk-dfoot b,.dk-notice b{font-family:ui-monospace,Consolas,monospace;
  background:#f97316;color:#fff;font-weight:800;font-size:11.5px;padding:1px 6px;
  border-radius:5px;letter-spacing:.3px;display:inline-block;line-height:1.6}
.dk-kid2{font-family:ui-monospace,Consolas,monospace;
  background:#f97316;color:#fff;font-weight:800;font-size:11.5px;padding:1px 6px;
  border-radius:5px;letter-spacing:.3px;display:inline-block;line-height:1.6}



/* ============================================================
   引流公告 —— 与课件频道共用后台「站点设置 → 引流获客」同一份配置
   样式照搬课件站的 .hm-ann / .hdr-ann，保证两个频道长得一样
   ============================================================ */
.hdr-ann{flex:0 0 auto;display:flex;align-items:center;margin-left:auto}
.hm-ann{display:flex;align-items:center;gap:9px;flex:1;
  background:linear-gradient(180deg,#fff7ed,#ffedd5);
  border:1px solid rgba(217,119,6,.22);border-left:4px solid var(--warn);
  border-radius:10px;padding:8px 12px;font-size:12.5px;color:#8a4b08;line-height:1.5}
.hm-ann .ic{width:18px;height:18px;flex:0 0 auto;color:var(--warn)}
.hm-ann span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-ann b{color:#b45309}
.hm-ann .cp{margin-left:auto;flex:0 0 auto;font-size:12.5px;font-weight:700;color:#fff;
  background:var(--warn);border:0;border-radius:8px;padding:6px 13px;cursor:pointer;font-family:inherit}
.hm-ann .cp:hover{filter:brightness(.95)}
/* 手机版公告：放内容区顶部（课件站手机主页也是这个位置），桌面不显示 */
.dk-mann{display:none;margin:0 0 14px}
.dk-mann .hm-ann{font-size:12.5px;padding:10px 12px;border-radius:10px}


/* ============================================================
   详情页置顶二级导航：返回上一级 / 换分类 / 上一篇下一篇
   （顶栏下面是这条，滚到哪里都在，不会"上不上下不下"）
   ============================================================ */
.dk-nav2{position:sticky;top:var(--dk-top-h, 62px);z-index:55;
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  background:rgba(255,255,255,.92);backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border:1px solid var(--line);border-radius:12px;padding:8px 10px;margin-bottom:14px;
  box-shadow:var(--shadow-s)}
.dk-n2-back{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;
  border-radius:9px;background:var(--accent-soft);color:var(--accent);
  font-size:13px;font-weight:600;text-decoration:none;flex:0 0 auto}
.dk-n2-back svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2}
.dk-n2-label{font-size:12px;color:var(--text-3);flex:0 0 auto}
.dk-n2-cats{display:flex;gap:6px;flex:1 1 auto;min-width:0;overflow-x:auto;
  scrollbar-width:none;padding:2px}
.dk-n2-cats::-webkit-scrollbar{display:none}
.dk-n2-cat{flex:0 0 auto;padding:5px 11px;border-radius:8px;border:1px solid var(--line-2);
  background:#fff;color:var(--text-2);font-size:12.5px;cursor:pointer;font-family:inherit;white-space:nowrap}
.dk-n2-cat:hover{border-color:#c9d6ea;color:var(--accent)}
.dk-n2-cat.on{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}
.dk-n2-pn{display:flex;gap:6px;flex:0 0 auto;margin-left:auto}
.dk-n2-pn button{padding:6px 11px;border-radius:8px;border:1px solid var(--line-2);
  background:#fff;color:var(--text-2);font-size:12.5px;cursor:pointer;font-family:inherit;white-space:nowrap}
.dk-n2-pn button:hover:not(:disabled){border-color:#c9d6ea;color:var(--accent)}
.dk-n2-pn button:disabled{opacity:.4;cursor:not-allowed}
@media (max-width:1080px){
  .dk-layout,.dk-detail{grid-template-columns:1fr 300px}
}
@media (max-width:820px){
  .dk-side{position:static}
  .dk-nav2{top:calc(var(--dk-top-h, 108px) + 6px);padding:7px 8px;gap:6px}
  .dk-n2-back{padding:5px 10px;font-size:12.5px}
  .dk-n2-label{display:none}
  .dk-n2-cat{padding:5px 9px;font-size:12px}
  .dk-n2-pn{margin-left:0}
  .dk-n2-pn button{padding:5px 9px;font-size:12px}
}

/* ---------- 空态 / 加载 ---------- */
.dk-empty{padding:56px 20px;text-align:center;color:var(--text-3)}
.dk-empty .big{width:46px;height:46px;margin:0 auto 12px;border-radius:14px;
  background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center}
.dk-empty .big svg{width:22px;height:22px}
.dk-empty .t{font-size:14px;color:var(--text-2);margin-bottom:4px}
.dk-empty .d{font-size:12.5px;line-height:1.8}
.dk-loading{padding:48px;text-align:center;color:var(--text-3);font-size:13px}

/* ---------- 禁复制弹窗 ---------- */
.dk-mask{position:fixed;inset:0;background:rgba(17,24,39,.38);display:none;
  align-items:center;justify-content:center;z-index:200;padding:20px}
.dk-mask.on{display:flex}
.dk-dlg{background:#fff;border-radius:18px;width:400px;max-width:100%;padding:26px 26px 22px;
  box-shadow:0 20px 60px rgba(16,24,40,.22);text-align:center;animation:dkpop .18s ease-out}
@keyframes dkpop{from{transform:scale(.96);opacity:0}to{transform:scale(1);opacity:1}}
.dk-dlg .dico{width:46px;height:46px;border-radius:50%;background:var(--accent-soft);
  color:var(--accent);display:flex;align-items:center;justify-content:center;margin:0 auto 14px}
.dk-dlg .dico svg{width:22px;height:22px}
.dk-dlg h4{margin:0 0 6px;font-size:16.5px;letter-spacing:-.2px}
.dk-dlg p{margin:0 0 16px;font-size:13px;color:var(--text-2);line-height:1.7}
.dk-dlg .wxline{display:flex;align-items:center;justify-content:center;gap:10px;
  background:#f7faff;border:1px solid #dbe7fb;border-radius:11px;padding:11px;margin-bottom:16px}
.dk-dlg .wxline .id{font-family:ui-monospace,Consolas,monospace;font-size:15px;
  font-weight:600;color:var(--accent)}
.dk-dlg .acts{display:flex;gap:9px}
.dk-dlg .acts button{flex:1;justify-content:center;padding:9px;border-radius:9px;
  font-size:13px;font-family:inherit;cursor:pointer;border:1px solid var(--line-2);
  background:#fff;color:var(--text-2)}
.dk-dlg .acts .pri{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:500}

/* ---------- 响应式 ---------- */
@media (max-width:1080px){
  .dk-layout,.dk-detail{grid-template-columns:1fr}
  .dk-rows{grid-template-columns:1fr 1fr}
  .dk-row:nth-child(3n){border-right:1px solid #f6f8fc}
  .dk-row:nth-child(2n){border-right:none}
  .dk-hstat{display:none}
}
@media (max-width:820px){
  .dk-top{height:auto;padding:10px 14px;flex-wrap:wrap;gap:9px}
  /* 品牌与频道 Tab 同一行，Tab 贴右；放不下会自动折行，不会挤压变型 */
  /* 手机：Tab 独占一行、两个各占一半 —— 与课件站手机端完全一致 */
  .ch-tabs{order:2;width:100%;margin:2px 0 0;padding:3px;gap:3px}
  .ch-tab{flex:1 1 0;padding:8px 0;font-size:14px}
  .dk-search{order:3;width:100%;flex:1 1 100%;max-width:none;margin-left:0}
  .hdr-ann{display:none !important}
  .dk-mann{display:block}
  .dk-page{padding:16px 14px 60px}
  .dk-rows{grid-template-columns:1fr}
  .dk-row{border-right:none}
  .dk-paper{padding:24px 20px 22px}
  .dk-head{padding:16px 16px 18px}
  .dk-ht{font-size:18px}
}

/* ---------- 提示条（复制成功等） ---------- */
.dk-toast{position:fixed;left:50%;bottom:calc(34px + env(safe-area-inset-bottom));
  transform:translate(-50%,20px);z-index:300;padding:11px 18px;border-radius:12px;
  background:rgba(255,255,255,.97);border:1px solid var(--line);
  box-shadow:0 4px 10px rgba(16,24,40,.06),0 16px 32px rgba(16,24,40,.09);
  font-size:13.5px;color:var(--text);opacity:0;pointer-events:none;
  transition:all .26s cubic-bezier(.22,.8,.36,1);max-width:calc(100vw - 32px);text-align:center}
.dk-toast.on{opacity:1;transform:translate(-50%,0)}

/* ============================================================
   手机版排版微调（2026-10-21）
   ① 公告文案允许换行 —— 不然「微信号 alqe0966」会被省略号截掉，等于白放
   ② 频道头压缩，第一屏尽量多露一条列表
   ③ Tab 与品牌之间留点呼吸
   ============================================================ */
@media (max-width:820px){
  .hm-ann{align-items:flex-start;gap:8px}
  .hm-ann span{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.55}
  .hm-ann .ic{margin-top:1px}
  .hm-ann .cp{align-self:center}
  .dk-head{padding:13px 16px 15px}
  .dk-hd{display:none}
  .dk-ht{font-size:17px}
  .dk-hico{width:38px;height:38px;border-radius:11px}
  .dk-hico svg{width:20px;height:20px}
  .dk-head-row{gap:11px}
  .dk-filters{margin:12px 0 2px}
}
@media (min-width:821px){
  .ch-tabs{margin-left:10px}
}

/* ============================================================
   手机版重写（≤820px，2026-10-22）
   目标：把屏幕还给文字 —— 顶部不留大块页头，正文满宽，卡片不套框
   ============================================================ */
@media (max-width:820px){
  /* 1) 页头彻底收起：品牌 + 频道 Tab + 搜索都不占屏 */
  .dk-top{ display:none !important; }

  /* 2) 页面留出底部 Tab 的高度，左右只留 10px */
  .dk-page{ padding: 8px 10px calc(66px + env(safe-area-inset-bottom)) !important; }

  /* 3) 底部 Tab */
  .mtabbar{
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:60;
    height:calc(56px + env(safe-area-inset-bottom));
    padding-bottom:env(safe-area-inset-bottom);
    background:rgba(255,255,255,.96); backdrop-filter:saturate(160%) blur(8px);
    border-top:1px solid #e9edf5;
  }
  .mtabbar .mi{
    flex:1 1 0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
    border:0; background:transparent; color:#8a90a0; font-size:11.5px; font-weight:600;
    font-family:inherit; cursor:pointer;
  }
  .mtabbar .mi .ic{ width:21px; height:21px; }
  .mtabbar .mi.on{ color:var(--accent,#2f7cf6); }
  .mtabbar .mi.on .ic{ transform:translateY(-1px); }

  /* 4) 搜索条：单行、浅灰、不包大卡片 */
  .msearch{
    display:flex; align-items:center; gap:8px; height:42px; margin:2px 0 12px;
    padding:0 12px; border-radius:12px; background:#eef2f8; color:#8a90a0;
  }
  .msearch .ic{ width:17px; height:17px; }
  .msearch input{
    flex:1 1 auto; min-width:0; border:0; outline:none; background:transparent;
    font-size:15px; color:var(--text-1,#1f2430); font-family:inherit;
  }

  /* 5) 区块标题：一行字 + 数量，不带框 */
  .msec{ display:flex; align-items:baseline; gap:8px; margin:2px 2px 10px; }
  .msec-t{ font-size:15.5px; font-weight:800; color:var(--text-1,#1f2430); }
  .msec-t::before{
    content:""; display:inline-block; width:3px; height:14px; border-radius:2px;
    background:var(--accent,#2f7cf6); margin-right:7px; vertical-align:-1px;
  }
  .msec-n{ margin-left:auto; font-size:12px; color:var(--text-3,#8a90a0); }

  /* 6) 瀑布流：两列，卡片只有标题和一行元信息 */
  .mwf{ column-count:2; column-gap:9px; }
  .mcard{
    display:block; break-inside:avoid; margin:0 0 9px;
    padding:11px 12px; border-radius:12px; background:#fff;
    border:1px solid #eef1f6; text-decoration:none; color:inherit;
  }
  .mcard .mt{
    font-size:14px; line-height:1.5; font-weight:600; color:var(--text-1,#1f2430);
    display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden;
  }
  .mcard .mm{
    display:flex; align-items:center; gap:6px; margin-top:8px;
    font-size:11.5px; color:var(--text-3,#8a90a0);
  }
  .mcard .mm b{
    margin-left:auto; font-weight:800; color:#fff; background:#f97316;
    border-radius:5px; padding:1px 6px; font-size:11px; letter-spacing:.2px;
  }
  .mmore{
    display:block; width:100%; margin:4px 0 8px; height:42px; border-radius:12px;
    border:1px solid #e2e8f2; background:#fff; color:var(--accent,#2f7cf6);
    font-size:14px; font-weight:600; font-family:inherit; cursor:pointer;
  }

  /* 7) 分类 Tab：横向可滑的分类条 + 瀑布流 */
  .mcatbar{
    display:flex; gap:8px; overflow-x:auto; padding:2px 0 10px; margin-bottom:2px;
    -webkit-overflow-scrolling:touch; scrollbar-width:none;
  }
  .mcatbar::-webkit-scrollbar{ display:none; }
  .mchip{
    flex:0 0 auto; height:34px; padding:0 13px; border-radius:99px;
    border:1px solid #e4e9f2; background:#fff; color:#5b6270;
    font-size:13px; font-family:inherit; cursor:pointer;
  }
  .mchip.on{ background:var(--accent,#2f7cf6); border-color:var(--accent,#2f7cf6); color:#fff; font-weight:700; }

  /* 8) 详情页：满宽正文，只有一条细返回栏 */
  .dk-m-det .mdetbar{
    position:fixed; left:0; right:0; top:0; z-index:60; height:46px;
    display:flex; align-items:center; gap:8px; padding:0 10px;
    background:rgba(255,255,255,.97); backdrop-filter:blur(8px);
    border-bottom:1px solid #eef1f6;
  }
  .dk-m-det .mdetbar .mback{
    border:0; background:transparent; color:var(--accent,#2f7cf6);
    font-size:15px; font-weight:600; font-family:inherit; padding:6px 4px; cursor:pointer;
  }
  .dk-m-det .mdetbar .mdt{ font-size:12.5px; color:var(--text-3,#8a90a0); }
  .dk-m-det{ padding-top:52px; }
  .dk-m-det .dk-nav2,
  .dk-m-det .dk-crumb,
  .dk-m-det .dk-side,
  .dk-m-det .dk-dmeta,
  .dk-m-det .dk-foot,
  .dk-m-det .dk-rel{ display:none !important; }

  .dk-m-det .dk-page{ padding:0 0 calc(24px + env(safe-area-inset-bottom)) !important; }
  .dk-m-det .dk-detail{ display:block !important; }
  .dk-m-det .dk-dmain{ display:block !important; }
  .dk-m-det .dk-dhead{
    padding:14px 16px 8px !important; border:0 !important; background:#fff !important;
  }
  .dk-m-det .dk-dtitle{ font-size:19px !important; line-height:1.45 !important; margin:0 !important; }
  .dk-m-det .dk-body{ padding:0 !important; }
  .dk-m-det .dk-paper{
    margin:0 !important; padding:4px 16px 22px !important;
    border:0 !important; border-radius:0 !important; box-shadow:none !important;
    background:#fff !important; width:auto !important; max-width:none !important;
  }
  .dk-m-det .dk-paper p{ font-size:16px !important; line-height:1.85 !important; margin:0 0 12px !important; }
  .dk-m-det .dk-paper h2{ font-size:16.5px !important; margin:20px 0 8px !important; }
  .dk-m-det .dk-paper h3{ font-size:15.5px !important; margin:16px 0 6px !important; }
  .dk-m-det .dk-paper table{ font-size:13px !important; }
}

/* 桌面端隐藏手机专用控件 */
@media (min-width:821px){
  .mtabbar{ display:none !important; }
  .mdetbar{ display:none !important; }
  .msearch,.msec,.mwf,.mcard,.mcatbar,.mchip,.mmore{ display:none !important; }
}

/* 手机详情：把微信提示条压扁，别占正文地方 */
@media (max-width:820px){
  .dk-m-det .dk-notice{
    margin:8px 0 12px !important; padding:8px 10px !important; gap:6px !important;
    font-size:12.5px !important; line-height:1.6 !important; border-radius:10px !important;
  }
  .dk-m-det .dk-notice .ic{ width:14px !important; height:14px !important; margin-top:2px !important; }
  .dk-m-det .dk-notice .tx{ display:block; }
  .dk-m-det .dk-dhead{ padding-bottom:2px !important; }
}

/* ===== 分类 Tab：左分类 / 右单行列表（仿课件 mc-split，2026-10-22） ===== */
@media (max-width:820px){
  .mcat-split{ display:flex; align-items:flex-start; margin:-8px -10px 0; }

  /* 左栏 */
  .mcat-left{
    width:94px; flex:0 0 94px; align-self:stretch;
    background:#fff; border-right:1px solid #eef1f6;
    position:sticky; top:var(--mtop-h, 48px); max-height:calc(100vh - var(--mtop-h, 48px)); overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  .mrail{
    display:block; width:100%; padding:12px 9px; border:0; background:none;
    font-size:12.5px; line-height:1.35; color:#5b6270; text-align:left;
    font-family:inherit; cursor:pointer; position:relative;
  }
  .mrail b{ display:block; margin-top:3px; font-size:11px; font-weight:600; color:#a3aab8; }
  .mrail.on{ background:#eef4ff; color:var(--accent,#2f7cf6); font-weight:800; }
  .mrail.on b{ color:#7aa7ec; }
  .mrail.on::before{
    content:""; position:absolute; left:0; top:10px; bottom:10px; width:3px;
    border-radius:0 3px 3px 0; background:var(--accent,#2f7cf6);
  }

  /* 右侧列表 */
  .mcat-right{ flex:1 1 auto; min-width:0; background:#fff; }
  .mcat-hd{
    position:sticky; top:var(--mtop-h, 48px); z-index:6; display:flex; align-items:baseline; gap:8px;
    padding:11px 13px 9px; background:rgba(255,255,255,.97); backdrop-filter:blur(6px);
    border-bottom:1px solid #f1f4f9;
  }
  .mcat-hd .t{ font-size:14px; font-weight:800; color:var(--text-1,#1f2430); }
  .mcat-hd .n{ margin-left:auto; font-size:12px; color:#9aa1af; }
  .mrow{
    display:block; padding:13px 13px 12px; border-bottom:1px solid #f4f6fa;
    text-decoration:none; color:inherit; background:#fff;
  }
  .mrow:active{ background:#f7f9fc; }
  .mrow-t{
    font-size:14.5px; line-height:1.55; font-weight:600; color:var(--text-1,#1f2430);
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  }
  .mrow-m{ display:flex; align-items:center; gap:8px; margin-top:7px; font-size:11.5px; color:#9aa1af; }
  .mrow-m b{
    margin-left:auto; background:#f97316; color:#fff; font-weight:800;
    font-size:11px; padding:1px 6px; border-radius:5px; letter-spacing:.2px;
  }
  .mcat-sent{ padding:16px 12px 24px; text-align:center; font-size:12.5px; color:#a3aab8; }
}

/* ===== 正文底部引流块：手机上恢复，且必须显示完整 ===== */
@media (max-width:820px){
  .dk-m-det .dk-dfoot{
    display:block !important; margin:14px 16px 0 !important; padding:12px 13px !important;
    font-size:12.5px !important; line-height:1.7 !important; border-radius:12px !important;
    white-space:normal !important; overflow:visible !important;
  }
  .dk-m-det .dk-dfoot > span{ display:block !important; white-space:normal !important;
    overflow:visible !important; text-overflow:clip !important; overflow-wrap:anywhere; }
  .dk-m-det .dk-dfoot > span + span{ margin-top:6px; }
  /* 编号徽章保持小标签，别被撑成一整条橙色 */
  .dk-m-det .dk-dfoot .dk-kid2{ display:inline-block !important; width:auto !important;
    margin:2px 0 0 !important; vertical-align:baseline; }
  .dk-m-det .dk-dfoot .dk-ncp{ vertical-align:baseline; }
  .dk-m-det .dk-side{ display:block !important; margin:12px 16px 8px !important; position:static !important; }
  .dk-m-det .dk-side .dk-box{ margin-bottom:10px !important; }
  .dk-m-det .dk-wxcp{ width:100% !important; height:40px !important; font-size:14px !important; }
  .dk-m-det .dk-wx .d{ white-space:normal !important; overflow:visible !important; }
  .dk-m-det .dk-notice .tx{ white-space:normal !important; overflow:visible !important; }
}

/* ===== 分类单页（无主页/无底部 Tab）：左栏纯文字居中 + 右侧分段瀑布 ===== */
@media (max-width:820px){
  :root{ --mtop-h: 48px; }   /* 顶部「栏目切换+搜索」高度，左栏/分段标题据此让位 */
  .dk-page{ padding: 8px 0 calc(16px + env(safe-area-inset-bottom)) !important; }
  .msearch{ margin: 2px 10px 10px; }

  .mcat-split{ display:flex; align-items:flex-start; }

  /* 左栏：纯文字、居中、无数字 */
  .mcat-left{
    width:88px; flex:0 0 88px; align-self:stretch;
    background:#f7f9fc; border-right:1px solid #eef1f6;
    position:sticky; top:var(--mtop-h, 48px); max-height:calc(100vh - var(--mtop-h, 48px)); overflow-y:auto;
    padding:4px 0; -webkit-overflow-scrolling:touch;
  }
  .mrail{
    display:flex; align-items:center; justify-content:center;
    width:100%; min-height:48px; padding:8px 4px; border:0; background:none;
    font-size:13px; line-height:1.3; color:#6b7280; text-align:center;
    font-family:inherit; cursor:pointer; position:relative;
  }
  .mrail.on{ background:#fff; color:var(--accent,#2f7cf6); font-weight:800; }
  .mrail.on::before{
    content:""; position:absolute; left:0; top:50%; transform:translateY(-50%);
    width:3px; height:20px; border-radius:0 3px 3px 0; background:var(--accent,#2f7cf6);
  }

  /* 右栏：分段（分类标题吸顶 + 单行列表） */
  .mcat-right{ flex:1 1 auto; min-width:0; background:#fff; }
  .msec-sec{ }
  .msec-hd{
    position:sticky; top:var(--mtop-h, 48px); z-index:6; padding:10px 13px 8px;
    font-size:13.5px; font-weight:800; color:var(--text-1,#1f2430);
    background:rgba(255,255,255,.97); backdrop-filter:blur(6px);
    border-bottom:1px solid #f1f4f9;
  }
  .msec-hd::before{
    content:""; display:inline-block; width:3px; height:13px; border-radius:2px;
    background:var(--accent,#2f7cf6); margin-right:7px; vertical-align:-1px;
  }
  .mres-hd{ padding:8px 13px; font-size:13px; color:#6b7280; display:flex; }
  .mres-hd span{ margin-left:auto; color:#9aa1af; font-size:12px; }
  .mflat .mrow{ padding:13px; }
}

/* ===== 第三轮：桌面分类条吸顶 / 手机搜索吸顶与聚焦交互 ===== */
/* 桌面：分类条贴在页头下方（页头 62px），一直在 */
.dk-filterbar{
  position:sticky; top:62px; z-index:55;
  background:rgba(255,255,255,.97); backdrop-filter:blur(8px);
  margin:0 -24px 14px; padding:10px 24px; border-bottom:1px solid var(--line);
}
.dk-filterbar .dk-filters{ margin:0; }

@media (max-width:820px){
  /* 底栏已删，页面留白恢复正常 */
  .dk-page{ padding-bottom:calc(16px + env(safe-area-inset-bottom)) !important; }

  /* 搜索：吸顶，不带卡片包边 */
  .msearch{
    position:sticky; top:0; z-index:30;
    margin:0 0 9px; height:44px; border-radius:0;
    background:#fff; border-bottom:1px solid #eef1f6;
    padding:0 12px;
  }
  .msearch.on{ background:#fff; box-shadow:0 6px 12px -10px rgba(20,40,90,.35); }
  .msearch .ic{ color:#9aa1af; transition:color .15s; }
  .msearch.on .ic{ color:var(--accent,#2f7cf6); }
  .msearch input{ font-size:15px; }
  .msearch .mclr{
    display:none; flex:0 0 auto; border:0; background:transparent;
    color:var(--accent,#2f7cf6); font-size:14px; font-family:inherit;
    padding:6px 2px; cursor:pointer;
  }
  .msearch.on .mclr{ display:block; }

  /* 左栏：固定高度自身滚动，右侧滚动时它不动 */
  .mcat-left{
    top:0; height:calc(100vh - 46px); max-height:calc(100vh - 46px);
    overflow-y:auto; overscroll-behavior:contain;
  }
  .mcat-right{ overscroll-behavior:contain; }
}

/* ===== 手机：频道切换 + 搜索同一行（吸顶） ===== */
@media (max-width:820px){
  .mtoprow{
    position:sticky; top:0; z-index:30;
    display:flex; align-items:center; gap:8px;
    padding:6px 10px; background:#fff; border-bottom:1px solid #eef1f6;
  }
  .mchsw{
    flex:0 0 auto; display:flex; gap:2px; padding:2px;
    background:#f1f4f9; border-radius:9px;
  }
  .mchsw a{
    font-size:12px; line-height:1; padding:7px 9px; border-radius:7px;
    color:#5b6270; text-decoration:none; white-space:nowrap;
  }
  .mchsw a.on{ background:var(--accent,#2f7cf6); color:#fff; font-weight:700; }

  /* 搜索条回到行内，不再单独吸顶 */
  .mtoprow .msearch{
    position:static; flex:1 1 auto; min-width:0;
    margin:0; height:34px; border:0; border-radius:9px;
    background:#f5f7fb; padding:0 10px;
  }
  .mtoprow .msearch.on{ background:#fff; box-shadow:0 0 0 1.5px var(--accent,#2f7cf6) inset; }
  .mtoprow .msearch input{ font-size:14px; }
  .mtoprow .msearch .mclr{ font-size:12.5px; }

  /* 详情页顶部条：右侧「交互课件」入口 */
  .dk-m-det .mdetbar .mchl{
    margin-left:auto; font-size:12.5px; color:var(--accent,#2f7cf6);
    text-decoration:none; padding:6px 8px; border-radius:8px; background:#eef4ff;
  }
}


/* ★ 2026-10-26：分页跳转框（代替省略号直达任意页） */
.dk-pager .dk-jump{display:inline-flex;align-items:center;gap:6px;margin-left:12px;color:var(--text-2);font-size:13px}
.dk-pager .dk-jump input{width:54px;height:30px;border:1px solid var(--line);border-radius:8px;padding:0 8px;font-size:13px;text-align:center;background:#fff;outline:none;color:var(--text)}
.dk-pager .dk-jump input:focus{border-color:var(--accent)}
.dk-pager .dk-jump button{height:30px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer;font-size:12.5px;font-weight:700;color:var(--text-2)}
.dk-pager .dk-jump button:hover{border-color:var(--accent);color:var(--accent)}


/* ★ 2026-10-26 定版三：文字翻页按钮 + 跳转框贴最右 */
.dk-pager{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.dk-pager .pg-txt{padding:0 14px;height:32px;font-size:13px;font-weight:600;color:var(--text-2);border:1px solid var(--line);border-radius:9px;background:#fff;cursor:pointer}
.dk-pager .pg-txt:hover:not([disabled]){border-color:var(--accent);color:var(--accent)}
.dk-pager .pg-txt[disabled]{opacity:.4;cursor:default}
.dk-pager .dk-jump{margin-left:auto}   /* 跳转框推到整条最右 */

/* ============================================================
   2026-11-01 移动端禁止横向拖动
   左栏(88px) + 右栏 + mcat-split 的负边距会让容器比视口宽 20px，
   用 clip 裁掉（clip 不创建滚动容器，所以左侧分类栏的 sticky 不受影响）。
   ============================================================ */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip){
  html, body { overflow-x: clip; }
}
