/* =====================================================================
   派派技能库 · 全站共用样式（B「派派一家」，2026-11-07 站长看完整站样稿后定：做进测试站）
   来源：样稿 proto/brand/site/site.css（不进仓库；截图和说明在 /root/dy/brand/site-build/），整理时只加了最后两段：
   「外壳」（手机底栏、菜单抽屉、提示条、测试站角标、回到顶部、交互细节，原来在 classic.css）和 :root 末尾的「旧变量」。
   标题字 PPChill 的切片在 /static/fonts/pp-display/（base.html 里单独 link，不在这里 @import，免得多等一轮）。
   规矩：只用下面 :root 里的变量；组件 = .块名、.块名__部件、.块名--变体，状态 = .is-xxx / aria-current / aria-pressed；
         页面自己的样式写在页面里，类名带页面前缀（.home-、.list-、.detail- …），不改这里的组件。
   ===================================================================== */
@import url(/static/fonts/serif-sc/700.css);       /* 「派」印章的宋体（网站现有的思源宋体分片） */

:root {
  /* ---------- 颜色 ---------- */
  --ink: #1F1F1F;          /* 墨：标题、正文 */
  --ink-2: #595959;        /* 灰一：说明文字、次要信息（白底 7:1） */
  --ink-3: #737373;        /* 灰二：注释、日期、来源（白底 4.7:1，最浅的「能读的字」） */
  --ph: #8C8C8C;           /* 输入框提示字、禁用（不拿来写要读的字） */
  --line: #E6EBF2;         /* 细线、分割线、列表项之间 */
  --line-2: #D9DFE8;       /* 控件描边：胶囊标签、输入框 */
  --bg: #FFFFFF;           /* 页面底：白（顶部叠 .sky 天光） */
  --paper: #FFFFFF;        /* 卡片、面板 */
  --sunk: #F4F7FB;         /* 浅灰蓝底：悬停底、缩略图占位、代码框 */
  --sky: #EAF2FF;          /* 天光蓝：只给 .sky 背景层 */
  --blue: #1677FF;         /* 主色（Ant Design 默认蓝）：只画线、图标、焦点框，不写字（白底 4.1:1） */
  --btn: #1668DC;          /* 蓝按钮底（白字 5.2:1） */
  --btn-hover: #0958D9; --btn-active: #003EB3;
  --link: #0958D9;         /* 蓝字：链接、标题里染蓝的关键词（白底 6.2:1） */
  --blue-bg: #E6F4FF;      /* 蓝浅底：选中项、编号圆点、提示条 */
  --blue-line: #91CAFF;    /* 蓝浅边 */
  --ok: #237804; --warn-ink: #AD4E00; --err: #CF1322;   /* 成功绿字（「豆包就能用」）/ 警告字 / 出错字 */
  /* 类型标签（Ant Design 预设色：浅底 + 1px 边 + 深字，各自底上 ≥ 5:1；同现网 classic.css） */
  --t-skill-bg: #E6F4FF; --t-skill-bd: #91CAFF; --t-skill-fg: #0958D9;
  --t-agent-bg: #F9F0FF; --t-agent-bd: #D3ADF7; --t-agent-fg: #531DAB;
  --t-mcp-bg: #E6FFFB; --t-mcp-bd: #87E8DE; --t-mcp-fg: #006D75;
  --t-workflow-bg: #F0F5FF; --t-workflow-bd: #ADC6FF; --t-workflow-fg: #1D39C4;
  --t-prompt-bg: #FFF7E6; --t-prompt-bd: #FFD591; --t-prompt-fg: #AD4E00;
  --t-opensource-bg: #F6FFED; --t-opensource-bd: #B7EB8F; --t-opensource-fg: #237804;

  /* ---------- 字 ---------- */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "HarmonyOS Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", monospace;
  /* 标题字（11-07 站长：除了首页都用黑体，工作区、后台也是）：默认系统黑体 600、不描边；首页（.page-home，见下面「首页标题字」）换成寒蝉半圆体 PPChill */
  --display: var(--sans);
  --display-w: 600;                    /* 标题字字重：黑体 600；首页圆体只有一个字重，写 400 再用描边加粗 */
  --display-stroke: 0px;               /* 圆体用描边加粗（.02em），黑体不描边 */
  /* 字号阶梯（同现网 MASTER：12 注释 · 14 正文 / 按钮 / 卡片 · 16 详情正文、卡片标题 · 18 小标题 · 22 章节标题 · 32 页面标题） */
  --fs-xs: 12px; --fs-sm: 14px; --fs-md: 16px; --fs-lg: 18px; --fs-xl: 22px; --fs-2xl: 32px;
  /* 展示字号（只给 --display 字体用，跟屏幕宽高走）：d1 首页大标题 · d2 页面标题 · d3 区块标题 */
  --fs-d1: clamp(30px, min(3.2vw + 6px, 6.6vh), 88px);
  --fs-d2: clamp(24px, .62vw + 16px, 32px);   /* 黑体比圆体显大，页面标题 1440 宽 25、2560 宽 32（首页圆体那套在下面） */
  --fs-d3: clamp(18px, .2vw + 15px, 21px);

  /* ---------- 间距阶梯（只用这几档） ---------- */
  --space-xs: 4px; --space-sm: 8px; --space-ms: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px;

  /* ---------- 圆角 ---------- */
  --r-sm: 6px;       /* 小控件：类型标签、小徽标、代码 */
  --r-md: 12px;      /* 卡片里的封面（20 − 8 内边距）、缩略图、悬停底、输入框里的小块 */
  --r-lg: 20px;      /* 卡片、面板、新手三步 */
  --r-pill: 999px;   /* 胶囊：按钮、导航、搜索框、可点的标签 —— 胶囊 = 能点；圆角小方块 = 只是标注 */

  /* ---------- 阴影（软阴影，不描边） ---------- */
  --sh: 0 1px 2px rgb(31 45 61 / .05), 0 8px 24px rgb(31 45 61 / .07);        /* 一档：卡片、面板、白胶囊 */
  --sh-lg: 0 2px 4px rgb(31 45 61 / .05), 0 16px 40px rgb(31 45 61 / .10);    /* 二档：搜索框、悬停抬起、下拉菜单 */
  --ring: 0 0 0 3px rgb(22 119 255 / .22);                                     /* 键盘焦点 / 输入框聚焦的外圈 */

  /* ---------- 版心和杂项 ---------- */
  --max: 2200px;                                   /* 内容最宽 2200（2560 宽时左右各 180） */
  --gutter: clamp(16px, 3.4vw, 48px);              /* 版心左右留白：手机 16、1440 起 48 */
  --topbar-h: 72px;
  --grid-gap: clamp(16px, 1.2vw, 30px);            /* 卡片之间 */
  --ease: cubic-bezier(.23, 1, .32, 1);
  --sky-h: 980px;                                  /* .sky 天光层的高度 */
  /* AI 工具费用类型（10-29 站长：和类型标签一样有颜色区分）：免费绿、免费+付费蓝、按量付费青、付费橙（同 classic.css） */
  --f-free-bg: #F6FFED; --f-free-bd: #B7EB8F; --f-free-fg: #237804;
  --f-mix-bg: #E6F4FF; --f-mix-bd: #91CAFF; --f-mix-fg: #0958D9;
  --f-use-bg: #E6FFFB; --f-use-bd: #87E8DE; --f-use-fg: #006D75;
  --f-paid-bg: #FFF7E6; --f-paid-bd: #FFD591; --f-paid-fg: #AD4E00;
  --ok-bg: #F6FFED; --ok-line: #B7EB8F; --warn: #FAAD14; --warn-bg: #FFF7E6; --err-bg: #FFF2F0;

  /* ---------- 旧变量（10-30 Ant Design 版 classic.css 的名字）----------
     还没换成 B 写法的页面样式（me.css 登录框、各页自己的 css）照旧用这些名字，这里指到 B 的值上，不加载 classic.css 也不会掉色。
     新写的样式别再用这一段，用上面的名字 */
  --primary: var(--blue); --primary-hover: #4096FF; --primary-active: var(--btn-hover);
  --primary-bg: var(--blue-bg); --primary-bg-hover: #BAE0FF; --primary-border: var(--blue-line);
  --focus: var(--blue); --focus-ring: var(--ring);
  --bg-0: rgb(255 255 255 / 0); --row: #FAFBFD; --desk: #EEF2F7; --tag: var(--sunk); --surface-hi: #FFFFFF; --fav-bg: #FFFFFF; --shadow-rgb: 31 45 61;
  --border: var(--line-2); --border-2: var(--line); --border-strong: #4096FF;
  --hover: rgb(31 45 61 / .045); --press: rgb(31 45 61 / .08);
  --on-ink: #FFFFFF; --on-btn: #FFFFFF; --chip-on: var(--btn); --on-chip: #FFFFFF; --on-chip-dim: #E6F4FF; --stamp: var(--ink); --on-stamp: #FFFFFF;
  --hl: var(--blue-bg); --hl-line: var(--blue-line); --hl-hover: #BAE0FF;
  --gut: var(--gutter); --shell-max: var(--max); --shell-pad: var(--gutter);
  --r-0: 4px; --r-1: 10px; --r-2: var(--r-md); --r-3: var(--r-lg);
  --ctl: 32px; --ctl-lg: 40px; --ctl-sm: 24px;
  --shadow-pop: var(--sh-lg); --shadow: var(--sh-lg); --shadow-card: var(--sh-lg); --shadow-sm: var(--sh);
  --shadow-btn: none; --shadow-btn-primary: 0 6px 16px rgb(22 104 220 / .22);
  --top-h: 0px; --below-top: 24px;               /* B 的顶栏不吸顶（跟着页面滚走），吸顶的东西贴着屏幕顶上 24 */
  --fs-2xl-m: 24px;
}

