@charset "UTF-8";

/* 跨文档视图过渡（@view-transition:navigation）已经关掉，别再打开。
   它会在站内每次跳转（筛选 chips / 分页 / 返回）把「旧页面快照」和「新页面快照」
   交叉淡化约 250ms —— 两层画面同时可见，文字重影发虚，看起来就是「切换时有点模糊」。
   而且新页面快照是在首次渲染那一帧抓的，那时入场动效的元素还在 opacity:0，
   淡进来的是一张缺内容的图，过渡结束才「啪」地补上真实 DOM，比瞬切更晃眼。
   真要恢复，加回下面这段即可，但请先确认上面两个副作用可以接受：
     @view-transition{ navigation:auto; }
     @media (prefers-reduced-motion: reduce){ @view-transition{ navigation:none; } }
*/

/* ===== 全局基础+页头+抽屉页脚 ===== */
:root{

  --bg-grad-1:#FFFFFF;

  --bg-grad-2:#F2F7FC;

  --ink:#1B2534;

  --ink-2:#55677E;

  /* 灰阶按可读性重排：以「浅灰卡底(#F3F7FC)上 11px 小字也能读」为标准。
     白底对比度 ink-3 5.74 / muted 5.05 / muted-2 4.80 / muted-3 4.47 / muted-4 3.4；
     原来这一组只有 1.9~3.8:1，时间、阅读量在浅底上几乎看不清 */
  --ink-3:#56687E;

  --muted:#5F7086;

  --muted-2:#63748A;

  --muted-3:#67788C;

  --muted-4:#7B8A9F;

  --line:#D9E2EE;

  --line-soft:#DEE6F0;

  --line-soft2:#B6C3D4;

  --card:#FFFFFF;

  --tile:#EDF3FA;

  --tile-2:#E9F0F8;

  /* 面板底色调浅：原来 #E9F0F8 上放 11px 灰字只有 3.9:1 */
  --panel:#F2F6FB;

  --chip:#F3F7FC;

  --blue:#2563EB;

  --blue-ink:#F4F8FD;

  --radius-card:16px;

  --radius-chip:20px;

  --shadow:0 1px 2px rgba(27,37,52,.05),0 8px 24px rgba(27,37,52,.06);

  --font:'Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif;

  /* ---- 间距（4px 基准）: 4 / 8 / 12 / 16 / 20 / 24 / 32 ---- */
  --sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:20px;--sp-6:24px;--sp-8:32px;

  /* ---- 字号阶梯（6 档，不再用 11.5/12.5/13.5 这类半像素值） ---- */
  --fs-xs:11px;   /* 角标、极小标注 */
  --fs-sm:12px;   /* 元信息：时间、阅读量 */
  --fs-md:13px;   /* 次要正文、列表描述 */
  --fs-base:14px; /* 正文默认 */
  --fs-lg:15px;   /* 卡片标题、导语 */
  --fs-xl:16px;   /* 页面小标题 */
  --fs-2xl:20px;  /* 区块标题 */
  --fs-3xl:26px;  /* 页面主标题 */

  /* ---- 圆角阶梯（收敛掉 9/13 这类奇数值） ---- */
  --r-sm:8px;--r-md:12px;--r-lg:16px;--r-full:999px;

}

*{margin:0;padding:0;box-sizing:border-box}

/* ===== 可访问性基础（键盘焦点 / 触屏热区 / 动效偏好） ===== */

/* 搜索框不需要焦点环：它自带 border-color 变蓝的反馈（search.css / index.css），
   再叠加 outline 就是双重高亮；且搜索页输入框带 autofocus，一进结果页就亮一圈很难看 */
:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:2px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:1px;
}
/* 搜索类输入框豁免：全站搜索框统一 name="q"，一条规则全兜住
   （搜索页 .search / 首页 .search-input / 栏目页模块 .blk-search / 视频页 .search-box） */
