/* ============================================================
   技能圈 SkillQuan · 全站样式
   视觉基线来自高保真原型稿（V8），在此基础上补齐交互态、表单态、
   后台表格、评论区、空态与骨架屏。
   ============================================================ */

:root {
  --primary: #FF6B00; --pink: #FF3366; --purple: #BE82F5;
  --ink: #1A1510; --ink-2: #3A2E24; --muted: #9A8A7B;
  --bg: #FFF7F1; --card: #FFFFFF; --line: #F3E7DC; --green: #22C55E;
  --danger: #E5484D; --radius: 20px;
  /* 语义色别名 + 浅底：用于弹窗内的状态回执（拉取 Skill 等） */
  --ok: var(--green); --warn: #D97706; --bg-soft: #FBF3EC;

  /* ---- 字体 ----
     中文优先用各家系统的「现代无衬线」，而不是只写 PingFang + 雅黑：
     后者在 Android / Linux 上会直接掉到默认字体，字重和字距全乱。
     数值统一走 tabular-nums（见 .num），等宽数字不会在刷新时左右跳。 */
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;

  /* ---- 阴影 ----
     全部**带暖色调**（hue 来自 --ink 的棕橙），而不是纯黑低透明度。
     纯黑阴影压在暖白底上会发灰、显脏；同色系阴影才有「纸面浮起」的质感。
     三档够用：贴近纸面的 hairline、卡片悬浮、弹层。 */
  --sh-1: 0 1px 2px rgba(90,62,38,.05);
  --sh-2: 0 2px 10px rgba(90,62,38,.07), 0 12px 28px rgba(90,62,38,.06);
  --sh-3: 0 18px 46px rgba(60,38,20,.18);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; }
/* 横向溢出统一在这里收掉（不是 body，也不是 .aurora）。
   历史：深色光晕区的装饰层原来做的是 blur(6px) + **scale(1.12)** 的漂移动画，
   几何上会超出容器约 6% —— 1440 视口实测 `scrollX` 能到 37–40px，必须裁剪。
   后来把关键帧里的 scale 去掉（只留 translate + opacity），**根因就消失了**：
   实测 `scrollWidth == clientWidth == 1440`、`scrollTo(left:99999)` 后 `scrollX == 0`。
   所以这条 overflow-x 现在是**兜底**，不再是主要依靠。
   为什么留 hidden 而不是 clip：**实测 clip 只是把滚动条藏起来，滚动范围还在**
   —— scale 还在的时候，`scrollTo(left:99999)` 之后 `scrollX` 照样到 37px，
   触控板横滑就能把页面推出一块空白。hidden 把横向滚动范围直接归零。
   ⚠️ 别指望靠 mask / filter 收横向溢出：**scrollable overflow 是按布局几何算的**，
   blur 的外溢、mask 的裁剪都不参与，`scale` 那种几何变换才参与。
   为什么不影响 #/view 的 sticky：根元素上的 overflow 会**传播给视口**、
   自身 used 值变回 visible，所以视口仍是唯一的滚动容器，
   position:sticky 的参照系不变（`_verify_roundF_ui.py` 有几何断言盯着）。
   ⚠️ 不要再改回给 .aurora 加 overflow:hidden —— 用户菜单的下拉框是它的后代，
   会被一起剪掉；见 .aurora 上方的注释。 */
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
input, textarea, select, button { font-family: inherit; }
/* 数字等宽：统计数字 / 下载量 / 浏览数刷新时不会左右抖 */
b, .num, .statstrip b, .expert-stats b, .sec-head .sub b { font-variant-numeric: tabular-nums; }
/* 键盘可达性：鼠标点击不出圈，Tab 走到必须有清晰焦点环 */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(255,107,0,.22); }

/* ---------- 启动占位 ---------- */
.boot-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 100vh; color: var(--muted); }
.boot-cube { width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, var(--primary), var(--pink)); display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 10px 30px rgba(255,107,0,.4); animation: bootPulse 1.4s ease-in-out infinite; }
@keyframes bootPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.9); opacity: .7; } }

/* ============================================================
   顶部深色光晕区 + 导航
   ============================================================ */
/* 深色光晕区：竖向渐变压暗→提亮，底部颜色更浅（首页背景更轻盈）。
   两层叠出「纵深」，避免大片纯色渐变显得平：
     · ::before 四团径向光晕（暖橙 / 品红 / 紫），缓慢漂移；
     · ::after  极淡的噪点颗粒 —— 纯矢量色块在深色底上会有明显色带（banding），
                加一层 12% 透明度的噪声就能打散它，观感立刻从「PPT 渐变」变成「材质」。
   两层都是 pointer-events:none 的装饰层，不参与交互、不吃事件。

   ⚠️ 这里**故意没有** overflow:hidden。
   导航栏右侧的用户菜单（.user-menu > .dropdown，position:absolute）是 .aurora 的后代，
   而绝对定位元素的裁剪盒就是它最近的、带 overflow 的祖先 —— 一旦给 .aurora 加
   overflow:hidden，点用户名弹出的下拉菜单会被整个剪掉（实测只露出上半截）。
   装饰层的溢出改用两条别的路收：
     · 横向：交给 html 的 overflow-x:clip（见文件顶部）；
     · 纵向：::before 自己带一条底部淡出蒙版（见下），
       因为光晕是顶部锚定的，底边本来就很淡，淡出后与直接裁掉看不出差别。
   ⚠️ 也不要在任何祖先（body / #app / .wrap）上加 overflow:hidden/auto：
   #/view 的文件浏览器里，左栏目录树是 position:sticky，祖先一旦成为滚动容器就会失效。 */
