/* 新前端 · 博客列表页 + 文章页（稿子 P-blog / P-article，2026-11-25）。公共部分在 base.css，这里只放博客自己的。
   页面由 scripts/build-blog-v2.mjs 生成，别手改 v2/blog*.html。 */
.t3-page{min-height:100vh;background:#f6f8fb;font-family:Inter,'PingFang SC','HarmonyOS Sans SC','Microsoft YaHei','Noto Sans SC',system-ui,sans-serif;color:#061b31;overflow:hidden}
.t3-nav a.on{color:#061b31;font-weight:500;position:relative}
.t3-nav a.on:after{content:"";position:absolute;left:50%;bottom:-9px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:#3a52d6}
.t3-card{background:#fff;border-radius:18px;box-shadow:0 0 0 1px rgba(6,27,49,.08),0 30px 60px -34px rgba(0,55,112,.25)}
.t3-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;font-size:12.5px;color:#56677d}
.t3-meta>span{display:inline-flex;align-items:center;gap:5px}
.t3-meta>span+span:before{content:"";width:3px;height:3px;border-radius:50%;background:rgba(6,27,49,.28);margin-right:9px}
.t3-views{color:#56677d}
.t3-views b{font-weight:400;color:#3b4c63}
.t3-more{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:500;color:#0a2540}
.t3-more svg{transition:transform .35s cubic-bezier(.34,1.4,.64,1)}
.t3-lift{transition:transform .5s cubic-bezier(.16,1,.3,1),box-shadow .5s cubic-bezier(.16,1,.3,1)}
.t3-lift:hover{transform:translateY(-5px);box-shadow:0 0 0 1px rgba(6,27,49,.08),0 36px 70px -30px rgba(0,55,112,.32)}
.t3-lift:hover .t3-more svg{transform:translateX(4px)}
/* 缩略图：底下是稿子里的渐变光斑 + 细网格，上面盖文章封面原图 */
.t3-thumb{position:relative;overflow:hidden;background:#eef2fb}
.t3-thumb i{position:absolute;border-radius:50%;filter:blur(34px);transition:transform 1.2s cubic-bezier(.16,1,.3,1)}
.t3-lift:hover .t3-thumb i{transform:scale(1.18) translate(4%,-3%)}
.t3-thumb .t3-grid{-webkit-mask-image:none;mask-image:none;background-size:36px 36px;opacity:.7}
.t3-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 1.2s cubic-bezier(.16,1,.3,1)}
.t3-lift:hover .t3-thumb img{transform:scale(1.04)}
.t3-tag{position:absolute;left:18px;top:16px;z-index:1;padding:4px 9px;border-radius:999px;background:rgba(255,255,255,.82);box-shadow:0 0 0 1px rgba(6,27,49,.06);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);font-size:11px;letter-spacing:.1em;color:#2b3d55}
.t3-h1{font-size:76px}
.t3-sum{margin:12px 0 0;font-size:15px;line-height:1.75;color:#3b4c63}
.t3-ttl{display:block;font-weight:500;color:#061b31;letter-spacing:.005em;transition:color .2s}
.t3-lift:hover .t3-ttl{color:#0865d2}
.t3-no{font-size:11px;letter-spacing:.1em;color:#56677d}
.t3-rule{display:flex;align-items:center;gap:16px;margin-bottom:22px}
.t3-rule>i{flex:1;height:1px;background:rgba(6,27,49,.1)}

/* ---------- 列表页 ---------- */
.bl-count{margin:22px auto 0;display:inline-flex;align-items:baseline;gap:6px;padding:6px 16px;border-radius:999px;background:rgba(255,255,255,.7);box-shadow:0 0 0 1px rgba(6,27,49,.08);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.bl-feat{display:block;overflow:hidden;color:inherit}
.bl-feat .t3-thumb{height:auto;aspect-ratio:2/1}
.bl-feat-ttl{margin-top:14px;font-size:32px;line-height:1.35}
.bl-card{display:flex;flex-direction:column;overflow:hidden;color:inherit}
.bl-card .t3-thumb{height:150px}
.bl-card-body{flex:1;display:flex;flex-direction:column;padding:24px 26px 26px}
.bl-card .t3-ttl,.bl-row .t3-ttl{margin-top:12px;font-size:19px;line-height:1.5}
.bl-card .t3-sum,.bl-row .t3-sum{font-size:14.5px;flex:1}
.bl-row{display:flex;flex-direction:column;padding:26px 30px 28px;color:inherit}
.bl-row .t3-ttl{margin-top:14px}
.bl-row-top,.bl-row-foot{display:flex;justify-content:space-between;align-items:center;gap:12px}
.bl-row-foot{margin-top:18px;padding-top:14px;border-top:1px solid rgba(6,27,49,.07)}

/* ---------- 文章页 ---------- */
.t3-back{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:#2b3d55;transition:color .2s}
.t3-back:hover{color:#0865d2}
.ar-h1{margin:18px 0 0;font-size:46px;font-weight:300;line-height:1.3;letter-spacing:.01em}
.t3-post{max-width:680px;margin:0 auto;font-size:17.5px;line-height:1.9;color:#1d2f45;counter-reset:sec}
.t3-post p{margin:0 0 1.25em}
.t3-post h2{counter-increment:sec;margin:2.6em 0 .9em;font-size:27px;line-height:1.35;font-weight:500;color:#061b31;letter-spacing:.01em}
.t3-post h2:before{content:counter(sec,decimal-leading-zero) "  —";display:block;margin-bottom:12px;font:500 12px/1 'JetBrains Mono',monospace;letter-spacing:.12em;color:#3a52d6;white-space:pre}
.t3-post h3{margin:2em 0 .7em;font-size:20px;line-height:1.45;font-weight:500;color:#061b31}
.t3-post strong{font-weight:600;color:#061b31;background:linear-gradient(transparent 62%,rgba(58,82,214,.16) 0)}
.t3-post a{color:#0a2540;text-decoration:underline;text-decoration-color:rgba(58,82,214,.45);text-decoration-thickness:1px;text-underline-offset:4px;transition:color .2s}
.t3-post a:hover{color:#0865d2}
.t3-post ul{margin:0 0 1.4em;padding:0;list-style:none}
.t3-post li{position:relative;margin:0 0 .75em;padding-left:22px}
.t3-post li:before{content:"";position:absolute;left:2px;top:.82em;width:7px;height:7px;border-radius:2px;background:linear-gradient(135deg,#6c8cff,#45cbe6)}
.t3-post blockquote{margin:1.6em 0;padding:4px 0 4px 22px;border-left:2px solid #3a52d6;color:#3b4c63}
.t3-post table{width:100%;border-collapse:collapse;margin:1.6em 0;font-size:15px}
.t3-post th,.t3-post td{padding:12px 14px;border-bottom:1px solid rgba(6,27,49,.09);text-align:left}
.t3-post figure{margin:2.6em 0}
.t3-post figure.tall{max-width:440px;margin-left:auto;margin-right:auto}
/* 原文配图（原站同一张图）：圆角 + 细描边，和稿子里的示意图框一致 */
.t3-post figure img{display:block;width:100%;height:auto;border-radius:18px;background:#eef2fb;box-shadow:0 0 0 1px rgba(6,27,49,.07)}
.t3-post figcaption{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:14px;font-size:13px;line-height:1.6;color:#56677d;text-align:center}
.t3-post figcaption:before{content:"";flex:none;width:14px;height:1px;background:currentColor;opacity:.6}
.t3-post .note{margin-top:3em;padding-top:20px;border-top:1px solid rgba(6,27,49,.1);font-size:12.5px;line-height:1.7;color:#56677d}
.ar-rel{display:flex;flex-direction:column;overflow:hidden;color:inherit}
.ar-rel .t3-thumb{height:96px}
.ar-rel-body{flex:1;display:flex;flex-direction:column;padding:20px 22px 22px}
.t3-rel-ttl{display:block;flex:1;margin-top:12px;font-size:16.5px;line-height:1.55;font-weight:500;color:#061b31;transition:color .2s}
.t3-lift:hover .t3-rel-ttl{color:#0865d2}
.t3-cta{position:relative;overflow:hidden;border-radius:24px;padding:64px 40px;text-align:center;background:#eef2fb;box-shadow:0 0 0 1px rgba(6,27,49,.07)}
.t3-cta h2{margin:16px 0 0;font-size:40px;font-weight:300;line-height:1.25}
.t3-cta .t3-btn{height:52px;font-size:16px;justify-content:center}
.t3-cta .t3-btn.ghost{background:rgba(255,255,255,.75);color:#0a2540;box-shadow:0 0 0 1px rgba(6,27,49,.1)}
.t3-cta .t3-btn.ghost:hover{background:#fff;color:#0865d2}
/* 阅读进度条 */
.ar-progress{position:fixed;left:0;top:0;right:0;height:2px;z-index:20;pointer-events:none}
.ar-progress span{display:block;height:100%;width:100%;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,#6c8cff,#45cbe6,#ffb27a)}

/* ---------- 分享区（从老博客搬来，2026-11-26） ---------- */
.share{max-width:680px;margin:clamp(48px,6vw,72px) auto 0;padding:clamp(24px,3vw,32px);border-radius:24px;background:rgba(255,255,255,.62);box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 20px 50px -30px rgba(22,43,69,.35);backdrop-filter:blur(10px)}
.share-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.share-title{margin:0;font-size:17px;font-weight:600;letter-spacing:.01em;color:#061b31}
.share-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(66px,1fr));gap:18px 8px}
.sh{display:flex;flex-direction:column;align-items:center;gap:9px;padding:0;border:0;background:none;color:#3b4c63;font:500 12px/1.2 Inter,'PingFang SC','Microsoft YaHei',sans-serif;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sh svg{box-sizing:border-box;width:52px;height:52px;padding:14px;border-radius:16px;fill:#fff;background:var(--c,#151a22);box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 8px 18px -10px var(--g,rgba(0,0,0,.6));transition:transform .45s cubic-bezier(.16,1,.3,1),box-shadow .45s cubic-bezier(.16,1,.3,1)}
.sh:hover svg,.sh:focus-visible svg{transform:translateY(-3px);box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 14px 24px -12px var(--g,rgba(0,0,0,.7))}
.sh:active svg{transform:scale(.94);transition-duration:.12s}
.sh:focus-visible{outline:none}
.sh:focus-visible span{text-decoration:underline;text-underline-offset:3px}
.sh-x{--c:#0f1114;--g:rgba(0,0,0,.55)}
.sh-telegram{--c:linear-gradient(180deg,#37aee2,#1e96c8);--g:rgba(30,150,200,.7)}
.sh-wechat{--c:linear-gradient(180deg,#22d26e,#05b553);--g:rgba(7,193,96,.7)}
.sh-instagram{--c:radial-gradient(circle at 30% 107%,#fdf497 0%,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285aeb 90%);--g:rgba(214,36,159,.6)}
.sh-whatsapp{--c:linear-gradient(180deg,#3fe07a,#1ebe57);--g:rgba(37,211,102,.7)}
.sh-facebook{--c:linear-gradient(180deg,#1a77ff,#0657e0);--g:rgba(8,102,255,.7)}
.sh-x svg{padding:15px}
.sh-copy svg,.sh-native svg{--c:#fff;fill:none;stroke:#061b31;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;--g:rgba(22,43,69,.35);box-shadow:0 0 0 1px rgba(22,43,69,.1) inset,0 8px 18px -12px var(--g)}
.sh-copy{position:relative}
.sh-copy .ok{position:absolute;top:0;left:50%;margin-left:-26px;opacity:0;transform:scale(.6);stroke:#fff;stroke-width:2.2;--c:#151a22}
.sh-copy.done .ok{opacity:1;transform:none}
.sh-copy .ok{transition:opacity .25s,transform .4s cubic-bezier(.16,1,.3,1)}

.sh-dlg{box-sizing:border-box;overflow:hidden;width:min(320px,calc(100vw - 32px));padding:32px 28px 28px;border:0;border-radius:24px;background:#fff;color:#061b31;text-align:center;box-shadow:0 30px 80px -20px rgba(15,25,40,.45)}
.sh-dlg::backdrop{background:rgba(20,26,36,.38);backdrop-filter:blur(6px)}
.sh-dlg[open]{animation:sh-pop .45s cubic-bezier(.16,1,.3,1)}
@keyframes sh-pop{from{opacity:0;transform:translateY(14px) scale(.97)}}
.sh-qr{box-sizing:border-box;width:200px;height:200px;margin:0 auto 18px;padding:10px;border-radius:16px;box-shadow:0 0 0 1px rgba(22,43,69,.08);font-size:13px;color:#657386;display:grid;place-items:center}
.sh-qr svg{width:100%;height:100%;display:block}
.sh-dt{margin:0 0 6px;font-size:17px;font-weight:600}
.sh-dd{margin:0;font-size:13.5px;line-height:1.7;color:#657386}
.sh-dlg .sh-close{position:absolute;top:10px;right:12px;width:34px;height:34px;border:0;border-radius:50%;background:transparent;font-size:24px;line-height:1;color:#8a93a1;cursor:pointer}
.sh-dlg .sh-close:hover{background:#f1f3f6;color:#182333}
.sh-toast{position:fixed;left:50%;bottom:calc(28px + env(safe-area-inset-bottom));z-index:1000;max-width:calc(100vw - 32px);padding:12px 18px;border-radius:14px;background:rgba(21,26,34,.94);color:#fff;font-size:13.5px;line-height:1.6;text-align:center;transform:translate(-50%,16px);opacity:0;pointer-events:none;transition:opacity .3s,transform .5s cubic-bezier(.16,1,.3,1)}
.sh-toast.on{opacity:1;transform:translate(-50%,0)}
@media(max-width:760px){
  .share{margin-inline:-4px;border-radius:20px}
  .share{padding:22px 10px}
  .share-head{padding:0 6px}
  .share-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 4px}
  .sh{font-size:11px}
  .sh span{white-space:nowrap;letter-spacing:-.01em}
  .sh svg{width:48px;height:48px;padding:13px}
}
@media(prefers-reduced-motion:reduce){.b-views.on .eye,.b-views.on .eye-ball{animation:none}.sh svg{transition:none}}
.share-head .t3-views{flex:none;white-space:nowrap;font-size:13px;display:inline-flex;align-items:center;gap:5px}
@media(prefers-reduced-motion:reduce){.sh svg{transition:none}}

/* ---------- 页脚 ---------- */
.t3-footer{border-top:1px solid rgba(6,27,49,.08);padding:36px 0 44px}
.t3-foot a{color:#56677d}
.t3-foot a:hover{color:#0865d2}

@media(max-width:1000px){
  .bl-feat-ttl{font-size:28px}
  .t3-cols3{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:720px){
  .t3-wrap{padding:0 16px}
  .t3-h1{font-size:36px!important}
  .t3-cols,.t3-cols3{grid-template-columns:1fr!important}
  .t3-pad-m{padding:22px 20px!important}
  .t3-foot{justify-content:center!important;text-align:center}
  .bl-feat .t3-thumb{height:190px}
  .bl-feat-ttl{font-size:23px}
  .bl-row{padding:22px 20px 24px}
  .ar-h1{font-size:28px}
  .t3-post{font-size:16.5px}
  .t3-post h2{font-size:22px}
  .t3-cta{padding:40px 22px}
  .t3-cta h2{font-size:26px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