input[name="q"]:focus-visible{
  outline:none;
}
/* 深色/品牌色底上用白环，否则蓝环和底色糊在一起 */
.btn-primary:focus-visible,
.btn-publish:focus-visible,
.chip.active:focus-visible,
.tbl-filter-btn.is-on:focus-visible{
  outline-color:#fff;
  box-shadow:0 0 0 4px rgba(37,99,235,.32);
}
/* 抽屉/弹层里的关闭按钮同样需要可见焦点 */
.drawer-close:focus-visible,
.nav-toggle:focus-visible{
  outline-offset:1px;
}

/* 触屏热区：图标按钮原来 32~38px，单手很难点中（P0 UX-024） */
@media (pointer:coarse){
  .nav-toggle{min-width:44px;min-height:44px}
  .drawer-close{min-width:40px;min-height:40px}
  /* 筛选标签与按钮补足到 44px 热区（原来 34~39px，单手难点中） */
  .chip{min-height:44px;display:inline-flex;align-items:center}
  .btn{min-height:44px}
}

/* 尊重系统「减少动效」：光斑、卡片动效、滚动动画一起停 */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
}

html,body{width:100%}

body{

  font-family:var(--font);

  color:var(--ink);

  background:linear-gradient(135deg,var(--bg-grad-1),var(--bg-grad-2));

  min-height:100vh;

  -webkit-font-smoothing:antialiased;

  line-height:1.4;

}

a{text-decoration:none;color:inherit}

/* 画布宽度自适应显示器分辨率：
   小屏（≤1726px 视口）就是原来的 1312px，一点不变 —— 1366/1440/1536/1680 的
   笔记本和外接屏看到的还是老样子，改动只发生在 1920 及以上的大屏上；
   视口更宽就按 76vw 缓慢放开，最宽 1560px（4K 全屏也就这么宽）。
   1920 下容器 1459px、内容区 1331px，占屏 76%，比原先死钉 1312 略宽、
   又不像 86vw 那样把卡片拉得过开；2500 以上到顶 1560。
   用 min()/max() 做连续曲线，不用一串断点 —— 拖窗口时宽度是渐变，不会"跳档"。 */
.container{
  width:100%;
  max-width:min(1560px,max(1312px,76vw));
  margin:0 auto;
  padding-left:64px;padding-right:64px;
}

svg{display:block}

/* 兜底：任何图片都不许把页面撑出横向滚动条（正文里贴大图是最常见的溢出源） */
img{max-width:100%}

button{font-family:inherit}



/* ===== Header ===== */

.header{border-bottom:1px solid var(--line);position:relative;z-index:100}

.header-inner{

  height:68px;display:flex;align-items:center;justify-content:space-between;gap:24px;

}

.header-left{display:flex;align-items:center;gap:22px;min-width:0}

.brand{display:flex;align-items:center;gap:9px;flex-shrink:0}

.logo-mark{width:26px;height:26px;flex-shrink:0}

/* 后台上传的站点 logo：默认圆角，与页头整体风格一致 */
.site-logo{height:26px;width:auto;border-radius:6px;object-fit:contain;flex-shrink:0;display:block}

.wordmark{display:flex;flex-direction:column;line-height:1.1}

.wordmark-cn{font-size:17px;font-weight:600;color:var(--ink)}

.wordmark-en{font-size:10px;font-weight:500;color:var(--muted-2);letter-spacing:.06em;white-space:nowrap}

.nav-rule{width:1px;height:18px;background:var(--line);flex-shrink:0}

.nav{display:flex;align-items:center;gap:22px;min-width:0}

.nav a{font-size:13px;color:var(--ink-2);white-space:nowrap;cursor:pointer}

.nav a.active{color:var(--ink);font-weight:500}

.header-right{display:flex;align-items:center;gap:16px;flex-shrink:0}

.login{font-size:13px;color:var(--ink-2);cursor:pointer}

.btn{

  display:inline-flex;align-items:center;justify-content:center;

  background:var(--blue);color:var(--blue-ink);

  border-radius:8px;font-size:13px;font-weight:500;

  padding:9px 16px;border:none;cursor:pointer;

  transition:filter .15s ease;

}