/* ===================== 工作区字号 =====================
   工作区（.page-studio）整体大一档：12 / 14 / 16 / 18 → 13 / 15 / 17 / 19（10-13 站长嫌工作区「字小看着不舒服」，定了正文 15 起、以后不能更小）；
   前台、顶栏不受影响（顶栏的字是写死的 px） */
.page-studio { --fs-xs: 13px; --fs-sm: 15px; --fs-md: 17px; --fs-lg: 19px; }

/* ===================== 首页标题字 =====================
   只有首页用寒蝉半圆体（PPChill，站长 11-07 定：其余页面、工作区、后台一律黑体）：首页大标题、区块标题、三步、面板标题都跟着这里 */
.page-home { --display: "PPChill", var(--sans); --display-w: 400; --display-stroke: .02em;
  --fs-d2: clamp(26px, 1.2vw + 14px, 44px); --fs-d3: clamp(20px, .36vw + 15px, 26px); }

/* ===================== 基础 ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; min-height: 100vh; position: relative; isolation: isolate; overflow-x: clip;
  font: 400 var(--fs-sm)/1.6 var(--sans); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { padding: 0; border: 0; background: none; cursor: pointer; }   /* 没写样子的按钮不露浏览器默认的灰底凸边（11-08：classic.css 不加载以后，登录框的按钮成了灰白大方块）；各组件自己写底色、边、内边距 */
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: #BAE0FF; color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.u-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); max-width: none; margin-inline: auto; }   /* max-width: none：还加载 classic.css 的页面那边 .wrap 最宽 1760，这里盖掉 */
/* 标题字：所有用 --display 的地方都加这个类（或在自己的选择器里写同样两行），换字体时只改变量 */
.display { font-family: var(--display); font-weight: var(--display-w); -webkit-text-stroke: var(--display-stroke) currentColor; letter-spacing: .01em; }
.kw { color: var(--link); }   /* 标题里染蓝的关键词（「交给它」） */
.skip { position: absolute; z-index: 50; left: 16px; top: -60px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }

/* ===================== 背景：单色天光 .sky =====================
   放在 <body> 第一个：<div class="sky" aria-hidden="true"></div>。白底上，顶部一层很浅的蓝 #EAF2FF 慢慢淡到白，
   叠一层很细的颗粒（去掉电脑渐变太光滑的感觉）。高度默认 980，列表 / 详情这类页面用 .sky--short（560） */
