/* ===== Blog ===== */
.chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:1.6rem}
.chip{display:inline-flex;align-items:center;border:1.5px solid rgba(30,27,36,.18);border-radius:999px;padding:8px 16px;font-size:.88rem;font-weight:600;color:var(--ink);text-decoration:none;background:rgba(255,255,255,.6);transition:background .25s,color .25s,border-color .25s}
.chip:hover{border-color:var(--purple);color:var(--purple-d)}
.chip.on{background:var(--ink);border-color:var(--ink);color:#fff}
.chip-sm{padding:4px 11px;font-size:.74rem;background:var(--purple-l);border-color:transparent;color:var(--purple-d)}
.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;font-size:.8rem;color:var(--muted);margin-bottom:.4rem}
.post-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;padding-top:14px;border-top:1px solid var(--line)}
.post-foot time{font-size:.8rem;color:var(--muted);font-weight:500;letter-spacing:0;text-transform:none}
.post-img-ph{display:grid;place-items:center;width:100%;height:100%;color:var(--purple)}
.post-img-ph .ico{width:54px;height:54px;opacity:.5}
.post-feature{display:grid;grid-template-columns:1.1fr 1fr;gap:0;background:#fff;border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow-lg);margin-bottom:34px;transition:transform .4s var(--ease)}
.post-feature:hover{transform:translateY(-4px)}
.pf-img{display:block;min-height:320px;background:linear-gradient(135deg,var(--purple-l),var(--teal-l));overflow:hidden}
.pf-img img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.post-feature:hover .pf-img img{transform:scale(1.05)}
.pf-body{padding:clamp(28px,4vw,52px);display:flex;flex-direction:column;justify-content:center}
.pf-body h2{font-size:clamp(1.9rem,3vw,2.6rem);margin:.3em 0 .4em}
.pf-body h2 a{color:var(--ink);text-decoration:none}
.pf-body p{color:var(--ink-2)}
.pf-body .btn{align-self:flex-start;margin-top:.6rem}
.empty-state{text-align:center;background:#fff;border-radius:var(--r-lg);padding:60px 24px;box-shadow:var(--shadow)}
.empty-state>.ico{width:48px;height:48px;color:var(--teal);margin:0 auto 10px}
.pager{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:44px}
.pager a{min-width:44px;padding:10px 16px;border-radius:999px;border:1.5px solid var(--line);background:#fff;text-align:center;font-weight:600;color:var(--ink);text-decoration:none}
.pager a:hover{border-color:var(--purple)}
.pager a[aria-current]{background:var(--purple);border-color:var(--purple);color:#fff}

/* article */
.read-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:80;pointer-events:none}
.read-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--purple),var(--pink),var(--teal))}
.preview-bar{background:#FFF4D6;color:#6B4E00;text-align:center;padding:10px 16px;font-weight:600;font-size:.9rem}
.article-hero{padding-bottom:clamp(40px,5vw,70px)}
.article-hero h1{font-size:clamp(2.3rem,5vw,4rem)}
.crumbs{font-size:.85rem;color:var(--muted);margin-bottom:1.2rem}
.crumbs a{color:var(--purple-d);text-decoration:none;font-weight:600}
.crumbs span{margin:0 4px;opacity:.5}
.article-meta{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 22px;margin-top:1.4rem;font-size:.9rem;color:var(--ink-2)}
.author{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);text-align:left}
.author img{width:40px;height:auto}
.author small{display:block;color:var(--muted);font-size:.78rem}
.article-figure{margin-top:-10px;position:relative;z-index:2}
.article-figure img{width:100%;max-height:620px;object-fit:cover;border-radius:var(--r-lg);box-shadow:var(--shadow-lg)}
.article-layout{display:grid;grid-template-columns:250px minmax(0,720px);justify-content:center;gap:clamp(30px,5vw,70px);padding:clamp(40px,6vw,70px) 0 clamp(60px,8vw,100px)}
.article-side{position:sticky;top:110px;align-self:start;display:grid;gap:26px}
.toc p,.share p{font-size:.74rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--purple);margin-bottom:.6rem}
.toc ol{list-style:none;margin:0;padding:0;border-left:2px solid var(--line)}
.toc a{display:block;padding:6px 0 6px 14px;margin-left:-2px;border-left:2px solid transparent;font-size:.88rem;line-height:1.4;color:var(--ink-2);text-decoration:none;transition:color .2s,border-color .2s}
.toc a:hover,.toc a.active{color:var(--purple-d);border-color:var(--purple)}
.share{display:flex;flex-wrap:wrap;gap:6px}
.share p{width:100%;margin:0}
.share a{font-size:.8rem;font-weight:600;padding:6px 12px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--ink);text-decoration:none}
.share a:hover{border-color:var(--purple);color:var(--purple-d)}
.article-body{font-size:1.08rem;line-height:1.8}
.article-body>*:first-child{margin-top:0}
.article-body p,.article-body li{color:var(--ink-2)}
.article-body h2{font-size:clamp(1.8rem,3vw,2.3rem);margin:1.8em 0 .5em;scroll-margin-top:110px}
.article-body h3{font-size:1.5rem;margin:1.5em 0 .4em}
.article-body h4{font-family:var(--sans);font-size:1.05rem;margin:1.4em 0 .4em}
.article-body a{color:var(--purple-d);text-decoration:underline;text-decoration-color:var(--pink);text-underline-offset:3px}
.article-body ul,.article-body ol{padding-left:1.3em;margin:0 0 1.3em}
.article-body li{margin-bottom:.45em}
.article-body ul li::marker{color:var(--teal)}
.article-body ol li::marker{color:var(--purple);font-weight:700}
.article-body blockquote{margin:1.8em 0;padding:22px 26px;border-left:4px solid var(--purple);background:var(--blush);border-radius:0 var(--r) var(--r) 0;font-family:var(--serif);font-size:1.4rem;line-height:1.45;color:var(--ink)}
.article-body blockquote p{color:var(--ink);margin:0}
.article-body img{border-radius:var(--r);margin:1.6em 0;box-shadow:var(--shadow)}
.article-body figure{margin:1.6em 0}
.article-body figcaption{font-size:.85rem;color:var(--muted);text-align:center}
.article-body table{width:100%;border-collapse:collapse;margin:1.6em 0;font-size:.95rem;display:block;overflow-x:auto}
.article-body th,.article-body td{border-bottom:1px solid var(--line);padding:10px 12px;text-align:left}
.article-body th{background:var(--blush)}
.article-body hr{border:0;height:1px;background:var(--line);margin:2.4em 0}
.article-faq{margin-top:3rem}
.article-faq>h2{font-size:2rem}
.author-box{display:flex;gap:24px;align-items:flex-start;margin:3rem 0 1.4rem;padding:28px;background:var(--blush);border-radius:var(--r-lg)}
.author-box img{width:84px;flex:none}
.author-box .h-sub{margin:0 0 .4rem}
.author-box p{color:var(--ink-2);font-size:.95rem}
.author-box .btn-row{margin-top:.6rem}
@media (max-width:980px){
  .article-layout{grid-template-columns:minmax(0,1fr)}
  .article-side{position:static;order:2}
  .toc{display:none}
  .post-feature{grid-template-columns:1fr}
  .pf-img{min-height:220px;aspect-ratio:16/9}
}
@media (max-width:560px){.author-box{flex-direction:column}.article-body{font-size:1.02rem}.pager a{min-width:40px;padding:8px 12px}}