.btn:hover{filter:brightness(1.06)}



/* 移动端菜单按钮（默认隐藏，窄屏显示） */

.nav-toggle{

  display:none;width:38px;height:38px;border-radius:9px;

  align-items:center;justify-content:center;

  background:transparent;border:1px solid var(--line);color:var(--ink);

  cursor:pointer;

}

.nav-toggle svg{width:22px;height:22px}



/* ===== 移动端栏目抽屉 ===== */

/* overflow:hidden 是必须的：抽屉里的 .drawer-mask / .drawer-panel 是 absolute + 100% 高，
   会溢出到 body 底边之外，把文档可滚动高度撑高约 7px（表现为页面到底时莫名多一截空白，
   而且悬停触发重排时滚动位置会被夹紧、整页跳一下）。抽屉本身是整屏覆盖层，裁掉无副作用。 */
.drawer{position:fixed;inset:0;z-index:1200;visibility:hidden;overflow:hidden}

.drawer a,.drawer button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}

.drawer.open{visibility:visible}

.drawer-mask{

  position:absolute;inset:0;background:rgba(17,24,39,.5);

  opacity:0;transition:opacity .28s ease;

  -webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);

}

.drawer.open .drawer-mask{opacity:1}

.drawer-panel{

  position:absolute;top:0;left:0;bottom:0;width:78%;max-width:320px;

  background:#fff;display:flex;flex-direction:column;

  transform:translateX(-100%);transition:transform .3s cubic-bezier(.4,0,.2,1);

  box-shadow:4px 0 24px rgba(0,0,0,.12);

}

.drawer.open .drawer-panel{transform:translateX(0)}

.drawer-head{

  display:flex;align-items:center;justify-content:space-between;

  padding:15px 18px;border-bottom:1px solid var(--line-soft);

}

.drawer-brand{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:600;color:var(--ink)}

.drawer-logo{width:24px;height:24px}

.drawer-close{

  width:32px;height:32px;border-radius:50%;border:none;

  background:transparent;font-size:22px;line-height:1;color:var(--muted);cursor:pointer;

  transition:background-color .18s ease,color .18s ease;

}

.drawer-body{flex:1;overflow-y:auto;padding:10px 12px;display:flex;flex-direction:column}

.d-item{

  display:flex;align-items:center;gap:12px;

  padding:12px;border-radius:10px;font-size:15px;color:var(--ink);

  transition:background-color .18s ease,color .18s ease;

}

.d-item svg{width:20px;height:20px;color:var(--ink-2);flex-shrink:0}

/* 只有带箭头的父项（横向 flex 行）里的链接才需要占满宽度，避免纵向抽屉里被拉高 */

.d-parent .d-item{flex:1;min-width:0}

/* 鼠标悬停效果仅在真正支持悬停的设备生效，避免触屏点击后高亮块粘住不消失 */

@media (hover:hover){

  .d-item:hover{background:var(--tile)}

  .d-item:hover svg{color:var(--blue)}

  .d-subitem:hover{background:var(--tile);color:var(--blue)}

  .d-arrow:hover{background:var(--tile);color:var(--ink)}

  .drawer-close:hover{background:var(--tile);color:var(--ink)}

}

/* 触屏按下时的短暂反馈（手指抬起即消失），替代会粘滞的 hover */

.d-item:active{background:var(--tile)}

.d-item:active svg{color:var(--blue)}

.d-subitem:active{background:var(--tile);color:var(--blue)}

.d-item.cur{color:var(--blue);font-weight:600;background:var(--tile)}

.d-item.cur svg{color:var(--blue)}

.d-group{display:flex;flex-direction:column}

.d-parent{display:flex;align-items:center}

.d-arrow{

  width:34px;height:34px;border:none;background:transparent;

  display:flex;align-items:center;justify-content:center;

  color:var(--muted);cursor:pointer;flex-shrink:0;margin-right:6px;

  border-radius:8px;transition:transform .25s ease,color .2s,background-color .18s ease;

}