.sky { position: absolute; z-index: -1; inset: 0 0 auto; height: var(--sky-h); pointer-events: none; overflow: hidden; }
.sky::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--sky) 0%, #F3F7FF 38%, #FFFFFF 100%); }
.sky::after { content: ""; position: absolute; inset: 0; opacity: .55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2  0 0 0 0 .25  0 0 0 0 .35  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
.sky--short { --sky-h: 560px; }

/* ===================== 顶栏 .topbar =====================
   透明压在天光上：左 logo（印章 + 站名）· 中间导航胶囊（当前页 aria-current="page" = 白胶囊 + 阴影）· 右边登录。
   「更多」是 <details>，不开 JS 也能点开。手机上导航换到第二行，左右滑 */
.topbar { position: relative; z-index: 20; }
.topbar__in { position: relative; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 44px); height: var(--topbar-h); }
.brand { flex: none; display: inline-flex; align-items: center; gap: 10px; }
/* 从前台点进工作区、点回来，品牌原地不动（工作区 studio.css 的 .side-top .brand 同名）；页脚里的 .brand 不能同名（classic.css 给所有 .brand 起了这个名，同一页两个会报错） */
.topbar .brand { view-transition-name: brand; }
.footer .brand { view-transition-name: none; }
.brand .brand__name { font: 600 18px/1 var(--sans); letter-spacing: .02em; white-space: nowrap; }   /* 站名：每页一样（首页也用黑体，免得跳页时 logo 变样；11-07 站长定除首页外不用圆体） */
.stamp { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 15px/1 "Paipai Serif", serif; }
.stamp--sm, .stamp.sm { width: 24px; height: 24px; font-size: 12px; }
.topbar__nav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.nav-pill { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 15px; color: var(--ink-2); white-space: nowrap; transition: color .2s, background-color .2s, box-shadow .2s; }
@media (hover: hover) { .nav-pill:hover { color: var(--ink); background: rgb(255 255 255 / .6); } }
.nav-pill[aria-current="page"], .nav-pill.is-on { color: var(--ink); background: var(--paper); box-shadow: var(--sh); }
.nav-pill svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-more { position: relative; }
.nav-more > summary { list-style: none; cursor: pointer; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more[open] > summary { color: var(--ink); background: var(--paper); box-shadow: var(--sh); }
.nav-more[open] > summary svg { transform: rotate(180deg); }
.menu { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; display: grid; min-width: 168px; padding: 6px; border-radius: 16px; background: var(--paper); box-shadow: var(--sh-lg); }
.menu a { display: flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 10px; font-size: var(--fs-sm); white-space: nowrap; }
@media (hover: hover) { .menu a:hover { background: var(--sunk); color: var(--link); } }
.topbar__end { margin-left: auto; display: flex; align-items: center; gap: var(--space-ms); }
/* 列表、详情这类长页面想让顶栏吸顶：加 .topbar--sticky（白底 + 底下一道细线） */
.topbar--sticky { position: sticky; top: 0; background: rgb(255 255 255 / .94); box-shadow: 0 1px 0 var(--line); }
@media (max-width: 899px) {
  :root { --topbar-h: 102px; }   /* 两行：10 + 品牌行 32 + 6 + 导航行 54 */
  .topbar__in { flex-wrap: wrap; height: var(--topbar-h); align-content: flex-start; padding-top: 10px; row-gap: 6px; }
  .topbar__nav { order: 3; flex: 1 0 100%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; }
  .topbar__nav::-webkit-scrollbar { display: none; }
  .topbar__nav::after { content: ""; flex: none; width: 1px; }   /* 横向滚动到头时右边也留出 --gutter */
  .nav-more { position: static; }                                  /* 菜单跟着顶栏定位，不被横向滚动的导航条裁掉 */
  .menu { top: 100%; left: auto; right: 0; }
  .nav-pill { height: 40px; }
}

/* ===================== 页脚 .footer ===================== */
.footer { margin-top: clamp(64px, 6vw, 120px); border-top: 1px solid var(--line); background: linear-gradient(rgb(234 242 255 / 0), rgb(234 242 255 / .55)); }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xl) var(--space-3xl); padding: var(--space-2xl) 0 var(--space-xl); }
.footer__brand p { margin-top: var(--space-sm); color: var(--ink-2); }
.footer__brand .brand { margin-bottom: var(--space-xs); }
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--space-xl) clamp(32px, 5vw, 120px); }
.footer__nav b { display: block; margin-bottom: var(--space-ms); font-size: var(--fs-sm); font-weight: 600; }
.footer__nav p { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); max-width: 420px; }
.footer__nav a { color: var(--ink-2); line-height: 24px; }
@media (pointer: coarse) { .footer__nav p { gap: 0 var(--space-lg); } .footer__nav a { padding: 10px 0; } }
@media (hover: hover) { .footer__nav a:hover { color: var(--link); } }
.footer__base { padding: var(--space-md) 0 var(--space-xl); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--ink-3); }
.footer__base p + p { margin-top: 4px; }
.footer__icp { color: inherit; white-space: nowrap; }
.footer__psb img { width: 15px; height: 16px; vertical-align: -3px; margin-right: 4px; }   /* 公安备案图标（11-21），和备案号排在一行 */
@media (hover: hover) { .footer__icp:hover { color: var(--ink-2); text-decoration: underline; } }

/* ===================== 按钮 .btn =====================
   全圆胶囊。.btn--primary 蓝底白字（一屏最多一两个）· .btn--secondary 白底 + 阴影 · .btn--ghost 透明底细边。
   尺寸：默认 40 高；.btn--sm 32；.btn--lg 48。手指点的屏幕上 sm 也补到 44 的可点范围 */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); height: 40px; padding: 0 20px;
  border: 0; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--btn); color: #fff; box-shadow: 0 6px 16px rgb(22 104 220 / .22); }
@media (hover: hover) { .btn--primary:hover { background: var(--btn-hover); } }
.btn--primary:active { background: var(--btn-active); }
.btn--secondary { background: var(--paper); color: var(--ink); box-shadow: var(--sh); font-weight: 500; }
@media (hover: hover) { .btn--secondary:hover { color: var(--link); box-shadow: var(--sh-lg); } }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 500; }
@media (hover: hover) { .btn--ghost:hover { color: var(--link); box-shadow: inset 0 0 0 1px var(--blue-line); background: rgb(230 244 255 / .5); } }
.btn--sm { height: 32px; padding: 0 14px; font-size: var(--fs-sm); }
.btn--lg { height: 48px; padding: 0 28px; font-size: var(--fs-md); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
@media (pointer: coarse) { .btn--sm::after { content: ""; position: absolute; inset: -6px -2px; } }

/* 文字链接 .link：蓝字，后面可以跟一个箭头 svg（悬停往右挪 2px）。正文里的链接用 .link--inline（带下划线） */
.link { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; color: var(--link); font-size: var(--fs-sm); white-space: nowrap; }
.link svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
@media (hover: hover) { .link:hover { text-decoration: underline; text-underline-offset: 3px; } }
@media (hover: hover) { .link:hover svg { transform: translateX(2px); } }
.link--inline { display: inline; color: var(--link); text-decoration: underline; text-decoration-color: rgb(9 88 217 / .3); text-underline-offset: 3px; }

/* ===================== 搜索框 .search =====================
   白胶囊 + 二档阴影，左边放大镜，右边蓝色胶囊按钮。默认 56 高；.search--lg 首页大号；.search--sm 列表页顶上的小号。
   首页那种「上沿扒着一个蓝色小角色 + 气泡」：外面包一层 .search-hero，里面放 .search-hero__peek（角色图）和 .search-hero__say（气泡） */
.search { position: relative; z-index: 2; display: flex; align-items: center; gap: var(--space-ms); height: 56px; padding: 0 6px 0 22px;
  background: var(--paper); border-radius: var(--r-pill); box-shadow: var(--sh-lg); transition: box-shadow .2s; }
.search:focus-within { box-shadow: var(--sh-lg), var(--ring); }
.search__icon { flex: none; width: 20px; height: 20px; color: var(--ink-2); }
.search__input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: var(--fs-md); }
.search__input::placeholder { color: var(--ph); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__go { flex: none; height: calc(100% - 12px); padding: 0 24px; font-size: var(--fs-md); box-shadow: none; }
.search--lg { height: clamp(56px, 2.65vw, 70px); padding-left: 26px; }
.search--lg .search__input { font-size: clamp(16px, .7vw, 18px); }
.search--lg .search__go { height: calc(100% - 14px); padding: 0 clamp(24px, 1.3vw, 34px); }
.search--sm { height: 44px; padding-left: 16px; box-shadow: var(--sh); }
.search--sm .search__go { height: 34px; padding: 0 16px; font-size: var(--fs-sm); }
.search-hero { position: relative; width: min(100%, clamp(680px, 38vw, 980px)); padding-top: var(--peek-room, 56px); }
.search-hero__peek { position: absolute; z-index: 1; left: clamp(36px, 3vw, 76px); bottom: calc(100% - var(--peek-room, 56px) - var(--peek-sink, 34px));
  width: var(--peek-w, clamp(72px, 4.4vw, 112px)); height: auto; pointer-events: none; }
.search-hero__say { position: absolute; z-index: 3; left: calc(clamp(36px, 3vw, 76px) + var(--peek-w, clamp(72px, 4.4vw, 112px)) + 4px); top: calc(var(--peek-room, 56px) - 44px);
  padding: 8px 14px; border-radius: 14px 14px 14px 4px; background: var(--ink); color: #fff; font: var(--display-w) 14px/1.15 var(--display); white-space: nowrap; }

/* ===================== 胶囊标签 .chip（能点的）/ 类型标签 .tag（只是标注） =====================
   .chip：白底细边胶囊，筛选、热门搜索、类别都用它；选中 .is-on / aria-pressed="true" / aria-current = 蓝底白字。
   .chips：一排胶囊（自动换行），前面可放一个 .chips__label（「大家常搜」） */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--line-2); font-size: var(--fs-sm); line-height: 1; color: var(--ink); white-space: nowrap;
  transition: color .2s, border-color .2s, background-color .2s; }
