:root {
    --af-primary: #165DFF;
    --af-primary-dark: #0E42C9;
    --af-indigo: #6366F1;
    --af-violet: #8B5CF6;
    --af-grad: linear-gradient(135deg, #165DFF 0%, #6366F1 55%, #8B5CF6 100%);
    --af-grad-soft: linear-gradient(135deg, rgba(22, 93, 255, .10), rgba(139, 92, 246, .10));
    --af-bg: #f6f8fc;
    --af-surface: #ffffff;
    --af-text: #101828;
    --af-text-2: #344054;
    --af-muted: #667085;
    --af-border: #e6eaf2;
    --af-radius: 18px;
    --af-radius-sm: 12px;
    --af-shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
    --af-shadow-md: 0 16px 40px -18px rgba(22, 93, 255, .28), 0 6px 16px rgba(16, 24, 40, .06);
    --af-font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
body {
    background: var(--af-bg);
    color: var(--af-text);
    font-family: var(--af-font);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.af-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a { color: var(--af-primary); text-decoration: none; }
a:hover { color: var(--af-primary-dark); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--af-font);
    font-weight: 700;
    color: var(--af-text);
    letter-spacing: -.01em;
}

.container { max-width: 1200px; }

.af-anchor { display: block; position: relative; top: -92px; visibility: hidden; }

/* ---------- Buttons ---------- */
.af-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    border: 1px solid transparent;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
    white-space: nowrap;
}
.af-btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 12px; }
.af-btn-primary { background: var(--af-grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(99, 102, 241, .65); }
.af-btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(99, 102, 241, .7); }
.af-btn-ghost { background: #fff; border-color: var(--af-border); color: var(--af-text-2); box-shadow: var(--af-shadow-sm); }
.af-btn-ghost:hover { border-color: #c7d7fe; color: var(--af-primary); transform: translateY(-1px); }

/* ---------- Navbar ---------- */
.af-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 10px 0;
    background: rgba(255, 255, 255, .84);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(230, 234, 242, .9);
}
/* The base theme positions #mainNav absolutely; keep the bar in the document flow. */
#mainNav.af-navbar {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    background: rgba(255, 255, 255, .84);
    border-bottom: 1px solid rgba(230, 234, 242, .9);
}
#mainNav.af-navbar .navbar-brand { font-weight: 700; }
#mainNav.af-navbar .navbar-nav > li.nav-item > a.nav-link {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--af-text-2);
}
#mainNav.af-navbar .navbar-nav > li.nav-item > a.nav-link:hover { color: var(--af-primary); }
#mainNav.af-navbar .navbar-toggler {
    padding: 6px 11px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}
.af-navbar .af-nav-inner { gap: 18px; }
.af-brand { display: flex; align-items: center; gap: 11px; padding: 0; margin-right: auto; }
.af-logo { display: inline-flex; flex: none; }
.af-logo-img { width: 32px; height: 32px; display: block; object-fit: contain; }
.af-logo-sm .af-logo-img { width: 26px; height: 26px; }
.af-logo-sm { filter: none; }
.af-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.af-brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--af-text); }
.af-brand-sub { font-size: 11px; letter-spacing: .08em; color: var(--af-muted); margin-top: 3px; }
.af-brand-dot { color: var(--af-indigo); }

