/* ===== Blog Index Page ===== */
/* Scoped under .blog-channel to avoid conflicts with homepage .onq-* classes */

/* 顶到导航栏下方：去掉 .post-page 的 48px 上 padding，
   避免 Hero 淡灰区与导航之间出现一条脱节的白边 */
.blog-channel{ padding-top:0; }

/* —— Hero —— */
.blog-hero{
  background:var(--zone-soft);
  padding:56px 0 48px;
}
.blog-hero__inner{
  max-width:760px;
}
.blog-hero .eyebrow{
  margin-bottom:16px;
}
.blog-hero h1{
  font-size:clamp(36px,5vw,52px);
  font-weight:600;
  letter-spacing:-.02em;
  line-height:1.1;
  margin-bottom:14px;
}
.blog-hero__desc{
  font-size:17px;
  line-height:1.6;
  color:var(--ink-soft);
  margin-bottom:28px;
}

/* —— Filter Chips —— */
.blog-filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.blog-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 18px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  transition:.2s;
  white-space:nowrap;
}
.blog-chip:hover{
  border-color:var(--blue-300);
  color:var(--blue);
}
.blog-chip.is-active{
  background:var(--blue);
  border-color:var(--blue);
  color:#fff;
}
.blog-chip__count{
  font-size:11px;
  opacity:.7;
  font-weight:400;
}