@media (hover: hover) { .chip:hover { color: var(--link); border-color: var(--blue-line); } }
.chip.is-on, .chip[aria-pressed="true"], .chip[aria-current] { background: var(--btn); border-color: var(--btn); color: #fff; }
.chip__n { font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip.is-on .chip__n, .chip[aria-pressed="true"] .chip__n, .chip[aria-current] .chip__n { color: #E6F4FF; }
.chip--soft { border-color: transparent; background: var(--sunk); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.chips__label { margin-right: 4px; font-size: var(--fs-sm); color: var(--ink-2); }
@media (pointer: coarse) { .chip { height: 36px; } }

/* .tag：圆角小方块，不能点。类型标签加 .ty-<类型>（浅底 + 边 + 深字）；快讯分类加 .tg-<分类>；什么都不加 = 中性灰 */
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: var(--r-sm); flex: none;
  background: var(--tg-bg, var(--sunk)); box-shadow: inset 0 0 0 1px var(--tg-bd, transparent); color: var(--tg-fg, var(--ink-2));
  font-size: var(--fs-xs); line-height: 1; white-space: nowrap; }
.ty-skill { --tg-bg: var(--t-skill-bg); --tg-bd: var(--t-skill-bd); --tg-fg: var(--t-skill-fg); }
.ty-agent { --tg-bg: var(--t-agent-bg); --tg-bd: var(--t-agent-bd); --tg-fg: var(--t-agent-fg); }
.ty-mcp { --tg-bg: var(--t-mcp-bg); --tg-bd: var(--t-mcp-bd); --tg-fg: var(--t-mcp-fg); }
.ty-workflow { --tg-bg: var(--t-workflow-bg); --tg-bd: var(--t-workflow-bd); --tg-fg: var(--t-workflow-fg); }
.ty-prompt { --tg-bg: var(--t-prompt-bg); --tg-bd: var(--t-prompt-bd); --tg-fg: var(--t-prompt-fg); }
.ty-opensource { --tg-bg: var(--t-opensource-bg); --tg-bd: var(--t-opensource-bd); --tg-fg: var(--t-opensource-fg); }
/* 快讯分类（同现网 home.css） */
.tg-model { --tg-bg: #E6F4FF; --tg-bd: #91CAFF; --tg-fg: #0958D9; }
.tg-product { --tg-bg: #E6FFFB; --tg-bd: #87E8DE; --tg-fg: #006D75; }
.tg-research { --tg-bg: #F9F0FF; --tg-bd: #D3ADF7; --tg-fg: #531DAB; }
.tg-business { --tg-bg: #FFFBE6; --tg-bd: #FFE58F; --tg-fg: #874D00; }
.tg-hardware { --tg-bg: #F0F5FF; --tg-bd: #ADC6FF; --tg-fg: #1D39C4; }
.tg-event { --tg-bg: #FFF0F6; --tg-bd: #FFADD2; --tg-fg: #C41D7F; }
.tg-hot { --tg-bg: #FFF2E8; --tg-bd: #FFBB96; --tg-fg: #AD2102; }
.tg-other { --tg-bg: var(--sunk); --tg-bd: transparent; --tg-fg: var(--ink-2); }

/* GitHub 星数 .stars：线条星 + 数字，不加框 */
.stars { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-xs); line-height: 22px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stars svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }

/* ===================== 技能卡 .skill-card =====================
   白卡 20 圆角 + 一档阴影；封面 3:2 内嵌（四周留 8，圆角 12，细描边免得浅色封面融进白卡）；
   标题（一行，右边 GitHub 星数）→ 来源 · 作者 · 几月几日更新 → 简介两行 → 类型标签 · 想做什么 · 能在哪用。
   整张卡可点：标题里的 <a> 用 ::after 盖满整张卡。悬停抬起 3px + 二档阴影。手机列表用 .skill-card--row（左小图右文字） */
.skill-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); container-type: inline-size; }
@media (hover: hover) { .skill-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); } }
.skill-card__cover { position: relative; margin: 8px 8px 0; aspect-ratio: 3 / 2; border-radius: var(--r-md); overflow: hidden; background: var(--sunk); }
.skill-card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.skill-card__cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(31 45 61 / .07); pointer-events: none; }
@media (hover: hover) { .skill-card:hover .skill-card__cover img { transform: scale(1.03); } }
.skill-card__body { display: flex; flex-direction: column; flex: 1; padding: 12px 16px 16px; min-width: 0; }
.skill-card__head { display: flex; align-items: flex-start; gap: var(--space-sm); }
.skill-card__title { flex: 1; min-width: 0; font-size: var(--fs-md); font-weight: 600; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skill-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.skill-card__title a:focus-visible { outline: 0; }
.skill-card:has(.skill-card__title a:focus-visible) { box-shadow: var(--sh-lg), 0 0 0 2px var(--blue); }
.skill-card__src { margin-top: 2px; font-size: var(--fs-xs); line-height: 18px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skill-card__sum { margin-top: var(--space-sm); font-size: var(--fs-sm); line-height: 22px; min-height: 44px; color: var(--ink-2);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.skill-card__tags { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; margin-top: auto; padding-top: var(--space-ms); font-size: var(--fs-xs); line-height: 22px; color: var(--ink-3); white-space: nowrap; }
.skill-card__use { flex: none; }
.skill-card__ai { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.skill-card__ai::before { content: "·"; margin-right: var(--space-sm); color: var(--ink-3); }
.skill-card__ai.is-easy { color: var(--ok); }
@container (max-width: 250px) { .skill-card__use { display: none; } }
/* 封面上：右上角「收藏」（悬停才出现，收藏过的一直在，蓝底白字）、右下角「用一下」（有填空模板的才有，深色胶囊）；
   没封面的画标题第一个字（按类型上色）；左下角星数 .skill-card__mstars 默认藏着（手机两列紧凑卡才露，页面样式里打开）。11-07 从样稿 resources.css 的 .res-fav / .res-use 收进来 */
.skill-card__fav, .skill-card__go { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border: 0; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; line-height: 1; opacity: 0; transform: translateY(-2px); transition: opacity .2s, transform .2s var(--ease), background-color .2s, color .2s; }
.skill-card__fav { top: 8px; right: 8px; background: rgb(255 255 255 / .94); color: var(--ink); box-shadow: 0 2px 8px rgb(31 45 61 / .16); }
.skill-card__fav svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.skill-card__fav.on { opacity: 1; transform: none; background: var(--btn); color: #fff; }
.skill-card__go { right: 8px; bottom: 8px; background: rgb(31 31 31 / .82); color: #fff; transform: translateY(2px); }
@media (hover: hover) {
  .skill-card__fav:hover { color: var(--link); }
  .skill-card__fav.on:hover { color: #fff; background: var(--btn-hover); }
  .skill-card__go:hover { background: var(--ink); }
  .skill-card:hover .skill-card__fav, .skill-card:hover .skill-card__go { opacity: 1; transform: none; }
}
.skill-card__fav:focus-visible, .skill-card__go:focus-visible, .skill-card:focus-within .skill-card__fav, .skill-card:focus-within .skill-card__go { opacity: 1; transform: none; }
@media (hover: none) { .skill-card__fav { opacity: 1; transform: none; width: 30px; padding: 0; justify-content: center; } .skill-card__fav .pp-swap { display: none; } .skill-card__go { display: none; } }
@media (pointer: coarse) { .skill-card__fav::after { content: ""; position: absolute; inset: -7px; } }
.skill-card__ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--tg-bg, var(--sunk)); color: var(--tg-fg, var(--ink-3));
  font: var(--display-w) clamp(40px, 3vw, 64px)/1 var(--display); -webkit-text-stroke: var(--display-stroke) currentColor; }
.skill-card__mstars { position: absolute; left: 6px; bottom: 6px; display: none; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: var(--r-pill);
  background: rgb(255 255 255 / .92); font-size: var(--fs-xs); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.skill-card__mstars svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.skill-card mark { background: var(--blue-bg); color: inherit; border-radius: 3px; padding: 0 1px; }   /* 搜索命中的词（全部技能搜索结果） */
.skill-card[hidden] { display: none; }
/* 手机列表：一行一条，左边 112 宽小封面，右边标题两行、简介一行、类型和想做什么 */
.skill-card--row { flex-direction: row; align-items: flex-start; gap: var(--space-ms); padding: var(--space-ms); }
.skill-card--row .skill-card__cover { flex: none; width: 112px; margin: 0; border-radius: 10px; }
.skill-card--row .skill-card__body { padding: 0; }
.skill-card--row .skill-card__title { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.4; }
.skill-card--row .skill-card__src, .skill-card--row .stars, .skill-card--row .skill-card__ai { display: none; }
.skill-card--row .skill-card__sum { min-height: 0; margin-top: var(--space-xs); -webkit-line-clamp: 1; }
.skill-card--row .skill-card__tags { padding-top: var(--space-sm); }

/* 卡片网格 .card-grid：按容器宽自动排（每张至少 --card-min，默认 280），有左栏的页面也不用另算；要固定列数就在页面里写 --cols */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-min, 280px)), 1fr)); gap: var(--grid-gap); }
.card-grid--cols { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }

/* ===================== 小列表项 .list-item =====================
   缩略图（3:2，默认 96 × 64）+ 标题（一行）+ 一行说明 + 底下一行小字（类型标签、日期）。
   一般放在 .panel 里，多列用 .list-grid（列数 --list-cols，默认按宽自动 1 / 2 / 3 列）。不要缩略图的：.list-item--text */
.list-item { position: relative; display: flex; align-items: flex-start; gap: var(--space-md); min-width: 0; padding: var(--space-ms); border-radius: 14px; transition: background-color .2s; }
@media (hover: hover) { .list-item:hover { background: var(--sunk); } }
.list-item__thumb { position: relative; flex: none; width: var(--thumb-w, 96px); aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--sunk); }
.list-item__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.list-item__thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(31 45 61 / .07); }
.list-item__thumb--logo { width: 44px; aspect-ratio: 1; border-radius: 12px; background: var(--paper); box-shadow: var(--sh); }
.list-item__thumb--logo img { object-fit: contain; padding: 7px; }
.list-item__thumb--logo::after { display: none; }
.list-item__body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.list-item__title { font-size: var(--fs-md); font-weight: 600; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item__title small { font-size: inherit; font-weight: 400; color: var(--ink-2); }
.list-item__title--wrap { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.list-item__desc { font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item__meta { display: flex; align-items: center; gap: var(--space-sm); margin-top: 4px; font-size: var(--fs-xs); line-height: 22px; color: var(--ink-3); white-space: nowrap; }
.list-item__go { flex: none; align-self: center; width: 16px; height: 16px; color: var(--ink-3); transition: transform .2s var(--ease), color .2s; }
@media (hover: hover) { .list-item:hover .list-item__go { color: var(--link); transform: translateX(2px); } }
.list-item--text { padding-block: 14px; }
.list-grid { display: grid; grid-template-columns: repeat(var(--list-cols, 1), minmax(0, 1fr)); gap: 4px var(--space-lg); }
.list-sep > * + * { box-shadow: 0 -1px 0 var(--line); }   /* 竖排列表项之间一道细线（悬停底会盖住它） */
@media (hover: hover) { .list-sep > :hover, .list-sep > :hover + * { box-shadow: none; } }

/* ===================== 面板 .panel ===================== */
.panel { min-width: 0; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh); padding: var(--space-md); }
.panel__head { display: flex; align-items: center; gap: var(--space-ms); min-height: 44px; padding: 4px var(--space-ms) var(--space-ms); }
.panel__title { font: var(--display-w) var(--fs-xl)/1.2 var(--display); -webkit-text-stroke: var(--display-stroke) currentColor; }
.panel__ava { flex: none; width: auto; height: 44px; margin: -8px 0 -6px -4px; }
.panel__head .link { margin-left: auto; }
.panel__foot { margin: var(--space-sm) var(--space-ms) 4px; padding-top: var(--space-md); border-top: 1px solid var(--line); }
.panel__foot-label { display: block; margin-bottom: var(--space-sm); font-size: var(--fs-xs); color: var(--ink-3); }

/* ===================== 区块标题 .section-head =====================
   左：标题（--display）+ 一句说明；右：「查看全部 →」。放在每个区块最上面，下面 16 再接内容 */
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px var(--space-ms); margin-bottom: var(--space-md); }
.section-head__title { font: var(--display-w) var(--fs-d3)/1.2 var(--display); -webkit-text-stroke: var(--display-stroke) currentColor; letter-spacing: .01em; }
.section-head__desc { font-size: var(--fs-sm); color: var(--ink-2); }
.section-head__more { margin-left: auto; align-self: center; }

/* 页面标题 .page-head（列表页、栏目页的头）：大标题 + 一句说明，可选右边按钮 */
.page-head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); padding: clamp(24px, 3vw, 56px) 0 var(--space-lg); }
.page-head__title { font: var(--display-w) var(--fs-d2)/1.18 var(--display); -webkit-text-stroke: var(--display-stroke) currentColor; letter-spacing: .01em; }
.page-head__desc { margin-top: var(--space-sm); font-size: var(--fs-md); color: var(--ink-2); max-width: 46em; }
.page-head__end { margin-left: auto; display: flex; gap: var(--space-ms); }

/* ===================== 空状态 .empty =====================
   蓝色角色拿放大镜看空箱子（g6）+ 一句话说清为什么空 + 一句建议 + 一排出路（按钮或胶囊） */
.empty { display: grid; justify-items: center; text-align: center; gap: var(--space-sm); padding: var(--space-2xl) var(--space-lg); }
.empty__img { width: clamp(170px, 12vw, 250px); height: auto; margin-bottom: var(--space-sm); }   /* 11-07 起是 DeepSeek 鲸鱼和 Claude 对着空箱子（横图 584×400），原来竖的陶土角色 */
.empty__title { font: var(--display-w) var(--fs-xl)/1.3 var(--display); -webkit-text-stroke: var(--display-stroke) currentColor; }
.empty__desc { color: var(--ink-2); font-size: var(--fs-sm); max-width: 32em; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); margin-top: var(--space-ms); }
.empty__lead { font-size: var(--fs-sm); color: var(--ink-3); }
.empty__actions { align-items: center; }
.empty__actions .chip b { font-weight: 600; }
.empty[hidden] { display: none; }

/* ===================== 「我是」角色一排 .persona =====================
   陶土角色头像 + 身份名，整排居中；悬停角色往上跳 4px。手机上 4 个一行 */
.persona { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 1vw, 26px); }
.persona__label { align-self: center; margin-right: 6px; font: var(--display-w) clamp(15px, .72vw, 18px)/1 var(--display); color: var(--ink-2); }
.persona__item { display: grid; justify-items: center; gap: 4px; font-size: clamp(13px, .56vw, 14px); color: var(--ink-2); transition: transform .2s var(--ease), color .2s; }
@media (hover: hover) { .persona__item:hover { transform: translateY(-4px); color: var(--ink); } }
.persona__item img { width: var(--ava, clamp(48px, 3.1vw, 80px)); height: auto; display: block; }
@media (max-width: 759px) {
  .persona { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: var(--space-ms); width: 100%; }
  .persona__label { grid-column: 1 / -1; justify-self: center; margin: 0; }
  .persona__item { font-size: var(--fs-xs); }
}