.d-arrow svg{width:19px;height:19px}

.d-arrow.up{transform:rotate(90deg);color:var(--blue)}

.d-sub{

  display:flex;flex-direction:column;

  max-height:0;overflow:hidden;transition:max-height .3s cubic-bezier(.4,0,.2,1);

  padding-left:20px;

}

.d-subitem{

  padding:10px 12px;border-radius:8px;font-size:14px;color:var(--ink-2);

  transition:background-color .18s ease,color .18s ease;

}

.drawer-foot{padding:14px 16px;border-top:1px solid var(--line-soft)}

.drawer-publish{width:100%;padding:11px;gap:8px}

.drawer-publish svg{width:17px;height:17px}



/* ===== Footer ===== */

.footer-rule{height:1px;background:var(--line);margin-top:40px}

.footer-inner{

  height:48px;display:flex;align-items:center;justify-content:space-between;gap:20px;

}

.footer-left{display:flex;align-items:center;gap:8px;font-size:12px}

.copyright{color:var(--muted)}

.note{color:var(--muted-4)}

.footer-links{display:flex;gap:20px}

.footer-links a{font-size:12px;color:var(--ink-2);cursor:pointer}

.footer-links a:hover{color:var(--blue)}



/* ===== 公共响应式 ===== */

@media (max-width:1080px){

  .container{padding-left:40px;padding-right:40px}

}

@media (max-width:900px){

  .container{padding-left:24px;padding-right:24px}

}

@media (max-width:640px){

  .container{padding-left:20px;padding-right:20px}

  .header-inner{height:60px}

  .nav{display:none}

  .nav-rule{display:none}

  .wordmark-en{display:none}

  .nav-toggle{display:flex}

  .btn-publish{display:none}

  .footer-inner{flex-direction:column;height:auto;padding:16px 22px;align-items:flex-start;gap:12px}

  .footer-links{flex-wrap:wrap;gap:12px 20px}

}

/* ===== aurora 背景 ===== */
.aurora-bg{

  position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;

}

.aurora{

  position:absolute;display:block;

  /* 这里原来有 filter:blur(90px)。四个 700px 级的模糊层 → 每次失效都要整块重新
     栅格化，且 keyframes 里还带 scale（等于不停重建纹理），弱机上直接吃掉帧预算。
     径向渐变本身已经是软过渡，模糊只是再糊一层；把柔和度直接烘进渐变后
     视觉几乎无差别（见 docs/动效引擎-总体设计.md §9.6），栅格化成本降一个量级。

     也不要用 border-radius:50% 做圆形裁剪：渐变最外圈本来就是全透明，
     圆角在视觉上没有任何作用，却会让图层带上圆角遮罩 ——
     带遮罩的图层没法把 scale 交给合成器，只能每帧回主线程重新栅格化。 */
  will-change:transform;

}

/* 左上：淡蓝 */

.aurora-1{

  width:48vw;height:48vw;left:-14vw;top:-14vw;

  background:radial-gradient(circle at 35% 35%, rgba(147,197,253,.46), rgba(147,197,253,.18) 42%, rgba(147,197,253,0) 88%);

  animation:auroraFloat1 28s ease-in-out infinite;

}

/* 右上：淡青 */

.aurora-2{

  width:44vw;height:44vw;right:-12vw;top:6vw;

  background:radial-gradient(circle at 62% 38%, rgba(165,232,248,.42), rgba(165,232,248,.16) 42%, rgba(165,232,248,0) 88%);

  animation:auroraFloat2 34s ease-in-out infinite;

}

/* 左下：雾蓝 */

.aurora-3{

  width:50vw;height:50vw;left:14vw;bottom:-18vw;

  background:radial-gradient(circle at 50% 50%, rgba(191,219,254,.48), rgba(191,219,254,.18) 42%, rgba(191,219,254,0) 90%);

  animation:auroraFloat3 32s ease-in-out infinite;

}

