:root {
    --bg: #f7faff;
    --surface: #ffffff;
    --surface-soft: #f2f7ff;
    --surface-cyan: #f1fbfc;
    --surface-blue: #eef5ff;
    --text: #172033;
    --text-strong: #0e1b32;
    --muted: #68758a;
    --muted-2: #8a96a8;
    --line: #dfe8f4;
    --line-strong: #cbd8e8;
    --blue: #2563eb;
    --blue-2: #3b82f6;
    --blue-3: #dbeafe;
    --cyan: #0891b2;
    --cyan-soft: #cffafe;
    --green: #0f9f7f;
    --navy: #0c1b33;
    --shadow-sm: 0 8px 24px rgba(32, 70, 120, .08);
    --shadow-md: 0 18px 45px rgba(32, 70, 120, .12);
    --shadow-lg: 0 28px 70px rgba(32, 70, 120, .16);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;
    --max-width: 1180px;
    --article-width: 790px;
    --ease: 180ms ease;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "PingFang SC",
        "Hiragino Sans GB",
        "Microsoft YaHei",
        sans-serif;
    color: var(--text);
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    line-height: 1.72;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: #cfe0ff; color: var(--text-strong); }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; }

.container {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
}

.eyebrow {
    display: block;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.eyebrow-blue { color: var(--blue); }

/* ---------- Global header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    padding: 14px 24px 0;
    pointer-events: none;
}

.nav-shell {
    width: min(1240px, 100%);
    min-height: 64px;
    margin: 0 auto;
    padding: 8px 10px 8px 14px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 22px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 12px 32px rgba(32, 70, 120, .10);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    pointer-events: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-strong);
    font-weight: 800;
    letter-spacing: -.02em;
}

.brand-mark {
    position: relative;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--blue), #1d4ed8 58%, var(--cyan));
    box-shadow: 0 8px 18px rgba(37, 99, 235, .25);
    overflow: hidden;
}

.brand-node {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}
.brand-node-a { left: 7px; top: 8px; }
.brand-node-b { right: 7px; top: 13px; }
.brand-node-c { left: 11px; bottom: 7px; }
.brand-link {
    position: absolute;
    height: 2px;
    background: rgba(255,255,255,.86);
    transform-origin: left center;
    border-radius: 2px;
}
.brand-link-a { width: 18px; left: 10px; top: 10px; transform: rotate(17deg); }
.brand-link-b { width: 15px; left: 13px; bottom: 11px; transform: rotate(-25deg); }

.brand-text { font-size: 18px; }

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.main-nav a {
    padding: 10px 13px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: color var(--ease), background var(--ease);
}

.main-nav a:hover {
    color: var(--blue);
    background: var(--surface-blue);
}

.search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 10px 14px;
    color: var(--text);
    background: rgba(255,255,255,.9);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.search-trigger:hover {
    transform: translateY(-1px);
    border-color: #bcd0ed;
    box-shadow: var(--shadow-sm);
}

.search-trigger svg,
.search-box svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

/* ---------- Hero ---------- */

.hero-v2 {
    position: relative;
    overflow: hidden;
    margin-top: -78px;
    padding: 170px 0 100px;
    background:
        radial-gradient(circle at 18% 24%, rgba(59,130,246,.14), transparent 30%),
        radial-gradient(circle at 82% 34%, rgba(8,145,178,.12), transparent 26%),
        linear-gradient(180deg, #f4f8ff 0%, #f8fbff 70%, #ffffff 100%);
}

.hero-v2::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    right: -180px;
    top: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,.08), rgba(37,99,235,0) 68%);
    pointer-events: none;
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    opacity: .45;
    background-image:
        linear-gradient(rgba(54, 100, 170, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(54, 100, 170, .07) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.35) 70%, transparent);
    pointer-events: none;
}

.hero-v2-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    align-items: center;
    gap: 72px;
}

.hero-copy h1 {
    max-width: 720px;
    margin: 0;
    color: var(--text-strong);
    font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(48px, 6vw, 76px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.055em;
}

.hero-description {
    max-width: 650px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #1d4ed8);
    box-shadow: 0 12px 28px rgba(37, 99, 235, .25);
    transition: transform var(--ease), box-shadow var(--ease);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, .30);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
}
.text-link span { transition: transform var(--ease); }
.text-link:hover span { transform: translateX(3px); }

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}

.hero-tags span,
.tech-tags span {
    border: 1px solid rgba(37,99,235,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.76);
    color: #4c617f;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
}

.hero-visual {
    position: relative;
    min-height: 430px;
    border: 1px solid rgba(150, 180, 220, .28);
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,.55);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 28% 25%, rgba(37,99,235,.14), transparent 27%),
        radial-gradient(circle at 75% 72%, rgba(8,145,178,.12), transparent 25%);
}

.arch-card,
.arch-node {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37,99,235,.18);
    color: #24436d;
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow-sm);
    font-weight: 800;
    letter-spacing: -.01em;
}

.arch-card { border-radius: 16px; height: 50px; padding: 0 20px; font-size: 13px; }
.arch-node { width: 70px; height: 70px; border-radius: 22px; font-size: 12px; }
.arch-cloud { width: 170px; left: 50%; top: 52px; transform: translateX(-50%); }
.arch-edge-a { left: 78px; top: 160px; }
.arch-edge-b { right: 78px; top: 160px; }
.arch-core { width: 180px; left: 50%; top: 240px; transform: translateX(-50%); background: linear-gradient(135deg, #eff6ff, #ffffff); }
.arch-data { left: 106px; bottom: 50px; color: var(--green); border-color: rgba(15,159,127,.22); }
.arch-ai { right: 106px; bottom: 50px; color: var(--cyan); border-color: rgba(8,145,178,.24); }

.arch-line {
    position: absolute;
    z-index: 2;
    height: 2px;
    background: linear-gradient(90deg, rgba(37,99,235,.18), rgba(37,99,235,.55), rgba(8,145,178,.22));
    transform-origin: left center;
    border-radius: 2px;
}
.l1 { width: 125px; left: 205px; top: 126px; transform: rotate(33deg); }
.l2 { width: 125px; right: 205px; top: 126px; transform: rotate(147deg); transform-origin: right center; }
.l3 { width: 120px; left: 140px; top: 226px; transform: rotate(18deg); }
.l4 { width: 120px; right: 140px; top: 226px; transform: rotate(162deg); transform-origin: right center; }
.l5 { width: 130px; left: 178px; top: 320px; transform: rotate(32deg); }
.l6 { width: 130px; right: 178px; top: 320px; transform: rotate(148deg); transform-origin: right center; }

.arch-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-2);
    box-shadow: 0 0 0 6px rgba(59,130,246,.10);
}
.d1 { left: 40px; top: 72px; }
.d2 { right: 38px; top: 116px; background: var(--cyan); }
.d3 { left: 50%; bottom: 24px; background: var(--green); }

/* ---------- Shared sections ---------- */