/* ===================== 新手三步 .steps / .step =====================
   三张白卡，每张一个角色在做这一步（角色 + 右下角一个道具）、左上角编号、标题 + 一句说明 */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.1vw, 28px); }
.step { position: relative; display: flex; align-items: center; gap: clamp(12px, .8vw, 20px); min-width: 0; padding: clamp(10px, .8vw, 18px) clamp(16px, 1vw, 26px);
  background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh); text-align: left; }
.step__ill { position: relative; flex: none; width: var(--step-ill, clamp(52px, 3.3vw, 84px)); }
.step__ill > img:first-child { display: block; width: 100%; height: auto; }
.step__prop { position: absolute; right: -14px; bottom: -6px; width: 52%; height: auto; filter: drop-shadow(0 2px 3px rgb(31 45 61 / .18)); }
.step__n { position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue-bg); color: var(--link); font: var(--display-w) 14px/1 var(--display); -webkit-text-stroke: var(--display-stroke) currentColor; }
.step__text { min-width: 0; }
.step__title { display: block; font: var(--display-w) clamp(16px, .78vw, 20px)/1.35 var(--display); -webkit-text-stroke: var(--display-stroke) currentColor; }
.step__desc { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 759px) { .steps { grid-template-columns: 1fr; } .step__desc { white-space: normal; } }

