/* ============================================================
   Jingwei Blog — brand-aligned theme for xmjw.ltd
   Palette & components mirror the main site
   ============================================================ */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/inter-700.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/inter-800.woff2") format("woff2");
}

:root {
    --blue: #1d4ed8;
    --blue-600: #2563eb;
    --blue-900: #1e3a8a;
    --cyan: #06b6d4;
    --navy: #0b1220;
    --dark: #111827;
    --title: #0f172a;
    --text: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-soft: #eef2f7;
    --bg: #f9fafb;
    --bg-tint: #f7fbff;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --grad: linear-gradient(120deg, #1d4ed8 0%, #06b6d4 92%);
    --grad-cta: linear-gradient(120deg, #1e3a8a 0%, #1d4ed8 52%, #06b6d4 100%);
    --shadow-cta: 0 26px 60px rgba(29, 78, 216, .26);
    --shadow-btn: 0 8px 22px rgba(29, 78, 216, .26);
    --shadow-card: 0 18px 40px rgba(15, 23, 42, .08);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, .06);
    --radius-card: 20px;
    --radius-lg: 26px;
    --radius-md: 16px;
    --font: "Inter", "AvenirNext", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { color: var(--title); margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.progress-bar {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: var(--grad); z-index: 150; transition: width .12s linear;
    box-shadow: 0 0 10px rgba(6, 182, 212, .5);
}

/* ---------- shared bits ---------- */

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: var(--blue);
}
.eyebrow-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--cyan); box-shadow: 0 0 0 4px rgba(6, 182, 212, .16);
}
.eyebrow-light { color: #bcd3ff; }
.eyebrow-light .eyebrow-dot { background: #67e8f9; box-shadow: 0 0 0 4px rgba(103, 232, 249, .18); }

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 52px; padding: 0 30px; border-radius: 999px;
    font-size: 15px; font-weight: 700; white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    border: 1px solid transparent;
}
.btn-sm { height: 42px; padding: 0 22px; font-size: 14px; }
.btn-primary {
    background: var(--grad); color: #fff;
    box-shadow: var(--shadow-btn);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(29, 78, 216, .32); }
.btn-secondary {
    background: #fff; color: var(--title); border-color: var(--line);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}
.btn-secondary:hover { color: var(--blue); border-color: #c7d2fe; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--blue); box-shadow: 0 10px 26px rgba(2, 18, 60, .28); }
.btn-light:hover { color: var(--blue-600); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.pill-link {
    display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 20px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line);
    font-size: 14px; font-weight: 600; color: var(--title);
    transition: border-color .2s, color .2s, transform .2s;
}
.pill-link:hover { color: var(--blue); border-color: #bfdbfe; transform: translateY(-2px); }

/* ---------- header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 6px 24px rgba(15, 23, 42, .05); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    height: 84px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { width: 210px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 14px; }
.nav-pill {
    display: inline-flex; align-items: center;
    background: var(--dark); border-radius: 999px; padding: 6px;
}
.nav-link {
    display: inline-flex; align-items: center;
    padding: 9px 17px; border-radius: 999px;
    color: #e8edf5; font-size: 14px; font-weight: 600;
    transition: background .2s, color .2s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-link.is-active { color: #fff; background: var(--blue); }

.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.nav-toggle span { display: block; width: 20px; height: 2px; margin-inline: auto; background: var(--title); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none; flex-direction: column; gap: 4px;
    background: #fff; border-top: 1px solid var(--line-soft);
    padding: 14px 24px 22px;
    box-shadow: 0 24px 40px rgba(15, 23, 42, .08);
}
.mobile-menu.is-open { display: flex; }
.mobile-link {
    padding: 13px 4px; font-size: 16px; font-weight: 600; color: var(--title);
    border-bottom: 1px solid var(--line-soft);
}
.mobile-link:hover { color: var(--blue); }
.mobile-cta { margin-top: 14px; width: 100%; }

/* ---------- hero ---------- */

.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-tint) 100%);
    padding: 76px 0 70px;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.hero-glow-cyan { width: 520px; height: 520px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(6, 182, 212, .16), transparent 65%); }
.hero-glow-blue { width: 560px; height: 560px; left: -220px; bottom: -260px; background: radial-gradient(circle, rgba(29, 78, 216, .12), transparent 65%); }

.hero-inner {
    position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
    gap: 56px; align-items: center;
}
.hero-title { font-size: clamp(34px, 4.6vw, 52px); margin: 18px 0 18px; }
.hero-sub { font-size: 17.5px; line-height: 1.75; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-points {
    display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px;
}
.hero-points li {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--line-soft); border-radius: 10px;
    padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--text);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.hero-points svg { color: var(--blue); }

.hero-visual { position: relative; }
.hero-photo-card {
    border-radius: 24px; overflow: hidden; background: #fff; padding: 12px;
    box-shadow: var(--shadow-card); border: 1px solid var(--line-soft);
}
.hero-photo-card img { border-radius: 16px; aspect-ratio: 720 / 300; object-fit: cover; width: 100%; }
.hero-float-card {
    position: absolute; right: -18px; bottom: -26px;
    display: flex; align-items: center; gap: 14px;
    background: #fff; border-radius: var(--radius-md);
    padding: 16px 22px; box-shadow: var(--shadow-card); border: 1px solid var(--line-soft);
}
.hero-float-num { font-size: 30px; font-weight: 800; line-height: 1; }
.hero-float-label { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.45; }

/* ---------- stats ---------- */

.stats-strip { margin-top: 58px; padding-bottom: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat-card {
    position: relative; display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-md);
    padding: 22px 24px 22px 30px; box-shadow: var(--shadow-soft); overflow: hidden;
}
.stat-bar { position: absolute; left: 0; top: 18px; bottom: 18px; width: 5px; border-radius: 0 5px 5px 0; background: var(--grad); }
.stat-num { display: block; font-size: 27px; font-weight: 800; line-height: 1.15; }
.stat-label { font-size: 13.5px; color: var(--muted); font-weight: 500; }

/* ---------- sections ---------- */

.posts-section { padding: 78px 0 30px; }
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
    margin-bottom: 34px;
}
.section-title { font-size: clamp(26px, 3.2vw, 32px); margin-top: 12px; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.posts-grid:empty { display: none; }
.posts-layout { margin-bottom: 26px; }
.pagination:not(:has(a)) { display: none; }

.post-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
    overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: #d8e2f0; }
.post-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-50); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-noimg {
    position: absolute; inset: 0; display: grid; place-items: center;
    color: #93b4ef; background: linear-gradient(135deg, #eef4ff, #e6fbfd);
}
.post-card-badge {
    position: absolute; top: 14px; left: 14px;
    background: rgba(255, 255, 255, .95); color: var(--blue);
    font-size: 12px; font-weight: 700; letter-spacing: .02em;
    padding: 6px 13px; border-radius: 999px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .1);
}
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.post-card-title { font-size: 18.5px; line-height: 1.35; }
.post-card-title a { color: var(--title); }
.post-card-title a:hover { color: var(--blue); }
.post-card-excerpt {
    margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-meta {
    display: flex; align-items: center; gap: 10px; margin-top: 16px;
    font-size: 12.5px; font-weight: 600; color: #94a3b8;
}
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; flex-shrink: 0; }
.post-card-more {
    margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--blue);
    display: inline-flex; align-items: center; gap: 6px;
}
.post-card-more span { transition: transform .2s; }
.post-card:hover .post-card-more span { transform: translateX(4px); }