/* 右下：冰蓝 */

.aurora-4{

  width:36vw;height:36vw;right:12vw;bottom:8vw;

  background:radial-gradient(circle at 50% 50%, rgba(186,222,253,.42), rgba(186,222,253,.16) 42%, rgba(186,222,253,0) 88%);

  animation:auroraFloat4 26s ease-in-out infinite;

}

/* 缓慢漂移 + 轻微缩放 + 呼吸，幅度小、周期长 */

@keyframes auroraFloat1{

  0%,100%{transform:translate(0,0)}

  33%{transform:translate(12vw,9vh)}

  66%{transform:translate(5vw,16vh)}

}

/* 注意：这四个关键帧只做 translate，不要再加 scale。
   scale 会让合成器按新的缩放比重新栅格化这层 700px 的渐变图，
   等于每帧重建纹理；实测同一页面上，带 scale 时空闲 3 秒烧 946ms 主线程，
   只留 translate 后降到 160ms。软光斑的「呼吸」肉眼几乎看不出，不值得。 */
@keyframes auroraFloat2{

  0%,100%{transform:translate(0,0)}

  40%{transform:translate(-11vw,12vh)}

  70%{transform:translate(-4vw,4vh)}

}

@keyframes auroraFloat3{

  0%,100%{transform:translate(0,0)}

  50%{transform:translate(10vw,-12vh)}

}

@keyframes auroraFloat4{

  0%,100%{transform:translate(0,0)}

  45%{transform:translate(-8vw,-9vh)}

}

/* 尊重"减少动态效果"：静止定格，不闪烁 */

@media (prefers-reduced-motion:reduce){

  .aurora{animation:none}

}

/* ===== 桌宠小猫 =====
   性能约定（和光晕同一条教训）：**不要在 SVG 子元素上跑连续动画**。
   SVG 没有独立合成层，<g>/<path>/<text> 上的 transform、opacity 变化
   只能让整张 SVG 每帧在主线程重绘；猫一直在页面上，等于全站持续空转。
   所以：呼吸放到 HTML 容器（可合成、零重绘），耳朵/尾巴/Zzz 这类
   「偶发小动作」用 steps() 分步，一个周期只重绘两三次。 */
.pet-peek{
  position:absolute;width:80px;z-index:110;
  user-select:none;-webkit-user-select:none;cursor:pointer;
}
.pet-peek svg{width:100%;height:auto;overflow:visible}
/* 睡猫呼吸浮动：挂在 .pet-peek-head 上（它是 HTML div，可合成，不触发重绘） */
.pet-peek-head{
  animation:peekBreath 4.6s ease-in-out infinite;
  transform-origin:50% 100%;
  will-change:transform;
}
@keyframes peekBreath{0%,100%{transform:translateY(0)}50%{transform:translateY(-2.5px)}}
/* 耳朵偶尔抖动（睡梦中）：steps 让它在 88%~92% 之间「抖一下」，
   整个周期只产生两次重绘，而不是每帧一次 */