/* ===================== 列表页常用的几样 =====================
   .seg 分段切换（排序：推荐 / 最新 / 最热）· .crumbs 面包屑 · .pager 翻页 · .filter 左栏筛选组 · .input 输入框 */
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: var(--sunk); }
.seg a, .seg button { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: none; font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; }
@media (hover: hover) { .seg a:hover, .seg button:hover { color: var(--ink); } }
.seg .is-on, .seg [aria-current], .seg [aria-pressed="true"], .seg [aria-selected="true"] { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgb(31 45 61 / .12); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-sm); line-height: 24px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
@media (hover: hover) { .crumbs a:hover { color: var(--link); } }
.crumbs span[aria-hidden] { color: var(--ph); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--r-pill); font-size: var(--fs-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .pager a:hover { background: var(--paper); box-shadow: var(--sh); color: var(--link); } }
.pager [aria-current] { background: var(--btn); color: #fff; font-weight: 600; }
.filter { display: grid; gap: var(--space-sm); padding: var(--space-md) 0; }
.filter + .filter { border-top: 1px solid var(--line); }
.filter__title { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.filter__opts { display: grid; gap: 2px; }
.filter__opt { display: flex; align-items: center; gap: var(--space-sm); min-height: 36px; padding: 0 12px; border-radius: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
@media (hover: hover) { .filter__opt:hover { background: var(--sunk); color: var(--ink); } }
.filter__opt.is-on, .filter__opt[aria-current] { background: var(--blue-bg); color: var(--link); font-weight: 600; }
.filter__opt .chip__n { margin-left: auto; }
.filter__opt.is-on .chip__n, .filter__opt[aria-current] .chip__n { color: var(--link); }   /* 浅蓝底上灰字只有 4.3:1，选中项的条数跟着蓝 */
.input { width: 100%; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--paper); font-size: var(--fs-sm); outline: 0; transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: var(--ph); }
@media (hover: hover) { .input:hover { border-color: var(--blue-line); } }
.input:focus { border-color: var(--blue); box-shadow: var(--ring); }
textarea.input { height: auto; min-height: 96px; padding: 10px 16px; border-radius: 16px; line-height: 1.6; resize: vertical; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  @media (hover: hover) { .skill-card:hover, .persona__item:hover { transform: none; } }
}

/* =====================================================================
   外壳（真站才有，样稿里没有）：顶栏右边的登录 / 我的工作区、窄屏的搜索 / 菜单图标、手机底栏、菜单抽屉、
   从下面弹上来的面板（详情页「目录」）、提示条、测试站角标、回到顶部、跨页淡入淡出。原来在 classic.css，换成 B 的样子：
   胶囊按钮、20 圆角面板、软阴影。手机上沿用 10-30 站长定的底栏 + 右边滑出的抽屉（样稿把导航挪到第二行横滑，这里不跟，免得和底栏重复）
   ===================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s ease-out both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: scale(.992); } }
html { scroll-padding-top: var(--below-top); }

/* 顶栏右边：登录（白胶囊）/ 登录后「我的工作区」（头像字 + 字 + 待处理红点）；窄屏只露图标 */
.topbar .login { display: inline-flex; align-items: center; gap: var(--space-sm); }
.topbar .login > svg { width: 15px; height: 15px; }
.me-entry .av { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: -8px; border-radius: 50%; background: var(--ink); color: #fff; font-size: var(--fs-xs); font-weight: 600; }
.me-entry em { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--err); color: #fff; font: 600 11px/18px var(--sans); font-style: normal; text-align: center; }
.me-entry em[hidden] { display: none; }
.nv-ic { position: relative; display: none; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink); transition: background-color .2s; }
.nv-ic svg { width: 19px; height: 19px; }
@media (hover: hover) { .nv-ic:hover { background: rgb(255 255 255 / .7); } }
.nv-ic:active { background: var(--press); }
@media (max-width: 899px) {
  :root { --topbar-h: 60px; }
  .topbar__nav { display: none; }
  .topbar__end { gap: 2px; }
  .nv-ic { display: grid; }
  .topbar .login { width: 40px; height: 40px; padding: 0; justify-content: center; background: none; box-shadow: none; }
  .topbar .login .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* 只露图标，读屏照念「登录」 */
  .topbar .login > svg { width: 19px; height: 19px; }
  .me-entry .av { margin: 0; width: 28px; height: 28px; font-size: 13px; }
  .me-entry em { position: absolute; top: 2px; right: 0; }
}
@media (pointer: coarse) { .nv-ic::after { content: ""; position: absolute; inset: -4px; } }

/* 手机底栏（760 以下，10-30 站长定保留）：白底、上边一道细线，五格：图标 22 + 字 11，当前页蓝字 */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { position: fixed; z-index: 40; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgb(255 255 255 / .97); box-shadow: 0 -1px 0 var(--line), 0 -8px 24px rgb(31 45 61 / .05); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; line-height: 1.2; color: var(--ink-2); }
  .tabbar a:active { background: var(--press); }
  .tabbar .ic { position: relative; display: block; }
  .tabbar svg { display: block; width: 22px; height: 22px; }
  .tabbar a[aria-current] { color: var(--link); font-weight: 600; }
  .tabbar em { position: absolute; top: -4px; left: 15px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--err); color: #fff; font: 600 10px/16px var(--sans); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--paper); }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  input:not([type=checkbox]):not([type=radio]), textarea, select { font-size: 16px !important; }   /* iPhone：字小于 16 点进去整页会放大 */
}

/* 从下面弹上来的面板（手机详情页「目录」）和右边滑出的菜单抽屉：遮罩 .45 黑；面板白底、上两角 20 圆角 */
.msheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; background: rgb(15 23 42 / .45); opacity: 0; transition: opacity .25s ease; }
.msheet[hidden] { display: none; }
.msheet.on { opacity: 1; }
.ms-box { width: min(560px, 100%); max-height: calc(88dvh / var(--zoom, 1)); overflow: auto; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--paper); box-shadow: var(--sh-lg); transform: translateY(28px); transition: transform .35s var(--ease); }
.msheet.on .ms-box { transform: none; }
.ms-hd { display: flex; align-items: center; gap: 8px; }
.ms-x { height: 46px; padding: 0 8px; border: 0; border-radius: var(--r-pill); background: none; font-size: 15px; color: var(--ink-2); }
.ms-x:active { background: var(--press); }
.ms-hd > b { flex: 1; padding-left: 4px; font-weight: 600; font-size: 16px; }
.toc-list { display: grid; gap: var(--space-xs); margin-top: var(--space-sm); }
.toc-list a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--space-md); border-radius: var(--r-md); font-size: var(--fs-md); color: var(--ink); }
.toc-list a:active { background: var(--press); }
.toc-list a[aria-current] { background: var(--blue-bg); color: var(--link); font-weight: 600; }
.ms-drawer { justify-content: flex-end; align-items: stretch; }
.ms-drawer .ms-box { display: flex; flex-direction: column; width: min(300px, 100%); max-height: none; height: 100%; padding: 0; border-radius: var(--r-lg) 0 0 var(--r-lg); transform: translateX(100%); transition: transform .3s var(--ease); }
.ms-drawer.on .ms-box { transform: none; }
.ms-drawer .ms-hd { flex: none; gap: var(--space-ms); padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--line); }
.ms-drawer .ms-x { position: relative; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; margin-left: -6px; color: var(--ink-3); }
.ms-drawer .ms-x svg { width: 16px; height: 16px; }
@media (hover: hover) { .ms-drawer .ms-x:hover { background: var(--sunk); color: var(--ink); } }
@media (pointer: coarse) { .ms-drawer .ms-x::after { content: ""; position: absolute; inset: -8px; } }
.ms-t { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; font: var(--display-w) 18px/1 var(--display); -webkit-text-stroke: var(--display-stroke) currentColor; white-space: nowrap; }
.ms-bd { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: var(--space-lg); padding: var(--space-lg) var(--space-lg) calc(var(--space-lg) + env(safe-area-inset-bottom)); }
.ms-find { display: flex; align-items: center; height: 44px; padding: 0 4px 0 16px; border-radius: var(--r-pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.ms-find:focus-within { box-shadow: inset 0 0 0 1px var(--blue), var(--ring); }
.ms-find input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 16px; }
.ms-find input::placeholder { color: var(--ph); }
.ms-find input::-webkit-search-cancel-button { display: none; }
.ms-find button { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--btn); color: #fff; }
.ms-find button svg { width: 15px; height: 15px; }
.ms-nav { display: grid; gap: 2px; margin: 0 calc(-1 * var(--space-sm)); }
.ms-nav a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 var(--space-md); border-radius: var(--r-pill); font-size: 15px; color: var(--ink); }
.ms-nav a svg { flex: none; width: 16px; height: 16px; color: var(--ink-2); }
@media (hover: hover) { .ms-nav a:hover { background: var(--sunk); } }
.ms-nav a:active { background: var(--press); }
.ms-nav a[aria-current] { background: var(--blue-bg); color: var(--link); font-weight: 600; }
.ms-nav a[aria-current] svg { color: var(--link); }
.ms-nav hr { width: 100%; margin: var(--space-xs) 0; border: 0; border-top: 1px solid var(--line); }
.ms-g { margin: 0; padding: var(--space-sm) var(--space-md) 0; font-size: var(--fs-sm); color: var(--ink-3); }
.ms-login { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); height: 44px; border-radius: var(--r-pill); background: var(--btn); color: #fff; font-size: 15px; font-weight: 600; }
.ms-login svg { width: 16px; height: 16px; }
.ms-foot { display: flex; justify-content: center; gap: var(--space-lg); margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.ms-foot a { padding-block: var(--space-sm); margin-block: calc(-1 * var(--space-sm)); }

/* 提示条（复制成功、收藏、撤销）：白胶囊 + 二档阴影，在屏幕底部中间；手机上整行宽、让开底栏 */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 70; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 10px 20px; border-radius: var(--r-pill); background: var(--paper); color: var(--ink); font-size: var(--fs-sm);
  box-shadow: var(--sh-lg); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .25s ease, transform .45s var(--ease); }