.post-card-featured { flex-direction: row; align-items: stretch; }
.post-card-featured .post-card-media { flex: 1.15; aspect-ratio: auto; min-height: 320px; }
.post-card-featured .post-card-body { flex: 1; justify-content: center; padding: 44px 48px; }
.post-card-featured .post-card-title { font-size: clamp(24px, 2.6vw, 30px); }
.post-card-featured .post-card-excerpt { font-size: 15px; -webkit-line-clamp: 3; margin-top: 14px; }

.empty-state {
    text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius-lg);
    background: #fff; padding: 70px 24px;
}
.empty-state .eyebrow { justify-content: center; }
.empty-title { font-size: 24px; margin: 16px 0 10px; }
.empty-text { color: var(--muted); max-width: 480px; margin: 0 auto; }

/* ---------- newsletter & CTA band ---------- */

.newsletter-section { padding: 60px 0 84px; }
.newsletter-card, .article-cta {
    position: relative; overflow: hidden; text-align: center;
    background: var(--grad-cta); border-radius: var(--radius-lg);
    padding: 64px 32px; box-shadow: var(--shadow-cta);
}
.cta-band-glow {
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .13) 1.2px, transparent 1.2px);
    background-size: 22px 22px; opacity: .5;
}
.newsletter-title { color: #fff; font-size: clamp(26px, 3.2vw, 34px); margin: 14px 0 12px; position: relative; }
.newsletter-text { color: rgba(255, 255, 255, .85); font-size: 16px; position: relative; }
.newsletter-form { position: relative; display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.newsletter-input {
    width: min(380px, 100%); height: 52px; border-radius: 999px; border: none;
    padding: 0 24px; font-size: 15px; font-family: inherit; color: var(--title);
    background: rgba(255, 255, 255, .96); outline: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}
.newsletter-input:focus { box-shadow: inset 0 0 0 2px var(--cyan); }
.newsletter-msg { width: 100%; color: #dff3ff; font-size: 14px; margin-top: 6px; }
.newsletter-msg-error { color: #fecaca; }

.cta-band-wrap { padding: 84px 0 0; }
.cta-band {
    position: relative; overflow: hidden; text-align: center;
    background: var(--grad-cta); border-radius: var(--radius-lg);
    padding: 72px 32px; box-shadow: var(--shadow-cta);
}
.cta-band-title { color: #fff; font-size: clamp(28px, 3.6vw, 38px); position: relative; }
.cta-band-text { color: rgba(255, 255, 255, .86); font-size: 16.5px; max-width: 620px; margin: 16px auto 0; position: relative; }
.cta-band-actions { position: relative; display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ---------- footer ---------- */

.site-footer { position: relative; overflow: hidden; background: var(--navy); margin-top: 0; color: #94a3b8; }
.footer-glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(10px); }
.footer-glow-blue { width: 480px; height: 480px; left: -140px; top: -260px; background: radial-gradient(circle, rgba(29, 78, 216, .22), transparent 65%); }
.footer-glow-cyan { width: 420px; height: 420px; right: -120px; top: -220px; background: radial-gradient(circle, rgba(6, 182, 212, .16), transparent 65%); }

.footer-grid {
    position: relative; display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px;
    padding: 72px 0 56px;
}
.footer-logo { filter: brightness(0) invert(1); width: 190px; height: auto; margin-bottom: 18px; }
.footer-desc { font-size: 13.5px; line-height: 1.75; color: #8a9ab4; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
    display: grid; place-items: center; width: 38px; height: 38px;
    border-radius: 11px; background: rgba(255, 255, 255, .07); color: #c6d2e6;
    transition: background .2s, color .2s, transform .2s;
}
.footer-social a:hover { background: var(--grad); color: #fff; transform: translateY(-2px); }

.footer-title {
    position: relative; color: #fff; font-size: 13.5px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; margin-bottom: 22px;
}
.footer-title::after {
    content: ""; position: absolute; left: 0; bottom: -10px;
    width: 34px; height: 3px; border-radius: 3px; background: var(--grad);
}
.footer-links li { margin-bottom: 13px; font-size: 14px; }
.footer-links a, .footer-links span { color: #94a3b8; }
.footer-links a:hover { color: #7dd3fc; }
.footer-contact .footer-links li { display: flex; align-items: flex-start; gap: 12px; }
.contact-ico {
    flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px;
    border-radius: 9px; background: rgba(59, 130, 246, .16); color: #7dc4ff; margin-top: 1px;
}

.footer-bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 22px 0; font-size: 13px; color: #7a8aa3;
}
.footer-bottom-links { display: inline-flex; align-items: center; gap: 12px; }
.footer-bottom-links a { color: #94a3b8; }
.footer-bottom-links a:hover { color: #7dd3fc; }
.footer-bottom-links .dot { width: 3px; height: 3px; border-radius: 50%; background: #3b4861; }

/* ---------- floating contact ---------- */

.float-contact { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 12px; transition: opacity .25s ease; }
.float-contact.is-hidden { opacity: 0; pointer-events: none; }
.float-btn {
    display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .22); transition: transform .2s;
}
.float-btn:hover { transform: scale(1.08); }
.float-whatsapp { background: #22c55e; color: #fff; }
.float-wechat { background: #fff; color: #111827; border: 1px solid var(--line); }

/* ---------- article ---------- */

.article-page { padding: 64px 0 40px; }
.article-narrow { max-width: 800px; }
.article-header { margin-bottom: 36px; }
.tag-pill {
    display: inline-flex; padding: 7px 16px; border-radius: 999px;
    background: var(--blue-50); color: var(--blue);
    font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    margin-bottom: 20px;
}
.tag-pill:hover { background: var(--blue-100); color: var(--blue); }
.article-title { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -0.025em; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.article-author { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; }
.article-author img, .article-author-fallback, .author-card img, .author-card-fallback {
    width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
    display: grid; place-items: center;
}
.article-author-fallback, .author-card-fallback {
    background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0;
    overflow: hidden; text-align: center; line-height: 38px;
}

.article-cover-wrap { max-width: 920px; margin-bottom: 44px; }
.article-cover { width: 100%; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.article-cover-flush { margin-bottom: 36px; }

.gh-content { font-size: 18px; line-height: 1.85; color: var(--text); }
.gh-content > *:first-child { margin-top: 0; }
.gh-content h2 {
    font-size: 27px; margin: 46px 0 16px; padding-top: 10px; position: relative;
}
.gh-content h2::before {
    content: ""; position: absolute; top: 0; left: 0;
    width: 40px; height: 4px; border-radius: 4px; background: var(--grad);
}
.gh-content h3 { font-size: 21px; margin: 34px 0 12px; }
.gh-content h4 { font-size: 18px; margin: 26px 0 10px; }
.gh-content p { margin: 0 0 20px; }
.gh-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #b9cdf5; }
.gh-content a:hover { text-decoration-color: var(--blue); }
.gh-content strong { color: var(--title); font-weight: 700; }
.gh-content ul, .gh-content ol { margin: 0 0 22px; padding-left: 4px; }
.gh-content ul li, .gh-content ol li { margin-bottom: 10px; padding-left: 28px; position: relative; }
.gh-content ul li::before {
    content: ""; position: absolute; left: 4px; top: 11px;
    width: 8px; height: 8px; border-radius: 50%;
    background: linear-gradient(120deg, var(--blue), var(--cyan));
}
.gh-content ol { list-style: none; counter-reset: ghlist; padding-left: 0; }
.gh-content ol li { counter-increment: ghlist; }
.gh-content ol li::before {
    content: counter(ghlist); position: absolute; left: 0; top: 2px;
    width: 20px; height: 20px; border-radius: 50%; background: var(--blue-50); color: var(--blue);
    font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.gh-content blockquote {
    margin: 28px 0; padding: 18px 26px;
    border-left: 4px solid var(--blue); background: var(--blue-50);
    border-radius: 0 12px 12px 0; font-size: 19px; color: var(--title); font-style: italic;
}
.gh-content blockquote p:last-child { margin-bottom: 0; }
.gh-content code {
    background: #eef2f8; color: #be185d; font-size: .88em;
    padding: 2px 7px; border-radius: 6px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.gh-content pre {
    background: var(--navy); color: #e2e8f0; border-radius: var(--radius-md);
    padding: 22px 24px; overflow-x: auto; margin: 0 0 24px; font-size: 14.5px; line-height: 1.7;
}
.gh-content pre code { background: none; color: inherit; padding: 0; }
.gh-content hr { border: none; height: 1px; background: var(--line); margin: 40px 0; }
.gh-content img { border-radius: var(--radius-md); margin-inline: auto; }
.gh-content figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }
.gh-content table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 15.5px; }
.gh-content th, .gh-content td { border: 1px solid var(--line); padding: 11px 15px; text-align: left; }
.gh-content th { background: var(--blue-50); color: var(--title); font-weight: 700; }
.gh-content tr:nth-child(even) td { background: #f8fafc; }

.kg-width-wide, .kg-width-full { max-width: none; }
.kg-width-full img { border-radius: 0; }
.kg-embed-card, .kg-image-card, .kg-gallery-container { margin: 0 0 24px; }
.kg-bookmark-card {
    border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
    margin: 0 0 24px; background: #fff;
}
.kg-bookmark-container { display: flex; color: var(--text); }
.kg-bookmark-container:hover { color: inherit; }
.kg-bookmark-content { padding: 18px 20px; }
.kg-bookmark-title { font-weight: 700; color: var(--title); }
.kg-bookmark-description { font-size: 14px; color: var(--muted); margin-top: 6px; }
.kg-bookmark-metadata { font-size: 12.5px; color: #94a3b8; margin-top: 10px; }
.kg-bookmark-thumbnail img { width: 240px; height: 100%; object-fit: cover; }
.kg-callout-card {
    background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-md);
    padding: 18px 22px; margin: 0 0 24px;
}
.kg-button-card { margin: 26px 0; }
.kg-btn { border-radius: 999px !important; }
.kg-header-card { border-radius: var(--radius-lg) !important; overflow: hidden; }

.article-cta { margin: 52px 0 0; padding: 54px 40px; }
.article-cta h2 { color: #fff; font-size: clamp(24px, 3vw, 30px); position: relative; }
.article-cta h2 em { font-style: italic; color: #a5f3fc; }
.article-cta p { color: rgba(255, 255, 255, .86); margin-top: 14px; position: relative; }

.article-share { display: flex; align-items: center; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.share-label { font-size: 13.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.share-buttons { display: flex; gap: 10px; }
.share-btn {
    display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted);
    transition: all .2s;
}
.share-btn:hover { color: #fff; background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.share-btn.is-copied { background: #16a34a; border-color: #16a34a; color: #fff; }

.author-card {
    display: flex; gap: 20px; align-items: flex-start;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
    padding: 26px 28px; margin-top: 30px;
}
.author-card img, .author-card-fallback { width: 56px; height: 56px; }
.author-card-fallback { line-height: 56px; font-size: 16px; }
.author-card-by { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.author-card-name { font-size: 17px; color: var(--title); }
.author-card-bio { font-size: 14px; color: var(--muted); margin-top: 6px; }

.related-section { background: #fff; border-top: 1px solid var(--line-soft); padding: 72px 0 84px; margin-top: 64px; }

/* ---------- pagination ---------- */

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 46px; }
.pagination .page-number {
    display: grid; place-items: center; min-width: 42px; height: 42px;
    border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted);
    padding: 0 8px;
}
.pagination a {
    display: grid; place-items: center; min-width: 42px; height: 42px;
    border-radius: 999px; border: 1px solid var(--line); background: #fff;
    font-size: 14px; font-weight: 600; color: var(--title); padding: 0 16px;
    transition: all .2s;
}
.pagination a:hover { border-color: #bfdbfe; color: var(--blue); transform: translateY(-2px); }
.pagination .current { background: var(--grad); color: #fff; box-shadow: var(--shadow-btn); min-width: 42px; }
.older-posts, .newer-posts { font-weight: 700; }

/* ---------- archive pages ---------- */

.archive-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%); padding: 70px 0 60px; }
.archive-title { font-size: clamp(32px, 4.4vw, 46px); margin-top: 14px; }
.archive-desc { font-size: 17px; color: var(--muted); max-width: 640px; margin-top: 14px; line-height: 1.7; }
.author-hero { display: flex; align-items: center; gap: 28px; }
.author-hero-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow-soft); }
.author-hero-fallback {
    width: 88px; height: 88px; border-radius: 50%; background: var(--grad); color: #fff;
    display: grid; place-items: center; font-size: 26px; font-weight: 800; flex-shrink: 0;
}

/* ---------- error page ---------- */

.error-body { background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%); min-height: 100vh; }
.error-wrap { position: relative; overflow: hidden; text-align: center; padding: 110px 24px; max-width: 720px; margin: 0 auto; }
.error-logo { margin: 0 auto 40px; }
.error-code { display: block; font-size: clamp(80px, 16vw, 150px); font-weight: 800; line-height: 1; }
.error-title { font-size: 28px; margin: 10px 0 12px; }
.error-text { color: var(--muted); font-size: 16px; margin-bottom: 30px; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-contact { grid-column: 1 / -1; }
    .nav-link { padding: 9px 12px; font-size: 13.5px; }
}

@media (max-width: 960px) {
    .main-nav { display: none; }
    .nav-toggle { display: flex; }
    .hero-inner { grid-template-columns: 1fr; gap: 44px; }
    .hero-visual { max-width: 560px; }
    .hero { padding: 56px 0 50px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-contact { grid-column: auto; }
}

@media (max-width: 720px) {
    .container { width: calc(100% - 36px); }
    .header-inner { height: 72px; }
    .brand-logo { width: 168px; }
    .posts-grid { grid-template-columns: 1fr; gap: 20px; }
    .post-card-featured { flex-direction: column; }
    .post-card-featured .post-card-media { min-height: 220px; aspect-ratio: 16 / 9; }
    .post-card-featured .post-card-body { padding: 26px 24px 28px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stats-strip { margin-top: 42px; }
    .hero-float-card { right: 8px; bottom: -22px; padding: 12px 16px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
    .cta-band, .newsletter-card { padding: 48px 22px; }
    .article-cta { padding: 44px 24px; }
    .footer-grid { grid-template-columns: 1fr; padding: 56px 0 40px; }
    .footer-brand, .footer-contact { grid-column: auto; }
    .float-contact { top: auto; bottom: 16px; right: 12px; transform: none; }
    .float-btn { width: 46px; height: 46px; }
    .float-wechat { display: none; }
    .gh-content { font-size: 17px; }
    .article-page { padding: 44px 0 20px; }
    .kg-bookmark-container { flex-direction: column; }
    .kg-bookmark-thumbnail img { width: 100%; height: 180px; }
}

@media (max-width: 420px) {
    .hero-points { gap: 8px; }
    .btn { width: 100%; }
    .hero-actions .btn { width: 100%; }
    .newsletter-form .btn { width: 100%; }
}