.peek-ear-l{transform-box:fill-box;transform-origin:100% 100%;animation:peekEarL 5.2s steps(1,end) infinite}
.peek-ear-r{transform-box:fill-box;transform-origin:0% 100%;animation:peekEarR 5.2s steps(1,end) infinite}
@keyframes peekEarL{0%,88%{transform:rotate(0)}90%,94%{transform:rotate(-7deg)}96%,100%{transform:rotate(0)}}
@keyframes peekEarR{0%,88%{transform:rotate(0)}90%,94%{transform:rotate(7deg)}96%,100%{transform:rotate(0)}}
/* 尾巴：分 4 段轻摆，5.4s 内只重绘 4 次 */
.peek-tail{transform-box:fill-box;transform-origin:0% 100%;animation:peekTail 5.4s steps(4,end) infinite}
@keyframes peekTail{0%,100%{transform:rotate(0)}50%{transform:rotate(3.5deg)}}
/* Zzz 睡眠气泡：同样用分步，避免每帧重绘三行 SVG 文字 */
.peek-zzz text{transform-box:fill-box;transform-origin:50% 100%;animation:peekZz 3s steps(5,end) infinite}
.peek-z2{animation-delay:.9s}
.peek-z3{animation-delay:1.8s}
@keyframes peekZz{0%,100%{transform:translateY(1px) scale(.92);opacity:.35}50%{transform:translateY(-3px) scale(1.05);opacity:.9}}
/* 眼睛：默认闭眼（睡觉），hover/点击时睁眼 */
.peek-eye{transform-box:fill-box;transform-origin:center}
.peek-eye .peek-eye-open{opacity:0}
.peek-eye .peek-eye-closed{opacity:1}
.pet-peek:hover .peek-eye-open,
.pet-peek.talk .peek-eye-open{opacity:1}
.pet-peek:hover .peek-eye-closed,
.pet-peek.talk .peek-eye-closed{opacity:0}
.peek-eye-open,.peek-eye-closed{transition:opacity .18s ease}
.peek-eye-open{transform-box:fill-box;transform-origin:center}
/* 眨眼：只压睁眼组，闭眼线条保持稳定 */
.peek-eye.peek-blinking .peek-eye-open{transform:scaleY(0.08)}
/* 瞳孔跟随（CSS transform 走合成器，避免 SVG 属性通道） */
.peek-pupil{transform-box:fill-box;transform-origin:center;will-change:transform}
/* 唤醒时 Zzz 消失 */
.pet-peek:hover .peek-zzz,
.pet-peek.talk .peek-zzz{opacity:0}
/* 页面隐藏时暂停全部动画，省电省 CPU */
.pet-peek.paused .pet-peek-head,
.pet-peek.paused .peek-ear-l,
.pet-peek.paused .peek-ear-r,
.pet-peek.paused .peek-tail,
.pet-peek.paused .peek-zzz text{animation-play-state:paused}
/* 说话气泡：出现在小猫左侧，面向页面内容 */
.peek-bubble{
  position:absolute;right:calc(100% + 8px);bottom:10px;width:max-content;max-width:150px;
  background:#fff;border:1px solid var(--line);border-radius:13px;
  padding:8px 12px;font-size:12px;color:var(--ink-2);line-height:1.5;
  box-shadow:var(--shadow);white-space:normal;
  opacity:0;transform:translateY(6px) scale(.96);pointer-events:none;
  transition:opacity .22s ease,transform .22s ease;
}
.peek-bubble::after{
  content:"";position:absolute;right:-6px;bottom:14px;
  width:10px;height:10px;background:#fff;border-right:1px solid var(--line);border-top:1px solid var(--line);
  transform:rotate(45deg);
}
.pet-peek:hover .peek-bubble,
.pet-peek.talk .peek-bubble{opacity:1;transform:translateY(0) scale(1)}
/* 点击：惊醒跳一下 */
.pet-peek.tap .pet-peek-head{animation:peekHop .55s ease}
@keyframes peekHop{0%,100%{transform:translateY(0)}35%{transform:translateY(-9px)}}
/* 移动端不显示宠物 */
@media (max-width:640px){
  .pet-peek{display:none}
}
@media (prefers-reduced-motion:reduce){
  .pet-peek-head{animation:none;transform:none}
  .peek-ear-l,.peek-ear-r,.peek-tail,.peek-zzz text{animation:none}
}