/* —— Featured Card —— */
.blog-featured{
  display:flex;
  overflow:hidden;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
  text-decoration:none;
  color:inherit;
  transition:.3s;
  margin-bottom:36px;
}
.blog-featured:hover{
  box-shadow:var(--shadow-lg);
}
.blog-featured__media{
  flex:0 0 50%;
  max-width:620px;
  aspect-ratio:16/10;
  overflow:hidden;
  position:relative;
  background:#000;
}
.blog-featured__media .onq-thumb{
  width:100%;
  height:100%;
  aspect-ratio:unset;
}
.blog-featured__media .onq-thumb img{
  width:100%;height:100%;object-fit:cover;
}
.blog-featured__body{
  flex:1;
  padding:44px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:16px;
}
.blog-featured__badge{
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  padding:6px 14px;
  border-radius:999px;
  background:var(--blue-100);
  color:var(--blue);
  font-size:12px;
  font-weight:600;
  letter-spacing:.05em;
}
.blog-featured__body h3{
  font-size:clamp(22px,2.5vw,28px);
  font-weight:600;
  line-height:1.35;
  letter-spacing:-.01em;
  /* line-clamp:2 */
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.blog-featured__summary{
  font-size:15px;
  line-height:1.65;
  color:var(--ink-soft);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.blog-featured__meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:4px;
}
.blog-featured__date{
  font-size:13px;
  color:var(--muted);
}
/* —— 阅读全文：Uiverse (cssbuttons-io) learn-more「圆钮展开覆盖」交互 ——
   静止：左边一枚 32px 圆钮（内含 > 箭头）+ 紧挨着的同色文字；
   hover：圆钮横向展开成整条胶囊铺满，文字转白。
   落到本站改了这些，否则不是用不了就是会污染别处：
     1. 类名落到 .blog-readmore / __circle / __text —— 原版的 .circle / .icon /
        .button-text 都太通用，全站会撞车；
     2. 不能是 <button>：卡片整体是 <a>（整卡可点），交互式元素不能嵌套，
        所以外层仍是 <span>，交互挂在它自己的 :hover 上；
     3. 去掉 text-transform:uppercase —— 本站英文用句首大写（Read more），
        uppercase 会变成 READ MORE（中韩文不受影响，但三语要一致）；
     4. 颜色 #282936（近黑）→ --blue-600：hover 态是白字压在圆钮上，
        #2E6BFF（--blue）对白字只有 4.50:1，卡在 AA 线上，--blue-600 是 6.3:1；
     5. 弃用原版的「固定 12rem 宽 + 文字绝对定位占满盒子 + 居中」：文字是相对
        整个 12rem 盒子居中的，圆钮只占左边 3rem，于是两者之间被撑出 30px 以上
        的空档（圆钮和文字看着毫无关系）。改用 flex 内容宽 —— 圆钮 + gap + 文字
        首尾相接，整体宽度随三语文案自适应，不再有固定盒。
        展开动画改由 ::before 这条绝对定位的胶囊承担：它不参与布局，
        width 从圆钮宽长到 100%，既不会把文字顶出去，也不影响卡片排版。
     6. 圆钮 48px → 32px（--rm-d）：14px 正文旁边 48px 太沉，而且它是唯一撑起
        高度的元素，卡片会平白高出一大截。图标用内联 SVG 的 > 折角，
        走 currentColor，随圆钮内的白色一起变。
   ⚠️ 类名一律用「.blog-readmore 前缀 + 后代」的双段选择器（0,2,0）：components.css 的
   .onq-body span{font-size:12px;color:var(--muted)} 是给日期用的，但会顺带命中这里的
   每一个 span，单段选择器（0,1,0）会被它盖掉，出现「灰字 + 12px」。
   同理 __text 的 font-size / color / font-weight 都要显式写，不能靠继承。 */
.blog-readmore{
  --rm-d:32px;      /* 圆钮直径，也是胶囊静止时的宽度 */
  --rm-gap:8px;     /* 圆钮到文字的距离 */
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:var(--rm-gap);
  max-width:100%;
  padding:0 12px 0 0;  /* 展开后胶囊右侧的留边（文字右沿到胶囊右端的距离）。
                          ⚠️ 不能小于 3.35px：胶囊高 32px、圆头半径 16px，14px 文字高
                          19.6px，字形右上下角落在 W−3.35 处，留边过小字形角会戳出圆头。
                          ⚠️ 上下不能加 padding —— ::before 以 padding box 为包含块，
                          加了会把胶囊撑高、圆钮变竖椭圆（纵向间距请用 transparent border） */
  vertical-align:middle;
  font-size:14px;
  font-weight:700;
  line-height:1.4;
  color:var(--blue-600);
}
/* 胶囊：静止时正好是那枚圆钮，hover 时 width 长到 100% 铺满整条。
   绝对定位 → 不占布局、不顶文字、不动卡片排版；z-index:0 压在图标/文字之下。 */
.blog-readmore::before{
  content:'';
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:var(--rm-d);
  border-radius:999px;   /* 大于高度一半 → 展开后两端是圆的 */
  background:var(--blue-600);
  z-index:0;
  transition:width .45s cubic-bezier(.65,0,.076,1);
}
/* 圆钮：本身透明（底色由上面的胶囊给），只负责居中放图标并撑起整块高度 */
.blog-readmore .blog-readmore__circle{
  position:relative;
  z-index:1;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  width:var(--rm-d);
  height:var(--rm-d);
  color:#fff;   /* 图标走 currentColor */
}
.blog-readmore .blog-readmore__circle svg{ display:block }
/* 文字层：正常文档流，宽度由它撑出来 —— 所以圆钮会自动贴住它，不会留空档 */
.blog-readmore .blog-readmore__text{
  position:relative;
  z-index:1;
  white-space:nowrap;
  font-size:14px;
  font-weight:700;
  line-height:1.4;
  color:var(--blue-600);
  transition:color .45s cubic-bezier(.65,0,.076,1);
}
.blog-readmore:hover::before,
a:focus-visible .blog-readmore::before{ width:100% }
.blog-readmore:hover .blog-readmore__text,
a:focus-visible .blog-readmore__text{ color:#fff }
@media (prefers-reduced-motion: reduce){
  .blog-readmore::before,
  .blog-readmore .blog-readmore__text{ transition:none }
}

/* —— Grid Head —— */
.blog-grid-head{
  font-size:18px;
  font-weight:700;
  margin-bottom:20px;
}

/* —— Grid —— */
.blog-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.blog-grid .onq-card{
  display:flex;
  flex-direction:column;
}
.blog-grid .onq-body{
  display:flex;
  flex-direction:column;
  flex:1;
}
.blog-grid .onq-body h4{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  line-height:1.4;
}
.blog-grid .onq-summary{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
/* 网格卡里的阅读全文：
   ① align-self:flex-start —— `.onq-body` 是 column flex，align-items 默认 stretch，
      不写这行按钮会被拉满整行（实测 305px），hover 时胶囊跟着长到 305px，
      远远甩出文字右侧。设为 flex-start 后回到内容宽。
   ② 与上方摘要的 10px 间距用「透明 border-top」而不是 padding-top ——
      绝对定位的 ::before 以 **padding box** 为包含块，padding-top:10px 会把
      top:0;bottom:0 的胶囊撑成 32×42 的竖椭圆（圆钮变形），border 不算在内。
   ③ 注意别再在这里设 color / font-size —— 文字装在 __text 里，
      字号和颜色必须由 .blog-readmore .blog-readmore__text（0,2,0）显式给，
      设在父级会被 .onq-body span{font-size:12px;color:var(--muted)} 盖掉（见上方说明）。 */
.blog-grid .onq-body .blog-readmore{
  align-self:flex-start;
  margin-top:auto;
  border-top:10px solid transparent;
}

/* —— Video Poster + Play Button —— */
.onq-thumb--video{
  position:relative;
  background-size:cover;
  background-position:center;
}
.onq-play{
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:52px;height:52px;
  border-radius:50%;
  border:none;
  background:rgba(0,0,0,.55);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.2s;
  backdrop-filter:blur(4px);
}
.onq-play::before{
  content:'';
  display:block;
  width:0;height:0;
  border-style:solid;
  border-width:9px 0 9px 14px;
  border-color:transparent transparent transparent #fff;
  margin-left:3px;
}
.onq-play:hover{
  background:rgba(46,107,255,.8);
  transform:translate(-50%,-50%) scale(1.1);
}
.onq-thumb--video video{
  width:100%;height:100%;object-fit:cover;display:block;background:#000;
}

/* —— Empty State —— */
.blog-empty{
  text-align:center;
  padding:60px 20px;
  color:var(--muted);
}
.blog-empty p{
  font-size:15px;
}

/* —— Pager —— */
.blog-pager{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:38px;
  flex-wrap:wrap;
  gap:12px;
}
.blog-pager__count{
  font-size:13px;
  color:var(--muted);
}
.blog-pager__btns{
  display:flex;
  align-items:center;
  gap:8px;
}

/* —— Responsive —— */
@media(max-width:1024px){
  .blog-featured{
    flex-direction:column;
  }
  .blog-featured__media{
    flex:none;
    max-width:100%;
    aspect-ratio:16/9;
  }
  .blog-featured__body{
    padding:28px;
  }
  .blog-grid{
    grid-template-columns:repeat(2,1fr);
  }
}
@media(max-width:640px){
  .blog-hero{
    padding:40px 0 32px;
  }
  .blog-grid{
    grid-template-columns:1fr;
  }
  .blog-featured__body{
    padding:20px;
  }
  .blog-featured__body h3{
    font-size:20px;
  }
  .blog-pager{
    justify-content:center;
  }
  .blog-pager__count{
    order:2;
    width:100%;
    text-align:center;
  }
}

/* —— 静态文章清单（渐进增强）——
   由 build-static-first.js 在构建期烤入，列出全部文章的标题/日期/摘要，
   供**不执行 JS 的客户端**（GPTBot / ClaudeBot / PerplexityBot / CCBot 等
   生成式引擎爬虫、禁用 JS 的用户）读取 —— 剥掉脚本后本页原本没有正文。
   有 JS 时整块不显示，仍由上方 .blog-featured / .blog-grid 的交互式列表承担
   展示与分页，视觉与改动前一致（见 <head> 里的 html.js 标记）。
   .blog-static 是独立命名空间，不参与现有卡片样式。 */
html.js .blog-static{display:none}
.blog-static{padding:8px 0 0}
.blog-static-head{
  font-size:20px;
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--ink);
  margin:0 0 18px;
}
.blog-static-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
.blog-static-item{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px 20px;
  background:var(--white);
}
.blog-static-link{
  display:block;
  font-size:15.5px;
  font-weight:700;
  line-height:1.45;
  color:var(--ink);
  text-decoration:none;
}
.blog-static-link:hover{color:var(--blue)}
.blog-static-date{
  display:block;
  margin-top:6px;
  font-size:12.5px;
  color:var(--muted);
}
.blog-static-sum{
  margin:10px 0 0;
  font-size:13.5px;
  line-height:1.7;
  color:var(--muted);
}
@media(max-width:640px){
  .blog-static-list{grid-template-columns:1fr}
}

/* ============================================================
 *  公众号导入文章：正文节奏统一（行高 / 段距 / 字号 / 字距）
 * ------------------------------------------------------------
 *  公众号导出的正文把排版全写进内联样式：字号 14/15/16/17px 混用、
 *  行高 1em/1.75/1.8 混用、字距 0.544px/1.5px 混用、段落整篇 justify，
 *  于是同一篇文章里行间距、段间距各行不同，跟站点其它页面也对不上。
 *  这里统一锁到站点正文节奏 —— 与 css/components.css 的 .post-body p 一致：
 *    17px / line-height 1.8 / 段距 18px / 无字距 / --ink-soft。
 *
 *  作用域只打「没有 class 的段落与列表项」：导入正文的段落一律无 class，
 *  而 .ua-* 组件全部带 class，因此组件样式不会被这里压掉。
 *  （图片居中用的 <section style="text-align:center"> 不是 <p>，不受影响）
 * ============================================================ */
.post-body p:not([class]),
.post-body li:not([class]){
  font-size:17px !important;
  line-height:1.8 !important;
  letter-spacing:normal !important;
  color:var(--ink-soft) !important;
  text-align:left !important;
}
.post-body p:not([class]){ margin:0 0 18px !important; }
.post-body li:not([class]){ margin:0 0 8px !important; }
.post-body ul:not([class]){ margin:0 0 18px 22px !important; list-style:disc; }
/* 字距是挂在 span / font 上的内联样式，同样压平 */
.post-body p:not([class]) span,
.post-body p:not([class]) font,
.post-body li:not([class]) span,
.post-body li:not([class]) font{ letter-spacing:normal !important; }

/* ============================================================
 *  自研版式：章节标题 / 结语带 / 文末联系卡片
 *  替代公众号那套「嵌套 section + 红色装饰条 + 15px 红字」的标题写法
 * ============================================================ */

/* —— 章节标题：编号徽标 + 主标题 + 副标题 —— */
.post-body .ua-sec{
  display:flex;
  align-items:flex-start;
  gap:16px;
  margin:56px 0 24px;
  padding-top:30px;
  border-top:1px solid var(--line);
  font-weight:400;
}
.post-body .ua-sec:first-child{ margin-top:0; padding-top:0; border-top:0; }
.post-body .ua-sec__n{
  flex:0 0 auto;
  width:48px;height:48px;
  display:flex;align-items:center;justify-content:center;
  border-radius:13px;
  background:linear-gradient(135deg,var(--blue-500),var(--blue-600));
  color:#fff;
  font-size:17px;font-weight:700;
  font-variant-numeric:tabular-nums;
  letter-spacing:.02em;
  box-shadow:0 8px 20px rgba(46,107,255,.24);
}
.post-body .ua-sec__b{ min-width:0; padding-top:2px; }
.post-body .ua-sec__t{
  display:block;
  font-size:clamp(21px,2.6vw,26px);
  line-height:1.25;
  font-weight:700;
  color:var(--ink);
  letter-spacing:-.01em;
}
.post-body .ua-sec__d{
  display:block;
  margin-top:7px;
  font-size:14.5px;
  line-height:1.6;
  color:var(--muted);
  letter-spacing:0;
}

/* —— 小节标题：次于 ua-sec 的三级标题（仅带 .ua-h3 的文章使用，不影响存量文章） —— */
.post-body .ua-h3{
  margin:34px 0 14px;
  font-size:18px;
  font-weight:700;
  line-height:1.5;
  color:var(--ink);
  letter-spacing:-.01em;
}

/* —— 结语带 —— */
.post-body .ua-end{
  display:flex;align-items:baseline;flex-wrap:wrap;gap:12px;
  margin:52px 0 22px;
  padding:18px 24px;
  border-radius:var(--radius);
  background:var(--blue-50);
  border-left:4px solid var(--blue);
  font-weight:400;
}
.post-body .ua-end__t{
  font-size:13px;font-weight:700;
  color:var(--blue-600);letter-spacing:.14em;
}
.post-body .ua-end__d{
  font-size:clamp(17px,2.1vw,20px);
  font-weight:700;color:var(--ink);letter-spacing:-.01em;
}

/* —— 文末联系卡片 —— */
.post-body .ua-cta{
  margin:44px 0 8px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.post-body .ua-cta__hd{
  display:flex;flex-direction:column;gap:6px;
  padding:20px 28px;
  background:linear-gradient(135deg,var(--blue-500),var(--blue-600));
}
.post-body .ua-cta__tag{
  font-size:11.5px;font-weight:600;
  letter-spacing:.16em;line-height:1.4;
  color:rgba(255,255,255,.72);
}
.post-body .ua-cta__ttl{
  font-size:19px;font-weight:700;
  color:#fff;letter-spacing:.01em;line-height:1.3;
}
.post-body .ua-cta__bd{ padding:24px 28px 26px; }
.post-body .ua-cta__lead{
  margin:0 0 20px;
  font-size:15px;line-height:1.85;
  color:var(--ink-soft);letter-spacing:0;text-align:left;
}
.post-body .ua-cta__list{ margin:0;padding:0;list-style:none; }
.post-body .ua-cta__row{
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  gap:4px 16px;
  align-items:baseline;
  margin:0;
  padding:13px 0;
  border-top:1px dashed var(--line);
  font-size:14.5px;line-height:1.7;
  list-style:none;
}
.post-body .ua-cta__row:first-child{ border-top:0; padding-top:0; }
.post-body .ua-cta__k{
  font-size:13px;font-weight:400;
  color:var(--muted);letter-spacing:.06em;
}
.post-body .ua-cta__v{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;
  min-width:0;
  color:var(--ink);font-weight:500;letter-spacing:0;
}

/* —— 邮箱复制按钮 —— */
.post-body .ua-copy{
  display:inline-flex;align-items:center;gap:6px;
  flex:0 0 auto;
  padding:5px 13px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--zone-soft);
  color:var(--ink-soft);
  font:inherit;
  font-size:12.5px;font-weight:600;line-height:1.35;letter-spacing:.02em;
  cursor:pointer;
  transition:background .2s,border-color .2s,color .2s,transform .15s;
}
.post-body .ua-copy:hover{
  background:var(--blue-50);
  border-color:var(--blue-300);
  color:var(--blue-600);
}
.post-body .ua-copy:active{ transform:translateY(1px); }
.post-body .ua-copy:focus-visible{ outline:2px solid var(--blue-300);outline-offset:2px; }
.post-body .ua-copy.is-done{
  background:#EDFBF3;border-color:#B7E7CB;color:#147A46;
}

/* —— 文章页底部「由 AI 翻译」小字（仅英 / 韩文章页） —— */
.post-ai-note{
  margin:30px 0 4px;
  font-size:13px;
  line-height:1.6;
  color:var(--muted,#9aa3b2);
  text-align:center;
  letter-spacing:.2px;
}

/* —— 窄屏 —— */
@media(max-width:640px){
  .post-body .ua-sec{ gap:13px;margin:40px 0 20px;padding-top:24px; }
  .post-body .ua-sec__n{ width:40px;height:40px;border-radius:11px;font-size:15px; }
  .post-body .ua-sec__d{ font-size:13.5px; }
  .post-body .ua-h3{ margin:28px 0 12px;font-size:16.5px; }
  .post-body .ua-end{ margin:38px 0 18px;padding:15px 18px;gap:8px; }
  .post-body .ua-cta__hd{ padding:16px 20px; }
  .post-body .ua-cta__bd{ padding:18px 20px 20px; }
  .post-body .ua-cta__row{ grid-template-columns:1fr;gap:2px;padding:12px 0; }
  .post-body .ua-cta__k{ font-size:12px;letter-spacing:.04em; }
}

/* —— Hero 黄金螺旋背景（A 方案：方块内切弧构造，右缘对齐导航容器、满高） —— */
.blog-hero{
  position:relative;
  overflow:hidden;
}
.blog-hero__bg{
  position:absolute;
  top:0;
  /* 右缘对齐 .container 内容右边缘（与导航同宽）：
     视口 ≤1680px 时 = 内边距；更宽时 = 居中留白 + 内边距 */
  right:max(var(--container-pad), calc((100% - 1680px)/2 + var(--container-pad)));
  height:100%;
  width:auto;
  pointer-events:none;
}
@media(max-width:960px){
  /* 窄屏：构造块与文案重叠 → 隐藏 */
  .blog-hero__bg{ display:none; }
}

/* —— 返回链接箭头：细线 SVG 替代字形「←」（覆盖 components.css 的 .post-back） —— */
.post-back{display:inline-flex;align-items:center;gap:6px;position:sticky;top:72px;z-index:40;width:max-content;margin:0 0 16px;padding:9px 14px;border-radius:0;background:rgba(255,255,255,.72);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border:1px solid rgba(228,234,243,.9);box-shadow:0 8px 22px rgba(15,23,42,.07);color:var(--ink-soft);font-weight:600;transition:color .2s ease,box-shadow .2s ease,border-radius .3s ease,border-color .3s ease}
.post-back.is-stuck{border-radius:0 0 10px 10px;border-color:rgba(228,234,243,.8)}
.post-back:hover{color:var(--blue);box-shadow:0 10px 26px rgba(15,23,42,.1);text-decoration:none}
.post-back__arrow{flex:none;transition:transform .15s ease}
.post-back:hover .post-back__arrow{transform:translateX(-2px)}