.section-block { padding: 88px 0; }
.section-white { background: #fff; }
.section-blue-soft { background: linear-gradient(180deg, #f2f7ff, #eef6ff); }
.section-cyan-soft { background: linear-gradient(180deg, #f5fbfc, #f0fafb); }

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.section-heading-row h2 {
    margin: 0;
    color: var(--text-strong);
    font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.2;
    letter-spacing: -.035em;
}

.card-elevated {
    border: 1px solid rgba(185, 204, 228, .55);
    background: rgba(255,255,255,.94);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.card-elevated:hover {
    transform: translateY(-4px);
    border-color: rgba(119, 157, 210, .55);
    box-shadow: var(--shadow-lg);
}

.card-kicker {
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
    color: var(--muted-2);
    font-size: 12px;
}

/* ---------- Featured ---------- */

.featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr);
    gap: 22px;
}

.featured-main {
    min-height: 430px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr);
}

.featured-main-content {
    padding: 42px 42px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-main h3,
.featured-small h3,
.latest-card h3,
.project-home-card h3,
.topic-v2 h3 {
    color: var(--text-strong);
    letter-spacing: -.025em;
}

.featured-main h3 {
    margin: 16px 0 18px;
    font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.24;
}

.featured-main h3 a:hover,
.featured-small h3 a:hover,
.latest-card h3 a:hover { color: var(--blue); }

.featured-main p { margin: 0; color: var(--muted); font-size: 16px; }

.featured-main-visual {
    position: relative;
    background:
        radial-gradient(circle at 25% 25%, rgba(59,130,246,.18), transparent 32%),
        radial-gradient(circle at 72% 70%, rgba(8,145,178,.13), transparent 35%),
        linear-gradient(145deg, #eaf3ff, #f4fbff);
    border-left: 1px solid var(--line);
}

.mini-architecture {
    position: absolute;
    inset: 34px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: center;
    gap: 16px;
}

.mini-pill {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37,99,235,.20);
    border-radius: 16px;
    background: rgba(255,255,255,.82);
    color: #345b8f;
    font-size: 12px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}
.mini-pill:nth-child(1), .mini-pill:nth-child(4) { grid-column: 1 / -1; }

.featured-side {
    display: grid;
    gap: 18px;
}

.featured-small {
    padding: 26px 28px;
    min-height: 124px;
}

.featured-small h3 { margin: 8px 0 0; font-size: 19px; line-height: 1.38; }
.featured-small .card-meta { margin-top: 12px; }
.topic-fallback p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

/* ---------- Featured composition polish v4.2 ---------- */

.featured-section {
    padding-top: 76px;
    padding-bottom: 78px;
}

.featured-layout-v42 {
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, .72fr);
    gap: 20px;
    align-items: stretch;
}

.featured-main-v42 {
    min-height: 392px;
    grid-template-columns: minmax(0, 1.34fr) minmax(245px, .66fr);
}

.featured-main-content-v42 {
    padding: 38px 40px 34px;
    justify-content: flex-start;
}

.featured-main-v42 h3 {
    max-width: 680px;
    margin: 14px 0 15px;
    font-size: clamp(30px, 2.35vw, 36px);
    line-height: 1.28;
    letter-spacing: -.035em;
}

.featured-main-description {
    max-width: 620px;
    font-size: 14px !important;
    line-height: 1.75;
}

.featured-recent {
    margin-top: 26px;
}

.featured-recent-label {
    margin-bottom: 9px;
    color: #8aa0bb;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
}

.featured-recent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.featured-recent-card {
    min-width: 0;
    min-height: 122px;
    padding: 14px 15px 13px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(148,163,184,.24);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(248,251,255,.94), rgba(244,249,255,.78));
    box-shadow: 0 7px 18px rgba(55,87,130,.045);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.featured-recent-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59,130,246,.34);
    box-shadow: 0 12px 24px rgba(55,87,130,.075);
}

.featured-recent-top,
.featured-recent-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.featured-recent-kicker {
    color: var(--blue);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.featured-recent-index {
    color: #b6c4d5;
    font-size: 9px;
    font-weight: 900;
}

.featured-recent-card strong {
    margin: 8px 0 10px;
    color: var(--text-strong);
    font-size: 14px;
    line-height: 1.42;
    letter-spacing: -.015em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.featured-recent-bottom {
    margin-top: auto;
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 700;
}

.featured-recent-bottom span:last-child {
    color: var(--blue);
    font-size: 11px;
}

.featured-main-footer {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.featured-main-footer .card-meta { margin-top: 0; }

.featured-read-link {
    flex: 0 0 auto;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.featured-read-link span { margin-left: 4px; }

.featured-main-visual-v42 {
    border-left: 1px solid rgba(148,163,184,.22);
    background:
        radial-gradient(circle at 24% 22%, rgba(59,130,246,.15), transparent 30%),
        radial-gradient(circle at 78% 76%, rgba(6,182,212,.12), transparent 32%),
        linear-gradient(145deg, #eef6ff 0%, #f7fbff 58%, #eefcff 100%);
}

.mini-architecture-v42 {
    position: absolute;
    inset: 26px 22px;
}

.mini-arch-label {
    position: absolute;
    top: 0;
    left: 2px;
    color: #6f8caf;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
}

.mini-arch-lines {
    position: absolute;
    inset: 18px 0 0;
    width: 100%;
    height: calc(100% - 18px);
    overflow: visible;
}

.mini-arch-lines path {
    fill: none;
    stroke: rgba(59,130,246,.44);
    stroke-width: 2.1;
    stroke-linecap: round;
}

.mini-arch-lines .mini-arch-accent {
    stroke: rgba(6,182,212,.30);
    stroke-width: 1.6;
}

.mini-node {
    position: absolute;
    z-index: 2;
    min-width: 92px;
    min-height: 48px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37,99,235,.18);
    border-radius: 14px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 10px 30px rgba(65,103,160,.10);
    color: #254d80;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    backdrop-filter: blur(6px);
}

.mini-node small {
    margin-bottom: 2px;
    color: #7891af;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .12em;
}

.mini-node-isp { top: 32px; left: 50%; transform: translateX(-50%); min-width: 126px; }
.mini-node-edge-a { top: 115px; left: 1%; }
.mini-node-edge-b { top: 115px; right: 1%; }
.mini-node-core { top: 204px; left: 50%; transform: translateX(-50%); min-width: 130px; }
.mini-node-work { bottom: 6px; left: 50%; transform: translateX(-50%); min-width: 116px; border-color: rgba(6,182,212,.24); color: #087b91; }

.mini-arch-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 0 6px rgba(59,130,246,.08);
}
.mini-dot-a { top: 76px; right: 8%; }
.mini-dot-b { bottom: 28px; left: 8%; background: #0ea5a8; box-shadow: 0 0 0 6px rgba(14,165,168,.08); }

.featured-side-v42 {
    gap: 14px;
    grid-template-rows: repeat(3, minmax(0, 1fr));
}

.featured-small-v42 {
    min-height: 0;
    padding: 20px 22px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.featured-small-topline,
.featured-small-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.featured-small-index {
    color: #b2c1d4;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.featured-small-v42 h3 {
    margin: 9px 0 7px;
    font-size: 18px;
    line-height: 1.35;
}

.featured-small-v42 p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.featured-small-bottom {
    margin-top: auto;
    padding-top: 10px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
}

.featured-small-v42 .card-meta { margin-top: 0; font-size: 10px; }
.featured-small-tags { color: var(--muted-2); font-weight: 700; }

@media (max-width: 1080px) {
    .featured-layout-v42 { grid-template-columns: 1fr; }
    .featured-main-v42 { grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); }
    .featured-side-v42 { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
    .featured-small-v42 { min-height: 172px; }
}

@media (max-width: 720px) {
    .featured-section { padding-top: 60px; padding-bottom: 64px; }
    .featured-main-v42 { grid-template-columns: 1fr; }
    .featured-main-content-v42 { padding: 28px; }
    .featured-main-v42 h3 { font-size: clamp(28px, 8.2vw, 34px); line-height: 1.3; }
    .featured-main-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
    .featured-recent-grid { grid-template-columns: 1fr; }
    .featured-recent-card { min-height: 108px; }
    .featured-main-visual-v42 { min-height: 320px; border-left: 0; border-top: 1px solid rgba(148,163,184,.22); }
    .mini-architecture-v42 { inset: 22px 24px; }
    .featured-side-v42 { grid-template-columns: 1fr; }
    .featured-small-v42 { min-height: 0; padding: 20px 22px; }
}

/* ---------- Topic cards ---------- */

.topic-cards-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.topic-v2 {
    min-height: 300px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.topic-icon {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 17px;
    background: #e8f1ff;
    color: var(--blue);
    box-shadow: inset 0 0 0 1px rgba(37,99,235,.10);
}
.icon-security { background: #eaf7ff; color: #0c7fa4; }
.icon-data { background: #eef4ff; color: #4c63b6; }
.icon-ai { background: #e9faf6; color: var(--green); }

.topic-v2 h3 { margin: 26px 0 10px; font-size: 24px; }
.topic-v2 p { margin: 0; color: var(--muted); font-size: 14px; }

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    padding-top: 24px;
}

.infra-strip {
    margin-top: 18px;
    min-height: 76px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(185,204,228,.7);
    border-radius: 18px;
    background: rgba(255,255,255,.74);
    color: var(--muted);
    box-shadow: var(--shadow-sm);
    transition: transform var(--ease), box-shadow var(--ease);
}
.infra-strip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.infra-strip-title { color: var(--text-strong); font-weight: 900; }
.infra-strip strong { color: var(--blue); font-size: 20px; }

/* ---------- Projects home ---------- */

.projects-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-home-card {
    min-height: 290px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.project-home-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e4efff, #ecfbff);
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}

.project-home-card h3 { margin: 28px 0 12px; font-size: 23px; line-height: 1.35; }
.project-home-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Latest cards ---------- */

.latest-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.latest-card {
    min-height: 265px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}
.latest-card h3 { margin: 14px 0 12px; font-size: 21px; line-height: 1.4; }
.latest-card p { margin: 0; color: var(--muted); font-size: 14px; }
.latest-card .card-meta { margin-top: auto; padding-top: 22px; }
.empty-card { grid-column: 1 / -1; padding: 40px; color: var(--muted); }

/* ---------- Page hero ---------- */

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 76px;
    background:
        radial-gradient(circle at 16% 20%, rgba(59,130,246,.10), transparent 30%),
        linear-gradient(180deg, #f4f8ff, #fff);
    border-bottom: 1px solid var(--line);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(54,100,170,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(54,100,170,.05) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
    margin: 8px 0 14px;
    color: var(--text-strong);
    font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(42px, 6vw, 66px);
    letter-spacing: -.05em;
    line-height: 1.15;
}
.page-hero > .container > p:last-child { max-width: 700px; margin: 0; color: var(--muted); font-size: 17px; }

/* ---------- Posts page ---------- */

.posts-page { padding: 58px 0 110px; background: #fff; }

.post-row {
    display: grid;
    grid-template-columns: 138px 1fr;
    gap: 32px;
    padding: 30px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.post-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c8d9ee; }
.post-date { color: var(--muted-2); font-size: 12px; padding-top: 6px; }
.post-main h2 { margin: 0 0 10px; color: var(--text-strong); font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: 27px; line-height: 1.35; letter-spacing: -.025em; }
.post-main h2 a:hover { color: var(--blue); }
.post-main p { margin: 0; color: var(--muted); max-width: 780px; }
.post-info { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; color: var(--muted-2); font-size: 12px; }

/* ---------- Topics page ---------- */

.topic-page { padding: 58px 0 110px; background: #f7faff; }
.topic-card {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 26px;
    margin-bottom: 20px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.topic-number { color: var(--blue); font-size: 12px; font-weight: 900; padding-top: 6px; }
.topic-card h2 { margin: 0 0 10px; color: var(--text-strong); font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: 30px; letter-spacing: -.03em; }
.topic-card p { max-width: 760px; margin: 0; color: var(--muted); }
.topic-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.topic-tags span { border-radius: 999px; padding: 6px 10px; background: var(--surface-blue); color: #526b8d; font-size: 11px; font-weight: 700; }

/* ---------- Projects page ---------- */

.projects-page { padding: 64px 0 110px; background: linear-gradient(180deg, #f4fbfc, #f7faff); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; background: none; border: 0; }
.project-card {
    min-height: 310px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: transform var(--ease), box-shadow var(--ease);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-top { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 11px; }
.project-status { color: var(--blue); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.project-card h2 { margin: 42px 0 14px; color: var(--text-strong); font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: 27px; letter-spacing: -.03em; }
.project-card p { margin: 0; color: var(--muted); }
.project-tech { margin-top: auto; padding-top: 28px; color: #5d7596; font-size: 12px; font-weight: 700; }

/* ---------- Generic list compatibility ---------- */

.latest { padding: 72px 0 110px; background: #fff; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-header h1, .section-header h2 { margin: 0; color: var(--text-strong); font-family: Georgia, "Noto Serif SC", "Songti SC", serif; }
.post-item { display: grid; grid-template-columns: 140px 1fr; gap: 30px; padding: 26px 0; border-top: 1px solid var(--line); }
.post-meta { color: var(--muted-2); font-size: 12px; }
.post-item h3 { margin: 0 0 8px; color: var(--text-strong); font-size: 22px; }
.post-item p { margin: 0; color: var(--muted); }
.empty { padding: 50px 0; color: var(--muted); }

/* ---------- Article ---------- */

.article { padding: 84px 0 120px; background: #fff; }

.article-shell {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, var(--article-width)) 260px;
    gap: 86px;
    justify-content: center;
}

.article-main { min-width: 0; }

.article-header {
    padding: 0 0 48px;
    margin-bottom: 46px;
    border-bottom: 1px solid var(--line);
}

.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted-2); font-size: 12px; }
.article-header h1 {
    margin: 18px 0 20px;
    color: var(--text-strong);
    font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1.19;
    letter-spacing: -.045em;
}
.article-description { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.78; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.article-tags a { border-radius: 999px; padding: 6px 11px; background: var(--surface-blue); color: #4f6990; font-size: 11px; font-weight: 700; }

.article-content { color: #293548; font-size: 17px; line-height: 1.92; }
.article-content p { margin: 20px 0; }
.article-content h2 {
    position: relative;
    margin: 64px 0 20px;
    padding-left: 17px;
    color: var(--text-strong);
    font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
    font-size: 30px;
    letter-spacing: -.03em;
    scroll-margin-top: 100px;
}
.article-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .28em;
    width: 5px;
    height: 1.15em;
    border-radius: 999px;
    background: linear-gradient(var(--blue), var(--cyan));
}
.article-content h3 { margin: 44px 0 16px; color: var(--text-strong); font-size: 22px; scroll-margin-top: 100px; }
.article-content a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(37,99,235,.28); text-underline-offset: 3px; }
.article-content blockquote {
    margin: 30px 0;
    padding: 18px 22px;
    border: 1px solid #d9e7f8;
    border-left: 4px solid var(--blue);
    border-radius: 0 14px 14px 0;
    color: #53657e;
    background: #f5f9ff;
}
.article-content pre {
    overflow-x: auto;
    margin: 30px 0;
    padding: 22px;
    border: 1px solid #1e2c43;
    border-radius: 14px;
    color: #e8eef7;
    background: #101827;
    box-shadow: 0 15px 35px rgba(15, 23, 42, .12);
    font-size: 14px;
    line-height: 1.65;
}
.article-content code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.article-content :not(pre) > code { padding: 3px 6px; border-radius: 6px; background: #edf4ff; color: #245aa8; font-size: .9em; }
.article-content table { width: 100%; margin: 30px 0; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.article-content th, .article-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.article-content th { color: #315b91; background: #f1f6fd; font-size: 13px; }
.article-content tr:last-child td { border-bottom: 0; }
.article-content img { display: block; max-width: 100%; height: auto; margin: 30px auto; border-radius: 14px; }

.article-toc { position: relative; }
.toc-inner {
    position: sticky;
    top: 104px;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
    padding: 20px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfdff;
    box-shadow: var(--shadow-sm);
}
.toc-title { margin-bottom: 14px; color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.article-toc nav { display: block; }
.article-toc nav ul { display: block; list-style: none; padding: 0; margin: 0; }
.article-toc nav ul ul { margin-top: 6px; padding-left: 13px; }
.article-toc nav li { margin: 7px 0; }
.article-toc nav a { color: var(--muted); font-size: 12px; line-height: 1.5; }
.article-toc nav a:hover { color: var(--blue); }

.article-footer { margin-top: 78px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-footer-tags { display: flex; flex-wrap: wrap; gap: 9px; font-size: 12px; }
.article-footer-tags span { color: var(--muted-2); }
.article-footer-tags a { color: var(--blue); }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.article-nav > div { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdff; }
.article-nav .next { text-align: right; }
.article-nav span { margin-bottom: 6px; color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.article-nav a { color: var(--text-strong); font-size: 13px; font-weight: 700; }

/* ---------- Default single compatibility ---------- */
.article > .container { max-width: 820px; }

/* ---------- Search ---------- */

.search-dialog {
    width: min(720px, calc(100% - 32px));
    max-height: 80vh;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: transparent;
    box-shadow: var(--shadow-lg);
}
.search-dialog::backdrop { background: rgba(15, 27, 48, .32); backdrop-filter: blur(5px); }
.search-panel { padding: 28px; border: 1px solid rgba(255,255,255,.7); border-radius: 24px; background: rgba(255,255,255,.96); }
.search-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.search-head h2 { margin: 0; color: var(--text-strong); font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: 28px; }
.search-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); cursor: pointer; font-size: 24px; line-height: 1; }
.search-box { margin-top: 24px; min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid #cbd9ec; border-radius: 15px; background: #f9fbff; color: var(--blue); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.search-results { margin-top: 14px; max-height: 45vh; overflow-y: auto; }
.search-hint { padding: 24px 6px; color: var(--muted); font-size: 13px; }
.search-result-item { display: block; padding: 16px; border-radius: 14px; transition: background var(--ease); }
.search-result-item:hover { background: #f1f6fd; }
.search-result-section { display: block; margin-bottom: 4px; color: var(--blue); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.search-result-item strong { display: block; color: var(--text-strong); font-size: 15px; }
.search-result-item p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

/* ---------- Footer ---------- */

.site-footer {
    padding: 62px 24px 24px;
    color: #d8e3f1;
    background:
        radial-gradient(circle at 10% 10%, rgba(37,99,235,.18), transparent 28%),
        linear-gradient(145deg, #0c1b33, #0d2341 58%, #0c2842);
}

.footer-inner {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.25fr .65fr .8fr 1.25fr;
    gap: 48px;
}
.footer-brand-line { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; }
.brand-mark-footer { width: 30px; height: 30px; flex-basis: 30px; }
.footer-brand p { max-width: 300px; margin: 16px 0 0; color: #9fb0c5; font-size: 13px; }
.footer-column { display: flex; flex-direction: column; gap: 9px; }
.footer-column h3 { margin: 0 0 8px; color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.footer-column a, .footer-column span { color: #9fb0c5; font-size: 12px; line-height: 1.55; }
.footer-column a:hover { color: #fff; }
.footer-latest a { margin-bottom: 3px; }
.footer-bottom {
    width: min(var(--max-width), 100%);
    margin: 42px auto 0;
    padding-top: 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    border-top: 1px solid rgba(255,255,255,.10);
    color: #72869e;
    font-size: 11px;
}

.footer-bottom-copyright {
    justify-self: start;
}

.footer-bottom-note {
    justify-self: end;
    text-align: right;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .hero-v2-inner { grid-template-columns: 1fr .88fr; gap: 42px; }
    .hero-visual { min-height: 390px; }
    .topic-cards-v2 { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1.2fr .8fr .9fr; }
    .footer-latest { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .site-header { padding-inline: 14px; }
    .nav-shell { grid-template-columns: auto 1fr auto; gap: 10px; }
    .main-nav { display: none; }
    .brand { justify-self: start; }
    .search-trigger { justify-self: end; }

    .hero-v2 { margin-top: -78px; padding-top: 158px; }
    .hero-v2-inner { grid-template-columns: 1fr; }
    .hero-visual { width: min(600px, 100%); min-height: 390px; }

    .featured-layout { grid-template-columns: 1fr; }
    .featured-main { grid-template-columns: 1fr 300px; }
    .featured-side { grid-template-columns: repeat(3, 1fr); }
    .featured-small { min-height: 170px; }

    .projects-home-grid, .latest-card-grid { grid-template-columns: repeat(2, 1fr); }

    .article-shell { grid-template-columns: 1fr; width: min(820px, calc(100% - 40px)); }
    .article-toc { display: none; }
}

@media (max-width: 720px) {
    .container { width: min(100% - 32px, var(--max-width)); }
    .site-header { padding-top: 10px; }
    .nav-shell { min-height: 58px; border-radius: 18px; }
    .brand-text { font-size: 16px; }
    .brand-mark { width: 31px; height: 31px; flex-basis: 31px; }
    .search-trigger { padding: 9px 11px; }
    .search-trigger span { display: none; }

    .hero-v2 { padding: 145px 0 72px; }
    .hero-copy h1 { font-size: clamp(40px, 12vw, 58px); letter-spacing: -.05em; }
    .hero-description { font-size: 16px; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
    .hero-visual { min-height: 330px; border-radius: 24px; box-shadow: var(--shadow-md); }
    .arch-cloud { top: 38px; }
    .arch-edge-a { left: 44px; top: 132px; }
    .arch-edge-b { right: 44px; top: 132px; }
    .arch-core { top: 212px; }
    .arch-data { left: 64px; bottom: 34px; }
    .arch-ai { right: 64px; bottom: 34px; }
    .arch-line { display: none; }

    .section-block { padding: 68px 0; }
    .section-heading-row { align-items: flex-start; }
    .section-heading-row .text-link { margin-top: 8px; }

    .featured-main { grid-template-columns: 1fr; min-height: 0; }
    .featured-main-content { padding: 30px; }
    .featured-main-visual { min-height: 220px; border-left: 0; border-top: 1px solid var(--line); }
    .featured-side { grid-template-columns: 1fr; }
    .featured-small { min-height: 0; }

    .topic-cards-v2, .projects-home-grid, .latest-card-grid, .project-grid { grid-template-columns: 1fr; }
    .infra-strip { grid-template-columns: 1fr auto; padding: 18px; gap: 10px; }
    .infra-strip > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
    .infra-strip strong { grid-column: 2; grid-row: 1; }

    .page-hero { padding: 76px 0 58px; }
    .post-row, .topic-card { grid-template-columns: 1fr; gap: 10px; padding: 24px; }
    .post-date { padding-top: 0; }

    .article { padding-top: 54px; }
    .article-shell { width: min(100% - 32px, 790px); }
    .article-header h1 { font-size: clamp(36px, 10vw, 48px); }
    .article-content { font-size: 16px; }
    .article-content h2 { font-size: 26px; }
    .article-nav { grid-template-columns: 1fr; }
    .article-nav .next { text-align: left; }

    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
    .footer-brand, .footer-latest { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 460px) {
    .hero-visual { min-height: 300px; }
    .arch-node { width: 60px; height: 60px; border-radius: 19px; }
    .arch-cloud, .arch-core { width: 150px; }
    .arch-edge-a { left: 28px; }
    .arch-edge-b { right: 28px; }
    .arch-data { left: 40px; }
    .arch-ai { right: 40px; }
    .section-heading-row { flex-direction: column; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-brand, .footer-latest { grid-column: auto; }
}

/* ==========================================================
   V2 Phase 2 — Long-form article experience
   ========================================================== */

.reading-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 120;
    height: 3px;
    background: transparent;
    pointer-events: none;
}

.reading-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--blue), #38bdf8, var(--cyan));
    box-shadow: 0 0 14px rgba(37, 99, 235, .32);
    will-change: transform;
}

.article-v2 {
    position: relative;
    padding-top: 70px;
    background:
        radial-gradient(circle at 50% 0%, rgba(37,99,235,.055), transparent 350px),
        linear-gradient(180deg, #fbfdff 0, #fff 360px);
}

.article-header-v2 {
    position: relative;
    padding: 24px 0 54px;
    margin-bottom: 54px;
}

.article-header-v2::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, var(--line-strong), rgba(203,216,232,.18), transparent);
}

.article-kicker-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.article-category {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 0 11px;
    border: 1px solid rgba(37,99,235,.14);
    border-radius: 999px;
    color: #1d5fc4;
    background: linear-gradient(180deg, #f5f9ff, #edf5ff);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.article-category:hover {
    border-color: rgba(37,99,235,.28);
    background: #e8f2ff;
}

.article-category-muted { color: var(--muted); }

.article-type {
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.article-header-v2 h1 {
    max-width: 820px;
    margin-top: 0;
    font-size: clamp(44px, 5.3vw, 64px);
    line-height: 1.16;
}

.article-header-v2 .article-description {
    max-width: 740px;
    margin-top: 23px;
    color: #61718a;
    font-size: 18px;
}

.article-meta-v2 {
    margin-top: 28px;
    gap: 10px 18px;
}

.article-meta-v2 > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.article-meta-v2 svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.article-v2 .article-tags { margin-top: 18px; }

.article-v2 .article-tags a {
    border: 1px solid rgba(80,112,154,.10);
    background: #f8fbff;
    transition: transform var(--ease), border-color var(--ease), color var(--ease), background var(--ease);
}

.article-v2 .article-tags a:hover {
    transform: translateY(-1px);
    border-color: rgba(37,99,235,.20);
    color: var(--blue);
    background: #f1f7ff;
}

.article-v2 .article-content {
    color: #2c394c;
    font-size: 17px;
    line-height: 1.94;
}

.article-v2 .article-content > p:first-child {
    font-size: 18px;
    color: #33445c;
}

.article-v2 .article-content h2 {
    margin-top: 70px;
    padding-left: 18px;
}

.article-v2 .article-content h2::before {
    width: 4px;
    height: 1.08em;
    top: .34em;
}

.article-v2 .article-content h3 {
    position: relative;
    margin-top: 48px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(223,232,244,.68);
    font-size: 21px;
}

.article-v2 .article-content h4 {
    margin: 34px 0 12px;
    color: var(--text-strong);
    font-size: 17px;
}

.article-v2 .article-content ul,
.article-v2 .article-content ol {
    margin: 20px 0;
    padding-left: 1.45em;
}

.article-v2 .article-content li { margin: 7px 0; }
.article-v2 .article-content li::marker { color: #4b78ba; }

.article-v2 .article-content blockquote {
    position: relative;
    margin: 34px 0;
    padding: 22px 24px 22px 26px;
    border: 1px solid #dce9fa;
    border-left: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #f5f9ff, #f8fcff);
    box-shadow: 0 9px 24px rgba(55,87,130,.055);
}

.article-v2 .article-content blockquote::before {
    content: "";
    position: absolute;
    inset: 14px auto 14px 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(var(--blue), var(--cyan));
}

.article-v2 .article-content blockquote p:first-child { margin-top: 0; }
.article-v2 .article-content blockquote p:last-child { margin-bottom: 0; }

.article-v2 .article-content hr {
    height: 1px;
    margin: 52px 0;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.code-block-shell {
    overflow: hidden;
    margin: 32px 0;
    border: 1px solid #20304a;
    border-radius: 16px;
    background: #101827;
    box-shadow: 0 16px 38px rgba(15,23,42,.14);
}

.code-toolbar {
    min-height: 42px;
    padding: 0 12px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #7f93ae;
    background: #0d1522;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.code-copy {
    min-width: 50px;
    height: 26px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148,163,184,.28);
    border-radius: 6px;
    color: #d8e4f3;
    background: rgba(255,255,255,.075);
    cursor: pointer;
    font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    transition: color var(--ease), border-color var(--ease), background var(--ease), transform var(--ease);
}

.code-copy:hover {
    color: #ffffff;
    border-color: rgba(96,165,250,.55);
    background: rgba(59,130,246,.20);
}

.code-copy:active {
    transform: translateY(1px);
}

.code-copy.is-copied {
    color: #dff7ee;
    border-color: rgba(52,211,153,.45);
    background: rgba(16,185,129,.16);
}

.article-v2 .article-content .code-block-shell pre,
.article-v2 .article-content .code-block-shell .highlight {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.article-v2 .article-content .highlight pre { margin: 0; }

.article-v2 .article-content pre {
    scrollbar-width: thin;
    scrollbar-color: #33465f #101827;
}

.table-scroll {
    width: 100%;
    margin: 32px 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(55,87,130,.045);
}

.article-v2 .article-content .table-scroll table {
    min-width: 620px;
    margin: 0;
    border: 0;
    border-radius: 0;
}

.article-v2 .article-content th {
    padding: 13px 15px;
    color: #315d96;
    background: #f0f6fd;
    font-size: 12px;
    font-weight: 800;
}

.article-v2 .article-content td {
    padding: 14px 15px;
    vertical-align: top;
}

.article-v2 .article-content tbody tr {
    transition: background var(--ease);
}

.article-v2 .article-content tbody tr:hover { background: #f9fbfe; }

.article-v2 .article-content img {
    margin: 36px auto;
    border: 1px solid rgba(203,216,232,.75);
    border-radius: 17px;
    box-shadow: 0 12px 34px rgba(44,75,118,.08);
}

.toc-inner {
    padding: 19px 18px 16px;
    border-color: rgba(203,216,232,.82);
    background: rgba(251,253,255,.92);
    backdrop-filter: blur(12px);
}

.toc-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.toc-title-row .toc-title { margin: 0; }

.toc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 4px rgba(8,145,178,.10);
}

.article-v2 .article-toc nav a {
    position: relative;
    display: block;
    padding: 4px 7px 4px 10px;
    border-radius: 8px;
    transition: color var(--ease), background var(--ease);
}

.article-v2 .article-toc nav a:hover { background: #f0f6fe; }

.article-v2 .article-toc nav a.is-active {
    color: #1d5fc4;
    background: #edf5ff;
    font-weight: 800;
}

.article-v2 .article-toc nav a.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 2px;
    border-radius: 999px;
    background: var(--blue);
}

.toc-back-top {
    display: block;
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 10px;
    font-weight: 700;
}

.toc-back-top:hover { color: var(--blue); }

.article-footer-v2 {
    margin-top: 90px;
    padding-top: 26px;
}

.article-footer-v2 .article-footer-tags {
    align-items: center;
    padding-bottom: 28px;
}

.article-footer-v2 .article-footer-tags a {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--surface-blue);
}

.related-articles {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid var(--line);
}

.related-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 22px;
}

.related-heading h2 {
    margin: 0;
    color: var(--text-strong);
    font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
    font-size: 28px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.related-card {
    min-width: 0;
    min-height: 188px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: linear-gradient(145deg, #fff, #f9fcff);
    box-shadow: 0 8px 22px rgba(45,78,121,.055);
    transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.related-card:hover {
    transform: translateY(-3px);
    border-color: #c2d5ef;
    box-shadow: var(--shadow-sm);
}

.related-card-meta {
    margin-bottom: 10px;
    color: var(--blue);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.related-card strong {
    color: var(--text-strong);
    font-size: 15px;
    line-height: 1.5;
}

.related-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.related-arrow {
    margin-top: auto;
    padding-top: 16px;
    color: #55759f;
    font-size: 10px;
    font-weight: 800;
}

@media (max-width: 1080px) {
    .article-v2 .article-shell { gap: 58px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .related-card:nth-child(3) { grid-column: 1 / -1; min-height: 145px; }
}

@media (max-width: 900px) {
    .reading-progress { top: 0; }
    .article-v2 { padding-top: 52px; }
    .article-header-v2 { padding-top: 10px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .article-header-v2 h1 { font-size: clamp(36px, 10.5vw, 50px); }
    .article-header-v2 .article-description { font-size: 16px; }
    .article-type { width: 100%; }
    .related-heading { align-items: flex-start; flex-direction: column; }
    .related-grid { grid-template-columns: 1fr; }
    .related-card:nth-child(3) { grid-column: auto; }
    .article-v2 .article-content .table-scroll table { min-width: 560px; }
}

/* ==========================================================
   V2 Phase 3 — Topics, Projects & About
   ========================================================== */

.phase3-hero {
    position: relative;
    overflow: hidden;
    margin-top: -78px;
    padding: 168px 0 86px;
    background:
        radial-gradient(circle at 16% 22%, rgba(37,99,235,.12), transparent 31%),
        radial-gradient(circle at 86% 40%, rgba(8,145,178,.09), transparent 28%),
        linear-gradient(180deg, #f4f8ff 0%, #f9fcff 100%);
}

.phase3-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148,173,209,.35), transparent);
}

.phase3-hero-grid {
    position: absolute;
    inset: 0;
    opacity: .4;
    background-image:
        linear-gradient(rgba(58,102,169,.065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58,102,169,.065) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, #000 18%, rgba(0,0,0,.4) 75%, transparent);
}

.phase3-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    align-items: center;
    gap: 80px;
}

.phase3-hero-copy h1 {
    max-width: 820px;
    margin: 0;
    color: var(--text-strong);
    font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(52px, 6vw, 76px);
    line-height: 1.12;
    letter-spacing: -.055em;
}

.phase3-lead {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

.phase3-section-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
    align-items: end;
    gap: 56px;
    margin-bottom: 30px;
}

.phase3-section-intro h2,
.about-v3-split h2,
.about-v3-cta h2 {
    margin: 0;
    color: var(--text-strong);
    font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(30px, 3.8vw, 44px);
    line-height: 1.25;
    letter-spacing: -.04em;
}

.phase3-section-intro > p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* Topics */
.phase3-hero-aside {
    position: relative;
    width: 330px;
    height: 270px;
    justify-self: end;
}

.domain-orbit {
    position: absolute;
    inset: 50% auto auto 50%;
    border: 1px solid rgba(37,99,235,.18);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.domain-orbit-a { width: 270px; height: 180px; transform: translate(-50%,-50%) rotate(-12deg); }
.domain-orbit-b { width: 190px; height: 250px; transform: translate(-50%,-50%) rotate(28deg); border-color: rgba(8,145,178,.18); }
.domain-core, .domain-node {
    position: absolute;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.9);
    color: #fff;
    box-shadow: var(--shadow-md);
    font-weight: 900;
    letter-spacing: .06em;
}
.domain-core {
    left: 50%; top: 50%; width: 82px; height: 82px;
    transform: translate(-50%,-50%);
    border-radius: 25px;
    background: linear-gradient(145deg, var(--blue), #1d4ed8 58%, var(--cyan));
    font-size: 20px;
}
.domain-node { width: 54px; height: 54px; border-radius: 17px; background: rgba(255,255,255,.92); color: #45658d; font-size: 9px; }
.domain-node-a { left: 18px; top: 94px; }
.domain-node-b { right: 14px; top: 72px; color: #166a79; }
.domain-node-c { left: 84px; bottom: 5px; }
.domain-node-d { right: 69px; bottom: 17px; color: #0f806b; }

.topics-v3-section { padding: 82px 0 120px; background: linear-gradient(180deg, #fff 0%, #f8fbff 100%); }
.topics-v3-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.topic-v3-card {
    position: relative;
    min-height: 390px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 23px;
    background: linear-gradient(145deg, #fff, #f9fcff);
    box-shadow: 0 10px 28px rgba(45,78,121,.065);
    transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.topic-v3-card:hover { transform: translateY(-4px); border-color: #c4d5ec; box-shadow: var(--shadow-md); }
.topic-v3-card::after {
    content: "";
    position: absolute;
    width: 220px; height: 220px; right: -120px; top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,.08), transparent 68%);
    pointer-events: none;
}
.topic-v3-featured { min-height: 440px; }
.topic-v3-wide { grid-column: 1 / -1; min-height: 300px; }
.topic-v3-head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; }
.topic-v3-icon { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 17px; color: var(--blue); background: #eaf2ff; }
.topic-v3-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topic-v3-icon-cyan { color: #087e97; background: #e8f9fc; }
.topic-v3-icon-soft { color: #2b67b4; background: #eef5ff; }
.topic-v3-icon-green { color: #0b8d71; background: #e8f8f3; }
.topic-v3-icon-slate { color: #52657d; background: #eef2f6; }
.topic-v3-number { color: #a4b2c5; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.topic-v3-body { position: relative; z-index: 1; margin-top: 36px; }
.topic-v3-label { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.topic-v3-body h3 { margin: 8px 0 12px; color: var(--text-strong); font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: 32px; letter-spacing: -.035em; }
.topic-v3-body p { max-width: 680px; margin: 0; color: var(--muted); font-size: 14px; }
.topic-v3-related { position: relative; z-index: 1; margin-top: auto; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.topic-v3-related > span { margin-bottom: 2px; color: var(--muted-2); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.topic-v3-related a { display: flex; justify-content: space-between; gap: 20px; color: #425c7d; font-size: 12px; font-weight: 700; line-height: 1.5; }
.topic-v3-related a:hover { color: var(--blue); }
.topic-v3-related b { flex: 0 0 auto; color: var(--blue); }
.topic-v3-related-compact { border-top: 0; padding-top: 22px; }

/* Projects */
.phase3-hero-inner-projects { grid-template-columns: minmax(0, 1fr) 390px; }
.project-hero-stack { position: relative; width: 350px; height: 250px; justify-self: end; }
.project-hero-stack span {
    position: absolute;
    left: 46px; right: 46px; height: 115px;
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(236,245,255,.86));
    box-shadow: 0 18px 45px rgba(37,82,145,.11);
    transform: perspective(650px) rotateX(60deg) rotateZ(-10deg);
}
.project-hero-stack span:nth-child(1) { top: 28px; opacity: .55; }
.project-hero-stack span:nth-child(2) { top: 69px; }
.project-hero-stack span:nth-child(3) { top: 110px; background: linear-gradient(145deg, #eaf3ff, #f4fcff); }
.project-hero-stack b { position: absolute; left: 50%; bottom: 19px; transform: translateX(-50%); white-space: nowrap; color: #56769f; font-size: 9px; letter-spacing: .16em; }

.projects-v3-section { padding: 82px 0 120px; background: linear-gradient(180deg, #f8fcff 0%, #f4fbfc 100%); }
.projects-v3-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-v3-card {
    min-height: 390px;
    padding: 27px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 10px 28px rgba(45,78,121,.065);
    transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.project-v3-card:hover { transform: translateY(-4px); border-color: #c1d4ed; box-shadow: var(--shadow-md); }
.project-v3-primary { min-height: 470px; background: linear-gradient(155deg, #ffffff 0%, #f0f6ff 100%); }
.project-v3-security { background: linear-gradient(155deg, #ffffff 0%, #effbfb 100%); }
.project-v3-brand { background: linear-gradient(155deg, #f9fbff, #eef5ff); }
.project-v3-top { display: flex; justify-content: space-between; align-items: center; color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.project-v3-top b { color: #a5b2c3; font-size: 11px; }
.project-v3-symbol { margin-top: 30px; }
.project-v3-symbol-network { position: relative; width: 150px; height: 104px; }
.project-v3-symbol-network i { position: absolute; width: 46px; height: 46px; border: 1px solid #cbdcf1; border-radius: 14px; background: linear-gradient(145deg,#fff,#eaf3ff); box-shadow: 0 8px 18px rgba(37,99,235,.08); }
.project-v3-symbol-network i:nth-child(1) { left: 52px; top: 0; background: linear-gradient(145deg,var(--blue),#1d4ed8); border-color: transparent; }
.project-v3-symbol-network i:nth-child(2) { left: 0; bottom: 0; }
.project-v3-symbol-network i:nth-child(3) { right: 0; bottom: 0; }
.project-v3-symbol-network i:nth-child(4) { left: 52px; bottom: 0; background: #eff7ff; }
.project-v3-symbol-network::before, .project-v3-symbol-network::after { content:""; position:absolute; left:73px; top:38px; width:2px; height:44px; background:#9bbce8; transform-origin:top; }
.project-v3-symbol-network::before { transform: rotate(47deg); }
.project-v3-symbol-network::after { transform: rotate(-47deg); }
.project-v3-symbol-shield { width: 86px; height: 96px; display:grid; place-items:center; color:#087f97; font-size:28px; font-weight:900; clip-path: polygon(50% 0, 92% 15%, 86% 69%, 50% 100%, 14% 69%, 8% 15%); background:linear-gradient(155deg,#dff8fb,#bfeef4); }
.project-v3-mini-mark { margin-top: 28px; width: 64px; height: 52px; display:grid; place-items:center; border-radius: 16px; color:#2764b5; background:#eaf2ff; font-size:12px; font-weight:900; letter-spacing:.08em; }
.project-v3-mini-mark-ai { color:#087d69; background:#e8f8f3; }
.project-v3-mini-mark-kb { color:#087d97; background:#e8f9fc; }
.project-v3-mini-mark-web { width:78px; color:#1d5fc4; background:linear-gradient(135deg,#edf5ff,#e6f8fb); }
.project-v3-copy { margin-top: auto; padding-top: 30px; }
.project-v3-copy h3 { margin: 0 0 12px; color: var(--text-strong); font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: 26px; line-height:1.35; letter-spacing:-.03em; }
.project-v3-copy p { margin:0; color:var(--muted); font-size:13px; }
.project-v3-tech { display:flex; flex-wrap:wrap; gap:7px; margin-top:26px; padding-top:18px; border-top:1px solid var(--line); }
.project-v3-tech span { padding:5px 8px; border-radius:999px; color:#58708f; background:#f1f6fd; font-size:10px; font-weight:700; }

/* About */
.about-v3-hero-inner { position:relative; z-index:2; display:grid; grid-template-columns:minmax(0,1fr) 360px; align-items:center; gap:80px; }
.about-v3-hero .phase3-hero-copy h1 { max-width:800px; font-size:clamp(48px,5.6vw,72px); }
.about-v3-mark { position:relative; width:300px; height:250px; justify-self:end; border:1px solid rgba(255,255,255,.85); border-radius:38px; background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(235,245,255,.76)); box-shadow:var(--shadow-lg); backdrop-filter:blur(12px); }
.about-v3-mark strong { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); color:#1f5fc4; font-size:42px; letter-spacing:-.05em; }
.about-v3-mark-node { position:absolute; width:12px; height:12px; border:3px solid #fff; border-radius:50%; background:var(--blue); box-shadow:0 5px 15px rgba(37,99,235,.2); }
.about-v3-mark .n1 { left:42px; top:46px; } .about-v3-mark .n2 { right:42px; top:58px; background:var(--cyan); } .about-v3-mark .n3 { left:62px; bottom:42px; background:var(--green); } .about-v3-mark .n4 { right:54px; bottom:48px; }
.about-v3-mark-line { position:absolute; height:1px; background:#98b8e2; transform-origin:left; }
.about-v3-mark .l1 { width:180px; left:50px; top:52px; transform:rotate(3deg); } .about-v3-mark .l2 { width:155px; left:68px; bottom:51px; transform:rotate(-3deg); } .about-v3-mark .l3 { width:150px; left:74px; top:65px; transform:rotate(58deg); }
.about-v3-section { padding:88px 0; }
.about-v3-why { background:#fff; }
.about-v3-split { display:grid; grid-template-columns:.75fr 1.25fr; gap:90px; align-items:start; }
.about-v3-prose { max-width:760px; color:#3e4d62; font-size:17px; line-height:1.92; }
.about-v3-prose p { margin:0 0 22px; }
.about-v3-focus { background:linear-gradient(180deg,#f8fbff,#f4f9ff); }
.about-v3-domain-grid { display:grid; grid-template-columns:repeat(5,1fr); overflow:hidden; border:1px solid var(--line); border-radius:24px; background:#fff; box-shadow:var(--shadow-sm); }
.about-v3-domain-grid > div { min-height:190px; padding:24px 20px; display:flex; flex-direction:column; border-right:1px solid var(--line); }
.about-v3-domain-grid > div:last-child { border-right:0; }
.about-v3-domain-grid b { color:#a5b2c4; font-size:10px; }
.about-v3-domain-grid strong { margin-top:40px; color:var(--text-strong); font-family:Georgia,"Noto Serif SC","Songti SC",serif; font-size:19px; }
.about-v3-domain-grid span { margin-top:9px; color:var(--muted); font-size:11px; line-height:1.6; }
.about-v3-principles { background:#fff; }
.about-v3-principle-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:15px; }
.about-v3-principle-grid article { min-height:270px; padding:24px; border:1px solid var(--line); border-radius:21px; background:linear-gradient(145deg,#fff,#f9fcff); box-shadow:0 8px 22px rgba(45,78,121,.05); }
.about-v3-principle-grid article > span { color:var(--blue); font-size:10px; font-weight:900; letter-spacing:.12em; }
.about-v3-principle-grid h3 { margin:70px 0 12px; color:var(--text-strong); font-family:Georgia,"Noto Serif SC","Songti SC",serif; font-size:23px; }
.about-v3-principle-grid p { margin:0; color:var(--muted); font-size:12px; }
.about-v3-cta { padding:74px 0 90px; background:linear-gradient(135deg,#eef5ff,#eefafb); }
.about-v3-cta-inner { display:flex; align-items:end; justify-content:space-between; gap:60px; }
.about-v3-cta p { margin:13px 0 0; color:var(--muted); }
.about-v3-actions { display:flex; align-items:center; gap:24px; flex:0 0 auto; }

@media (max-width: 1080px) {
    .phase3-hero-inner, .phase3-hero-inner-projects, .about-v3-hero-inner { grid-template-columns: minmax(0,1fr) 300px; gap:50px; }
    .about-v3-domain-grid { grid-template-columns:repeat(3,1fr); }
    .about-v3-domain-grid > div { border-bottom:1px solid var(--line); }
    .about-v3-principle-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 900px) {
    .phase3-hero { padding-top:150px; }
    .phase3-hero-inner, .phase3-hero-inner-projects, .about-v3-hero-inner { grid-template-columns:1fr; }
    .phase3-hero-aside, .project-hero-stack, .about-v3-mark { justify-self:start; transform:scale(.9); transform-origin:left top; }
    .topics-v3-grid, .projects-v3-grid { grid-template-columns:1fr; }
    .topic-v3-wide { grid-column:auto; }
    .about-v3-split { grid-template-columns:1fr; gap:28px; }
    .about-v3-cta-inner { align-items:flex-start; flex-direction:column; }
}

@media (max-width: 720px) {
    .phase3-hero { margin-top:-70px; padding:138px 0 64px; }
    .phase3-hero-copy h1, .about-v3-hero .phase3-hero-copy h1 { font-size:clamp(40px,11vw,54px); }
    .phase3-section-intro { grid-template-columns:1fr; gap:14px; }
    .topics-v3-section, .projects-v3-section { padding:66px 0 86px; }
    .phase3-hero-aside, .project-hero-stack, .about-v3-mark { display:none; }
    .topic-v3-card, .topic-v3-featured { min-height:370px; padding:22px; }
    .project-v3-card, .project-v3-primary { min-height:390px; padding:23px; }
    .about-v3-section { padding:66px 0; }
    .about-v3-domain-grid { grid-template-columns:1fr; }
    .about-v3-domain-grid > div { min-height:145px; border-right:0; }
    .about-v3-domain-grid strong { margin-top:26px; }
    .about-v3-principle-grid { grid-template-columns:1fr; }
    .about-v3-principle-grid article { min-height:220px; }
    .about-v3-principle-grid h3 { margin-top:46px; }
    .about-v3-actions { align-items:flex-start; flex-direction:column; gap:14px; }
}

/* ==========================================================
   V2 Phase 4 — Brand, navigation, search and mobile polish
   ========================================================== */

:where(a, button, input):focus-visible {
    outline: 3px solid rgba(37, 99, 235, .24);
    outline-offset: 3px;
}

.brand-symbol {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: block;
    border-radius: 12px;
    filter: drop-shadow(0 7px 13px rgba(37, 99, 235, .14));
}

.brand-symbol img {
    display: block;
    width: 100%;
    height: 100%;
}

.brand-symbol-footer {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    filter: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.main-nav a.is-active {
    color: var(--blue);
    background: linear-gradient(180deg, #f0f6ff, #edf4ff);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .08);
}

.mobile-menu-trigger {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255,255,255,.9);
    cursor: pointer;
}

.mobile-menu-trigger span {
    width: 17px;
    height: 1.5px;
    margin: 4px auto;
    display: block;
    border-radius: 999px;
    background: #36506f;
    transition: transform var(--ease), opacity var(--ease);
}

.search-trigger kbd,
.search-shortcuts kbd {
    border: 1px solid #d6e1ef;
    border-bottom-color: #c4d2e4;
    border-radius: 6px;
    padding: 2px 5px;
    color: #7a8ba0;
    background: #f7faff;
    box-shadow: 0 1px 0 rgba(18, 42, 76, .05);
    font-family: inherit;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
}

/* Mobile navigation drawer */
.mobile-nav-layer {
    position: fixed;
    inset: 0;
    z-index: 150;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: visibility 0s linear 240ms, opacity 220ms ease;
}

.mobile-nav-layer.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
}

.mobile-nav-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(12, 27, 51, .34);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: default;
}

.mobile-nav-panel {
    position: absolute;
    top: 14px;
    right: 14px;
    bottom: 14px;
    width: min(390px, calc(100% - 28px));
    padding: 18px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0%, rgba(37,99,235,.10), transparent 34%),
        rgba(250,252,255,.97);
    box-shadow: -18px 0 55px rgba(12,27,51,.14);
    transform: translateX(32px) scale(.985);
    transform-origin: right center;
    transition: transform 240ms cubic-bezier(.2,.8,.2,1);
}

.mobile-nav-layer.is-open .mobile-nav-panel {
    transform: translateX(0) scale(1);
}

.mobile-nav-head {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #6f8096;
    background: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.mobile-nav-links {
    margin-top: 34px;
    display: grid;
    gap: 6px;
}

.mobile-nav-links a {
    min-height: 68px;
    padding: 13px 14px;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 17px;
    transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.is-active {
    border-color: #d8e4f3;
    background: linear-gradient(135deg, #f2f7ff, #f5fbfd);
}

.mobile-nav-links a:hover { transform: translateX(2px); }
.mobile-nav-links span { color: #9aa8ba; font-size: 10px; font-weight: 800; }
.mobile-nav-links strong { color: var(--text-strong); font-size: 17px; }
.mobile-nav-links b { color: #8b99ab; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mobile-nav-links a.is-active span,
.mobile-nav-links a.is-active b { color: var(--blue); }

.mobile-nav-foot {
    margin-top: auto;
    padding: 20px 14px 8px;
    border-top: 1px solid var(--line);
}

.mobile-nav-foot span {
    color: var(--blue);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}

.mobile-nav-foot p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
}

body.mobile-nav-open { overflow: hidden; }

/* Search refinements */
.search-dialog {
    width: min(760px, calc(100% - 32px));
}

.search-panel {
    padding: 30px;
}

.search-shortcuts {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 4px 0;
    color: #8a98aa;
    font-size: 10px;
}

.search-shortcuts span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.search-results {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid #edf2f8;
}

.search-result-item {
    margin: 2px 0;
    border: 1px solid transparent;
}

.search-result-item:hover,
.search-result-item:focus-visible {
    border-color: #dbe6f4;
    background: linear-gradient(135deg, #f4f8ff, #f5fbfd);
}

.search-result-topline {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.search-result-topline time {
    color: #9aa7b7;
    font-size: 10px;
}

.search-result-tags {
    margin-top: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.search-result-tags i {
    padding: 3px 6px;
    border-radius: 999px;
    color: #667d9a;
    background: #edf4fd;
    font-style: normal;
    font-size: 9px;
    font-weight: 700;
}

/* Final small-screen polish */
@media (max-width: 900px) {
    .nav-shell {
        grid-template-columns: auto 1fr auto;
    }

    .mobile-menu-trigger { display: block; }

    .nav-actions {
        grid-column: 3;
        justify-self: end;
    }

    .brand-symbol {
        width: 33px;
        height: 33px;
        flex-basis: 33px;
    }

    .search-trigger kbd { display: none; }
}

@media (max-width: 720px) {
    .nav-actions { gap: 6px; }
    .mobile-menu-trigger,
    .search-trigger { width: 40px; height: 40px; min-width: 40px; padding: 0; justify-content: center; }
    .search-trigger span,
    .search-trigger kbd { display: none; }

    .search-dialog {
        width: calc(100% - 20px);
        max-height: 88vh;
        border-radius: 20px;
    }

    .search-panel {
        padding: 21px;
        border-radius: 20px;
    }

    .search-head h2 { font-size: 24px; }
    .search-box { min-height: 50px; margin-top: 18px; }
    .search-shortcuts { display: none; }
    .search-results { max-height: 54vh; }
    .search-result-item { padding: 14px 12px; }

    .brand-symbol-footer {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
}

@media (max-width: 460px) {
    .site-header { padding-inline: 9px; }
    .nav-shell { padding-left: 10px; padding-right: 8px; }
    .brand { gap: 8px; }
    .brand-text { font-size: 15px; }
    .brand-symbol { width: 31px; height: 31px; flex-basis: 31px; }

    .mobile-nav-panel {
        top: 8px;
        right: 8px;
        bottom: 8px;
        width: calc(100% - 16px);
        border-radius: 23px;
    }

    .mobile-nav-links { margin-top: 24px; }
    .mobile-nav-links a { min-height: 62px; }
}


/* ==========================================================
   V2 Phase 4.1 — Hero composition polish
   Keeps the Phase 4 interaction layer intact while refining
   the homepage first-screen balance and visual language.
   ========================================================== */

.hero-v41 {
    padding: 158px 0 82px;
    background:
        radial-gradient(circle at 16% 22%, rgba(59,130,246,.15), transparent 31%),
        radial-gradient(circle at 80% 35%, rgba(8,145,178,.105), transparent 28%),
        linear-gradient(180deg, #f3f8ff 0%, #f8fbff 72%, #ffffff 100%);
}

.hero-v41::after {
    width: 560px;
    height: 560px;
    right: -220px;
    top: 32px;
    background: radial-gradient(circle, rgba(37,99,235,.09), rgba(37,99,235,0) 70%);
}

.hero-v41 .hero-grid-pattern {
    opacity: .52;
    background-size: 38px 38px;
    background-image:
        linear-gradient(rgba(54,100,170,.065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(54,100,170,.065) 1px, transparent 1px);
}

.hero-v41 .hero-v2-inner {
    grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr);
    gap: 46px;
    min-height: 468px;
}

.hero-v41 .hero-copy {
    padding-top: 2px;
}

.hero-v41 .hero-copy h1 {
    max-width: none;
    font-size: clamp(48px, 4.45vw, 64px);
    line-height: 1.10;
    letter-spacing: -.045em;
}

.hero-title-line {
    display: block;
}

.hero-title-line:first-child {
    white-space: nowrap;
}

.hero-v41 .hero-description {
    max-width: 610px;
    margin-top: 24px;
    font-size: 17px;
    line-height: 1.82;
}

.hero-v41 .hero-actions {
    margin-top: 30px;
}

.hero-v41 .hero-tags {
    margin-top: 27px;
}

.hero-v41 .hero-tags span {
    padding: 5px 9px;
    background: rgba(255,255,255,.62);
    border-color: rgba(37,99,235,.11);
    color: #5a6f8b;
}

.hero-visual-v41 {
    position: relative;
    min-height: 400px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
    isolation: isolate;
}

.hero-visual-v41::before {
    inset: 7% 0 0;
    border-radius: 48%;
    background:
        radial-gradient(ellipse at 50% 47%, rgba(255,255,255,.90) 0%, rgba(240,247,255,.54) 48%, rgba(240,247,255,0) 76%),
        radial-gradient(circle at 60% 52%, rgba(8,145,178,.09), transparent 34%);
    filter: blur(.2px);
}

.hero-visual-v41::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 11%;
    right: 8%;
    bottom: 14px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(41,89,154,.10), rgba(41,89,154,0) 70%);
    filter: blur(12px);
}

.arch-caption {
    position: absolute;
    z-index: 4;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    color: #7490b4;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.arch-caption > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-2);
    box-shadow: 0 0 0 5px rgba(59,130,246,.10);
}

.arch-network-v41 {
    position: absolute;
    z-index: 1;
    inset: 20px 0 0;
    width: 100%;
    height: calc(100% - 20px);
    overflow: visible;
}

.arch-path-primary,
.arch-path-ghost {
    fill: none;
    stroke: url(#archLineBlue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.arch-path-primary { opacity: .86; }
.arch-path-ghost { opacity: .42; stroke-width: 1.5; }

.arch-svg-dot {
    fill: #4f8df7;
    stroke: rgba(255,255,255,.95);
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}
.arch-svg-dot-cyan { fill: #0891b2; }
.arch-svg-dot-green { fill: #0f9f7f; }

.arch-v41-node {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding: 12px 15px;
    border: 1px solid rgba(159,184,218,.42);
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 13px 30px rgba(39,75,125,.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.arch-v41-node span {
    color: #7990ad;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .14em;
}

.arch-v41-node strong {
    color: #24436d;
    font-size: 12px;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.arch-v41-cloud {
    width: 174px;
    left: 50%;
    top: 46px;
    transform: translateX(-50%);
}

.arch-v41-edge-a,
.arch-v41-edge-b { width: 116px; top: 143px; }
.arch-v41-edge-a { left: 10px; }
.arch-v41-edge-b { right: 10px; }

.arch-v41-core {
    width: 174px;
    left: 50%;
    top: 232px;
    transform: translateX(-50%);
    border-color: rgba(37,99,235,.32);
    background: linear-gradient(135deg, rgba(237,245,255,.96), rgba(255,255,255,.94));
    box-shadow: 0 15px 34px rgba(37,99,235,.13);
}

.arch-v41-data,
.arch-v41-ai { width: 120px; bottom: 12px; }
.arch-v41-data { left: 42px; border-color: rgba(15,159,127,.28); }
.arch-v41-ai { right: 42px; border-color: rgba(8,145,178,.28); }
.arch-v41-data span, .arch-v41-data strong { color: #137c69; }
.arch-v41-ai span, .arch-v41-ai strong { color: #087f9a; }

.arch-float-dot {
    position: absolute;
    z-index: 2;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 0 6px rgba(96,165,250,.10);
}
.afd-1 { left: 3%; top: 68px; }
.afd-2 { right: 2%; top: 108px; background: #0891b2; }
.afd-3 { left: 51%; bottom: 2px; background: #0f9f7f; }

@media (max-width: 1080px) {
    .hero-v41 .hero-v2-inner {
        grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr);
        gap: 32px;
    }
    .hero-v41 .hero-copy h1 { font-size: clamp(45px, 5vw, 58px); }
    .hero-visual-v41 { min-height: 380px; }
    .arch-v41-edge-a { left: 2px; }
    .arch-v41-edge-b { right: 2px; }
    .arch-v41-data { left: 26px; }
    .arch-v41-ai { right: 26px; }
}

@media (max-width: 900px) {
    .hero-v41 { padding-top: 154px; padding-bottom: 74px; }
    .hero-v41 .hero-v2-inner {
        grid-template-columns: 1fr;
        gap: 44px;
        min-height: 0;
    }
    .hero-v41 .hero-copy { max-width: 790px; }
    .hero-v41 .hero-copy h1 { font-size: clamp(48px, 7vw, 62px); }
    .hero-visual-v41 {
        width: min(620px, 100%);
        min-height: 390px;
        margin: 0 auto;
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 720px) {
    .hero-v41 { padding: 140px 0 64px; }
    .hero-v41 .hero-copy h1 {
        font-size: clamp(39px, 10.7vw, 52px);
        line-height: 1.12;
        letter-spacing: -.045em;
    }
    .hero-title-line:first-child { white-space: normal; }
    .hero-v41 .hero-description { margin-top: 20px; font-size: 16px; }
    .hero-v41 .hero-actions { margin-top: 26px; }
    .hero-v41 .hero-tags { margin-top: 24px; }
    .hero-visual-v41 { min-height: 350px; }
    .arch-caption { top: 0; }
    .arch-v41-cloud { width: 158px; top: 38px; }
    .arch-v41-edge-a, .arch-v41-edge-b { width: 106px; top: 127px; }
    .arch-v41-edge-a { left: 2px; }
    .arch-v41-edge-b { right: 2px; }
    .arch-v41-core { width: 158px; top: 208px; }
    .arch-v41-data, .arch-v41-ai { width: 108px; bottom: 8px; }
    .arch-v41-data { left: 23px; }
    .arch-v41-ai { right: 23px; }
    .arch-network-v41 { top: 12px; }
}

@media (max-width: 460px) {
    .hero-v41 .hero-copy h1 { font-size: clamp(37px, 11.2vw, 46px); }
    .hero-visual-v41 { min-height: 318px; }
    .arch-v41-node { padding: 9px 11px; border-radius: 14px; }
    .arch-v41-node strong { font-size: 10px; }
    .arch-v41-cloud { width: 148px; top: 34px; }
    .arch-v41-edge-a, .arch-v41-edge-b { width: 94px; top: 114px; }
    .arch-v41-core { width: 146px; top: 185px; }
    .arch-v41-data, .arch-v41-ai { width: 96px; bottom: 6px; }
    .arch-v41-data { left: 12px; }
    .arch-v41-ai { right: 12px; }
    .arch-caption { font-size: 8px; }
}

/* V2.0.3 — Footer bottom: copyright | compliance | build note */
.site-footer .footer-bottom {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;
    column-gap: 28px;
    width: min(var(--max-width), 100%);
    margin: 42px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.10);
    color: #72869e;
    font-size: 11px;
    line-height: 1.6;
}

.site-footer .footer-bottom-copyright {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    white-space: nowrap;
}

.site-footer .footer-compliance {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 7px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: rgba(159, 176, 197, .84);
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
    white-space: nowrap;
}

.site-footer .footer-compliance a {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    transition: color var(--ease), opacity var(--ease);
}

.site-footer .footer-compliance a:hover,
.site-footer .footer-compliance a:focus-visible {
    color: #ffffff;
}

.site-footer .compliance-separator {
    color: rgba(159, 176, 197, .38);
}

.site-footer .footer-bottom-note {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

/* Keep the three items on one row on ordinary desktop/tablet layouts. */
@media (max-width: 820px) {
    .site-footer .footer-bottom {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 7px;
        text-align: center;
    }

    .site-footer .footer-bottom-copyright,
    .site-footer .footer-compliance,
    .site-footer .footer-bottom-note {
        grid-column: 1;
        justify-self: center;
    }

    .site-footer .footer-bottom-copyright { grid-row: 1; }
    .site-footer .footer-compliance { grid-row: 2; }
    .site-footer .footer-bottom-note { grid-row: 3; }

    .site-footer .footer-bottom-note {
        text-align: center;
        white-space: normal;
    }
}

@media (max-width: 560px) {
    .site-footer .footer-compliance {
        flex-wrap: wrap;
        gap: 4px 6px;
        font-size: 10.5px;
        white-space: normal;
    }
}