/* ===== Logo：SVG 描边动画（PC 与移动端统一生效） ===== */
.logo-mark{overflow:visible}
/* 外框：顺时针一笔描出 */
.logo-mark rect{
  stroke-dasharray:70;stroke-dashoffset:70;
  animation:logoDraw .6s cubic-bezier(.62,.03,.32,1) 0s forwards;
}
/* 分隔线：外框画到一半时从左向右接入 */
.logo-mark line:nth-of-type(1){
  stroke-dasharray:21;stroke-dashoffset:21;
  animation:logoDraw .38s cubic-bezier(.62,.03,.32,1) .34s forwards;
}
/* 蓝色短线：先描出，随后像光标一样轻微呼吸 + 右移，形成循环动效 */
.logo-mark line:nth-of-type(2){
  stroke-dasharray:5;stroke-dashoffset:5;
  transform-box:fill-box;transform-origin:center;
  animation:logoDraw .22s ease-out .6s forwards,
            logoCursor 2.6s ease-in-out 1s infinite;
}
/* 移动端图标略放大 */
@media (max-width:640px){
  .logo-mark{width:28px;height:28px}
}
@keyframes logoDraw{to{stroke-dashoffset:0}}
@keyframes logoCursor{
  0%,100%{opacity:1;transform:translateX(0)}
  50%{opacity:.6;transform:translateX(2.2px)}
}
@media (prefers-reduced-motion:reduce){
  .logo-mark rect,.logo-mark line{animation:none;stroke-dashoffset:0;opacity:1;transform:none}
}

/* ===== 移动端布局呼吸感调整（≤640px，统一各板块间距） ===== */
@media (max-width:640px){

  /* 画布与首屏 */
  .container{padding-left:22px;padding-right:22px}
  .main{padding-top:30px}

  /* 首页 Hero */
  .hero{gap:32px}
  .hero-left{gap:20px}
  .headline{font-size:30px;line-height:1.32}
  .subhead{font-size:14px;line-height:1.7}
  .search-area{gap:16px;margin-top:4px}
  .hot-searches{gap:10px 8px}

  /* 首页右侧观点面板：取消固定高度，行距放开 */
  .weekly-ranking{height:auto;padding:20px;border-radius:18px}
  .panel-head{margin-bottom:16px}
  .panel-rule{margin:12px 0}
  .op-row{padding:14px 0}
  .rank-row{padding:13px 0}

  /* 首页板块节奏 */
  .category-section{margin-top:40px}
  .section-head{margin-bottom:20px}
  .chips{gap:10px;margin-bottom:26px}
  .tool-grid{gap:16px}
  .tool-card{padding:20px;gap:12px}

  /* 列表页 */
  .page-head{margin-bottom:28px}
  .page-head p{margin-top:10px;line-height:1.75}
  .filter-bar{gap:14px;margin-bottom:22px}

  /* 工具行：改为「信息 / 标签 + 访问量 / 更新时间 + 按钮」三行紧凑卡片 */
  .row{
    grid-template-columns:1fr auto;
    padding:20px;margin-bottom:16px;
    gap:12px;row-gap:11px;
  }
  .row > .cell-tool{grid-column:1/-1;align-items:flex-start;gap:12px}
  .row > .cell-hit{justify-self:end;text-align:right}
  .row > div:last-child{justify-self:end}
  .cell-tool .name{font-size:15px;line-height:22px}
  .cell-tool .desc{
    margin-top:5px;line-height:20px;
    white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  }

  /* 文章页 */
  .title{font-size:26px;line-height:1.45}
  .article{gap:26px}
  .article-body{gap:22px}
  .article-body p{line-height:30px}
  .article-body blockquote{padding:22px;line-height:28px}
  .reward-card{padding:24px 20px}
  .rel-card{padding:22px}

  /* 栏目页卡片（GEO 宫格 / 个人分享列表）：内留白与卡片间距放开 */
  .grid{gap:16px}
  .grid .card{padding:20px}
  .list{gap:16px}
  .list .card{padding:20px;gap:14px}
  .card-info{gap:12px}
  .card-desc{line-height:22px}
  .card-meta{gap:10px 14px}
  .breadcrumb{font-size:13px;line-height:1.6}

  /* 抽屉导航 */
  .drawer-body{padding:12px 12px 18px;gap:2px}
  .d-item{padding:13px 12px}

  /* 页脚：恢复左右留白 + 版权行加大 + 链接均分整行（原 padding:16px 0 把容器内边距清零导致贴边） */
  .footer-rule{margin-top:34px}
  .footer-inner{
    padding:22px 22px calc(26px + env(safe-area-inset-bottom,0px));
    gap:0;align-items:stretch;
  }
  .footer-left{flex-wrap:wrap;gap:4px 6px;line-height:1.7}
  .copyright{font-size:13px;color:var(--ink-2);font-weight:500}
  .note{font-size:12px;color:var(--muted)}
  .footer-links{
    display:grid;grid-template-columns:repeat(auto-fit,minmax(62px,1fr));
    width:100%;gap:2px 6px;margin-top:16px;
  }
  .footer-links a{
    font-size:13px;color:var(--ink-2);
    padding:10px 0;line-height:1.4;transition:color .15s;
  }
  .footer-links a:active{color:var(--blue)}
}