.aurora { position: relative; background: linear-gradient(180deg, #221A13 0%, #2C2117 52%, #3C2C1E 100%); }
.aurora::before {
  content: ""; position: absolute; inset: 0; background:
    radial-gradient(60% 52% at 16% 0, rgba(255,107,0,.42), transparent 70%),
    radial-gradient(56% 46% at 62% -6%, rgba(255,51,102,.34), transparent 70%),
    radial-gradient(48% 44% at 88% 10%, rgba(190,130,245,.30), transparent 70%),
    radial-gradient(46% 40% at 44% 12%, rgba(255,153,102,.32), transparent 70%);
  filter: blur(6px); animation: auroraHaze 14s ease-in-out infinite alternate;
  /* 底部淡出：蒙版与容器同尺寸（no-repeat），最后一档停在离底边约 30px 处，
     于是「底边以下」完全没有蒙版覆盖 = 完全透明 —— blur 的外溢不会画出来，
     不会糊到下面的内容区。（关键帧里原来还有 scale(1.12)，那多出来的 6% 也靠
     这条蒙版收；scale 已经去掉，现在只需要管 blur。）
     用渐变而不是硬切：硬切会在边界上露出一道台阶，渐变看不出接缝。
     两档都用 max(calc(100% - Npx), P%)：首页那种高块按「离底 140px」淡出，
     内页的 .aurora.slim 只有 ~76px 高，calc 会算成负数，靠百分比下限兜住。 */
  mask-image: linear-gradient(180deg, #000 0,
    #000 max(calc(100% - 140px), 55%), transparent max(calc(100% - 30px), 62%));
  mask-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0,
    #000 max(calc(100% - 140px), 55%), transparent max(calc(100% - 30px), 62%));
  -webkit-mask-repeat: no-repeat;
}
.aurora::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.aurora.slim { padding-bottom: 8px; }
/* 只做「向左上轻微漂移 + 呼吸」，**不做 scale 放大**。
   scale 会让 ::before 的几何盒子超出容器约 6%（1440 视口实测 37px），
   而 scrollable overflow 是按几何算的、和蒙版无关 —— 于是整页多出 37px 的
   横向滚动范围（触控板一横滑就能把页面推出一块空白）。
   改成只往左上平移：右/下边永远不会超出容器，横向滚动范围归零；
   左上那点溢出方向不产生滚动条，且被上面的底部/边缘蒙版淡掉了。
   缩放带来的那点「呼吸感」改由 opacity 承担，观感差别很小。 */
@keyframes auroraHaze {
  from { transform: translate(0, 0); opacity: .82; }
  to { transform: translate(-1.6%, -0.8%); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* 首屏底纹：极淡的方格网 + 顶部一道高光。
   纯装饰。网格线用 repeating-linear-gradient 画，成本远低于图片，
   在深色渐变上提供「工程感」的参照，也让右侧面板与左列有共同的底。 */
.hero-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 56px),
    radial-gradient(120% 70% at 50% -20%, rgba(255,190,120,.16), transparent 62%);
  mask-image: radial-gradient(120% 88% at 50% 0%, #000 32%, transparent 82%);
  -webkit-mask-image: radial-gradient(120% 88% at 50% 0%, #000 32%, transparent 82%);
}

/* 首页首屏：高度由内容决定，不再强行撑满一屏。
   原来 min-height:100vh 是为了把「每周精选 / 热门榜单」切换长条压在折叠线上；
   那条长条已去掉，再撑满一屏就只剩一片空背景。现在让左右两列自然等高。 */
.aurora.home { display: flex; flex-direction: column; }
.aurora.home .nav { flex-shrink: 0; }

/* 导航条要压在首屏内容之上。
   原来这里是 z-index:2，和 .hero3 撞成同一个值 —— 同值时按 DOM 顺序画，
   .hero3 在后面，于是右侧「精选技能包」面板盖住了导航栏里弹出的用户下拉菜单
   （实测：下拉框 63~199px，中点与下点命中的是 .eh-sub / .ec-hit）。
   抬高到 20 之后，.nav 的整棵子树（含 .dropdown 的 z-index:50）都在首屏之上。
   ⚠️ 别改回 2，也别把 .hero3 降到 1 —— 那会让首屏内容被 .hero-bg(1) 盖住。 */
.nav { position: relative; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 15px 40px; max-width: 1280px; margin: 0 auto; }
.nav .spacer { flex: 1; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: #fff; text-decoration: none; white-space: nowrap; }
.logo .cube { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), var(--pink)); display: flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: 0 6px 18px rgba(255,107,0,.5); }
.logo b { background: linear-gradient(120deg, #FFB400, var(--primary), var(--pink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo .logo-en { font-size: 12px; color: #8d7f70; font-weight: 600; letter-spacing: .5px; }

.nav-links { display: flex; gap: 2px; }
.nav-links a { color: #cfc2b4; text-decoration: none; font-size: 14px; padding: 7px 14px; border-radius: 999px; transition: .2s; white-space: nowrap; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a.active { color: #fff; background: rgba(255,255,255,.14); font-weight: 600; }

.hdr-search { flex: 1; max-width: 300px; display: flex; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; backdrop-filter: blur(10px); }
.hdr-search input { flex: 1; height: 38px; border: none; background: transparent; color: #fff; padding: 0 16px; font-size: 13px; outline: none; min-width: 0; }
.hdr-search input::placeholder { color: #9d8f80; }
.hdr-search button { border: none; padding: 0 18px; background: linear-gradient(120deg, var(--primary), var(--pink)); color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; }

/* 用户菜单 */
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 7px 14px 7px 8px; color: #fff; font-size: 13px; cursor: pointer; transition: .2s; }
.user-btn:hover { background: rgba(255,255,255,.18); }
.user-btn .avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--pink)); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
/* 管理员标记：导航右侧按钮内，以及后台「管理员管理」表格里都会用到 */
.role-tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: linear-gradient(120deg, #FFD36B, #FFA53C); color: #5C3D00; letter-spacing: .3px; }
/* 管理员导航项：与普通链接同款式，但带一点金色强调，便于一眼识别 */
.nav-links a[href="#/admin"] { color: #FFD9A8; }
.nav-links a[href="#/admin"]:hover { color: #fff; background: rgba(255,190,90,.18); }
.nav-links a[href="#/admin"].active { color: #2A1B08; background: linear-gradient(120deg, #FFD36B, #FFA53C); font-weight: 700; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(26,21,16,.18); padding: 6px; display: none; z-index: 50; }
.dropdown.open { display: block; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; font-size: 13px; color: var(--ink-2); text-decoration: none; background: none; border: none; cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: #FFF1E2; color: var(--primary); }
.dropdown .sep { height: 1px; background: var(--line); margin: 5px 8px; }

/* ============================================================
   按钮
   ============================================================ */
.btn { position: relative; border: none; border-radius: 999px; padding: 11px 22px; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .16s var(--ease), background .2s, box-shadow .2s, filter .2s, border-color .2s, color .2s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
/* 按下时轻微缩一下，模拟「按到了实体按钮」—— 缺了这个反馈，点击会显得没响应 */
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-grad { background: linear-gradient(120deg, var(--primary), var(--pink)); color: #fff; box-shadow: 0 6px 20px rgba(255,107,0,.32); }
.btn-grad:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-plain { background: #F1EAE2; color: #6b5a4c; }
.btn-plain:hover { background: #E8DCCF; }
.btn-outline { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.btn-outline:hover { border-color: #ffd9b8; color: var(--primary); }
/* 「安装到本地 Agent」：需求里要显眼到「下载按钮旁边一眼就能看到」，
   但又不能盖过下载（下载量是站点核心信号）。用深底 + 暖金字的实体按钮，
   与橙色渐变拉开色相，一眼能区分「两个不同的动作」。 */
.btn-agent { background: #2C2117; color: #FFD9A8; box-shadow: 0 6px 18px rgba(44,33,23,.28); }
.btn-agent:hover:not(:disabled) { background: #3A2B1D; color: #FFE7C4; transform: translateY(-1px); }
.btn-agent:disabled { opacity: .6; cursor: progress; }
.btn-danger { background: #FDECEC; color: var(--danger); }
.btn-danger:hover { background: #FBD9D9; }
.btn.active { background: linear-gradient(120deg, var(--primary), var(--pink)); color: #fff; border-color: transparent; }
/* 后台审核按钮的「当前状态」态。
   审核状态是单选的（待审核 / 已上架 / 精选 / 已驳回），点了「设为精选」之后
   必须一眼看得出已经选中 —— 实心渐变 + 白字 + 同色投影，
   和未选中的浅底 outline 拉开明显距离；文案同时变成「已精选」。 */
.btn.is-current {
  background: linear-gradient(120deg, var(--primary), var(--pink));
  color: #fff; border: 1px solid transparent; font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 107, 0, .3);
}
.btn.is-current:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.sm-btn { padding: 9px 16px; font-size: 13px; }

/* ============================================================
   首页 Hero（左：搜索+标语+四框 / 右：精选技能包）
   右侧面板要「几乎上下占满」首屏：hero3 用 stretch 让右列撑满
   `.aurora.home .hero3` 的 flex:1 高度，面板内部再 flex 分配，
   技能列表 flex:1 + 自身滚动。左列用 align-self:center 保持垂直居中，
   不会被一起拉高。
   ============================================================ */
/* 列宽必须用 minmax(0, …fr) 而不是裸 1fr：`1fr` 等于 `minmax(auto, 1fr)`，
   会被格子里「不换行的长文本」撑开最小宽度 —— 卡片的单行功能介绍正是 nowrap，
   结果右栏把左栏挤窄、标题被迫折成三行。minmax(0,…) 允许压到 0，
   让 ellipsis 正常生效，左右比例才是设定的 1.02 : .98。 */
.hero3 { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 36px; padding: 34px 40px 46px; max-width: 1280px; margin: 0 auto; align-items: stretch; }
/* 左列 = 三块内容（标题区 / 场景直达 / 数据条）自然堆叠。
   早先试过 align-self:stretch + space-between 去「上下贴齐右面板」，
   结果中间撑出 300px 空档 —— 补齐内容的成本远高于收益，改为内容定高。
   两侧高度差由 .hero3 的 align-items:start 兜住（谁高谁定行高，另一个顶部对齐）。 */
/* 左列 = 三块内容（标题区 / 场景直达 / 数据条）自然堆叠。
   高度上让两列**互相追平**：`.hero3` 用 align-items:stretch，
   左列再 space-between 把多出来的那点高度摊到块间距里。
   这样无论「右侧卡片变高」还是「左侧领域变多」，两列底边永远对齐 ——
   早先靠「面板 max-height 恰好等于左列高度」来对齐，改一次卡片数就错位（踩过）。
   ⚠️ 之所以敢用 space-between：现在两列内容量接近（差几十像素），
   摊下来只是把 24px 的间距变成 30 出头；当年左列只有 200px 内容时
   它会撑出 300px 的空档，那种情况就别这么写。 */
.hero3-left { align-self: stretch; justify-content: space-between; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hl-top { min-width: 0; display: flex; flex-direction: column; }
.hero3-left .pill { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 14px; font-size: 12px; color: #e8dac8; }
.hero3-left .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pillPulse 2.4s ease-in-out infinite; }
@keyframes pillPulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.45; transform:scale(.82); } }
/* 主标题：字号拉开到 38px、字距收到 -1.4px、行高压到 1.3。
   三件事一起做才有「大标题」的份量 —— 只放大字号会显得松垮。
   text-wrap:balance 让两行长度接近，避免第二行落单一个词。 */
/* 首页主标题：第七轮从 <h2> 升成 <h1>（全站原先一个 h1 都没有，文档大纲是空的）。
   选择器跟着改，字号 / 字重 / 渐变都和原来一字不差 —— 改标记时**别只改 HTML**，
   漏改这里主标题就会掉回浏览器默认的 h1 样式（2em / 上下 margin）。 */
.hero3-left h1 { font-size: 38px; font-weight: 800; line-height: 1.3; color: #fff; letter-spacing: -1.4px; margin-top: 20px; text-wrap: balance; }
.hero3-left h1 .grad { background: linear-gradient(120deg, #FFB400, var(--primary), var(--pink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero3-left p { color: #b6a698; font-size: 15px; line-height: 1.7; margin: 14px 0 0; max-width: 42ch; }
.big-search { max-width: 100%; display: flex; margin-top: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; backdrop-filter: blur(10px); transition: border-color .2s, box-shadow .2s; }
.big-search:focus-within { border-color: rgba(255,180,0,.6); box-shadow: 0 0 0 4px rgba(255,107,0,.14); }
.big-search input { flex: 1; height: 50px; border: none; background: transparent; color: #fff; padding: 0 22px; font-size: 16px; outline: none; min-width: 0; }
.big-search input::placeholder { color: #9d8f80; }
.big-search button { border: none; padding: 0 28px; background: linear-gradient(120deg, var(--primary), var(--pink)); color: #fff; font-weight: 600; font-size: 16px; cursor: pointer; }
.big-search button:hover { filter: brightness(1.07); }

/* 热门搜索词：从热度榜标题里挤出来的短词，点一下直接搜 */
.hot-words { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hot-words .hw-label { font-size: 12px; color: #b6a698; }
.hw-chip { font-size: 12px; color: #e8dac8; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 4px 12px; text-decoration: none; transition: .2s; white-space: nowrap; }
.hw-chip:hover { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.34); }

/* ---------- 进场动画 ----------
   元素进入视口时轻微上浮淡入（由 UI.observeReveal 用 IntersectionObserver 驱动）。
   只动 opacity / transform 两个合成层属性，不触发重排。
   --i 是列表序号，用来做 70ms 的阶梯延迟 —— 一排卡片依次出现，而不是「啪」地全亮。 */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
}

/* ---------- 首屏「最新下载」动态墙（2026-09-18 替换掉原「场景直达」六宫格） ----------
   原「场景直达」只是「按领域浏览」的另一个入口 —— 同一件事在首屏讲两遍，
   占掉了左列最值钱的位置却没给新信息，所以整块去掉。
   换成真实下载动态：数字会自己长、内容每天在变，比静态磁贴更能说明「这站是活的」。
   数据来源 /api/recent-downloads（已按技能去重），没有任何编造。 */
.hl-label {
  font-size: 11.5px; letter-spacing: 1.6px; color: #8d7f70;
  text-transform: uppercase; margin-bottom: 10px;
}
.hl-live { min-width: 0; }
.hl-live .hl-label { display: flex; align-items: center; gap: 7px; }

/* LIVE 脉冲点：外扩的光环用 box-shadow 做，不占布局空间 */
.live-dot {
  flex: none; width: 7px; height: 7px; border-radius: 50%; background: #22C55E;
  animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.live-sub {
  font-size: 11px; letter-spacing: 0; text-transform: none;
  color: #9c8d7d; font-weight: 600;
}
.hl-live-more {
  margin-left: auto; font-size: 11.5px; letter-spacing: 0; text-transform: none;
  color: #ffb400; text-decoration: none; white-space: nowrap; font-weight: 600;
}
.hl-live-more:hover { color: #fff; }

/* 轨道高度 = 3 行 × 44px。行高固定，位移 -50% 才能和复制出来的第二份严丝合缝地接上 */
.dl-ticker {
  position: relative; height: 132px; overflow: hidden; border-radius: 14px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1);
  /* 暖色外发光：和站点主色呼应，让这块从深色背景里「浮」出来 */
  box-shadow: 0 0 0 1px rgba(255,180,0,.08), 0 10px 30px rgba(255,107,0,.09);
  /* 上下各 16px 渐隐：滚动时行不会「硬生生」被切一刀，是「淡入淡出」的观感 */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}
.dt-track { animation: dt-scroll 30s linear infinite; }
/* 鼠标移上去 / 键盘焦点进来就暂停 —— 想看清某一行时不该被滚走 */
.dl-ticker:hover .dt-track,
.dl-ticker:focus-within .dt-track { animation-play-state: paused; }
@keyframes dt-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.dt-row {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  height: 44px; padding: 0 13px;
  text-decoration: none; color: #e8dac8; font-size: 12.5px;
  border-bottom: 1px solid rgba(255,255,255,.055);
  transition: background .16s, color .16s;
}
.dt-row:hover { background: rgba(255,180,0,.09); color: #fff; }
.dt-ic { flex: none; width: 18px; text-align: center; font-size: 14px; }
.dt-nm {
  flex: 1 1 auto; min-width: 0; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 领域小标签：让「这个 SKILL 是干什么的」一眼可见，也让每行更有信息量 */
.dt-dom {
  flex: none; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px;
  color: #c9b7a3; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09);
  white-space: nowrap;
}
.dt-row:hover .dt-dom { color: #ffd0a8; border-color: rgba(255,180,0,.28); }
/* 下载量是这一行的「主角」：金色 + 等宽数字 + 千分位，比 8.1k 更有冲击力 */
.dt-dl {
  flex: none; font-weight: 800; font-size: 12.5px; color: #ffb400;
  font-variant-numeric: tabular-nums;
}
.dt-dl i { font-style: normal; font-weight: 500; font-size: 10px; color: #9c8d7d; margin-left: 2px; }
.dt-ago { flex: none; min-width: 56px; text-align: right; font-size: 11px; color: #8d7f70; }

/* 关掉动效时不能把内容也关掉：改成静态可滚列表，用户仍能看全 12 条 */
@media (prefers-reduced-motion: reduce) {
  .dt-track { animation: none; }
  .dl-ticker { height: auto; max-height: 176px; overflow-y: auto; }
  .live-dot { animation: none; }
}

/* ---------- 数据条：4 个指标一行，发丝线分隔 ---------- */
.statstrip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; overflow: hidden;
}
.statstrip a { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; text-decoration: none; transition: background .2s; }
.statstrip a + a::before { content: ""; position: absolute; left: 0; top: 15px; bottom: 15px; width: 1px; background: rgba(255,255,255,.1); }
.statstrip a:hover { background: rgba(255,180,0,.09); }
.statstrip b { font-size: 25px; font-weight: 800; line-height: 1; letter-spacing: -.8px; color: #fff; font-variant-numeric: tabular-nums; }
.statstrip a:hover b { color: var(--primary); }
.statstrip span { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #b6a698; }
.statstrip span i { width: 5px; height: 5px; border-radius: 50%; flex: none; }

.expert-panel { position: relative; align-self: stretch; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: rgba(28,23,44,.55); border: 1px solid rgba(190,130,245,.32); border-radius: 22px; padding: 16px 18px 18px; backdrop-filter: blur(14px); box-shadow: inset 0 0 52px rgba(190,130,245,.09), 0 0 42px rgba(107,60,220,.22); }
.expert-panel::before { content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px; background: linear-gradient(140deg, rgba(255,107,0,.5), transparent 30%, rgba(190,130,245,.5) 70%, transparent); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.expert-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 10px; padding: 0 2px; flex-shrink: 0; }
.expert-head .eh-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.expert-head .eh-sub { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.58); letter-spacing: .2px; }
.expert-head .more { font-size: 12px; color: var(--purple); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.expert-head .more:hover { color: #fff; }
/* 列表吃满面板剩余高度并在内部滚动（而不是把面板撑破）。
   ⚠️ 只写 flex:1 是不够的：面板本身没有确定高度，列表的 flex-basis:auto
   会按「全部卡片的内容」算高度，结果把整页顶到几千像素、永远滚不到底。
   三个条件缺一不可：
     · min-height:0   —— 允许 flex 把列表压到内容高度以下（不然收缩失效）；
     · flex:1         —— 容器有富余时把列表撑满；
     · max-height     —— 兜住「容器没被约束」的情况（见下面的窄屏断点）。
   2026-10-18：首页面板从「只放 3 个」改成「放 12 个 + 内部滚动」。
   可视高度**刻意保持 3 张多一点**（3×176 + 2×10 = 548，容器 560）：
   第 4 张卡露出 12px，就是「这里还能往下滚」最自然的提示；
   把 max-height 调大反而会顶破首屏、把下面的「每周精选」挤出折叠线。
   ⚠️ 滚动条按需求隐藏（Windows 默认 17px 宽，在深色面板里会割出一条灰白竖条）。
   三套写法都要给：scrollbar-width(Firefox) / -ms-overflow-style(旧 Edge) /
   ::-webkit-scrollbar(Chrome·Safari·新 Edge)。
   隐藏之后仍可用：鼠标滚轮、触控板、触屏滑动、键盘 ↑↓/PgUp/PgDn（tabindex=0）。
   不要加 overscroll-behavior:contain —— 列表滚到边界时若把滚轮「吃掉」，
   鼠标停在面板里会变成页面死活不动，比露出滚动条更难受。 */
.expert-list {
  flex: 1 1 auto; min-height: 0; max-height: 560px;
  overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
  padding-right: 2px;
  scrollbar-width: none; -ms-overflow-style: none;
  /* 卡片 hover 会 translateY(-3px)，允许纵向溢出但裁掉横向的阴影毛边 */
  overflow-x: hidden;
}
.expert-list::-webkit-scrollbar { width: 0; height: 0; display: none; }
/* 键盘聚焦时给一圈淡金描边：滚动条藏起来了，键盘用户得知道焦点在哪 */
.expert-list:focus-visible { outline: 2px solid rgba(255,180,0,.55); outline-offset: 3px; border-radius: 14px; }

/* 卡片：四行版（图标行 / 亮点一句话 / 功能小标签 / 数据+下载）。
   早先为了「同样高度多露几个包」把功能压成一行、字号压到 10.5px，
   结果卡片像一条条状态栏：信息是全的，但看不出这个包**值不值得点**。
   现在把「亮点」单独拎出来当第二行（13px、两行截断）——
   技能包卖的就是「一次装齐 N 个技能能干什么」，这句话必须在卡上看得见。 */
/* 卡片高度必须**一致**：卡面是「内容撑高」的，而「亮点」那句话可能是一行也可能是
   两行（-webkit-line-clamp: 2），于是同一个列表里的卡片会高矮不齐 ——
   实测批量导入进来的包因为没有功能标签，比原有的矮了一截，看着像两套卡片。
   两道保险：
     · min-height 兜住内容少的卡；
     · .expert-stats 用 margin-top:auto 把底部那行钉住，内容多少都对齐。 */
.expert-card { position: relative; overflow: hidden; display: flex; flex-direction: column; /* 高度必须是**定值**：卡面是内容撑高的，而「亮点」可能一行也可能两行，
   不钉死就会出现同一列表里高矮不齐（实测 176/196/200/224 四种）。
   取 176 是因为首页右侧面板要**完整放下 3 张**（3×176 + 2×10 = 548 ≤ max-height 560），
   定成 200 会把第三张顶出面板（_verify_opt_ui.py 会当场报「最后一张被裁掉」）。 */
height: 176px; border-radius: 16px; padding: 14px 16px 13px; transition: transform .24s var(--ease), box-shadow .24s var(--ease); box-shadow: 0 6px 18px rgba(0,0,0,.2); flex-shrink: 0; text-decoration: none; color: #fff; cursor: pointer; }
/* 窄屏（单列）不必强求等高：200px 会把内容压扁。 */
@media (max-width: 640px) { .expert-card { height: auto; min-height: 176px; } }
.expert-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.expert-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18), transparent 70%); background-size: 220% 100%; animation: expertScan 3.6s linear infinite; pointer-events: none; }
@keyframes expertScan { from { background-position: 220% 0; } to { background-position: -220% 0; } }
/* 拉伸链接：铺满整卡负责跳详情；卡内需要自己响应点击的元素再抬到 z-index:2 */
.ec-hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.expert-top { display: flex; align-items: center; gap: 10px; }
.expert-avatar { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 17px; background: rgba(255,255,255,.24); box-shadow: inset 0 0 0 1px rgba(255,255,255,.32); }
.expert-top .nm { color: #fff; font-size: 15px; font-weight: 800; display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; line-height: 1.2; letter-spacing: -.35px; min-width: 0; flex: 1; }
.expert-top .nm .ttl { color: rgba(255,255,255,.85); font-size: 11px; font-weight: 600; }
.expert-go { flex-shrink: 0; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.78); white-space: nowrap; transition: .2s; }
.expert-card:hover .expert-go { color: #fff; }
/* 亮点：卡片上最重要的一句话，13px / 两行截断。
   左侧一道竖线把它和「名字行」分开，视觉上像一句引文。 */
.ec-hitline {
  position: relative; margin-top: 9px; padding-left: 10px;
  font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.96);
  border-left: 2px solid rgba(255,255,255,.5);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 功能小标签：半透明胶囊，最多三个 */
.ec-chips { display: flex; flex-wrap: nowrap; overflow: hidden; gap: 5px; margin-top: 9px; }
.ec-chip { font-size: 10.5px; font-weight: 600; color: #fff; background: rgba(0,0,0,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.26); padding: 2px 9px; border-radius: 999px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; /* min-width:0 让每个胶囊都能被压缩并各自显示省略号；
   否则容器 nowrap 时是「最后一个被硬切一半」，看着像渲染坏了。 */
min-width: 0; flex: 0 1 auto; }
/* margin-top:auto 把这一行压到卡片底部 —— 配合 .expert-card 的 min-height，
   无论上面的「亮点」是一行还是两行，底部这行始终在同一水平线上。 */
.expert-stats { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 11px; color: rgba(255,255,255,.85); }
.expert-stats .fn-tag { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(255,255,255,.22); padding: 3px 9px; border-radius: 999px; letter-spacing: -.1px; }
.expert-stats .fn-tag b { font-size: 12px; }
.expert-stats .es-dl { flex-shrink: 0; white-space: nowrap; }
.expert-stats .es-dl b { color: #fff; font-weight: 800; font-size: 12px; }
/* 卡内「打包下载」按钮：一次拿走包里全部技能，是技能包相对单个技能的核心动作 */
.ec-dl { position: relative; z-index: 2; margin-left: auto; border: none; cursor: pointer; white-space: nowrap; font-size: 11.5px; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.22); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.32); transition: .2s; }
.ec-dl:hover:not(:disabled) { background: #fff; color: #B4340A; }
.ec-dl:active:not(:disabled) { transform: scale(.97); }
.ec-dl:disabled { opacity: .7; cursor: progress; }
/* 技能包卡片上的「⚡ 安装」。要和 .ec-dl 并排，所以比它更紧凑一点；
   .ec-dl 的 margin-left:auto 负责把这一组推到右侧，这里不再加 margin。 */
.ec-install { position: relative; z-index: 2; border: none; cursor: pointer; white-space: nowrap; font-size: 11.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: rgba(0,0,0,.32); color: #FFD9A8; box-shadow: inset 0 0 0 1px rgba(255,217,168,.34); transition: .2s; }
.ec-install:hover:not(:disabled) { background: rgba(0,0,0,.5); color: #FFE7C4; }
.ec-install:active:not(:disabled) { transform: scale(.97); }
.ec-install:disabled { opacity: .7; cursor: progress; }

/* ============================================================
   技能包详情页
   ============================================================ */
.expert-hero { position: relative; overflow: hidden; padding: 20px 0 26px; }
.expert-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.16), transparent 70%); background-size: 220% 100%; animation: expertScan 3.6s linear infinite; pointer-events: none; }
.expert-hero .wrap { position: relative; z-index: 2; }
.crumb-light { display: inline-block; color: rgba(255,255,255,.88); font-size: 13px; font-weight: 600; text-decoration: none; margin-bottom: 16px; }
.crumb-light:hover { color: #fff; text-decoration: underline; }
.expert-hero-main { display: flex; align-items: flex-start; gap: 20px; }
.expert-hero-icon { width: 84px; height: 84px; border-radius: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 42px; background: rgba(255,255,255,.24); box-shadow: inset 0 0 0 1px rgba(255,255,255,.32); }
.expert-hero-info { min-width: 0; }
.expert-hero-info h2 { color: #fff; font-size: 28px; font-weight: 800; letter-spacing: -.6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.expert-hero-tag { font-size: 12px; font-weight: 700; color: #fff; background: rgba(255,255,255,.24); padding: 4px 12px; border-radius: 999px; }
.expert-hero-info p { color: rgba(255,255,255,.93); font-size: 14px; line-height: 1.7; margin-top: 10px; max-width: 780px; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.feature-pill { font-size: 12.5px; color: #fff; background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); padding: 5px 12px; border-radius: 999px; }
.expert-metrics { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.expert-metric { background: rgba(0,0,0,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); border-radius: 14px; padding: 12px 20px; min-width: 108px; }
.expert-metric b { display: block; color: #fff; font-size: 22px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.expert-metric span { font-size: 12px; color: rgba(255,255,255,.85); }
/* 打包下载：技能包详情页的主行动按钮。白底压在彩色渐变 hero 上，
   对比度最高、也最容易被当成「下一步该点这里」。 */
.expert-hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.btn-dl { background: #fff; color: #B4340A; font-size: 15px; padding: 12px 24px; box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.btn-dl:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(0,0,0,.36); }
.expert-hero-actions .eh-note { font-size: 12.5px; color: rgba(255,255,255,.88); }
@media (max-width: 560px) {
  .expert-hero-icon { width: 60px; height: 60px; font-size: 30px; border-radius: 16px; }
  .expert-hero-info h2 { font-size: 21px; }
  .expert-metrics { gap: 10px; }
  .expert-metric { min-width: 0; padding: 10px 14px; }
  .expert-metric b { font-size: 17px; }
}

/* ============================================================
   通用版心 / 区块标题
   ============================================================ */
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.section { padding: 46px 0 10px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head h3 { font-size: 23px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; }
.sec-head h3 .bar { display: inline-block; width: 5px; height: 20px; background: linear-gradient(180deg, var(--primary), var(--pink)); border-radius: 3px; margin-right: 10px; vertical-align: -3px; }
/* 区块标题左半：小字标签 + 标题。
   标签走大写宽字距的「眉题」（eyebrow），和中文标题形成字号/字距的双重对比，
   比单挂一个标题更有版面感，也顺手说明了这一块的英文名。 */
.sec-head .sh-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sec-head .eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: #C08A5A;
}
.sec-head a { color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.sec-head a:hover { text-decoration: underline; }
.sec-head .sub { font-size: 13px; color: var(--muted); font-weight: 400; }
/* 右侧「说明文字 + 动作」成组：让「共 N 个精选 Skill」和它旁边的「查看更多 →」
   紧挨着，而不是被 space-between 推到两端 */
.sec-head .sh-right { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.sec-head .sh-right .btn { align-self: center; }
.sec-head .sh-more { color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.sec-head .sh-more:hover { text-decoration: underline; }

.grid { display: grid; gap: 16px; }
/* 领域页：左列表 + 右热度榜，窄屏堆叠（原先内联 2fr/1fr 没有断点，420px 下会横向溢出） */
.domain-layout { grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 900px) { .domain-layout { grid-template-columns: 1fr; gap: 18px; } }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
/* 导航分档让位：避免右侧按钮被 .aurora 的 overflow 裁掉 */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(3, 1fr); }
  .logo .logo-en { display: none; }
  .nav-links a { padding: 7px 10px; }
}
/* 窄屏收紧导航间距。
   （原来这里还有一条 .nav-admin-label —— 管理后台曾是导航项、901~1020px 区间会把
   右侧按钮顶出视口，所以那时只留 🛠 图标。该导航项已从前台撤掉，规则随之删除。） */
@media (max-width: 1020px) {
  .nav { gap: 12px; }
}
/* 再往下一小段（901~919px）导航项会挤到右侧按钮。
   前台导航项 ≤900px 已整体隐藏，这里补上 901~919px 这一档；
   后台版导航（.nav-links 里只有一条 #/admin）也一并收起 —— 后台右侧有身份菜单，
   不差这一条链接。用 :has 限定，没有 #/admin 链接时不受影响。 */
@media (max-width: 919px) {
  .nav-links:has(a[href="#/admin"]) { display: none; }
}
@media (max-width: 900px) {
  .g4, .g3 { grid-template-columns: repeat(2, 1fr); }
  /* 单列堆叠时别再让右栏拉伸：否则面板撑满整屏、列表却只有 340px 高，
     底部会留一大片空白。改成按内容高度排布。 */
  .hero3 { grid-template-columns: 1fr; align-items: start; }
  /* 单列时两列不再互相追平，左列回到「按内容堆叠」 */
  .hero3-left { align-self: start; justify-content: flex-start; }
  .expert-panel { flex: none; align-self: auto; }
  /* 单列时面板不再被左列约束，列表要自己封顶。
     3 张卡在 390px 宽下每张约 200px（文案换行更多），
     3×200 + 2×10 = 620 —— 取 700 留余量，否则末卡会被裁掉半截。 */
  .expert-list { flex: none; max-height: 700px; }
  .nav-links { display: none; }                 /* 导航项在页脚仍有入口 */
  .nav > .user-menu, .nav > .btn-ghost { margin-left: auto; }
}
@media (max-width: 620px) {
  .hdr-search { display: none; }                /* 首页另有主搜索框 */
}
@media (max-width: 560px) {
  .g4, .g3, .g2 { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  /* 数据条：4 个指标在窄屏折成 2×2，发丝线改成上边框 */
  .statstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statstrip a + a::before { display: none; }
  .statstrip a:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .statstrip a:nth-child(even) { border-left: 1px solid rgba(255,255,255,.1); }
  .statstrip b { font-size: 21px; }
  /* 最新下载动态墙：窄屏把行压矮一点，仍保持「整数行」以免滚动接缝露白 */
  .dl-ticker { height: 120px; }
  .dt-row { height: 40px; gap: 7px; padding: 0 11px; font-size: 12px; }
  .dt-ago { min-width: 48px; font-size: 10.5px; }
  .hero3-left h1 { font-size: 26px; }
  /* 后台搜索框：窄屏下别把工具条撑破 */
  .adm-search { flex: 1; }
  .adm-search input { width: auto; flex: 1; max-width: none; }
  .adm-search button { padding: 0 12px; }
  /* 导航进一步收紧 */
  .nav { padding: 12px 14px; gap: 10px; }
  .nav .logo { font-size: 17px; gap: 8px; }
  .logo .cube { width: 26px; height: 26px; font-size: 13px; border-radius: 8px; }
  .sm-btn { padding: 8px 13px; font-size: 12.5px; }
}

/* ============================================================
   SKILL 卡片
   ============================================================ */
.skill-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s; box-shadow: var(--sh-1); display: flex; flex-direction: column; }
/* 悬停：抬 4px + 换成暖色弥散阴影 + 描边转暖橙。
   阴影用同色系而不是纯黑 —— 纯黑压暖白底会发灰。 */
.skill-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(190,110,50,.14); border-color: #ffd9b8; }
.skill-card .preview { height: 156px; border-radius: 14px; overflow: hidden; position: relative; background: #0D1117; margin-bottom: 14px; }
.skill-card .preview .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #6b7280; font-size: 13px; text-align: center; padding: 0 20px; background: repeating-linear-gradient(45deg, #10151C, #10151C 12px, #0D1117 12px, #0D1117 24px); }
/* 无演示媒体、但有 demo_desc 时：把「输入 → 处理 → 输出」画成竖向流程。
   预览区一直是深色（#0D1117），所以这里用浅字，不受明暗主题影响。 */
.skill-card .preview .ph-flow { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 20px 14px 12px; background: radial-gradient(circle at 50% 0%, #16202B 0%, #0D1117 72%); }
.skill-card .preview .pf-step { font-size: 11px; line-height: 1.35; color: #E6EDF3; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10); border-radius: 8px; padding: 3px 10px; max-width: 100%; text-align: center; }
.skill-card .preview .pf-arrow { font-size: 10px; line-height: 1; color: #4F8CFF; }
.skill-card .preview .lbl { position: absolute; top: 8px; left: 10px; z-index: 6; font-size: 10px; color: #fff; background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 999px; backdrop-filter: blur(4px); }
.skill-card .badge-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.skill-card h4 { font-size: 16px; margin: 0 0 6px; line-height: 1.4; }
.skill-card h4 a { text-decoration: none; }
.skill-card h4 a:hover { color: var(--primary); }
.skill-card .desc { font-size: 13px; color: var(--muted); line-height: 1.6; min-height: 40px; flex: 1; }
.tag { display: inline-block; font-size: 11px; color: #B36A1F; background: #FFF1E2; border-radius: 6px; padding: 2px 8px; margin: 8px 6px 0 0; text-decoration: none; }
.skill-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid #FAF2E9; gap: 8px; }
.heat { color: var(--primary); font-weight: 700; font-size: 13px; }
.dl { font-size: 12px; color: var(--muted); }
.mini-btn { border: none; background: linear-gradient(120deg, var(--primary), var(--pink)); color: #fff; font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: .2s; }
.mini-btn:hover { filter: brightness(1.08); }
.mini-btn:disabled { opacity: .6; cursor: not-allowed; }
/* 卡片底部的「⚡ 安装」：小一号 + 深底金字，与橙色「下载」并排但不抢眼。
   卡片只有 300~380px 宽，两个按钮必须能并排放下，所以这里把内边距收到 7px/10px。 */
.mini-btn.mini-agent { background: #2C2117; color: #FFD9A8; padding: 7px 10px; }
.mini-btn.mini-agent:hover:not(:disabled) { background: #3A2B1D; color: #FFE7C4; filter: none; }
/* 案例卡片的「阅读全文」用的是 <a class="mini-btn">（要能右键新标签打开、
   能复制地址），锚点默认有下划线，这里按按钮的观感收掉。 */
a.mini-btn { display: inline-block; text-decoration: none; }
/* 按钮成组靠右：.foot 是 space-between，不加这一层的话
   两个按钮会跟「下载 N 次」的文字平摊间距，窄卡上会换行。 */
.foot-acts { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.benefit-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.benefit { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: linear-gradient(135deg, #E8FBF0, #D1FAE5); color: #0F9D58; border: 1px solid #A7F3D0; }

/* 真实演示媒体：默认隐藏，加载成功后覆盖动画占位 */
.demo-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; display: none; background: #0D1117; }
.demo-placeholder { position: absolute; inset: 0; z-index: 2; }
.media-host { position: relative; }
.media-host.media-ready .demo-media { display: block; }
.media-host.media-ready .demo-placeholder { display: none; }
/* 详情页大图：跟随内容流、不裁切 */
.demo-media-flow { position: relative; inset: auto; height: auto; max-height: 520px; object-fit: contain; background: #000; }
/* 通用动画占位：居中固定比例，避免被拉伸成超宽图表 */
.demo-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 26px; }
.demo-center > * { height: 300px; width: 100%; max-width: 680px; border-radius: 14px; overflow: hidden; }

/* ---------- 效果演示动画（按领域匹配） ---------- */
.fx-host { position: absolute; inset: 0; }
.fx-ui { padding: 14px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(160deg, #1A1626, #12101C); height: 100%; }
.fx-ui .ub { height: 22px; background: #2A2636; border-radius: 6px; animation: popIn .9s ease both; }
.fx-ui .ub.br { width: 45%; background: linear-gradient(135deg, #FF6B00, #FF3366); }
.fx-ui .ub.row { display: flex; gap: 6px; height: 26px; background: transparent; }
.fx-ui .ub.row i { flex: 1; background: #2A2636; border-radius: 6px; }
.fx-ui .ub.row i.hl { background: linear-gradient(135deg, #4F8CFF, #6C5CE7); }
.fx-ui .ub:nth-child(1) { animation-delay: .1s; } .fx-ui .ub:nth-child(2) { animation-delay: .3s; }
.fx-ui .ub:nth-child(3) { animation-delay: .5s; } .fx-ui .ub:nth-child(4) { animation-delay: .7s; }
@keyframes popIn { from { opacity: 0; transform: scale(.7) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.fx-office { display: flex; align-items: center; gap: 8px; padding: 12px; background: #12181F; height: 100%; }
.fx-office .tbl { flex: 1; display: grid; gap: 4px; }
.fx-office .tbl span { height: 9px; background: #2A3648; border-radius: 3px; }
.fx-office .arrow { color: var(--primary); font-size: 16px; font-weight: 800; }
.fx-office .chart { flex: 1; height: 80px; display: flex; align-items: flex-end; gap: 4px; }
.fx-office .chart i { flex: 1; background: linear-gradient(180deg, #FFB400, var(--primary), var(--pink)); border-radius: 2px 2px 0 0; transform-origin: bottom; animation: barGrow 3s ease infinite; }
.fx-office .chart i:nth-child(2) { animation-delay: .15s; } .fx-office .chart i:nth-child(3) { animation-delay: .3s; } .fx-office .chart i:nth-child(4) { animation-delay: .45s; }
@keyframes barGrow { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); } }

.fx-compare { position: relative; height: 100%; }
.fx-compare .after { position: absolute; inset: 0; background: linear-gradient(135deg, #2E7D5B, #1F6E8C, #8B5CF6); }
.fx-compare .after::after { content: "✨ 成片"; position: absolute; right: 10px; bottom: 8px; color: #fff; font-size: 11px; font-weight: 700; }
.fx-compare .before { position: absolute; top: 0; bottom: 0; left: 0; width: 52%; background: linear-gradient(135deg, #5A5A5A, #8A8A8A, #4A4A4A); border-right: 2px solid #fff; animation: slideCmp 4s ease infinite; overflow: hidden; }
.fx-compare .before::after { content: "原图"; position: absolute; left: 8px; bottom: 8px; color: #fff; font-size: 11px; font-weight: 700; }
.fx-compare .handle { position: absolute; top: 0; bottom: 0; left: 52%; width: 2px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.8); animation: slideCmp 4s ease infinite; }
.fx-compare .knob { position: absolute; top: 50%; left: 52%; transform: translate(-50%, -50%); width: 22px; height: 22px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #333; animation: slideCmp 4s ease infinite; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
@keyframes slideCmp { 0%,100% { left: 52%; } 50% { left: 70%; } }

.fx-type { padding: 20px 16px; background: linear-gradient(160deg, #17141F, #0F0D16); height: 100%; display: flex; flex-direction: column; gap: 10px; }
.fx-type .line { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: #E8E3F0; white-space: nowrap; overflow: hidden; width: 0; animation: typing 2.8s steps(20) infinite; }
.fx-type .line.hl { color: #FFA657; }
.fx-type .line.cur { border-right: 2px solid var(--primary); animation: typing 2.8s steps(20) infinite, blink 1s step-end infinite; }
@keyframes typing { 0% { width: 0; } 60% { width: 100%; } 85% { width: 100%; } 100% { width: 0; } }
@keyframes blink { 0%,100% { border-color: var(--primary); } 50% { border-color: transparent; } }

.fx-video { position: relative; height: 100%; }
.fx-video .vs { position: absolute; inset: 0; background: linear-gradient(135deg, #3B2F63, #1F3A5F 45%, #14333F); display: flex; align-items: center; justify-content: center; animation: screenPulse 3s ease infinite; }
.fx-video .vs::after { content: "▶"; font-size: 30px; color: rgba(255,255,255,.9); }
.fx-video .tl { position: absolute; left: 10px; right: 10px; bottom: 8px; height: 3px; background: rgba(255,255,255,.2); border-radius: 2px; overflow: hidden; }
.fx-video .tl i { position: absolute; top: 0; left: 0; height: 100%; width: 100%; background: linear-gradient(90deg, var(--primary), var(--pink)); animation: progressFill 3.5s linear infinite; }
@keyframes screenPulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.3) saturate(1.2); } }
@keyframes progressFill { 0% { width: 0; } 70% { width: 100%; } 100% { width: 100%; } }

.fx-growth { position: relative; height: 100%; background: linear-gradient(160deg, #101722, #0B0F16); padding: 16px 14px; }
.fx-growth svg { width: 100%; height: 100%; }
.fx-growth .line-path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: drawLine 3s ease forwards infinite; }
.fx-growth .dot { animation: pulse 1.5s ease infinite; }
@keyframes drawLine { 0% { stroke-dashoffset: 300; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.fx-browser { position: relative; height: 100%; background: #141821; padding: 10px; }
.fx-browser .bp { height: 100%; background: #fff; border-radius: 8px; padding: 14px; position: relative; overflow: hidden; }
.fx-browser .bp .brow { width: 70%; height: 10px; background: #E5E7EB; border-radius: 3px; }
.fx-browser .bp .brow:nth-child(2) { margin: 8px 0; width: 90%; }
.fx-browser .bp .btn-x { position: absolute; bottom: 16px; right: 16px; width: 52px; height: 26px; border-radius: 6px; background: #3B82F6; color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; animation: btnPress 3.5s ease infinite; }
.fx-browser .cursor { position: absolute; font-size: 18px; z-index: 9; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); animation: cursorMove 3.5s ease infinite; }
@keyframes cursorMove { 0%,8% { top: 30%; left: 20%; } 55% { top: 30%; left: 20%; } 70% { top: 72%; left: 72%; } 100% { top: 72%; left: 72%; } }
@keyframes btnPress { 0%,68% { transform: scale(1); background: #3B82F6; } 72%,100% { transform: scale(.92); background: #22C55E; } }

/* ---------- 徽章 / 领域小标 ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; letter-spacing: .5px; }
.badge-gold { background: linear-gradient(135deg, #FFE9A8, #FFC93C 40%, #E0A100 75%, #B27A00); color: #5C3D00; box-shadow: 0 3px 10px rgba(255,180,0,.5), inset 0 1px 0 rgba(255,255,255,.7); }
.badge-silver { background: linear-gradient(135deg, #FFF, #D6DAE1 40%, #A8AFBB 75%, #8A93A3); color: #3E4654; box-shadow: 0 3px 10px rgba(150,160,175,.45), inset 0 1px 0 rgba(255,255,255,.85); }
.badge-bronze { background: linear-gradient(135deg, #F3C08D, #D69A5A 40%, #B06E2F 75%, #8A5220); color: #4A2B0E; box-shadow: 0 3px 10px rgba(205,127,50,.45), inset 0 1px 0 rgba(255,255,255,.5); }
.badge-none { background: #F1EAE2; color: #8A7A6B; }

/* ============================================================
   榜单
   ============================================================ */
.rank-item { display: flex; align-items: center; gap: 14px; padding: 13px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; transition: .2s; text-decoration: none; }
.rank-item:hover { border-color: #ffd9b8; box-shadow: 0 8px 20px rgba(255,107,0,.1); transform: translateX(2px); }
.rank-no { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: #F1EAE2; color: var(--muted); flex-shrink: 0; }
.rank-no.t1 { background: linear-gradient(135deg, #FFE259, #FFB400 45%, #D98E00); color: #5C3D00; }
.rank-no.t2 { background: linear-gradient(135deg, #F5F7FA, #C9CCD6 45%, #9BA3B2); color: #3E4654; }
.rank-no.t3 { background: linear-gradient(135deg, #F3C08D, #D69A5A 45%, #B06E2F); color: #4A2B0E; }
.rank-item .nm { flex: 1; font-weight: 600; font-size: 14px; min-width: 0; }
.rank-item .nm small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- 热度榜大卡 ---- */
.rank-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rank-card { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; transition: .25s; box-shadow: 0 2px 10px rgba(26,21,16,.04); }
.rank-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(255,107,0,.16); border-color: #ffd9b8; }
.rank-medal { width: 50px; height: 50px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; background: #F1EAE2; color: var(--muted); }
.rank-medal.t1 { background: linear-gradient(135deg, #FFE259, #FFB400 45%, #D98E00); color: #5C3D00; box-shadow: 0 8px 20px rgba(255,180,0,.42); }
.rank-medal.t2 { background: linear-gradient(135deg, #F5F7FA, #C9CCD6 45%, #9BA3B2); color: #3E4654; box-shadow: 0 8px 20px rgba(155,163,178,.4); }
.rank-medal.t3 { background: linear-gradient(135deg, #F3C08D, #D69A5A 45%, #B06E2F); color: #4A2B0E; box-shadow: 0 8px 20px rgba(176,110,47,.4); }
.rank-card .rank-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rank-card .badge-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.rank-card h4 { font-size: 17px; line-height: 1.45; margin: 0 0 6px; }
.rank-card h4 a { text-decoration: none; }
.rank-card h4 a:hover { color: var(--primary); }
.rank-role { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.rank-desc { font-size: 13.5px; color: #7d6c5e; line-height: 1.72; flex: 1; }
.rank-tags { display: flex; flex-wrap: wrap; margin-top: 8px; }
.rank-tags .tag { margin: 0 6px 0 0; }
.rank-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.rank-foot .heat { font-size: 14.5px; }
.rank-foot .mi { white-space: nowrap; }
.rank-foot .spacer-x { flex: 1; }
@media (max-width: 860px) { .rank-grid { grid-template-columns: 1fr; gap: 14px; } }
@media (max-width: 560px) {
  .rank-card { padding: 16px; gap: 12px; }
  .rank-medal { width: 42px; height: 42px; border-radius: 13px; font-size: 17px; }
  .rank-card h4 { font-size: 16px; }
}

/* ============================================================
   筛选 chips / 面包屑
   ============================================================ */
.chip { display: inline-block; font-size: 13px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #6b5a4c; cursor: pointer; transition: .2s; user-select: none; }
.chip:hover { border-color: #ffd9b8; color: var(--primary); }
.chip.on { background: linear-gradient(120deg, var(--primary), var(--pink)); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(255,107,0,.3); }
.chip.on:hover { color: #fff; }
.filter-row { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; align-items: center; }
.filter-row .spacer { flex: 1; }

/* ---- 翻页器（热度榜） ----
   338 个 SKILL 一页放不下；没有翻页入口时后 300 个在榜上等于不存在。
   首页 / 末页做成显式按钮：18 页时只给「下一页」要点 17 次。 */
.pager {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; margin: 26px 0 4px;
}
.pg-btns { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 13px; color: var(--ink-2); text-decoration: none; transition: .18s;
}
.pg-btn:hover { border-color: #ffd9b8; color: var(--primary); background: #FFF6EE; }
.pg-btn.on {
  background: linear-gradient(120deg, var(--primary), var(--pink));
  color: #fff; border-color: transparent; font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 107, 0, .28);
}
.pg-btn.on:hover { color: #fff; }
.pg-btn.dis { opacity: .42; cursor: not-allowed; }
.pg-btn.dis:hover { border-color: var(--line); color: var(--ink-2); background: #fff; }
.pg-gap { color: var(--muted); font-size: 13px; padding: 0 2px; }
.pg-jump { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.pg-jump input {
  width: 64px; height: 34px; text-align: center;
  border: 1px solid var(--line); border-radius: 10px; background: #FFFBF6;
  color: var(--ink); font-size: 13px; outline: none; transition: .2s;
}
.pg-jump input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 107, 0, .12); }
.pg-info { font-size: 12.5px; color: var(--muted); }
@media (max-width: 820px) {
  .pager { flex-direction: column; gap: 10px; }
  .pg-info { order: -1; }
}

/* ---- 技能包列表的筛选面板（排序 / 领域 / 搜索三行） ----
   65 个包铺满一屏没法找，所以把三个维度收进一张卡里，纵向分行，
   领域 chips 会换行（16 个领域 + 全部）。

   ⚠️ 这张卡默认是**收起**的（`hidden` 属性由 JS 控制）：
   列表页的主角是「这些包值不值得点」，一上来铺三行控件，第一屏就只剩筛选、
   看不到任何卡片。收起后只留一条 40px 高的「筛选与排序」按钮，
   并把当前生效的条件写在按钮上，避免用户「不知道自己正被筛着」。 */
.exp-filter-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.ef-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  font-size: 13.5px; font-weight: 700;
  transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
}
.ef-toggle:hover { border-color: #ffd9b8; color: var(--primary); box-shadow: var(--sh-1); }
.ef-toggle .eft-ico { font-size: 13px; opacity: .75; }
.ef-toggle .eft-cur {
  font-weight: 500; font-size: 12.5px; color: var(--muted);
  max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ef-toggle .eft-caret { font-size: 11px; color: var(--muted); }
.ef-toggle[aria-expanded="true"] { border-color: #ffd9b8; color: var(--primary); background: #FFF9F3; }
.eft-count { font-size: 13px; color: var(--muted); }
.exp-filter {
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px 18px; margin-bottom: 26px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--sh-1);
}
.exp-filter[hidden] { display: none; }
.ef-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.ef-label {
  flex: none; width: 40px; padding-top: 7px;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.ef-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.ef-row .spacer { flex: 1; }
.ef-hint { font-size: 12px; color: var(--muted); align-self: center; }
/* chip 里的数量：不抢视觉，但要能一眼看出「这个领域有几个包」 */
.chip-n { font-style: normal; font-size: 11px; font-weight: 600; opacity: .7; margin-left: 3px; }
.ef-search { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 0; max-width: 560px; }
.ef-search input {
  flex: 1; min-width: 0; height: 38px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 13px; color: var(--ink); font-family: inherit; outline: none;
  transition: .2s;
}
.ef-search input::placeholder { color: #b8a99b; }
.ef-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 107, 0, .12); }
.ef-search .btn { flex: none; }
@media (max-width: 720px) {
  /* 窄屏把「排序 / 领域 / 搜索」标签收成一行，chips 占满整行 */
  .ef-label { width: 100%; padding-top: 0; }
  .ef-search { max-width: none; }
}
.crumb { font-size: 13px; color: var(--muted); padding: 20px 0 6px; }
.crumb a { text-decoration: none; color: var(--muted); }
.crumb a:hover { color: var(--primary); }
.crumb b { color: var(--ink-2); }

/* ============================================================
   详情页
   ============================================================ */
.detail-head { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: 0 6px 24px rgba(26,21,16,.05); }
.detail-head h2 { font-size: 28px; font-weight: 800; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-head .meta { color: var(--muted); font-size: 13px; margin: 12px 0; }
.detail-head .meta .heat { font-size: 13px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.markdown { background: #0D1117; border-radius: 16px; padding: 24px; color: #C9D1D9; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.75; overflow-x: auto; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4 { margin: 16px 0 8px; font-size: 15px; }
.markdown h1:first-child, .markdown h2:first-child { margin-top: 0; }
.markdown h1 { color: #FFA657; font-size: 17px; }
.markdown h2, .markdown h3, .markdown h4 { color: #79C0FF; }
.markdown p { margin: 8px 0; }
.markdown ul, .markdown ol { margin: 8px 0 8px 22px; }
.markdown li { margin: 3px 0; }
.markdown code { background: rgba(110,118,129,.4); padding: 2px 6px; border-radius: 5px; font-size: 12px; }
.markdown pre { background: #161B22; border: 1px solid #2A2F3A; border-radius: 10px; padding: 14px; overflow-x: auto; margin: 10px 0; }
.markdown pre code { background: none; padding: 0; }
.markdown blockquote { border-left: 3px solid #FFA657; padding-left: 12px; color: #8B949E; margin: 10px 0; }
.markdown table { border-collapse: collapse; margin: 12px 0; width: 100%; font-size: 12px; }
.markdown th, .markdown td { border: 1px solid #2A2F3A; padding: 7px 10px; text-align: left; }
.markdown th { background: #161B22; color: #FFA657; }
.markdown a { color: #58A6FF; }
.markdown hr { border: none; border-top: 1px solid #2A2F3A; margin: 14px 0; }

/* 「如何使用」这类成段说明文字：浅底深字、非等宽，适合阅读；
   内部的 pre/code 仍走深色，保持与 SKILL.md 预览一致的代码观感。 */
.md-prose { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; color: var(--ink-2); font-size: 14px; line-height: 1.85; overflow-x: auto; }
.md-prose h1, .md-prose h2, .md-prose h3, .md-prose h4 { margin: 20px 0 10px; font-size: 16px; color: var(--ink); }
.md-prose h1:first-child, .md-prose h2:first-child, .md-prose h3:first-child { margin-top: 0; }
.md-prose h2 { color: var(--primary); }
.md-prose p { margin: 10px 0; }
.md-prose ul, .md-prose ol { margin: 10px 0 10px 24px; }
.md-prose li { margin: 5px 0; }
.md-prose code { background: var(--bg-soft); border: 1px solid var(--line); color: #B4340A; padding: 2px 6px; border-radius: 5px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.md-prose pre { background: #0D1117; border-radius: 10px; padding: 14px; overflow-x: auto; margin: 12px 0; }
.md-prose pre code { background: none; border: none; color: #C9D1D9; padding: 0; }
.md-prose blockquote { border-left: 3px solid var(--primary); padding-left: 12px; color: var(--muted); margin: 12px 0; }
.md-prose table { border-collapse: collapse; margin: 12px 0; width: 100%; font-size: 13px; }
.md-prose th, .md-prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.md-prose th { background: var(--bg-soft); color: var(--ink); }
.md-prose a { color: var(--primary); }
.md-prose hr { border: none; border-top: 1px solid var(--line); margin: 16px 0; }
/* 正文里的长 token（URL / 一长串 JSON）默认不换行，会把容器顶宽 */
.md-prose { overflow-wrap: anywhere; }
.md-prose pre, .md-prose pre code { overflow-wrap: normal; }

/* ============================================================
   演示区（详情页）
   ============================================================ */
.demo { border-radius: 20px; overflow: hidden; background: #0D1117; border: 1px solid #2A2F3A; }
.demo-head { display: flex; align-items: center; gap: 8px; padding: 13px 18px; background: #161B22; color: #c9d1d9; font-size: 13px; font-weight: 600; border-bottom: 1px solid #2A2F3A; }
.demo-head .dots { display: flex; gap: 5px; margin-right: 6px; }
.demo-head .dots i { width: 10px; height: 10px; border-radius: 50%; }
.demo-head .dots i:nth-child(1) { background: #FF5F57; } .demo-head .dots i:nth-child(2) { background: #FEBC2E; } .demo-head .dots i:nth-child(3) { background: #28C840; }
.demo-head .tag-d { margin-left: auto; font-size: 11px; color: #FFA657; background: rgba(255,166,87,.12); padding: 3px 10px; border-radius: 999px; }
.demo-body { position: relative; min-height: 260px; }
.demo-body video, .demo-body img { width: 100%; max-height: 460px; display: block; background: #000; }
.demo-none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 240px; color: #6b7280; font-size: 13px; background: repeating-linear-gradient(45deg, #10151C, #10151C 12px, #0D1117 12px, #0D1117 24px); }
.demo-none .big { font-size: 34px; }

.video-demo { position: relative; }
.video-demo .screen { position: relative; height: 260px; background: linear-gradient(135deg, #3B2F63, #1F3A5F 45%, #14333F); animation: screenPulse 3s ease infinite; display: flex; align-items: center; justify-content: center; }
.video-demo .screen .playbig { position: relative; width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.15); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; box-shadow: 0 0 0 8px rgba(255,255,255,.06); }
.video-demo .screen .proc { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.55); color: #FFA657; font-size: 12px; padding: 5px 16px; border-radius: 999px; backdrop-filter: blur(4px); white-space: nowrap; }
.video-demo .timeline { padding: 14px 18px; background: #161B22; }
.video-demo .track { position: relative; height: 34px; background: #0D1117; border-radius: 6px; overflow: hidden; }
.video-demo .clip { position: absolute; top: 5px; height: 24px; border-radius: 4px; }
.video-demo .c1 { left: 2%; width: 22%; background: linear-gradient(135deg, #4F8CFF, #6C5CE7); }
.video-demo .c2 { left: 27%; width: 30%; background: linear-gradient(135deg, #FF6B00, #FF3366); animation: clipBlink 3s ease infinite; }
.video-demo .c3 { left: 60%; width: 36%; background: linear-gradient(135deg, #22C55E, #0EA5B9); }
.video-demo .playhead { position: absolute; top: 0; width: 2px; height: 100%; background: #fff; box-shadow: 0 0 8px #fff; animation: playheadMove 3.5s linear infinite; }
.video-demo .out-row { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid #2A2F3A; flex-wrap: wrap; }
.video-demo .out-chip { flex: 1; min-width: 150px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, #3B2F63, #1F3A5F); display: flex; align-items: center; justify-content: center; color: #c9d1d9; font-size: 12px; gap: 6px; }
.video-demo .out-chip.done { background: linear-gradient(135deg, #14333F, #0D9488); color: #fff; border: 1px solid rgba(34,197,94,.4); }
@keyframes clipBlink { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.5); } }
@keyframes playheadMove { 0% { left: 0; } 100% { left: calc(100% - 2px); } }

.office-demo { display: flex; align-items: stretch; padding: 24px; gap: 20px; background: #12181F; flex-wrap: wrap; }
.office-demo .col { flex: 1; min-width: 200px; }
.office-demo .cap { color: #8d94a3; font-size: 11px; margin-bottom: 10px; }
.office-demo .tbl { display: grid; gap: 4px; background: #0D1117; border-radius: 10px; padding: 14px; }
.office-demo .tbl span { height: 10px; background: #2A3648; border-radius: 3px; }
.office-demo .tbl span.hl { background: rgba(255,107,0,.5); }
.office-demo .mid { display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 22px; font-weight: 800; animation: pulse 1.6s ease infinite; }
.office-demo .chart { display: flex; align-items: flex-end; gap: 8px; height: 140px; background: #0D1117; border-radius: 10px; padding: 14px; }
.office-demo .chart i { flex: 1; background: linear-gradient(180deg, #FFB400, var(--primary), var(--pink)); border-radius: 3px 3px 0 0; transform-origin: bottom; animation: barGrow 3s ease infinite; }
.office-demo .chart i:nth-child(2) { animation-delay: .2s; } .office-demo .chart i:nth-child(3) { animation-delay: .4s; } .office-demo .chart i:nth-child(4) { animation-delay: .6s; } .office-demo .chart i:nth-child(5) { animation-delay: .8s; }

/* 小尺寸演示缩略（领域页） */
.demo-thumb { height: 120px; border-radius: 12px; overflow: hidden; position: relative; background: #0D1117; margin-bottom: 12px; }
.demo-thumb .lbl { position: absolute; top: 8px; left: 10px; z-index: 6; font-size: 10px; color: #fff; background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 999px; backdrop-filter: blur(4px); }

/* ============================================================
   评论区
   ============================================================ */
.comment-list { display: flex; flex-direction: column; gap: 12px; }
.comment { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.comment.reply { margin-left: 44px; background: #FFFCF9; }
.comment .c-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--primary), var(--pink)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.comment .c-body { flex: 1; min-width: 0; }
.comment .c-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment .c-name { font-weight: 600; font-size: 13px; }
.comment .c-time { font-size: 12px; color: var(--muted); }
.comment .c-content { font-size: 14px; line-height: 1.7; color: var(--ink-2); word-break: break-word; white-space: pre-wrap; }
.comment .c-actions { margin-top: 8px; }
.comment-form { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.comment-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; min-height: 84px; resize: vertical; outline: none; background: #FFFBF6; }
.comment-form textarea:focus { border-color: #ffd9b8; }
.comment-form .cf-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

/* ============================================================
   表单
   ============================================================ */
.form { max-width: 720px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: 0 6px 24px rgba(26,21,16,.05); }
.f { margin-bottom: 18px; }
.f label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.f label em { color: var(--pink); font-style: normal; }
.f .hint { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.input, .textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; outline: none; background: #FFFBF6; transition: .2s; color: var(--ink); }
.input:focus, .textarea:focus, select:focus { border-color: #ffb87a; background: #fff; }
.textarea { min-height: 100px; resize: vertical; line-height: 1.7; }
.textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; min-height: 180px; }
select { cursor: pointer; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9A8A7B 50%), linear-gradient(135deg, #9A8A7B 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.upload-zone { border: 2px dashed #E8C9AE; border-radius: 14px; padding: 26px; text-align: center; color: var(--muted); font-size: 13px; background: #FFFBF6; cursor: pointer; transition: .2s; }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--primary); background: #FFF4E8; color: var(--primary); }
.upload-zone.has-file { border-style: solid; border-color: #A7F3D0; background: #F1FDF6; color: #0F9D58; font-weight: 600; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   登录页
   ============================================================ */
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 0 20px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: 0 10px 34px rgba(26,21,16,.08); margin-top: -30px; }
.auth-tabs { display: flex; gap: 6px; background: #F1E9E0; border-radius: 999px; padding: 5px; margin-bottom: 24px; }
.auth-tabs button { flex: 1; border: none; background: transparent; color: #7a6a5c; font-size: 14px; font-weight: 600; padding: 10px 0; border-radius: 999px; cursor: pointer; }
.auth-tabs button.active { background: linear-gradient(120deg, var(--primary), var(--pink)); color: #fff; }
.tip-box { background: #FFF4E8; border: 1px solid #FFE0C4; border-radius: 12px; padding: 12px 14px; font-size: 12px; color: #B36A1F; line-height: 1.7; margin-top: 18px; }

/* ============================================================
   管理员登录（独立入口 #/admin-login）
   刻意与前台登录区分：深色控制台底色、无导航、无注册。
   ============================================================ */
.admin-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px;
  background: radial-gradient(1100px 560px at 50% -8%, #3E2C1D 0%, #241B13 48%, #16110C 100%); }
.admin-auth-box { width: 100%; max-width: 400px; background: #FFFCF9; border-radius: 22px;
  padding: 30px 30px 24px; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.aa-brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.4px; }
.aa-brand .aa-shield { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 17px; background: linear-gradient(135deg, #2B2118, #4E3B27); }
.aa-brand em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #5C3D00; padding: 3px 9px;
  border-radius: 999px; background: linear-gradient(120deg, #FFD36B, #FFA53C); }
.aa-sub { font-size: 12.5px; color: var(--muted); margin: 10px 0 20px; line-height: 1.7; }
.aa-sub a { color: var(--primary); text-decoration: none; }
.aa-sub a:hover { text-decoration: underline; }
/* 「管理员登录会结束当前前台会话」的提示条（第八轮：身份互斥）。
   用暖色告警而不是错误红 —— 这是预期行为，不是出错。 */
.aa-note { font-size: 12.5px; line-height: 1.7; color: #7A4A00; background: #FFF6E5;
  border: 1px solid #FFE0A8; border-radius: 12px; padding: 10px 12px; margin: -8px 0 18px; }
.aa-back { display: block; text-align: center; margin-top: 14px; font-size: 12.5px; color: var(--muted); text-decoration: none; }
.aa-back:hover { color: var(--primary); }
/* 页脚里的管理员入口：低调一些，不喧宾夺主 */
/* （页脚原来有一条 .admin-entry —— 「管理员入口」的弱化样式。
   页脚已不再出现任何后台入口，规则删除。后台走独立 URL：/admin、/admin-login。） */

/* ============================================================
   管理后台
   ============================================================ */
.admin { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin-top: 24px; min-height: 520px; }
.aside { width: 220px; background: #FBF4EC; border-right: 1px solid var(--line); padding: 18px 12px; flex-shrink: 0; }
.mi { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px; font-size: 14px; cursor: pointer; color: #6b5a4c; transition: .2s; margin-bottom: 4px; }
.mi:hover { background: #F5EADF; }
.mi.on { background: linear-gradient(120deg, var(--primary), var(--pink)); color: #fff; font-weight: 600; }
.main-panel { flex: 1; padding: 24px; min-width: 0; }

/* 后台列表页头部：标题 + 工具条（搜索框 / 主按钮） */
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.adm-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-search { display: flex; align-items: center; background: #FFFBF6; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; transition: border-color .2s; }
.adm-search:focus-within { border-color: #ffb87a; }
.adm-search input { width: 250px; max-width: 46vw; height: 36px; border: none; background: transparent; padding: 0 14px; font-size: 13px; outline: none; color: var(--ink); }
.adm-search input::placeholder { color: var(--muted); }
.adm-search button { border: none; height: 36px; padding: 0 16px; background: linear-gradient(120deg, var(--primary), var(--pink)); color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; }
.adm-search button:hover { filter: brightness(1.07); }
.adm-search .adm-clear { background: none; color: var(--muted); padding: 0 12px; }
.adm-search .adm-clear:hover { color: var(--danger); filter: none; }
/* 后台列表的「按领域」下拉。
   全局 select 是 width:100%（给弹窗表单用的），丢进工具条会把整行撑开，
   所以这里收窄成一颗和搜索框同高的胶囊。箭头沿用全局 select 的两条渐变，
   只把 padding-right 留出来 —— 覆盖 background 简写会把箭头抹掉。 */
.adm-filter {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 6px 0 12px;
  background: #FFFBF6; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s;
}
.adm-filter:focus-within { border-color: #ffb87a; }
.adm-filter .af-ico { font-size: 13px; opacity: .8; }
.adm-filter select {
  width: auto; max-width: 200px; height: 34px;
  border: none; border-radius: 999px; background-color: transparent;
  padding: 0 26px 0 2px; font-size: 13px; color: var(--ink);
}
.adm-tip { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.adm-tip a { color: var(--primary); text-decoration: none; }
.adm-tip a:hover { text-decoration: underline; }
@media (max-width: 820px) { .admin { flex-direction: column; } .aside { width: 100%; display: flex; gap: 6px; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); } .mi { white-space: nowrap; margin-bottom: 0; } }
.audit-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.audit-card h4 { font-size: 15px; margin-bottom: 4px; }
.kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .kpi { grid-template-columns: repeat(2, 1fr); } }
.kpi .k { background: linear-gradient(135deg, #FFF4E8, #FFEAF2); border-radius: 16px; padding: 18px; }
.kpi .k b { font-size: 24px; display: block; }
.kpi .k span { font-size: 12px; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-size: 12px; color: var(--muted); font-weight: 600; background: #FDF8F3; }
.table tr:hover td { background: #FFFCF9; }
.table .grow { white-space: normal; }
/* 后台表格列多，窄屏下若任由浏览器压缩，名称列会被挤成「一列一个字」。
   给一个下限宽度，让外层 overflow-x:auto 真正横向滚动。 */
.main-panel .table { min-width: 760px; }
.pill-status { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.st-pending { background: #FFF4E0; color: #B36A1F; }
.st-approved { background: #E8FBF0; color: #0F9D58; }
.st-featured { background: linear-gradient(135deg, #FFE9A8, #FFC93C); color: #5C3D00; }
.st-rejected { background: #FDECEC; color: var(--danger); }
.st-on { background: #E8FBF0; color: #0F9D58; }
.st-off { background: #F1EAE2; color: var(--muted); }

/* 表格里的操作按钮组：换行排列，避免撑破表格 */
.row-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-acts .btn-sm { padding: 6px 11px; font-size: 12px; }

/* 技能编排选择器 */
.pick-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .pick-wrap { grid-template-columns: 1fr; } }
.pick-col { min-width: 0; }
.pick-hd { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.pick-list { border: 1px solid var(--line); border-radius: 12px; padding: 6px; max-height: 260px; overflow-y: auto; background: #FFFBF6; }
.pick-item { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 9px; font-size: 13px; }
.pick-item:hover { background: #FFF1E2; }
.pick-item.add { cursor: pointer; }
.pick-no { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(120deg, var(--primary), var(--pink)); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pick-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.pick-tag { flex-shrink: 0; font-size: 11px; color: var(--muted); }
.pick-plus { flex-shrink: 0; color: var(--primary); font-weight: 700; }
.pick-x { flex-shrink: 0; width: 22px; height: 22px; border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 11px; line-height: 1; cursor: pointer; color: #6b5a4c; padding: 0; }
.pick-x:hover { border-color: #ffb87a; color: var(--primary); }
.pick-empty { padding: 20px 10px; text-align: center; color: var(--muted); font-size: 12px; }

/* ============================================================
   空态 / 骨架屏 / 加载
   ============================================================ */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-size: 42px; display: block; margin-bottom: 12px; opacity: .8; }
.empty p { font-size: 14px; }
.skeleton { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.skeleton .sk { background: linear-gradient(90deg, #F3EDE7 25%, #FAF5F0 37%, #F3EDE7 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 10px; }
.skeleton .sk.img { height: 150px; margin-bottom: 14px; border-radius: 14px; }
.skeleton .sk.line { height: 13px; margin-bottom: 9px; }
.skeleton .sk.line.w60 { width: 60%; }
.skeleton .sk.line.w40 { width: 40%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.spinner.dark { border-color: rgba(255,107,0,.25); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }
.page-loading { padding: 80px 0; text-align: center; color: var(--muted); }

/* ============================================================
   Toast / Modal
   ============================================================ */
.toast-root { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; min-width: 200px; max-width: 90vw; background: #1A1510; color: #fff; border-radius: 999px; padding: 12px 22px; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.28); display: flex; align-items: center; gap: 9px; animation: toastIn .28s cubic-bezier(.2,.9,.3,1.3); }
.toast.out { animation: toastOut .22s ease forwards; }
.toast.success { background: linear-gradient(120deg, #16A34A, #0F9D58); }
.toast.error { background: linear-gradient(120deg, #DC2626, #E5484D); }
.toast.info { background: #1A1510; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px) scale(.97); } }

.modal-mask { position: fixed; inset: 0; background: rgba(20,16,12,.5); backdrop-filter: blur(3px); z-index: 9990; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: 22px; width: 100%; max-width: 520px; max-height: 86vh; overflow: auto; box-shadow: 0 24px 60px rgba(0,0,0,.32); animation: modalIn .26s cubic-bezier(.2,.9,.3,1.15); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { padding: 20px 24px 0; font-size: 17px; font-weight: 800; }
.modal-body { padding: 14px 24px 20px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.modal-body .input, .modal-body select { margin-top: 10px; }
.modal-foot { padding: 0 24px 22px; display: flex; justify-content: flex-end; gap: 10px; }

/* ============================================================
   页脚
   ============================================================ */
.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 50px 0 40px; }
.footer a { color: var(--muted); text-decoration: none; margin: 0 6px; }
.footer a:hover { color: var(--primary); }
.footer .copy { margin-top: 8px; font-size: 12px; opacity: .8; line-height: 1.9; }
.footer .ft-nav { margin-top: 18px; }
/* 服务协议 / 隐私协议 / 联系我们 单独一行、颜色略深：
   这三个是「要能一眼找到」的入口，不能和上面那排浏览性链接混在一起。 */
.footer .ft-strong { margin-top: 10px; }
.footer .ft-strong a { color: var(--ink-2); font-weight: 600; }

/* ============================================================
   详情页优化：中文注记 / 效果详解 / 一键使用 / 演示爆点 / SKILL.md 折叠
   ============================================================ */

/* ---------- ① 英文标题 / 简介后的中文注记 ---------- */
.zh-note {
  display: inline-block; font-size: 12px; font-weight: 600; color: #B36A1F;
  background: #FFF1E2; border: 1px solid #FFE0C4; border-radius: 8px;
  padding: 2px 10px; margin: 0 0 6px; line-height: 1.5;
}
.zh-note.lg { font-size: 13px; margin: 10px 0 0; padding: 4px 12px; }
/* 「English * 中文翻译」：中文紧跟英文后面同一行。
   字号略小、颜色偏暖，既让普通用户一眼看懂，又不抢英文原名的层级。
   nowrap 是为了不让「*」和中文被拆到两行；换行只会发生在英文与「*」之间。 */
.zh-inline {
  font-size: .78em; font-weight: 600; color: #B36A1F;
  white-space: nowrap; margin-left: 2px;
}
.desc-zh {
  font-size: 13px; color: #7A6A5C; line-height: 1.7; margin-top: 6px;
  padding-left: 10px; border-left: 2px solid #FFD9B8;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.desc-zh.lg { -webkit-line-clamp: unset; font-size: 14px; color: #6b5a4c; margin-top: 10px; }

/* ---------- ② 演示媒体无内容时的中文爆点 ----------
   这块渲染在 .demo 深色面板内部，所以用「浅色卡片 + 深色字」保证可读性，
   不能沿用页面浅底那套半透明橙底（叠在深色上会糊成一片看不清）。 */
.demo-highlight {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 14px 16px 0; padding: 16px 20px; border-radius: 14px;
  background: linear-gradient(120deg, #FFF7F0, #FFEDF3);
  border: 1px solid rgba(255,217,184,.85);
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}
.demo-highlight .dh-ico { font-size: 24px; line-height: 1.15; flex: 0 0 auto; }
.demo-highlight .dh-label { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: .6px; margin-bottom: 6px; }
.demo-highlight .dh-text { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.75; }

/* ---------- ③ 效果演示下方的「能做到什么」 ---------- */
.effect-note { margin-top: 16px; }
.effect-note .en-head {
  font-size: 14px; font-weight: 700; color: var(--ink-2);
  margin-bottom: 10px; padding-left: 10px; border-left: 3px solid var(--primary);
}
.effect-note .md-prose ul { margin: 6px 0 6px 20px; }
.effect-note .md-prose li { margin: 5px 0; }
.effect-note .md-prose p { margin: 6px 0; }

/* ---------- ④ 一键使用面板 ---------- */
.use-one {
  background: linear-gradient(140deg, #FFF9F3, #FFFFFF);
  border: 1px solid #FFE0C4; border-radius: 18px; padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(255,107,0,.07);
}
.use-one .uo-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.use-one .uo-ico {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  box-shadow: 0 8px 18px rgba(255,107,0,.32);
}
.use-one .uo-txt h4 { font-size: 16px; margin-bottom: 5px; }
.use-one .uo-txt p { font-size: 13px; color: var(--muted); line-height: 1.7; }
/* 「更推荐部署到本地 Agent」那一段：同一块里的第二条建议，
   用浅暖底 + 左侧竖线标出来，免得和上一段描述糊成一片。 */
.use-one .uo-txt p.uo-rec {
  margin-top: 8px; padding: 9px 12px; border-radius: 10px;
  background: #FFF6EC; border-left: 3px solid var(--primary);
  color: var(--ink-2); font-size: 12.5px; line-height: 1.65;
}
.use-one .uo-txt p.uo-rec b { color: var(--primary); }
.use-one .uo-code {
  background: #2A2118; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
  overflow-x: auto;
}
.use-one .uo-code code {
  color: #FFD9B8; font-size: 13px; line-height: 1.7; white-space: pre-wrap;
  word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.use-one .uo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* 下载链接的有效期说明：链接本身是签名票据、1 小时后失效，
   这句话必须贴着链接说，否则用户拿到一个「明天就点不开」的地址会以为是坏的。 */
.use-one .uo-expire {
  font-size: 12.5px; line-height: 1.7; color: #7A6A5C;
  margin: -2px 0 14px; padding: 8px 12px;
  background: #FFF6EE; border: 1px dashed #FFD9B8; border-radius: 10px;
}
.use-one .uo-expire b { color: #B4340A; }
.use-one .uo-expire.warn { background: #FEF2F2; border-color: #FBD5D5; color: #B42318; }
.use-more { margin-top: 16px; }
.use-more > summary {
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--primary);
  padding: 8px 0; list-style: none; user-select: none;
}
.use-more > summary::-webkit-details-marker { display: none; }
.use-more > summary::before { content: "▸ "; }
.use-more[open] > summary::before { content: "▾ "; }
.use-more .md-prose { margin-top: 10px; }

/* ---------- ⑤ SKILL.md 默认折叠 ---------- */
.md-details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.md-details > summary {
  cursor: pointer; list-style: none; user-select: none;
  padding: 16px 20px; font-size: 16px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.md-details > summary::-webkit-details-marker { display: none; }
.md-details > summary::after {
  content: "▾"; margin-left: auto; color: var(--muted); font-size: 13px;
  transition: transform .2s;
}
.md-details[open] > summary::after { transform: rotate(180deg); }
.md-details > summary:hover { background: #FFF9F3; }
.md-details .md-hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.md-details .markdown { border-radius: 0; margin: 0; }

/* ---- 技能包文件浏览（详情页 · 展开 details 后显示） ----
   左目录 + 右预览。列宽用 minmax(0,…) 而不是裸 1fr：
   文件名带 nowrap + ellipsis，裸 1fr（= minmax(auto,1fr)）会被最长文件名顶大，
   反过来把右侧预览区挤扁。 */
.file-browser {
  display: grid; grid-template-columns: minmax(0, 236px) minmax(0, 1fr);
  border-top: 1px solid var(--line); min-height: 420px;
}
.fb-side {
  display: flex; flex-direction: column; min-width: 0;
  border-right: 1px solid var(--line); background: #FFFCF9;
}
.fb-side-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; font-size: 12px; font-weight: 700; color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.fb-side-head b { color: var(--primary); }
/* flex:1 能长 + min-height:0 能缩 + max-height 封顶：三者缺一，
   115 个文件的包会把整个详情页撑长（见 README 的 CSS 布局坑） */
.fb-list { flex: 1 1 auto; min-height: 0; max-height: 520px; overflow-y: auto; padding: 6px; }
/* 目录树：文件夹一行（折叠箭头 + 图标 + 名字 + 递归文件数），子节点收在 .fb-kids 里。
   默认折叠；缩进由 .fb-kids 的 padding-left 逐级叠加，不用按层级算 padding。 */
.fb-folder {
  display: flex; align-items: center; gap: 7px; width: 100%;
  padding: 7px 9px; border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  text-align: left; cursor: pointer; transition: .15s;
}
.fb-folder:hover { background: #FFF1E4; color: var(--primary); }
.fb-caret { flex: none; width: 10px; font-size: 10px; color: var(--muted); }
.fb-folder:hover .fb-caret { color: var(--primary); }
.fb-kids { padding-left: 13px; }
.fb-folder .fb-sz { font-weight: 500; }
.fb-item {
  display: flex; align-items: center; gap: 7px; width: 100%;
  padding: 7px 9px; border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-size: 12.5px; color: var(--ink-2); text-align: left;
  cursor: pointer; transition: .15s;
}
.fb-item:hover { background: #FFF1E4; color: var(--primary); }
.fb-item.on { background: linear-gradient(120deg, var(--primary), var(--pink)); color: #fff; }
.fb-item.on:hover { color: #fff; }
.fb-ico { flex: none; font-size: 13px; }
.fb-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-sz { flex: none; font-size: 10.5px; opacity: .65; }
.fb-item.on .fb-sz { opacity: .85; }
.fb-side-foot { padding: 9px 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.fb-main { display: flex; flex-direction: column; min-width: 0; }
.fb-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fff;
}
.fb-path { font-size: 13px; font-weight: 700; color: var(--ink); word-break: break-all; }
.fb-meta { font-size: 11.5px; color: var(--muted); }
.fb-head-acts { margin-left: auto; display: flex; gap: 8px; flex: none; }
.fb-act {
  font-size: 12px; color: var(--primary); text-decoration: none;
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px;
  white-space: nowrap; transition: .18s;
}
.fb-act:hover { border-color: #ffd9b8; background: #FFF6EE; }
.fb-act-dl {
  background: linear-gradient(120deg, var(--primary), var(--pink));
  color: #fff; border-color: transparent;
}
.fb-act-dl:hover { color: #fff; background: linear-gradient(120deg, var(--primary), var(--pink)); filter: brightness(1.05); }
.fb-body { flex: 1 1 auto; min-height: 0; max-height: 520px; overflow: auto; background: #fff; }
.fb-pre {
  margin: 0; padding: 16px 18px; background: #FCFAF8;
  font-size: 12.5px; line-height: 1.7; overflow-x: auto;
}
.fb-pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink-2); white-space: pre;
}
.fb-center { display: flex; align-items: center; justify-content: center; padding: 24px; }
.fb-img { max-width: 100%; max-height: 480px; border-radius: 10px; }
.fb-empty, .fb-loading { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.9; }
.fb-trunc {
  padding: 10px 18px; font-size: 12px; color: var(--warn);
  background: #FFF8EC; border-top: 1px solid var(--line);
}

/* 文件浏览器里的 Markdown 排版：**浅底深字**。
   注意别把它交回给上面的 `.markdown` —— 那是给深色代码区设计的（浅灰字 #C9D1D9），
   而 `.fb-body` 的白底声明在它后面、同优先级，会把深色背景覆盖掉，
   结果就是「白底 + 浅灰字」，几乎看不清。这里显式重定义一套可读的文档样式。 */
.fb-body.markdown {
  background: #fff; color: var(--ink-2);
  font-family: inherit; font-size: 14px; line-height: 1.85;
  padding: 20px 26px;
}
.fb-body.markdown h1, .fb-body.markdown h2, .fb-body.markdown h3, .fb-body.markdown h4 {
  margin: 20px 0 10px; font-size: 16px; color: var(--ink); font-weight: 700;
}
.fb-body.markdown h1:first-child,
.fb-body.markdown h2:first-child,
.fb-body.markdown h3:first-child { margin-top: 0; }
.fb-body.markdown h1 { font-size: 20px; color: var(--primary); }
.fb-body.markdown h2 { color: var(--primary); }
.fb-body.markdown h3 { color: var(--ink); }
.fb-body.markdown p { margin: 10px 0; }
.fb-body.markdown strong { color: var(--ink); font-weight: 700; }
.fb-body.markdown ul, .fb-body.markdown ol { margin: 10px 0 10px 24px; }
.fb-body.markdown li { margin: 5px 0; }
.fb-body.markdown code {
  background: var(--bg-soft); border: 1px solid var(--line); color: #B4340A;
  padding: 2px 6px; border-radius: 5px; font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.fb-body.markdown pre { background: #0D1117; border: none; border-radius: 10px; padding: 14px; overflow-x: auto; margin: 12px 0; }
.fb-body.markdown pre code { background: none; border: none; color: #C9D1D9; padding: 0; }
.fb-body.markdown blockquote { border-left: 3px solid var(--primary); padding-left: 12px; color: var(--muted); margin: 12px 0; }
.fb-body.markdown table { border-collapse: collapse; margin: 12px 0; width: 100%; font-size: 13px; }
.fb-body.markdown th, .fb-body.markdown td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.fb-body.markdown th { background: var(--bg-soft); color: var(--ink); }
.fb-body.markdown a { color: var(--primary); }
.fb-body.markdown hr { border: none; border-top: 1px solid var(--line); margin: 16px 0; }
@media (max-width: 820px) {
  /* 窄屏改上下排：目录在上（限高可滚），预览在下 */
  .file-browser { grid-template-columns: 1fr; }
  .fb-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .fb-list { max-height: 240px; }
  .fb-head-acts { margin-left: 0; }
}

/* ============================================================
   包内文件查看窗口（#/view/<slug>?path=…）
   详情页那个「新窗口打开」以前直接把 /file/raw 丢给浏览器 —— 没有换行排版、
   没有目录、没有行号，几百行的 SKILL.md 打开就是一堆糊在一起的裸代码。
   这里是一张真正的阅读器：顶部标题栏 + 左侧目录树 + 右侧正文。
   目录树 / 正文复用详情页那套 .fb-* 组件（同一份 DOM 结构、同一套动作），
   只在外面套一层更宽的版心和「撑满视口」的尺寸约束。
   ============================================================ */
.viewer { padding: 4px 0 10px; }
.vw-head {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.vw-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.vw-title b { font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.vw-sub { font-size: 12.5px; color: var(--muted); }
.vw-acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* 查看窗口里的文件浏览器。
   ============================================================================
   2026-09-18 第六轮：从「固定高度的内嵌小窗口」改成「随内容展开的阅读页」。
   用户原话：「右侧展示具体文件时向下拉大展示高度，不要有小窗口的感觉，
   尽量展示全部内容」。
   改之前：height = calc(100dvh - 268px)（1440×900 下只有 632px），
   而一个 SKILL.md 的 scrollHeight 有 8878px —— 正文被关在 578px 的盒子里自己滚，
   观感就是个「小窗口」。而 2026-09-17 那轮修的 grid-template-rows 只解决了
   「被裁掉」，没解决「盒子太小」。
   现在：
     · 容器 height:auto + grid-template-rows:auto → 行高由内容决定，整页滚动；
     · .fb-body 不再自己滚（max-height:none + overflow:visible）→ 正文完整铺开；
     · 左栏 .fb-side 改 position:sticky → 正文再长，目录树也一直挂在视野里，
       不用滚回顶部才能换文件；
     · ⚠️ 容器必须 overflow:visible —— 祖先只要有 overflow:hidden/auto，
       sticky 的参照系就变成那个不滚动的盒子，sticky 直接失效。
       代价是圆角要自己补：左栏补左圆角、正文补右下圆角。
   ============================================================================ */
.viewer .file-browser {
  border: 1px solid var(--line); border-radius: 18px; overflow: visible;
  background: #fff; box-shadow: var(--sh-1);
  height: auto; max-height: none;
  /* 内容很短时也要占满一屏，避免「一句话 + 一大片页脚」的空旷感 */
  min-height: calc(100dvh - 240px);
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: start;
}
.viewer .fb-side {
  background: #FFFCF9; min-height: 0;
  position: sticky; top: 14px;
  max-height: calc(100dvh - 40px);
  border-radius: 18px 0 0 18px;
  overflow: hidden;
}
.viewer .fb-main { min-height: 0; }
/* 文件路径那一条也吸顶：长文档滚到一半时，还能知道自己在看哪个文件 */
.viewer .fb-head { position: sticky; top: 0; z-index: 2; }
.viewer .fb-list { max-height: none; }
.viewer .fb-body {
  max-height: none; overflow: visible;
  border-bottom-right-radius: 17px;
}
/* Markdown 在宽版心里可以放大一点字号、收紧一点行宽，长文档更好读 */
.viewer .fb-body.markdown.vw-doc { font-size: 15px; line-height: 1.9; padding: 26px 40px 40px; max-width: 100%; }
.viewer .fb-body.markdown.vw-doc h1 { font-size: 26px; }
.viewer .fb-body.markdown.vw-doc h2 { font-size: 20px; margin-top: 28px; }
.viewer .fb-body.markdown.vw-doc h3 { font-size: 17px; }
.viewer .fb-body.markdown.vw-doc p, .viewer .fb-body.markdown.vw-doc li { max-width: 78ch; }

/* 超宽内容不许顶宽整页。
   容器改成 overflow:visible 之后，任何超宽子元素都不再被裁掉，
   而是直接变成**页面级横向滚动条**（SKILL.md 里的目录树代码块有 1000px+ 宽）。
   所以这里把横向溢出收回到元素内部自己滚：
     · 列轨道用 minmax(0,…) 而不是 1fr —— 1fr 的最小尺寸是 auto，
       等于"内容多宽我就多宽"，长代码行会把整条轨道顶开（窄屏实测溢出 313px）；
     · pre / table 自己 overflow-x:auto，滚的是它们，不是整页。 */
.viewer .fb-body, .viewer .fb-body.markdown { min-width: 0; max-width: 100%; }
.viewer .fb-body pre { max-width: 100%; overflow-x: auto; }
.viewer .fb-body.markdown table { display: block; overflow-x: auto; max-width: 100%; }
/* 行内 code 里塞着没有空格的长 token（实测 SKILL.md 里一条 metadata JSON 有 1000px+ 宽），
   默认既不断行也不收缩，会把整页顶宽。正文允许任意位置断行；
   代码块 pre 例外 —— 那里靠 pre 自己横向滚，断行反而毁掉代码排版。 */
.viewer .fb-body.markdown { overflow-wrap: anywhere; }
.viewer .fb-body.markdown pre, .viewer .fb-body.markdown pre code { overflow-wrap: normal; }

/* 代码行号：左侧一条不参与横向滚动的 gutter。
   两栏都是等宽字体、同样的 line-height，所以行号与代码天然逐行对齐，
   不需要用 JS 去量每一行的高度。 */
.vw-code { display: flex; align-items: stretch; min-height: 100%; }
.vw-gutter {
  flex: none; padding: 16px 10px 16px 16px; text-align: right;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7;
  color: #C3B6A8; background: #FCFAF8; border-right: 1px solid var(--line);
  white-space: pre; user-select: none;
}
.vw-code .fb-pre { flex: 1; min-width: 0; }

@media (max-width: 820px) {
  /* 窄屏是上下堆叠：目录树在上、正文在下。
     这时 sticky 没有意义（左右不再并排），改回静态；正文本来就该整页滚。 */
  .viewer .file-browser {
    min-height: 0; height: auto; max-height: none;
    /* minmax(0,1fr) 而不是 1fr：1fr 的最小尺寸是 auto，长代码行会把轨道顶开 */
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto;
  }
  .viewer .fb-side {
    position: static; max-height: none; border-radius: 18px 18px 0 0;
  }
  .viewer .fb-list { max-height: 240px; }
  .viewer .fb-body { max-height: none; border-radius: 0 0 18px 18px; }
  .viewer .fb-head { position: static; }
  .vw-acts { margin-left: 0; }
}

/* ============================================================
   实践案例：卡片上的「所属技能包」+ 独立详情页
   ============================================================ */
/* 卡片顶部的技能包标签。
   案例只直接关联一个 SKILL，技能包是经 expert_skills 派生的，可能不止一个
   （12 个案例里有 3 个横跨两个包），所以这里是一排可换行的 chip。 */
.pc-pkgs { display: flex; flex-wrap: wrap; gap: 6px; }
.practice-card .pc-pkgs { margin-bottom: 10px; }
.pc-pkg {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; line-height: 1;
  padding: 5px 10px; border-radius: 999px; text-decoration: none;
  background: #FFF3E6; color: #B4541A; border: 1px solid #FFDCC0;
  transition: .18s;
}
.pc-pkg:hover { background: #FFE9D6; border-color: #FFC79B; color: var(--primary); }
.pc-pkg.lg { font-size: 13px; padding: 8px 14px; }
.pc-pkg .pc-pkg-dm {
  font-size: 10.5px; font-weight: 500; color: #9A7A5C;
  padding-left: 6px; margin-left: 2px; border-left: 1px solid #FFDCC0;
}

/* 详情页正文：案例是上千字的成段叙述，行宽与字号按长文来定。
   列表页是两列卡片（窄），详情页是单列长文（宽），所以正文单独限宽，
   不然 1220px 下每行 100+ 字，读起来眼睛要来回扫。 */
.pd { margin-top: 18px; }
.pd-head { max-width: 100%; }
.pd-head h2 { font-size: 27px; line-height: 1.4; margin: 10px 0 10px; letter-spacing: -.3px; }
.pd-head .pc-pkgs { margin-bottom: 4px; }
.pd-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.pd-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 16px; margin-bottom: 16px; }
.pd-summary {
  font-size: 15px; line-height: 1.85; color: var(--ink-2);
  padding: 14px 18px; border-radius: 14px; background: #FFFBF6;
  border-left: 3px solid var(--primary); margin-bottom: 20px;
}
.pd-body { max-width: 100%; }
.pd-body > p, .pd-body > ul, .pd-body > ol, .pd-body > blockquote { max-width: 82ch; }
.pd-block { margin-top: 22px; }
.pd-label {
  font-size: 12px; font-weight: 700; color: var(--muted);
  letter-spacing: .6px; margin-bottom: 10px;
}
.pd-skill {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
}
.pd-skill-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.pd-skill-nm { font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; }
.pd-skill-nm:hover { color: var(--primary); }
.pd-skill-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.pd-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 700px) {
  .pd-head h2 { font-size: 22px; }
  .pd-skill-acts { margin-left: 0; }
}

/* ============================================================
   安装到本地 Agent：选择框 + 结果回执
   ============================================================ */
.ap-tip { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; margin-bottom: 12px; }
.ap-tip b { color: var(--primary); }
.ap-list { display: flex; flex-direction: column; gap: 8px; }
/* 浏览器安装要一次列出 12 个 Agent：不封顶会把「取消 / 改为下载」顶出弹窗，
   用户得先滚到底才能反悔。封到 46vh，头和脚永远留在视野里。 */
.ap-list-scroll { max-height: 46vh; overflow-y: auto; padding-right: 4px; }
.ap-item {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  padding: 11px 13px; border-radius: 12px;
  background: #FFFBF6; border: 1px solid var(--line); transition: .18s;
}
.ap-item:hover { border-color: #FFD9B8; background: #FFF6EC; }
.ap-item input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; }
.ap-ico { font-size: 17px; line-height: 1.3; }
.ap-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-txt b { font-size: 13.5px; color: var(--ink); }
/* 曾经这里有一条 `.ap-txt em`（等宽字体展示技能目录的绝对路径）。
   第八轮按产品要求去掉了：卡片只报「已有 N 个技能」，
   不再把 ~/.xxx/skills 这种实现细节摆给用户看。 */
.ap-txt small { font-size: 11px; color: #9A8B7C; }
.ap-all {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.ap-all label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ap-all input { width: 16px; height: 16px; accent-color: var(--primary); }
.ap-note {
  margin-top: 14px; padding: 11px 13px; border-radius: 12px;
  background: #F7F3EE; font-size: 11.5px; line-height: 1.7; color: var(--muted);
}
.ap-note code, .ap-tip code {
  font-size: 11.5px; padding: 1px 5px; border-radius: 5px;
  background: #EFE7DC; color: #7A5A3A;
}

/* ---- 浏览器端安装（站点部署到公网后，文件写进访客自己选的目录）----
   Agent 选择行是 <button>：必须抹掉按钮默认样式，否则会是灰底居中，
   和上面本地安装那排 <label> 长得完全不一样。 */
.ap-pick { width: 100%; font: inherit; text-align: left; color: inherit; background: #FFFBF6; }
.ap-pick .ap-txt { flex: 1; }
.ap-pick .ap-txt small { overflow-wrap: anywhere; }
.ap-pick .ap-go {
  margin-left: auto; align-self: center; white-space: nowrap;
  font-size: 12px; font-weight: 700; color: var(--primary);
}
.ap-pick:hover .ap-go { color: #B4340A; }
/* 兜底弹窗里「各 Agent 技能目录」的对照表。
   ⚠ 必须自己封顶：12 个 Agent 排下来接近 500px，加上说明文字会把
   「下载技能包」按钮顶到弹窗可视区之外（.modal 虽然是 overflow:auto，
   但用户看不到按钮就会以为「只有一段说明，没有出口」）。
   封到 40vh 后按钮始终在视野内，表格自己滚。 */
.bi-paths {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 40vh; overflow-y: auto; padding-right: 4px;
  scrollbar-width: thin; -ms-overflow-style: auto;
}
.bi-paths::-webkit-scrollbar { width: 6px; }
.bi-paths::-webkit-scrollbar-track { background: transparent; }
.bi-paths::-webkit-scrollbar-thumb { background: rgba(180,120,60,.28); border-radius: 3px; }
.bi-path {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px; border-radius: 10px; font-size: 12.5px; color: var(--ink-2);
  background: #FFFBF6; border: 1px solid var(--line);
}
.bi-path code {
  font-size: 11.5px; color: #8A6A4F; background: #F7F0E8;
  padding: 2px 7px; border-radius: 6px; white-space: nowrap;
}
/* 「将写入哪里」的高亮条：浏览器不给绝对路径，只拿得到目录名 ——
   所以这里必须把名字放大写清楚，让用户一眼确认自己没选错层级。 */
.bi-target {
  margin: 10px 0 2px; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(135deg, #FFF3E4, #FFEBD6); border: 1px solid #FFD9B8;
  font-size: 15px; font-weight: 800; color: #B4340A; letter-spacing: -.2px;
  overflow-wrap: anywhere;
}
.bi-prog { font-variant-numeric: tabular-nums; }

.ir { display: flex; flex-direction: column; gap: 10px; }
.ir-row { padding: 12px 14px; border-radius: 12px; background: #FFFBF6; border: 1px solid var(--line); }
.ir-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ir-badge {
  font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  margin-left: auto;
}
.ir-badge.ok { background: #E7F7EC; color: #157A3A; }
.ir-badge.bad { background: #FDECEC; color: var(--danger); }
.ir-path {
  margin-top: 8px; font-size: 11.5px; line-height: 1.7; color: #6B5A4C;
  font-family: var(--font-mono); word-break: break-all;
}
.ir-bk { color: #9A8B7C; }
.ir-err { margin-top: 8px; font-size: 12px; color: var(--danger); line-height: 1.7; }

/* ============================================================
   工具类
   ============================================================ */
/* 视觉隐藏但保留在可访问性树 / 文档流里 —— 给爬虫和读屏软件看，人看不见。
   ⚠️ 为什么不用 display:none / visibility:hidden：那两种会被搜索引擎判成
   「隐藏文本」而降权，甚至算作弊。这里用的是标准的 a11y 隐藏写法（clip + 1px），
   而且内容与 JS 渲染出来的可见内容**完全一致**，不构成 cloaking。
   用在 index.html 的站点介绍上：路由启动会把 #app 整体 innerHTML 替换掉，
   所以它只在「JS 没起来」和「爬虫抓源码」时存在。 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* ============================================================
   法务页面：服务协议 / 隐私协议 / 联系我们
   ============================================================
   排版目标只有一个：**让人读得下去**。
   限宽 780px（一行约 38 个汉字，是中文长文最舒服的行宽）、行高 1.95、
   段间距拉开。铺满 1440 宽屏的话一行一百多字，眼睛会串行。 */
.lg-wrap { max-width: 780px; margin: 0 auto; padding: 0 4px; }

.lg-head { text-align: center; padding: 44px 0 6px; }
.lg-ico { font-size: 40px; line-height: 1; margin-bottom: 12px; }
.lg-head h2 { font-size: 28px; letter-spacing: .5px; margin-bottom: 8px; }
.lg-meta { font-size: 12.5px; color: var(--muted); }

.lg-lead {
  margin: 20px 0 8px; padding: 18px 22px; border-radius: 16px;
  background: linear-gradient(120deg, #FFF7F0, #FFEDF3);
  border: 1px solid #FFE0C4; color: var(--ink-2);
  font-size: 14px; line-height: 1.95;
}
.lg-lead b { color: var(--ink); }

.lg-sec { margin-top: 30px; }
.lg-sec h3 {
  font-size: 16.5px; color: var(--ink); margin-bottom: 12px;
  padding-left: 12px; border-left: 3px solid var(--primary); line-height: 1.5;
}
.lg-sec p {
  font-size: 14px; line-height: 1.95; color: var(--ink-2);
  margin-bottom: 10px;
}
.lg-sec ul { margin: 0 0 10px; padding-left: 22px; }
.lg-sec li {
  font-size: 14px; line-height: 1.95; color: var(--ink-2);
  margin-bottom: 9px;
}
.lg-sec li:last-child { margin-bottom: 0; }
.lg-sec b { color: var(--ink); }
.lg-sec a { color: var(--primary); text-decoration: none; }
.lg-sec a:hover { text-decoration: underline; }

/* 提示框：用于「这句话很重要，但正文里放不下」的补充说明 */
.lg-note {
  margin-top: 12px; padding: 12px 16px; border-radius: 12px;
  background: #FBF3EC; border-left: 3px solid #FFB87A;
  font-size: 13px; line-height: 1.9; color: #6B5A4C;
}

.lg-foot {
  margin: 40px 0 8px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.95; color: var(--muted); text-align: center;
}
.lg-foot a { color: var(--primary); text-decoration: none; }
.lg-foot a:hover { text-decoration: underline; }

/* ---------- 联系我们：表单 + 侧栏 ---------- */
/* 左侧表单主区、右侧「提交前请留意」并列；窄屏塌成单列（表单在前）。 */
.ct-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 22px; margin-top: 26px; align-items: start;
}
@media (max-width: 860px) {
  .ct-grid { grid-template-columns: 1fr; }
}

.ct-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px;
  box-shadow: 0 6px 20px rgba(0,0,0,.035);
}
.ct-form { display: block; }

.ct-lb {
  display: block; font-size: 13px; font-weight: 600; color: var(--ink-2);
  margin: 0 0 8px;
}
.ct-lb:not(:first-child) { margin-top: 18px; }
.ct-req { font-size: 11px; color: var(--danger); font-weight: 600; margin-left: 4px; }
.ct-opt { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 4px; }

.ct-sel { cursor: pointer; }
/* 反馈正文通常要写好几行，给足高度；resize:vertical 允许用户自己拉高，
   但不允许横向拖动（横拖会把栅格撑破）。 */
.ct-ta { min-height: 148px; line-height: 1.8; resize: vertical; }
.ct-count {
  text-align: right; font-size: 11.5px; color: var(--muted);
  margin-top: 6px;
}

.ct-actions {
  margin-top: 22px; display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.ct-me { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.ct-side { display: grid; gap: 16px; }
.ct-side-card {
  background: #FFFBF6; border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .03);
}
/* 标题左侧一道竖条：两张卡片的标题一眼就能扫到，不用读完整句 */
.ct-side-card h4 {
  font-size: 13.5px; color: var(--ink); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.ct-side-card h4::before {
  content: ''; flex: 0 0 3px; width: 3px; height: 14px;
  border-radius: 2px; background: var(--primary);
}
.ct-side-card ul { margin: 0; padding-left: 18px; }
.ct-side-card li {
  font-size: 12.5px; line-height: 1.9; color: #6B5A4C; margin-bottom: 9px;
}
.ct-side-card li:last-child { margin-bottom: 0; }
.ct-side-card b { color: var(--ink); }
.ct-side-card a { color: var(--primary); text-decoration: none; }
.ct-side-card a:hover { text-decoration: underline; }
.ct-side-card p { font-size: 12.5px; line-height: 1.9; color: #6B5A4C; }
.ct-side-note { background: linear-gradient(120deg, #FFF7F0, #FFEDF3); border-color: #FFE0C4; }

/* 「我们怎么处理您的问题」：剩下两条承诺做成**带序号的流程**，
   比散着的圆点更像「步骤」，也顺带撑住了删掉两条之后的空白。 */
.ct-steps { list-style: none; margin: 0; padding: 0; }
.ct-steps li {
  display: flex; gap: 10px; margin-bottom: 12px;
  font-size: 12.5px; line-height: 1.85; color: #6B5A4C;
}
.ct-steps li:last-child { margin-bottom: 0; }
.ct-step-n {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 3px;   /* 与第一行文字对齐（行高 1.85 时约 3px） */
}

/* ---------- 联系我们：商务合作 ---------- */
/* 一块独立的暖色区，放在表单下方通栏。刻意不用 `.ct-card` 的白底：
   它是「补充说明」，不是第二个表单，底色不同访客才不会以为还要再填一遍。 */
.ct-biz {
  margin-top: 26px; padding: 26px 28px;
  border: 1px solid #FFE3CC; border-radius: 20px;
  background: linear-gradient(140deg, #FFFDFB 0%, #FFF6EE 55%, #FFF1F5 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .03);
}
.ct-biz-head { display: flex; gap: 16px; align-items: flex-start; }
.ct-biz-ico {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: #fff; border: 1px solid #FFE0C4;
  box-shadow: 0 4px 12px rgba(255, 140, 60, .12);
}
.ct-biz-ttl { min-width: 0; }
.ct-biz-ttl h3 {
  font-size: 18px; color: var(--ink); margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
/* 标题左侧竖条，与全站 `.bar` 的视觉语言保持一致 */
.ct-biz-ttl h3::before {
  content: ''; flex: 0 0 4px; width: 4px; height: 18px; border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--pink));
}
.ct-biz-ttl p {
  font-size: 13px; line-height: 1.9; color: #6B5A4C; max-width: 860px;
}

/* 这里**不能**用 4 列：`.lg-wrap` 把整页限宽在 780，减去内边距后每列只剩
   168px，「企业定制 / 私有化部署」这种标题会被挤成三行。
   2×2 每列约 370px，一行放得下标题，也放得下两行说明。 */
.ct-biz-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; margin-top: 20px;
}
@media (max-width: 620px) { .ct-biz-grid { grid-template-columns: 1fr; } }

.ct-biz-item {
  background: #fff; border: 1px solid #FFE8D6; border-radius: 14px;
  padding: 16px 18px 18px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ct-biz-item:hover {
  transform: translateY(-2px);
  border-color: #FFD2AE;
  box-shadow: 0 10px 24px rgba(255, 140, 60, .10);
}
.ct-biz-n {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  color: var(--primary); opacity: .55; margin-bottom: 6px;
}
.ct-biz-item h4 { font-size: 13.5px; color: var(--ink); margin-bottom: 8px; }
.ct-biz-item p { font-size: 12.5px; line-height: 1.85; color: #6B5A4C; }

/* 「怎么发起」两行：用虚线分隔，读起来像附注而不是正文 */
.ct-biz-foot {
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed #FFDCC2;
  display: grid; gap: 8px;
  font-size: 12.5px; line-height: 1.9; color: #6B5A4C;
}
.ct-biz-foot b { color: var(--ink); }
.ct-biz-key {
  color: var(--primary);
  background: #FFF1E4; border: 1px solid #FFDFC4; border-radius: 6px;
  padding: 1px 6px; font-weight: 700;
}

/* ============================================================
   后台：用户反馈页签
   ============================================================ */
/* 侧边栏角标。绝对定位在 .mi 右侧 —— 用 flex 居中会把文字挤歪。 */
.mi { position: relative; }
.mi-badge {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.mi.on .mi-badge { background: rgba(255,255,255,.92); color: var(--danger); }

.fb-filters {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; margin-bottom: 14px; background: #FFFBF6;
}
.fb-frow {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.fb-frow:last-child { margin-bottom: 0; }
.fb-flb {
  font-size: 12px; color: var(--muted); flex: 0 0 auto; margin-right: 2px;
}

.fb-card {
  border: 1px solid var(--line); border-left: 3px solid var(--primary);
  border-radius: 14px; padding: 16px 18px; margin-bottom: 12px;
  background: var(--card);
}
/* 已处理的整块压暗、左边线转灰：一眼就能把「还没办的」挑出来 */
.fb-card.done {
  border-left-color: var(--line); background: #FFFDFB;
}
.fb-card.done .fb-body { color: #8B7C6E; }

.fb-card-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.fb-kind {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: #F1EAE2; color: #6B5A4C;
}
/* 侵权 / 合规用红色系 —— 这两类要优先处理，颜色得把人叫住 */
.fb-kind.k-copyright { background: #FDECEC; color: var(--danger); }
.fb-kind.k-compliance { background: #FFF1E2; color: #B36A1F; }
.fb-kind.k-bug { background: #EAF2FF; color: #2563EB; }
.fb-kind.k-content { background: #E8FBF0; color: #0F9D58; }

.fb-who { font-size: 12.5px; color: var(--ink-2); }
.fb-when { font-size: 12px; color: var(--muted); margin-left: auto; }

.fb-body {
  font-size: 13.5px; line-height: 1.85; color: var(--ink-2);
  white-space: normal; word-break: break-word;
}
.fb-page, .fb-note {
  margin-top: 10px; font-size: 12.5px; line-height: 1.8;
  padding: 8px 12px; border-radius: 10px;
}
.fb-page { background: #FBF3EC; color: #6B5A4C; }
.fb-page a { color: var(--primary); text-decoration: none; word-break: break-all; }
.fb-page a:hover { text-decoration: underline; }
.fb-note { background: #F3F7FF; color: #3A4A63; }

.fb-acts {
  margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap;
}


/* ============================================================
   第十轮：个性化推荐提示条 + 后台「数据与风控」
   ============================================================ */

/* .rec-basis（首页「每周精选」下方的推荐依据）第十一轮已**停止展示**：
   个性化照旧生效，但不再把「我们根据你的记录做了画像」挂在页面上。
   样式先留着不删 —— 万一以后要在别处解释排序原因，直接就能用。
   ⚠ 如果哪天彻底删掉这段 CSS，记得连 `_verify_round10_ui.py` 里那条
   「.rec-basis 不存在」的反向断言一起删。 */

/* ---- 后台：配额表单 ---- */
.rk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .rk-grid { grid-template-columns: 1fr; } }

.rk-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px;
}
.rk-card h4 {
  margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--ink);
}
.rk-card .rk-desc { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }

.rk-field {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-top: 1px dashed var(--line);
}
.rk-field:first-of-type { border-top: 0; }
.rk-field .rf-lb { flex: 1; min-width: 0; }
.rk-field .rf-name { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.rk-field .rf-tip { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.6; }
.rk-field .rf-ctl { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.rk-field input[type="number"] {
  width: 92px; padding: 7px 10px; border: 1px solid var(--line);
  border-radius: 9px; font-size: 13.5px; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.rk-field input[type="number"]:focus { outline: 2px solid rgba(255,107,0,.35); border-color: var(--primary); }
/* 开关型（bool）：用 checkbox，标签在左、控件在右，与数值型对齐 */
.rk-field input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--primary); }
.rk-tag {
  font-size: 11px; padding: 2px 7px; border-radius: 20px;
  background: rgba(255,107,0,.1); color: var(--primary); font-weight: 600;
}

/* ---- 后台：统计数字条 ---- */
.rk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 900px) { .rk-stats { grid-template-columns: repeat(2, 1fr); } }
.rk-stat {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px;
}
.rk-stat b { display: block; font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.rk-stat span { font-size: 12px; color: var(--muted); }

/* ---- 后台：黑名单 / 画像 表格 ---- */
.rk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rk-table th {
  text-align: left; padding: 9px 10px; font-size: 12px; color: var(--muted);
  font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.rk-table td {
  padding: 10px; border-bottom: 1px solid var(--line); color: var(--ink-2);
  vertical-align: top; word-break: break-word;
}
.rk-table tr:last-child td { border-bottom: 0; }
.rk-table .rk-ip { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.rk-pill {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 20px;
  background: rgba(34,197,94,.12); color: #15803D; font-weight: 600;
}
.rk-pill.auto { background: rgba(239,68,68,.12); color: #B91C1C; }
.rk-pill.off { background: rgba(120,120,120,.12); color: #666; }