.af-navbar .navbar-nav { align-items: center; gap: 2px; }
.af-navbar .navbar-nav .nav-link {
    padding: 8px 14px !important;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--af-text-2);
    transition: background .15s ease, color .15s ease;
}
.af-navbar .navbar-nav .nav-link:hover { background: #f1f5ff; color: var(--af-primary); }
.af-navbar .navbar-nav .nav-link.active,
.af-navbar .navbar-nav .nav-item.active > .nav-link { background: #eef4ff; color: var(--af-primary); font-weight: 600; }

.af-nav-cta { align-items: center; gap: 10px; margin-left: 6px; }
.af-nav-search { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: var(--af-text-2); text-decoration: none; }
.af-nav-search:hover { background: var(--af-grad-soft); color: var(--af-primary); }

.af-toggler {
    border: 1px solid var(--af-border);
    border-radius: 10px;
    padding: 6px 11px;
    color: var(--af-text-2);
    background: #fff;
    box-shadow: none !important;
}
.af-toggler:hover { background: #f7f9ff; }

/* ---------- Hero ---------- */
.af-hero {
    position: relative;
    padding: 76px 0 60px;
    background: linear-gradient(180deg, #f8faff 0%, #f6f8fc 100%);
    overflow: hidden;
}
.af-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(22, 93, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 93, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 25% 0%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 90% at 25% 0%, #000 0%, transparent 75%);
    pointer-events: none;
}
.af-hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.af-orb { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .55; }
.af-orb-1 { width: 420px; height: 420px; top: -220px; right: 2%; background: #c7d7fe; }
.af-orb-2 { width: 280px; height: 280px; top: 10px; left: -110px; background: #ddd6fe; }
.af-orb-3 { width: 320px; height: 320px; bottom: -220px; left: 38%; background: #bae6fd; opacity: .4; }

.af-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 56px;
    align-items: center;
}
.af-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid #dbe4ff;
    color: var(--af-indigo);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .02em;
    box-shadow: var(--af-shadow-sm);
}
.af-hero-title {
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -.025em;
    margin: 20px 0 18px;
}
.af-grad-text {
    background: var(--af-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.af-hero-desc { font-size: 17px; line-height: 1.8; color: var(--af-muted); max-width: 560px; margin-bottom: 28px; }
.af-hero-desc p:last-child { margin-bottom: 0; }
.af-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.af-hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; font-size: 13.5px; color: var(--af-text-2); }
.af-hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.af-hero-points i { color: var(--af-indigo); }

.af-hero-visual { display: flex; justify-content: center; }
.af-hero-panel {
    width: 100%;
    max-width: 390px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 34px 70px -26px rgba(22, 93, 255, .32), 0 8px 22px rgba(16, 24, 40, .05);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transform: rotate(-1.5deg);
}
.af-hero-panel-head { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.af-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5e7eb; }
.af-panel-label { margin-left: auto; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #98a2b3; font-weight: 600; }
.af-hero-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 156px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f7f9ff, #fff);
    border: 1px solid #eef2fa;
    margin-bottom: 14px;
}
.af-hero-chart span {
    flex: 1;
    height: var(--h);
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, #8B5CF6, #165DFF);
    opacity: .9;
}
.af-hero-chart span:nth-child(odd) { background: linear-gradient(180deg, #165DFF, #6366F1); }
.af-hero-panel-rows { display: flex; flex-direction: column; gap: 8px; }
.af-hero-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid #eef2fa;
    font-size: 12.5px;
    color: var(--af-muted);
}
.af-hero-row i { color: var(--af-indigo); width: 15px; text-align: center; }
.af-hero-row b { margin-left: auto; color: var(--af-text); font-size: 13px; }

/* ---------- Layout ---------- */
.af-main { padding: 44px 0 76px; flex: 1 0 auto; }
.af-sidebar { position: sticky; top: 96px; }

.af-card {
    background: var(--af-surface);
    border: 1px solid var(--af-border);
    border-radius: var(--af-radius);
    box-shadow: var(--af-shadow-sm);
}

.af-aside { padding: 22px 22px 20px; margin-bottom: 20px; }
.af-aside-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--af-muted);
}

.af-about-card {
    padding: 22px;
    margin-bottom: 20px;
    background: linear-gradient(160deg, #ffffff 0%, #f6f9ff 100%);
}
.af-about-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.af-about-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 13px;
    background: #eef4ff;
    color: var(--af-primary);
    font-size: 18px;
}
.af-about-head .af-aside-title { margin: 0 0 3px; }
.af-about-lead { margin: 0; font-size: 13px; color: var(--af-text-2); font-weight: 600; }
.af-about-text { margin: 0 0 14px; font-size: 13.5px; line-height: 1.8; color: var(--af-muted); }
.af-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--af-primary); }
.af-link-arrow:hover { gap: 9px; }

.af-cat-list { margin: 0; }
.af-cat-list li + li { border-top: 1px dashed #eef1f7; }
.af-cat-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    font-size: 14px;
    color: var(--af-text-2);
    transition: color .15s ease;
}
.af-cat-list a:hover { color: var(--af-primary); }
.af-cat-dot {
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
    background: var(--af-grad);
}
.af-cat-name { flex: 1; min-width: 0; line-height: 1.5; }
.af-cat-arrow { flex: none; color: #c3cbdc; opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; }
.af-cat-list a:hover .af-cat-arrow { opacity: 1; transform: none; color: var(--af-indigo); }

/* Chips */
.af-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid #eef1f7;
    background: #f4f6fb;
    color: var(--af-text-2);
    font-size: 13px;
    line-height: 1.5;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.af-chip a { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.af-chip:hover { background: #eef4ff; border-color: #c7d7fe; color: var(--af-primary); }
.af-chip i { opacity: .65; }
.af-chip-sm { padding: 3px 9px; font-size: 11.5px; background: #f7f9fc; }
.af-chip-soft { background: rgba(255, 255, 255, .72); border-color: #dbe4ff; color: #3538cd; }
.af-chip-cat { background: #eef2ff; border-color: #e0e7ff; color: #3538cd; }

.af-tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.af-tagcloud .af-chip-extra { display: none; }
.af-tagcloud.is-expanded .af-chip-extra { display: inline-flex; }
.af-more-tags {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--af-indigo);
    font-size: 12.5px;
    font-weight: 600;
}
.af-more-tags:hover { color: var(--af-primary); }

/* ---------- Post list ---------- */
.af-list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.af-list-eyebrow {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--af-indigo);
    margin-bottom: 6px;
}
.af-list-title { margin: 0; font-size: 27px; line-height: 1.3; }
.af-list-sub { margin: 5px 0 0; font-size: 13.5px; color: var(--af-muted); }
.af-list-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--af-primary);
    font-size: 12px;
    font-weight: 600;
}

.af-post-list { display: flex; flex-direction: column; gap: 16px; }

.af-post-card {
    position: relative;
    padding: 24px 26px 20px;
    background: #fff;
    border: 1px solid var(--af-border);
    border-radius: var(--af-radius);
    box-shadow: var(--af-shadow-sm);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.af-post-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--af-grad);
    opacity: 0;
    transition: opacity .18s ease;
}
.af-post-card:hover {
    transform: translateY(-2px);
    border-color: #cddafd;
    box-shadow: var(--af-shadow-md);
}
.af-post-card:hover::before { opacity: 1; }

.af-post-list > .af-post-card:first-child {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border-color: #dbe4ff;
}
.af-post-list > .af-post-card:first-child .af-post-title { font-size: 23px; }

.af-post-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.af-post-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3538cd;
    font-size: 12px;
    font-weight: 600;
}
.af-post-cat a { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.af-post-cat a:hover { color: var(--af-violet); }
.af-post-cat-muted { background: #f4f6fb; color: var(--af-muted); }
.af-post-date { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; color: var(--af-muted); }

.af-post-title { margin: 0 0 10px; font-size: 20px; line-height: 1.5; font-weight: 700; }
.af-post-title a { color: var(--af-text); }
.af-post-title a:hover { color: var(--af-primary); }

.af-post-excerpt {
    margin: 0 0 16px;
    font-size: 14.5px;
    line-height: 1.78;
    color: var(--af-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.af-post-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--af-muted); }
.af-post-author { display: inline-flex; align-items: center; gap: 7px; }
.af-avatar {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--af-grad);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.af-post-dot { width: 3px; height: 3px; border-radius: 50%; background: #cbd2e0; }
.af-post-read { display: inline-flex; align-items: center; gap: 6px; }
.af-post-tags { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.af-read-more {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--af-primary);
    font-weight: 600;
    font-size: 12.5px;
    transition: gap .15s ease;
}
.af-post-card:hover .af-read-more { gap: 9px; }

/* ---------- Pager ---------- */
.af-pager-wrap { margin-top: 30px; }
.af-pager-wrap .pager,
.af-pager-wrap .pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 0; padding: 0; }
.af-pager-wrap .pager li,
.af-pager-wrap .pagination li { list-style: none; }
.af-pager-wrap .pager a,
.af-pager-wrap .pagination a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--af-border);
    background: #fff;
    color: var(--af-text-2);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--af-shadow-sm);
    transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.af-pager-wrap .pager a:hover,
.af-pager-wrap .pagination a:hover { border-color: #c7d7fe; color: var(--af-primary); transform: translateY(-1px); }

/* ---------- Article ---------- */
.af-article-hero {
    position: relative;
    padding: 52px 0 44px;
    background: linear-gradient(180deg, #f8faff 0%, #f6f8fc 100%);
    border-bottom: 1px solid #eef1f7;
    overflow: hidden;
}
.af-article-hero .container { max-width: 1060px; }
.af-article-hero-inner { position: relative; }
.af-breadcrumb { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; font-size: 12.5px; color: var(--af-muted); }
.af-breadcrumb a { color: var(--af-muted); }
.af-breadcrumb a:hover { color: var(--af-primary); }
.af-breadcrumb i { color: #c3cbdc; font-size: 9px; }
.af-breadcrumb-current { color: var(--af-text-2); }
.af-article-title {
    max-width: 900px;
    margin: 0 0 20px;
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -.02em;
}
.af-article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--af-muted); }
.af-article-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.af-article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.af-cat-hero .af-eyebrow { margin-bottom: 14px; }
.af-cat-hero-desc { margin: 0; font-size: 14px; color: var(--af-muted); }
.af-page-hero { padding: 44px 0 36px; }
.af-page-hero .af-article-title { margin-bottom: 0; }
.af-page-content { margin-top: 4px; }
.af-error-hero .af-eyebrow { margin-bottom: 14px; }
.af-error-hero .af-article-title { font-size: clamp(32px, 4vw, 46px); margin-bottom: 12px; }
.af-error-hero .af-hero-actions { margin-bottom: 0; }
.af-error-card { padding: 28px 32px; }
.af-error-title { margin: 0 0 14px; font-size: 18px; }

/* Category / tag header card, rendered inside the content column. */
.af-layout .af-cat-hero {
    padding: 32px 32px 28px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 55%, #faf7ff 100%);
    border: 1px solid var(--af-border);
    border-bottom: 1px solid var(--af-border);
    border-radius: var(--af-radius);
    box-shadow: var(--af-shadow-sm);
}
.af-layout .af-cat-hero .af-article-title { font-size: clamp(24px, 2.7vw, 32px); margin-bottom: 8px; }
.af-layout .af-cat-hero .af-eyebrow { background: #fff; }
.af-layout .af-cat-hero .af-breadcrumb { margin-bottom: 14px; }

.af-article { padding: 38px 42px 30px; margin-bottom: 24px; }

.af-prose { font-size: 16.5px; line-height: 1.9; color: #273449; overflow-wrap: break-word; }
.af-prose > :first-child { margin-top: 0; }
.af-prose p { margin: 0 0 1.15em; }
.af-prose p.MsoNormal { margin: 0 0 1.15em; }
.af-prose h1, .af-prose h2, .af-prose h3, .af-prose h4 {
    color: var(--af-text);
    line-height: 1.42;
    letter-spacing: -.01em;
}
.af-prose h2 {
    margin: 1.9em 0 .8em;
    padding-left: 15px;
    border-left: 4px solid var(--af-indigo);
    font-size: 23px;
    font-weight: 700;
}
.af-prose h3 { margin: 1.6em 0 .65em; font-size: 19px; }
.af-prose h4 { margin: 1.4em 0 .6em; font-size: 17px; }
.af-prose a { color: var(--af-primary); border-bottom: 1px solid rgba(22, 93, 255, .28); }
.af-prose a:hover { border-bottom-color: var(--af-primary); }
.af-prose strong { color: #111c33; }
.af-prose img { display: block; max-width: 100%; height: auto; margin: 1.6em auto; border-radius: 12px; box-shadow: 0 10px 30px -14px rgba(16, 24, 40, .25); }
.af-prose figure { margin: 1.6em 0; }
.af-prose figcaption { margin-top: 8px; font-size: 12.5px; color: var(--af-muted); text-align: center; }
.af-prose ul, .af-prose ol { margin: 0 0 1.2em; padding-left: 1.45em; }
.af-prose li { margin: .35em 0; }
.af-prose blockquote {
    margin: 1.7em 0;
    padding: 16px 20px;
    background: #f7f9ff;
    border-left: 4px solid var(--af-indigo);
    border-radius: 0 12px 12px 0;
    color: #475467;
}
.af-prose blockquote p:last-child { margin-bottom: 0; }
.af-prose hr { border: 0; border-top: 1px solid var(--af-border); margin: 2.2em 0; }
.af-prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.6em 0; font-size: 14.5px; }
.af-prose th, .af-prose td { border: 1px solid var(--af-border); padding: 10px 13px; }
.af-prose th { background: #f7f9ff; text-align: left; font-weight: 600; }
.af-prose pre { padding: 16px 18px; border-radius: 12px; background: #0f172a; color: #e2e8f0; overflow-x: auto; font-size: 13.5px; line-height: 1.65; }
.af-prose code { padding: 2px 6px; border-radius: 6px; background: #f1f5ff; color: #3448c5; font-size: .92em; }
.af-prose pre code { padding: 0; background: transparent; color: inherit; }
.af-prose iframe { max-width: 100%; border-radius: 12px; }

.af-article-foot { margin-top: 36px; padding-top: 24px; border-top: 1px dashed var(--af-border); }
.af-article-foot-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.af-article-foot-row:last-child { margin-bottom: 0; }
.af-foot-label { flex: none; width: 40px; padding-top: 5px; font-size: 12px; color: var(--af-muted); letter-spacing: .06em; }
.af-article-foot-terms { display: flex; flex-wrap: wrap; gap: 8px; }

.af-related { padding: 24px 30px; }
.af-related-title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 17px; }
.af-related-title i { color: var(--af-indigo); }
.af-related-list { margin: 0; }
.af-related-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px dashed #eef1f7; }
.af-related-list li:first-child { border-top: 0; }
.af-related-num { flex: none; padding: 3px 8px; border-radius: 8px; background: #eef2ff; color: var(--af-indigo); font-size: 11.5px; font-weight: 700; }
.af-related-list li a { flex: 1; min-width: 0; color: var(--af-text-2); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-related-list li a:hover { color: var(--af-primary); }
.af-related-date { flex: none; color: var(--af-muted); font-size: 12px; white-space: nowrap; }
.af-related-list li > i { flex: none; color: #c3cbdc; }

/* ---------- Footer ---------- */
.af-footer { flex: none; padding: 56px 0 24px; background: #0b1220; color: #98a2b3; }
.af-footer-brand { display: flex; align-items: center; gap: 11px; }
.af-footer-name { color: #fff; font-size: 16px; font-weight: 700; }
.af-footer-desc { max-width: 380px; margin: 14px 0 0; font-size: 14px; line-height: 1.8; color: #98a2b3; }
.af-footer-title { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.af-footer-links li { margin: 0; }
.af-footer-links a { display: inline-block; padding: 4px 0; color: #98a2b3; font-size: 13.5px; transition: color .15s ease; }
.af-footer-links a:hover { color: #fff; }
.af-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 12.5px;
    color: #667085;
}
.af-footer-legal { display: flex; gap: 14px; flex-wrap: wrap; }
.af-footer-legal a { color: #667085; font-size: 12px; text-decoration: none; }
.af-footer-legal a:hover { color: #fff; }

/* ---------- Back to top ---------- */
.af-backtop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1040;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--af-primary);
    box-shadow: 0 10px 28px rgba(16, 24, 40, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.af-backtop.is-visible { opacity: 1; visibility: visible; transform: none; }
.af-backtop:hover { color: var(--af-primary-dark); }

/* ---------- Author profile ---------- */
.af-author-position { margin: 4px 0 10px; font-size: 16px; font-weight: 600; color: var(--af-primary); }
.af-author-lead { max-width: 780px; margin: 0; color: var(--af-muted); font-size: 16px; line-height: 1.8; }
.af-author-page { max-width: 900px; padding: 48px 0 72px; }
.af-author-bio { margin-bottom: 44px; }
.af-author-bio h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.af-author-list-head { align-items: baseline; }
.af-author-count { color: var(--af-muted); font-size: 13px; }
.af-author-posts { margin: 20px 0 0; }
.af-author-post { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--af-border); }
.af-author-post a { color: var(--af-text); font-weight: 600; text-decoration: none; }
.af-author-post a:hover { color: var(--af-primary); }
.af-author-post-date { color: var(--af-muted); font-size: 13px; white-space: nowrap; }
.af-author-empty { color: var(--af-muted); }

/* ---------- Search ---------- */
.af-search-form { display: flex; gap: 10px; max-width: 620px; margin-top: 18px; }
.af-search-input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1px solid var(--af-border); border-radius: 12px; background: var(--af-surface); color: var(--af-text); font-size: 15px; outline: none; }
.af-search-input:focus { border-color: var(--af-primary); box-shadow: 0 0 0 3px rgba(22, 93, 255, .12); }
.af-search-page { max-width: 900px; padding: 40px 0 72px; }
.af-search-summary { color: var(--af-muted); font-size: 14px; margin-bottom: 18px; }
.af-search-summary strong { color: var(--af-text); }
.af-search-list { margin: 0; }
.af-search-item { padding: 18px 0; border-bottom: 1px solid var(--af-border); }
.af-search-title { display: inline-block; color: var(--af-text); font-size: 18px; font-weight: 700; text-decoration: none; }
.af-search-title:hover { color: var(--af-primary); }
.af-search-date { margin-left: 10px; color: var(--af-muted); font-size: 12.5px; }
.af-search-excerpt { margin: 7px 0 0; color: var(--af-muted); font-size: 14px; line-height: 1.7; }
.af-search-empty { padding: 20px 0; color: var(--af-muted); }
.af-search-empty a { color: var(--af-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .af-hero { padding: 52px 0 44px; }
    .af-hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .af-hero-visual { display: none; }
    .af-navbar .navbar-collapse {
        margin-top: 12px;
        padding: 10px;
        border-radius: 14px;
        background: #fff;
        border: 1px solid var(--af-border);
        box-shadow: var(--af-shadow-md);
    }
    .af-navbar .navbar-nav { align-items: stretch; gap: 2px; padding: 0 !important; }
    .af-navbar .navbar-nav .nav-link { padding: 10px 14px !important; }
    .af-sidebar { position: static; margin-top: 8px; }
    .af-article { padding: 28px 22px 24px; }
    .af-article-hero { padding: 40px 0 34px; }
    .af-about-card { display: none; }
}

@media (max-width: 575.98px) {
    .af-brand-name { font-size: 16px; }
    .af-brand-sub { font-size: 10px; letter-spacing: .04em; }
    .af-hero { padding: 40px 0 36px; }
    .af-hero-title { font-size: 32px; }
    .af-hero-desc { font-size: 15.5px; }
    .af-hero-actions .af-btn { flex: 1; }
    .af-layout .af-cat-hero { padding: 24px 20px 22px; }
    .af-post-card { padding: 20px 20px 18px; }
    .af-post-title { font-size: 18px; }
    .af-post-list > .af-post-card:first-child .af-post-title { font-size: 19px; }
    .af-post-date { margin-left: 0; }
    .af-read-more { margin-left: 0; }
    .af-list-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .af-related-list li a { white-space: normal; }
    .af-footer { padding-top: 44px; }
    .af-article-foot-row { flex-direction: column; gap: 6px; }
    .af-foot-label { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