/* ===== 大屏（≥1360px）排版增强 =====
   容器变宽以后，如果字号还停在原尺寸，观感就是「越看越小、四周全是白」。
   这里只放大「展示级」文字：主标题、区块标题、卡片标题。正文和控件不动 ——
   宽屏上放大正文反而破坏阅读节奏（一行字太少反而累）。

   为什么用 clamp 而不是几个断点：clamp 是连续曲线，拖窗口时字号平滑变化，
   不会在某个宽度上突然跳大一号。最小值都等于原本的固定值，所以 1360px 以下
   完全不受影响；≤640px 的移动端规则写在各文件的 max-width 媒体查询里，
   与这里的 min-width 互不重叠，不会被覆盖。

   vw 系数是按容器曲线标定的（容器 = 76vw，见上面 .container）：
   字号 / 内容宽度 的比值在 1920 下保持与原 1312px 布局一致（约 3.7%），
   所以容器收窄后系数也要等比收回，否则字会相对变粗、变挤。 */
@media (min-width:1360px){
  .headline{font-size:clamp(44px,2.55vw,58px)}
  .blk-hero-title{font-size:clamp(38px,2.1vw,48px)}
  .blk-hero-sub{font-size:clamp(15.5px,.93vw,17px)}
  .subhead{font-size:clamp(15px,.88vw,16.5px)}
  .title{font-size:clamp(30px,1.68vw,36px);line-height:1.4}
  .page-title{font-size:clamp(28px,1.5vw,34px);line-height:1.4}
  .blk-title{font-size:clamp(19px,1.02vw,21px)}
  .section-title{font-size:clamp(15px,.84vw,16.5px)}
  .card-title{font-size:clamp(15px,.81vw,16px)}
  /* 首页右侧观点面板跟着加宽，否则正文变宽后它显得过于瘦长 */
  .weekly-ranking{width:clamp(320px,15vw,360px)}
}

/* ===== 搜索框与筛选按钮靠拢 =====
   搜索框下面紧跟筛选按钮（子栏目/标签胶囊）时收紧两者的间距。
   列表区父容器是 flex 纵排自带 24px 间距，所以用 -12px 抵消，
   实际搜索框与筛选按钮之间约 12px；没有筛选按钮时保持原来的节奏。
   用 :has 判断相邻关系，老浏览器不支持时维持原间距，不影响布局。 */
.filter-bar:has(+ .chips){margin-bottom:-12px}

/* 列表整行热区：整行可点跳转，悬停给一点反馈 */
.row[data-href]{cursor:pointer;transition:background-color .15s ease}
.row[data-href]:hover{background:var(--tile,#F4F8FC)}

/* 标签 / 筛选 chips：按压反馈留在这里，选中弹跳交给视效引擎的 .is-pop
   （面板「动效 → 标签切换」里可关、可调时长；首屏已选中的 chip 不再自己弹一下） */
.chip,.blk-tab{will-change:transform}
.chip:active{transform:scale(.94)}
.chip{transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}
@media (prefers-reduced-motion: reduce){
  .chip:active{transform:none}
}
/* 仅供读屏与搜索引擎的隐藏标题：视觉上不可见，但不影响可访问性与 SEO */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