.toast.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast a { color: var(--link); text-decoration: underline; text-decoration-color: rgb(9 88 217 / .35); text-underline-offset: 3px; white-space: nowrap; }
/* 收藏时飞进右上角的那一小张 */
.flyer { position: fixed; z-index: 80; margin: 0; object-fit: cover; border-radius: var(--r-md); pointer-events: none; box-shadow: var(--sh-lg); }
/* 测试站角标（只在测试站）：左下角一小块橙底白字 */
.stage-tag { position: fixed; left: 12px; bottom: 12px; z-index: 30; padding: 4px 10px; border-radius: var(--r-pill); background: var(--warn-ink); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
/* 手机长页面的「回到顶部」（ui.js 补上）；详情页的「目录」浮钮 */
.to-top, .dp-tocbtn { display: none; }
@media (max-width: 760px) {
  .toast { left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); max-width: none; justify-content: center; border-radius: 16px; transform: translateY(16px); }
  .toast.on { transform: none; }
  .stage-tag { left: 50%; top: 6px; bottom: auto; transform: translateX(-50%); padding: 2px 8px; font-size: 11px; }
  .to-top { position: fixed; z-index: 30; right: 14px; bottom: calc(72px + env(safe-area-inset-bottom)); display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: var(--paper); color: var(--ink); box-shadow: var(--sh-lg); }
  .to-top[hidden] { display: none; }
  .to-top svg { width: 20px; height: 20px; }
  .dp-tocbtn { position: fixed; z-index: 30; right: 14px; bottom: calc(72px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: var(--space-sm); height: 44px; padding: 0 var(--space-md) 0 var(--space-ms); border: 0; border-radius: var(--r-pill);
    background: var(--btn); color: #fff; font-size: var(--fs-sm); font-weight: 600; box-shadow: 0 6px 16px rgb(22 104 220 / .3); }
  .dp-tocbtn[hidden] { display: none; }
  .dp-tocbtn svg { width: 17px; height: 17px; }
  html.typing .tabbar, html.typing .dp-tocbtn, html.typing .to-top { display: none; }   /* 正在打字：底栏、浮钮先收起来，不挡输入框 */
  html.typing body { padding-bottom: 0; }
}
@media (pointer: coarse) { .toast a, .toast button { position: relative; display: inline-block; padding: 10px 8px; margin: -10px -8px; } }

/* ---------- 交互细节（原 classic.css 同名一段，10-20 起；类名 pp-*，ui.js 用）：只给读屏的字、复制后原地「✓ 已复制」、收藏、搜索等待 ---------- */
/* ---------- 交互细节（10-20 第二步试点）：复制、收藏、搜索等待 ----------
   参考开源组件库 Uiverse（https://uiverse.io ，组件按 MIT 许可发布），按本站规范改写，不是照搬：类名都带 pp-，不写 button {} 这类全局选择器；
   都是真的 <button>，键盘聚焦有框；换字用两层叠在同一个格子里（.pp-swap），按钮宽度取宽的那层，换状态时不跳；
   只过渡透明度和 4px 上下位移，200ms，缓动 --ease；不加新颜色；减少动画时直接换、不转圈；状态变化由提示条或 #ppLive 播报。 */
.pp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:is(h1, h2, h3, h4).pp-sr { font: inherit; }   /* 只给读屏的标题（如全部技能页的「技能列表」）：看不见，字号跟着正文，体检不会把浏览器默认的标题字号算成多一档 */
.pp-swap { display: inline-grid; place-items: center; }
.pp-swap > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: var(--space-sm); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.pp-swap-b { opacity: 0; visibility: hidden; transform: translateY(4px); }   /* 不露的那层 visibility:hidden：读屏和复制文字都只拿到露出来的那层 */
.pp-done .pp-swap-a, .pp-fav.on .pp-swap-a, .pp-busy .pp-swap-a { opacity: 0; visibility: hidden; transform: translateY(-4px); }
.pp-done .pp-swap-b, .pp-fav.on .pp-swap-b, .pp-busy .pp-swap-b { opacity: 1; visibility: visible; transform: none; }
.pp-copy:focus-visible, .pp-fav:focus-visible, .pp-find:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.card .pp-fav:focus-visible { box-shadow: 0 0 0 2px var(--paper); }   /* 卡片上的收藏压在别的字上：黑框里再垫一圈白 */

/* 1 复制：点了以后按钮原地变成「✓ 已复制」，1.5 秒后变回来（以前按钮不动，只在屏幕底部中间弹提示条，2560 宽时离按钮 1000 多 px）。
   参考：Galahhad「kind-cheetah-52」https://uiverse.io/Galahhad/kind-cheetah-52（MIT）——剪贴板图标换成对勾；
        fabiodevbr「shy-termite-9」https://uiverse.io/fabiodevbr/shy-termite-9（MIT）——旧字往上淡出、新字从下面升上来。
   改了什么：kind-cheetah 靠 :focus:not(:focus-visible) 显示「Copied!」（点别处就消失，键盘按了不显示）、outline:none 去掉焦点框；
        shy-termite 写全局 button {}、按钮从 100px 撑到 120px、过渡 500–900ms；两个都写死颜色尺寸、不管减少动画。
        这里由 JS 加 .pp-done，宽度不变，200ms，用站里的颜色（深色、蓝色按钮上的对勾跟着字是白色）；
        正文里的「复制」小按钮（服务器排好的只有一层字）由 ui.js 进页面时补上第二层。 */
.md .code .pp-copy:focus-visible { outline-color: #E8EAED; }   /* 代码块是深底，焦点框用代码块里的浅字色 */

/* 2 收藏：书签填色淡入，收藏那一下图标轻轻弹一下（只缩放图标，不动布局；取消不弹）；「收藏 N」和「已收藏 N」两层叠着（详情页；卡片上是「收藏」「已收藏」），按钮宽度不变，
   旁边的按钮不再被挤动（以前详情页一点收藏，右边「看演示视频」左右跳 24px）。
   参考：LeonKohli「average-impala-100」https://uiverse.io/LeonKohli/average-impala-100（MIT）——书签填色 + 弹一下；
        Galahhad「mighty-warthog-42」https://uiverse.io/Galahhad/mighty-warthog-42（MIT）——收藏时书签填色。
   改了什么：两个原版都是 display:none 的勾选框（键盘到不了）、没有减少动画；average-impala 写死红色、弹到 1.2 倍后停在 1.1 倍，
        mighty-warthog 写死金色、外圈放射小圆点、延迟 0.3s 才动。这里是真按钮 + aria-pressed，填色跟着字色，只留 240ms 的轻弹，弹完回到原大小。 */
.pp-fav .pp-swap > span { display: block; }   /* 「收藏 3,310」是一行字，不用弹性布局（不然数字前面的空格变成 8px 间距） */
.pp-fav path { fill: currentColor; fill-opacity: 0; transition: fill-opacity .2s var(--ease); }
.pp-fav.on path { fill-opacity: 1; }
.pp-fav.pp-pop svg { animation: pp-pop .24s var(--ease); }
@keyframes pp-pop { 45% { transform: scale(1.25); } }

/* 3 搜索等待：「搜索」（10-22 前叫「翻找一下」）150ms 内没回来，字淡出、按钮里转一个小圈，回来了变回去（以前慢网下点完 1 秒多页面毫无反应，还能连点重复发）。
   参考：themrsami「sharp-dragonfly-36」https://uiverse.io/themrsami/sharp-dragonfly-36（MIT）——按钮里的圆环转圈，另给读屏一句「Loading」；
        mobinkakei「great-insect-77」https://uiverse.io/mobinkakei/great-insect-77（MIT）——等待时按钮不再响应。
   改了什么：sharp-dragonfly 是 Tailwind 绿底、去掉焦点框、减少动画时还在转（只是变慢）；great-insect 写全局 button {}、蓝底写死、
        用 disabled（焦点会丢）；两个都是圈和「Loading」字并排（拿来切换状态按钮会变宽）。这里圈用按钮自己的字色，和原来的字叠在一起（宽度不变），
        150ms 内回来不转（快的时候不闪），用 aria-disabled 挡连点（焦点留在按钮上）；减少动画时不转圈，写「在找…」；结果数由 #ppLive 播报。 */
.pp-spin { display: block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
.pp-busy .pp-spin { animation: pp-spin .8s linear infinite; }
@keyframes pp-spin { to { transform: rotate(360deg); } }
.pp-wait { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* 平时只给读屏：「在找…」 */
@media (prefers-reduced-motion: reduce) {
  .pp-swap > span, .pp-fav path { transition: none; }
  .pp-fav.pp-pop svg, .pp-busy .pp-spin { animation: none; }
  .pp-spin { display: none; }
  .pp-wait { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}
