/* ============================================================
   Coolwei AI Lab — single stylesheet (no build step)
   ------------------------------------------------------------
   1. Tokens & base ........ :root vars, dark theme, reset, container
   2. Navbar ............... .navbar, .nav-menu, .nav-controls,
                             language switcher, theme toggle (further down)
   3. Hero & buttons ....... .hero*, .btn*
   4. Section heroes ....... .section-hero* (listing pages)
   5. News ................. pinned story, timeline, badges
   6. About / Research ..... .about, .research*, publication list
   7. Cards ................ .section-header, image cards
   8. Products ............. showcase, featured items, stats, compact
   9. Services ............. .service*
  10. Contact .............. .contact-* (contact landing cards)
  11. Footer ............... .footer* (markup rendered by js/site.js)
  12. Article template ..... .article-* (news + research posts)
  13. Product pages ........ feature rows, capability grid, CTA card
  14. Theme toggle ......... .theme-toggle, dark-mode tweaks
  15. Safety-research ...... .sr-* diagram/flow/timeline components
  16. Card system .......... 账册目录 — the one card language, applied across
                             every family. Sits last on purpose: it overrides
                             the per-family surface rules above by source order.
  17. Figure motion ........ .fm-* animated figures (end of file), played
                             by js/figure-motion.js
   ------------------------------------------------------------
   Rules: colors only via var(--*) so both themes work; shared
   components get a class here instead of per-page <style> blocks.
   ============================================================ */

/* 全局样式 */
:root {
    --canvas: #fcfcfb;
    --surface: #fcfcfb;
    --surface-muted: #f1f4fa;
    --bg: var(--surface);
    --bg-muted: var(--surface-muted);
    --text: #05070d;
    --text-muted: #4a5261;
    --text-subtle: #6b7484;
    --border: #dee4ee;
    --border-strong: #b9c3d4;
    --brand: #0b3df5;
    --brand-strong: #0730c4;
    --brand-soft: #e7ecff;
    --brand-ring: rgba(11, 61, 245, 0.30);
    --brand-contrast: #ffffff;
    --logo-red: #ce2d1e;
    --radius-mark: 4px;
    --radius-control: 12px;
    --radius-card: 18px;
    --radius-media: 26px;
    --radius-pill: 999px;
    --shadow-card: 0 2px 4px rgba(6, 16, 45, 0.05), 0 16px 42px rgba(6, 16, 45, 0.09);
    --shadow-card-hover: 0 2px 4px rgba(6, 16, 45, 0.07), 0 22px 52px rgba(11, 61, 245, 0.16);
    --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color-scheme: light;
}

/* Dark theme — applied via data-theme attribute set by inline head script.
   All site colors flow from these tokens; pages that use only var(--*) auto-flip.  */
[data-theme="dark"] {
    --canvas: #04060c;
    --surface: #0a0e18;
    --surface-muted: #121828;
    --bg: var(--surface);
    --bg-muted: var(--surface-muted);
    --text: #f6f9ff;
    --text-muted: #9aa6bd;
    --text-subtle: #78849b;
    --border: #1d2537;
    --border-strong: #303c53;
    --brand: #5c7dff;
    --brand-strong: #8ea6ff;
    --brand-soft: #101a3c;
    --brand-ring: rgba(92, 125, 255, 0.40);
    --brand-contrast: #08111c;
    --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.30), 0 16px 42px rgba(0, 0, 0, 0.34);
    --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.34), 0 22px 52px rgba(0, 0, 0, 0.42);
    color-scheme: dark;
}

:focus-visible {
    outline: 3px solid var(--brand-ring);
    outline-offset: 3px;
    border-radius: var(--radius-mark);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-display);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--canvas);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    color: var(--text);
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
}

/* Three tracks so the link group is centred on the container, not on whatever
   is left over after the brand — the brand and the controls are never the same
   width, and `margin-left: auto` centres on neither. */
.navbar .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    color: var(--text);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1;
}

.brand-mark .brand-logo {
    height: 2.7em;
    width: 2.7em;
    object-fit: contain;
    margin: -0.8em -0.7em -0.8em -0.6em;
    transform: translateY(-0.08em);
    display: block;
}

.brand-mark:hover .brand-text {
    color: var(--brand-strong);
}

.brand-text {
    transition: color 0.2s;
}

/* The links sit in a segmented track, so the active page reads as a raised
   chip rather than as one word in a row of words. */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
    justify-self: center;
    padding: 3px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}

.nav-menu li {
    display: flex;
    align-items: center;
}

/* Theme toggle + language switcher cluster, right of the links */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    justify-self: end;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
    font-size: 0.94rem;
    letter-spacing: 0.02em;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    text-align: center;
}

.nav-menu a:hover {
    color: var(--text);
}

.nav-menu a.active {
    color: var(--text);
    font-weight: 600;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* In dark mode --surface is darker than the track, so the chip would read as a
   hole rather than as a raised control. Lift it to --border instead. */
[data-theme="dark"] .nav-menu a.active {
    background: var(--border);
    box-shadow: none;
}

/* Mobile navbar: row 1 = brand + controls, row 2 = scrollable links.
   Keeps theme/language reachable and lets the dropdown open inside the
   viewport instead of being clipped by the scrolling link row. */
@media (max-width: 720px) {
    .navbar {
        padding: 0.7rem 0 0.5rem;
    }
    .navbar .container {
        display: flex;
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }
    .nav-brand {
        flex: 1 1 auto;
        min-width: 0;
    }
    .brand-mark {
        font-size: 1.12rem;
    }
    .nav-utilities {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        padding-left: 0.65rem;
    }
    .nav-controls {
        justify-self: auto;
        margin-left: auto;
        padding-left: 0.7rem;
    }
    .nav-menu {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        justify-self: auto;
        gap: 1rem;
        overflow-x: auto;
        padding: 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
    .nav-menu li {
        width: auto;
        flex: 0 0 auto;
    }
    .nav-menu a {
        font-size: 0.79rem;
        padding: 5px 11px;
        white-space: nowrap;
    }
}

/* --- Language switcher (markup rendered by js/site.js) --- */
.language-switcher-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.language-switcher-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.language-switcher-toggle:hover {
    background: var(--bg-muted);
    border-color: var(--text);
}

.language-switcher-toggle.open {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.lang-dropdown-icon {
    font-size: 0.7em;
    transition: transform 0.2s ease;
    display: inline-block;
}

.language-switcher-toggle.open .lang-dropdown-icon {
    transform: rotate(180deg);
}

/* Closed menu is display:none (not merely invisible) so it never adds
   phantom width/horizontal scroll on small screens. */
.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    min-width: 150px;
    z-index: 1001;
    box-shadow: var(--shadow-card-hover);
}

.language-switcher-toggle.open ~ .lang-dropdown-menu {
    display: block;
    animation: langMenuIn 0.16s ease both;
}

@keyframes langMenuIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lang-option {
    display: block;
    width: 100%;
    padding: 9px 13px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    transition: background 0.15s ease;
}

.lang-option:hover {
    background: var(--bg-muted);
}

.lang-option.active {
    background: var(--text);
    color: var(--bg);
}

@media (max-width: 720px) {
    .language-switcher-toggle {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    .lang-option {
        font-size: 0.85rem;
    }
}

/* 英雄区 */
.hero {
    background: var(--surface);
    color: var(--text);
    padding: 132px 20px 76px;
    position: relative;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(330px, 5fr);
    align-items: start;
    gap: clamp(2.5rem, 5vw, 5rem);
}

.hero-content {
    max-width: 680px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.08;
    letter-spacing: -0.038em;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    margin-bottom: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.5;
}

.hero-description {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--brand-strong);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 1.6rem;
}

.hero-kicker::before,
.hero-kicker::after {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--brand-strong);
    flex-shrink: 0;
}

.hero-kicker::after {
    display: none;
}

.hero-lede {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 1.75rem;
    max-width: 640px;
    font-weight: 400;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.35rem 0.85rem;
    color: var(--text-subtle);
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
    margin-top: 2rem;
}

.hero-meta > * + *::before {
    content: '·';
    margin-right: 0.85rem;
    color: var(--border-strong);
}

.hero-meta a {
    color: var(--text-subtle);
    text-decoration: none;
    transition: color 0.2s, text-decoration-color 0.2s;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}
.hero-meta a:hover {
    color: var(--brand-strong);
    border-bottom-color: var(--brand);
    text-decoration: none;
}

/* 按钮 */
.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.btn {
    padding: 11px 24px;
    font-size: 0.93rem;
    border-radius: var(--radius-control);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    font-weight: 500;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--brand);
    color: var(--brand-contrast);
    border-color: var(--brand);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--brand-strong);
    border-color: var(--brand-strong);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand-strong);
}

/* Home product release — an open editorial field, not a boxed product card. */
.release-signal {
    position: relative;
    z-index: 1;
    min-width: 0;
    isolation: isolate;
    background: transparent;
    animation: fadeInUp 0.7s 0.08s ease-out both;
}

.release-signal::before {
    content: '';
    position: absolute;
    z-index: -2;
    top: 66px;
    right: -70px;
    width: 232px;
    height: 232px;
    border: 1px solid color-mix(in srgb, var(--brand-ring) 62%, transparent);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
                color-mix(in srgb, var(--brand-soft) 72%, transparent) 0,
                color-mix(in srgb, var(--brand-soft) 52%, transparent) 28%,
                color-mix(in srgb, var(--brand-soft) 18%, transparent) 50%,
                transparent 72%);
    box-shadow: 0 0 44px color-mix(in srgb, var(--brand-soft) 26%, transparent);
    opacity: 0.82;
    pointer-events: none;
}

.release-signal::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 41px;
    right: -95px;
    width: 282px;
    height: 282px;
    border-radius: 50%;
    background: conic-gradient(from 14deg,
                transparent 0 9%,
                color-mix(in srgb, var(--brand) 46%, transparent) 9% 10%,
                transparent 10% 43%,
                color-mix(in srgb, var(--brand) 22%, transparent) 43% 44%,
                transparent 44% 78%,
                color-mix(in srgb, var(--brand) 34%, transparent) 78% 79%,
                transparent 79% 100%);
    -webkit-mask: radial-gradient(circle, transparent 0 71%, #000 71.4% 72.2%, transparent 72.6%);
    mask: radial-gradient(circle, transparent 0 71%, #000 71.4% 72.2%, transparent 72.6%);
    opacity: 0.38;
    animation: releaseOrbit 20s ease-in-out infinite;
    pointer-events: none;
}

.release-signal-mark {
    position: absolute;
    z-index: -1;
    top: 140px;
    right: 2px;
    width: 88px;
    height: auto;
    opacity: 0.88;
    object-fit: contain;
    filter: drop-shadow(0 7px 14px color-mix(in srgb, var(--brand) 12%, transparent));
    pointer-events: none;
    user-select: none;
}

.release-signal-mark-dark {
    display: none;
}

[data-theme="dark"] .release-signal-mark-light {
    display: none;
}

[data-theme="dark"] .release-signal-mark-dark {
    display: block;
}

.release-signal-head,
.release-signal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.release-signal-head {
    position: relative;
    z-index: 1;
    justify-content: flex-start;
    padding: 0.15rem 0 0.9rem;
    color: var(--text-subtle);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.release-signal-head::before {
    content: '';
    width: 26px;
    height: 1px;
    flex: 0 0 auto;
    background: var(--brand);
}

.release-signal-meta {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 0.62rem;
}

.release-version {
    display: inline-flex;
    align-items: center;
    margin: 0;
    color: var(--brand-strong);
    font: inherit;
    letter-spacing: 0.12em;
}

.release-version::before {
    content: '·';
    margin-right: 0.62rem;
    color: var(--border-strong);
}

.release-status {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    margin-left: 0.2rem;
    padding-left: 0.9rem;
    border-left: 1px solid var(--border);
    letter-spacing: 0.08em;
}

.release-status > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.release-signal-body {
    position: relative;
    z-index: 1;
    min-height: 270px;
    padding: clamp(1.4rem, 3vw, 1.9rem) 0 clamp(1.65rem, 3.5vw, 2.15rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.release-signal-body h2 {
    max-width: 13.5ch;
    margin: 0 0 0.9rem;
    color: var(--text);
    font-size: clamp(1.72rem, 2.6vw, 2.15rem);
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

html[lang="zh"] .release-signal-body h2 {
    word-break: keep-all;
}

.release-signal-body > p {
    max-width: 32ch;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.release-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
    color: var(--brand-strong);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.release-link span {
    transition: transform 0.2s ease;
}

.release-link:hover {
    border-bottom-color: var(--brand);
}

.release-link:hover span {
    transform: translateX(3px);
}

.release-signal-foot {
    align-items: stretch;
    border-top: 1px solid var(--border);
    width: min(66%, 300px);
    padding: 0.92rem 0 0;
    background: transparent;
}

.release-signal-stat {
    flex: 1 1 0;
    min-width: 0;
}

.release-signal-stat + .release-signal-stat {
    padding-left: clamp(1rem, 4vw, 1.6rem);
    border-left: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.release-signal-stat strong,
.release-signal-stat span {
    display: block;
}

.release-signal-stat strong {
    color: var(--text);
    font-size: clamp(1.2rem, 1.8vw, 1.35rem);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.release-signal-stat span {
    margin-top: 0.18rem;
    color: var(--text-subtle);
    font-size: 0.72rem;
    line-height: 1.35;
}

@keyframes releaseOrbit {
    0%, 100% { transform: rotate(-11deg); }
    50% { transform: rotate(13deg); }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .release-signal-head {
        gap: 0.65rem;
        font-size: 0.64rem;
    }
    .release-signal-head::before {
        width: 20px;
    }
    .release-signal-type,
    .release-version::before {
        display: none;
    }
    .release-status {
        margin-left: auto;
        padding-left: 0;
        border-left: 0;
    }
    .release-signal-body h2 {
        max-width: 12ch;
    }
    .release-signal::after {
        opacity: 0.28;
    }
}

@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-content {
        max-width: 760px;
    }
    .release-signal {
        max-width: 680px;
        width: 100%;
    }
}

@media (max-width: 720px) {
    .hero {
        padding: 124px 20px 56px;
    }
    .hero > .container {
        padding-inline: 0;
    }
    .hero-layout {
        gap: 2.5rem;
    }
    .hero-title {
        font-size: clamp(2.35rem, 12vw, 3.2rem);
    }
    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    .hero-meta {
        gap: 0.5rem;
    }
    .hero-meta > * + *::before {
        display: none;
    }
    .release-signal-mark {
        top: 116px;
        right: 14px;
        width: 82px;
        opacity: 0.78;
        filter: drop-shadow(0 5px 10px color-mix(in srgb, var(--brand) 10%, transparent));
    }
    .release-signal::before {
        top: 52px;
        right: -45px;
        width: 200px;
        height: 200px;
        box-shadow: 0 0 30px color-mix(in srgb, var(--brand-soft) 20%, transparent);
    }
    .release-signal::after {
        top: 34px;
        right: -63px;
        width: 236px;
        height: 236px;
    }
    .release-signal-head {
        gap: 0.65rem;
        padding-bottom: 0.75rem;
    }
    .release-signal-head::before {
        width: 20px;
    }
    .release-signal-type,
    .release-version::before {
        display: none;
    }
    .release-status {
        margin-left: auto;
        padding-left: 0;
        border-left: 0;
    }
    .release-signal-body {
        min-height: 0;
        padding-top: 1.35rem;
    }
    .release-signal-body h2 {
        max-width: min(12ch, calc(100% - 96px));
        font-size: clamp(1.65rem, 8vw, 2rem);
    }
    .release-signal-foot {
        width: 100%;
    }
}

/* Section hero — editorial left-aligned (research / news / contact / products listing) */
.section-hero {
    background: var(--bg);
    padding: 92px 20px 56px;
    border-bottom: 1px solid var(--border);
}

.section-hero .container {
    max-width: 1200px;
}

.section-hero-inner {
    max-width: 720px;
}

.section-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-strong);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1.25rem;
}

.section-hero-kicker::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--brand-strong);
    flex-shrink: 0;
}

.section-hero-title {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 1.1rem;
    max-width: 18ch;
}

.section-hero-lede {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 60ch;
    margin: 0;
}

.section-hero-rule {
    border: 0;
    border-top: 1px solid var(--border);
    width: 88px;
    margin: 1.75rem 0 1rem;
}

.section-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.85rem;
    color: var(--text-subtle);
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
}

.section-hero-meta > * + *::before {
    content: '·';
    margin-right: 0.85rem;
    color: var(--border-strong);
}

@media (max-width: 640px) {
    .section-hero {
        padding: 124px 20px 44px;
    }
    .products-index-page .section-hero,
    .research-index-page .section-hero {
        padding-right: 0;
        padding-left: 0;
    }
    .section-hero-title {
        max-width: none;
    }
}

/* Shared subpage signal — the same evidence-led visual language for products and research. */
.products-index-page,
.research-index-page,
.home-page {
    --catalog-line: color-mix(in srgb, var(--border) 88%, transparent);
    --catalog-line-strong: color-mix(in srgb, var(--border-strong) 76%, transparent);
    --catalog-field: color-mix(in srgb, var(--surface) 54%, transparent);
    --catalog-hover: color-mix(in srgb, var(--brand) 3.5%, transparent);
}

[data-theme="dark"] .products-index-page,
[data-theme="dark"] .research-index-page,
[data-theme="dark"] .home-page {
    --catalog-line: color-mix(in srgb, var(--border-strong) 72%, transparent);
    --catalog-line-strong: color-mix(in srgb, var(--border-strong) 90%, transparent);
    --catalog-field: color-mix(in srgb, var(--surface) 42%, transparent);
    --catalog-hover: color-mix(in srgb, var(--brand) 6%, transparent);
}

.products-index-page .section-hero,
.research-index-page .section-hero {
    position: relative;
    overflow: hidden;
    background: var(--surface);
}

.products-index-page .section-hero::after,
.research-index-page .section-hero::after {
    content: '';
    position: absolute;
    right: max(20px, calc((100vw - 1160px) / 2));
    bottom: -66px;
    width: 260px;
    height: 180px;
    opacity: 0.58;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: linear-gradient(135deg, transparent 8%, #000 78%);
    mask-image: linear-gradient(135deg, transparent 8%, #000 78%);
    pointer-events: none;
}

.subpage-signal {
    padding: 44px 20px 0;
    background: var(--canvas);
}

.products-index-page .subpage-signal,
.research-index-page .subpage-signal {
    padding-right: 0;
    padding-left: 0;
}

.subpage-spotlight {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.9fr);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.subpage-spotlight::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--brand);
}

.subpage-spotlight:hover {
    border-color: var(--brand-ring);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.subpage-spotlight-copy {
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.spotlight-eyebrow {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--brand-strong);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.subpage-spotlight h2 {
    max-width: 24ch;
    margin: 0 0 0.7rem;
    color: var(--text);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.subpage-spotlight p {
    max-width: 66ch;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.spotlight-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.15rem;
    color: var(--brand-strong);
    font-size: 0.86rem;
    font-weight: 600;
}

.spotlight-link span {
    transition: transform 0.2s ease;
}

.subpage-spotlight:hover .spotlight-link span {
    transform: translateX(3px);
}

.spotlight-evidence {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    min-width: 0;
    padding: 1.25rem;
    background: var(--surface-muted);
    border-left: 1px solid var(--border);
}

.spotlight-evidence > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 0.65rem 0.85rem;
}

.spotlight-evidence > span + span {
    border-left: 1px solid var(--border);
}

.spotlight-evidence strong,
.spotlight-evidence small {
    display: block;
}

.spotlight-evidence strong {
    color: var(--brand-strong);
    font-size: clamp(1.25rem, 2.3vw, 1.7rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}

.spotlight-evidence small {
    margin-top: 0.35rem;
    color: var(--text-subtle);
    font-size: 0.72rem;
    line-height: 1.35;
}

@media (max-width: 820px) {
    .subpage-spotlight {
        grid-template-columns: 1fr;
    }
    .spotlight-evidence {
        border-top: 1px solid var(--border);
        border-left: 0;
    }
}

@media (max-width: 520px) {
    .subpage-signal {
        padding-top: 28px;
    }
    .spotlight-evidence {
        grid-template-columns: 1fr;
        padding: 0.7rem 1.25rem;
    }
    .spotlight-evidence > span {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.7rem 0;
    }
    .spotlight-evidence > span + span {
        border-top: 1px solid var(--border);
        border-left: 0;
    }
    .spotlight-evidence small {
        margin-top: 0;
        text-align: right;
    }
}

/* News page — pinned story + chronological timeline */
.news-page-body {
    padding: 48px 20px 80px;
    background: var(--bg-muted);
}

/* Pinned story. One accent, used once — on the 置顶 chip, because being pinned
   is the only thing that makes this card special. Badge, metrics and CTA earn
   their rank from weight and size instead, so the headline stays the single
   entry point rather than losing to a row of blue numbers. */
.news-pinned {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.75rem 1.75rem 1.5rem;
    margin: 0 auto 3rem;
    max-width: 1200px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.news-pinned-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    /* Blockified as a grid item on wide screens; keep it chip-sized. */
    justify-self: start;
    background: var(--brand-soft);
    color: var(--brand-strong);
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1.1rem;
}

.news-pinned-label::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand);
}

/* The badge drops out of the accent so it stops competing with the title. */
.news-pinned .news-badge {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-strong);
}

.news-pinned-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-subtle);
    font-variant-numeric: tabular-nums;
}

.news-pinned-title {
    font-size: clamp(1.45rem, 2.4vw, 1.95rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 0.85rem;
}

.news-pinned-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.news-pinned-title a:hover {
    color: var(--brand-strong);
}

.news-pinned-lede {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 1.1rem;
    max-width: 72ch;
}

.news-pinned-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    align-items: baseline;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0 0 1.25rem;
}

.news-pinned-stats strong {
    color: var(--brand);
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 0.3rem;
    font-variant-numeric: tabular-nums;
}

.news-pinned-stats > span + span::before {
    content: '·';
    margin-right: 1.1rem;
    color: var(--border-strong);
}

.news-pinned-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--brand-strong);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
}

.news-pinned-cta::after {
    content: '→';
    transition: transform 0.2s ease;
}

.news-pinned-cta:hover {
    color: var(--brand);
}

.news-pinned-cta:hover::after {
    transform: translateX(4px);
}

@media (max-width: 640px) {
    .news-pinned {
        padding: 1.5rem 1.25rem 1.25rem;
    }
    .news-pinned::before {
        top: 1.25rem;
        bottom: 1.25rem;
    }
}

/* News badge — shared with timeline rows */
.news-badge {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand-strong);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.4;
    white-space: nowrap;
}

.news-timeline {
    max-width: 1200px;
    margin: 0 auto;
}

.news-year-header {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    margin: 2.25rem 0 0.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-strong);
}

.news-year-header:first-child {
    margin-top: 0;
}

.news-year-label {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.news-year-count {
    font-size: 0.85rem;
    color: var(--text-subtle);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.news-timeline-row {
    display: grid;
    grid-template-columns: 110px minmax(96px, auto) 1fr;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1.1rem 0.5rem 1.1rem 0.5rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.18s ease, padding 0.18s ease;
    border-radius: 8px;
}

.news-timeline-row:hover {
    background: rgba(33, 150, 243, 0.045);
    padding-left: 0.85rem;
}

.news-timeline-row.is-static {
    cursor: default;
}

.news-timeline-row.is-static:hover {
    background: transparent;
    padding-left: 0.5rem;
}

.news-timeline-date {
    color: var(--text-subtle);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
}

.news-timeline-badge {
    align-self: baseline;
    line-height: 1.2;
}

.news-timeline-content {
    min-width: 0;
}

.news-timeline-title {
    font-size: 1.02rem;
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.4;
    margin: 0 0 0.25rem;
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    transition: color 0.18s ease;
}

.news-timeline-row:hover .news-timeline-title {
    color: var(--brand-strong);
}

.news-timeline-title::after {
    content: '→';
    color: var(--text-subtle);
    font-weight: 500;
    transform: translateX(0);
    transition: transform 0.2s ease, color 0.2s ease;
}

.news-timeline-row:hover .news-timeline-title::after {
    color: var(--brand-strong);
    transform: translateX(4px);
}

.news-timeline-row.is-static .news-timeline-title::after {
    display: none;
}

.news-timeline-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

.news-timeline-meta-mobile {
    display: none;
}

@media (max-width: 720px) {
    .news-timeline-row {
        grid-template-columns: 1fr;
        gap: 0.45rem;
        padding: 1rem 0.5rem;
    }
    .news-timeline-row:hover {
        padding-left: 0.5rem;
    }
    .news-timeline-date,
    .news-timeline-badge {
        display: none;
    }
    .news-timeline-meta-mobile {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        flex-wrap: wrap;
        margin-bottom: 0.15rem;
        font-size: 0.82rem;
        color: var(--text-subtle);
        font-variant-numeric: tabular-nums;
    }
}

/* 关于我们 */
.about {
    padding: 64px 20px;
    background: var(--bg);
    position: relative;
    border-top: 1px solid var(--border);
}

.about h2 {
    font-size: clamp(1.75rem, 2.8vw, 2.25rem);
    margin-bottom: 1.25rem;
    text-align: center;
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.015em;
}

.about p {
    font-size: 1rem;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.7;
}

/* 研究板块 */
.research {
    padding: 64px 20px;
    background: var(--bg);
    position: relative;
}

.section-title {
    font-size: clamp(1.75rem, 2.8vw, 2.25rem);
    margin-bottom: 1.75rem;
    text-align: center;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.1rem;
    margin-top: 1.75rem;
}

/* Research index — the same ruled family as products, organized as a chronological ledger. */
.research-index-page .subpage-signal {
    padding-top: 64px;
}

.research-index-page .subpage-spotlight {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.86fr);
    overflow: visible;
    background: transparent;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
    transition: background 0.22s ease;
}

.research-index-page .subpage-spotlight::before {
    inset: -1px auto -1px 0;
    width: 2px;
    height: auto;
}

.research-index-page .subpage-spotlight:hover {
    border-color: var(--border);
    box-shadow: none;
    transform: none;
}

.research-index-page .subpage-spotlight:focus-visible {
    background: var(--catalog-hover);
}

.research-index-page .spotlight-evidence {
    background: var(--catalog-field);
}

.research-areas {
    padding: 72px 0 104px;
    background: var(--canvas);
}

.research-areas .container {
    counter-reset: publication-index;
}

.research-areas .year-section {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4rem);
    margin: 0 0 4.5rem;
    border-top: 1px solid var(--catalog-line-strong);
}

.research-areas .year-section:last-child {
    margin-bottom: 0;
}

.year-header {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0;
    padding: 1.55rem 0 0;
    border: 0;
}

.year-label {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
}

.year-count {
    color: var(--text-subtle);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.pub-list {
    display: block;
    min-width: 0;
}

.pub-row {
    counter-increment: publication-index;
    display: grid;
    grid-template-columns: 36px minmax(150px, 210px) minmax(0, 1fr);
    column-gap: clamp(1rem, 2.2vw, 2rem);
    min-width: 0;
    min-height: 0;
    padding: 1.55rem 0;
    border: 0;
    border-bottom: 1px solid var(--catalog-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    text-decoration: none;
    transition: background 0.22s ease;
}

.pub-row::before {
    content: counter(publication-index, decimal-leading-zero);
    grid-column: 1;
    color: var(--text-subtle);
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.5;
}

.pub-venue {
    grid-column: 2;
    margin: 0;
    color: var(--text-subtle);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.055em;
    line-height: 1.55;
    text-transform: uppercase;
}

.pub-main {
    grid-column: 3;
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.pub-title {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    margin: 0 0 0.4rem;
    color: var(--text);
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
    transition: color 0.18s ease;
}

.pub-title::after {
    content: '→';
    color: var(--text-subtle);
    font-weight: 500;
    transform: translateX(0);
    transition: transform 0.2s ease, color 0.2s ease;
}

.pub-desc {
    max-width: 72ch;
    margin: 0 0 0.85rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.pub-keywords {
    margin: 0;
    color: var(--brand-strong);
    font-size: 0.73rem;
    font-weight: 550;
    letter-spacing: 0.025em;
}

.pub-row:focus-within {
    background: var(--catalog-hover);
}

@media (hover: hover) {
    .research-index-page .subpage-spotlight:hover {
        background: var(--catalog-hover);
    }
    .pub-row:hover {
        background: var(--catalog-hover);
        box-shadow: none;
        transform: none;
    }
    .pub-row:hover .pub-title {
        color: var(--brand-strong);
    }
    .pub-row:hover .pub-title::after {
        color: var(--brand-strong);
        transform: translateX(4px);
    }
}

@media (max-width: 900px) {
    .research-index-page .subpage-spotlight {
        grid-template-columns: 1fr;
    }
    .research-areas .year-section {
        display: block;
        margin-bottom: 3.5rem;
    }
    .year-header {
        align-items: baseline;
        flex-direction: row;
        padding: 1.35rem 0 1rem;
    }
    .pub-row {
        grid-template-columns: 32px minmax(0, 1fr);
        column-gap: 0.9rem;
        padding: 1.35rem 0;
    }
    .pub-row::before {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
    .pub-venue {
        grid-column: 2;
        grid-row: 1;
    }
    .pub-main {
        grid-column: 2;
        grid-row: 2;
        margin-top: 0.55rem;
    }
}

@media (max-width: 520px) {
    .research-index-page .subpage-signal {
        padding-top: 40px;
    }
    .research-areas {
        padding-top: 56px;
        padding-bottom: 80px;
    }
    .pub-desc {
        font-size: 0.88rem;
    }
}

/* Research milestones — a signal rail, not a second publication list. */
.research-areas .year-section {
    scroll-margin-top: 96px;
}

.research-milestones {
    position: relative;
    overflow: hidden;
    padding: 96px 0 112px;
    border-top: 1px solid var(--catalog-line);
    background: var(--surface);
}

.research-milestones::after {
    content: '';
    position: absolute;
    top: -58px;
    right: max(20px, calc((100vw - 1160px) / 2));
    width: 310px;
    height: 190px;
    opacity: 0.32;
    background-image:
        linear-gradient(var(--catalog-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--catalog-line) 1px, transparent 1px);
    background-size: 30px 30px;
    -webkit-mask-image: linear-gradient(135deg, transparent 4%, #000 82%);
    mask-image: linear-gradient(135deg, transparent 4%, #000 82%);
    pointer-events: none;
}

.research-milestones .container {
    position: relative;
    z-index: 1;
}

.milestone-heading {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    align-items: end;
    gap: clamp(2rem, 6vw, 6rem);
}

.milestone-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
    color: var(--brand-strong);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.milestone-eyebrow::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--brand);
}

.milestone-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.milestone-heading > p {
    max-width: 62ch;
    margin: 0;
    justify-self: end;
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.7;
}

.milestone-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 3.8rem 0 0;
    padding: 0;
    border-top: 1px solid var(--catalog-line-strong);
    list-style: none;
}

.milestone-track::before {
    content: '';
    position: absolute;
    top: -1px;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        color-mix(in srgb, var(--brand) 26%, transparent) 46%,
        color-mix(in srgb, var(--brand) 72%, transparent));
    pointer-events: none;
}

.milestone-entry {
    position: relative;
    min-width: 0;
    min-height: 270px;
    padding: 2.35rem clamp(1.5rem, 3vw, 2.75rem) 0;
    transition: background 0.22s ease;
}

.milestone-entry:first-child {
    padding-left: 0;
}

.milestone-entry:last-child {
    padding-right: 0;
}

.milestone-entry + .milestone-entry {
    border-left: 1px solid var(--catalog-line);
}

.milestone-entry.is-current {
    background: linear-gradient(180deg, var(--catalog-hover), transparent 84%);
}

.milestone-node {
    position: absolute;
    top: -7px;
    left: -7px;
    width: 13px;
    height: 13px;
    border: 1px solid var(--catalog-line-strong);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 0 0 5px var(--surface);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.milestone-entry:first-child .milestone-node {
    left: 0;
}

.milestone-entry.is-current .milestone-node {
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px var(--brand-ring);
}

.milestone-entry.is-current .milestone-node::after {
    content: '';
    position: absolute;
    inset: -9px;
    border: 1px solid var(--brand-ring);
    border-radius: 50%;
}

.milestone-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.05rem;
}

.milestone-index {
    color: var(--text-subtle);
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.milestone-status {
    color: var(--brand-strong);
    font-size: 0.69rem;
    font-weight: 650;
    letter-spacing: 0.055em;
    text-align: right;
}

.milestone-entry time {
    display: block;
    margin-bottom: 1rem;
    color: var(--text);
    font-size: clamp(2.5rem, 4.5vw, 3.6rem);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.milestone-entry h3 {
    max-width: 26ch;
    margin: 0 0 0.7rem;
    color: var(--text);
    font-size: 1.16rem;
    font-weight: 600;
    letter-spacing: -0.012em;
    line-height: 1.38;
}

.milestone-entry > p {
    max-width: 44ch;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.milestone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 36px;
    margin-top: 1.2rem;
    color: var(--brand-strong);
    font-size: 0.78rem;
    font-weight: 650;
    text-decoration: none;
}

.milestone-link span {
    transition: transform 0.2s ease;
}

.milestone-entry:focus-within {
    background: var(--catalog-hover);
}

@media (hover: hover) {
    .milestone-entry:hover {
        background: var(--catalog-hover);
    }
    .milestone-entry:hover .milestone-node {
        border-color: var(--brand);
    }
    .milestone-link:hover span {
        transform: translateX(3px);
    }
}

@media (max-width: 800px) {
    .research-milestones {
        padding-top: 80px;
        padding-bottom: 92px;
    }
    .milestone-heading {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .milestone-heading > p {
        justify-self: start;
    }
    .milestone-track {
        display: block;
        margin: 3.2rem 0 0 0.4rem;
        border-top: 0;
        border-left: 1px solid var(--catalog-line-strong);
    }
    .milestone-track::before {
        top: 0;
        right: auto;
        bottom: 0;
        left: -1px;
        width: 1px;
        height: auto;
        background: linear-gradient(180deg,
            transparent,
            color-mix(in srgb, var(--brand) 26%, transparent) 46%,
            color-mix(in srgb, var(--brand) 72%, transparent));
    }
    .milestone-entry,
    .milestone-entry:first-child,
    .milestone-entry:last-child,
    .milestone-entry + .milestone-entry {
        min-height: 0;
        padding: 0 0 3.2rem 2rem;
        border-left: 0;
    }
    .milestone-entry:last-child {
        padding-bottom: 0;
    }
    .milestone-entry.is-current {
        background: linear-gradient(90deg, var(--catalog-hover), transparent 86%);
    }
    .milestone-node,
    .milestone-entry:first-child .milestone-node {
        top: 0.3rem;
        left: -7px;
    }
    .milestone-meta {
        justify-content: flex-start;
        margin-bottom: 0.7rem;
    }
    .milestone-status {
        text-align: left;
    }
    .milestone-entry time {
        font-size: 2.6rem;
    }
}

@media (max-width: 520px) {
    .research-milestones {
        padding-top: 68px;
        padding-bottom: 80px;
    }
    .research-milestones::after {
        width: 220px;
        opacity: 0.22;
    }
}

/* Section header — section title, a rule across the gap, then "View all →".
   The rule is the header's own ::after so it takes exactly the space the title
   and the link do not, at any title length. */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: nowrap;
    margin-bottom: 0.25rem;
}
.section-header::after {
    content: '';
    order: 1;
    flex: 1 1 auto;
    height: 1px;
    background: var(--catalog-line);
}
/* Scoped to the header: .section-title is also used standalone on the long
   article pages, where nowrap would push those headings off-screen. */
.section-header .section-title {
    margin-bottom: 0;
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    white-space: nowrap;
}

@media (max-width: 560px) {
    .section-header {
        flex-wrap: wrap;
    }
    .section-header::after {
        display: none;
    }
}
.section-more {
    order: 2;
    color: var(--text-subtle);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s, transform 0.2s;
    white-space: nowrap;
}
.section-more:hover {
    color: var(--brand-strong);
    text-decoration: none;
    transform: translateX(2px);
}

.research-card {
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    text-decoration: none;
    color: inherit;
}

.research-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-ring);
    box-shadow: var(--shadow-card-hover);
}

.card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Image-first card layout — used when a card has a hero image */
.card-image {
    margin: -1.5rem -1.5rem 1.1rem;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-muted);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--brand);
}

.research-card h3 {
    color: var(--text);
    font-size: 1.18rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.card-meta {
    color: var(--text-subtle);
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.research-card p {
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1.1rem;
    font-size: 0.92rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.tag {
    background: var(--brand-soft);
    color: var(--brand-strong);
    padding: 0.22rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    border: 1px solid transparent;
    font-weight: 500;
}

/* Home research preview — an editorial pair from the same ruled catalog family. */
.home-page .research {
    padding: 80px 0;
    background: var(--canvas);
}

.home-page .research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 2rem;
    border-top: 1px solid var(--catalog-line);
    border-bottom: 1px solid var(--catalog-line);
    background: var(--catalog-field);
}

.home-page .research-card {
    min-height: 224px;
    padding: 1.8rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: background 0.22s ease;
}

.home-page .research-card + .research-card {
    border-left: 1px solid var(--catalog-line);
}

.home-page .research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.8rem;
    width: 26px;
    height: 2px;
    background: var(--brand);
    transition: width 0.25s ease;
}

.home-page .research-card:focus-within {
    background: var(--catalog-hover);
}

.home-page .card-tags {
    gap: 0.8rem;
}

.home-page .tag {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--brand-strong);
    font-size: 0.72rem;
    letter-spacing: 0.025em;
}

@media (hover: hover) {
    .home-page .research-card:hover {
        border-color: transparent;
        background: var(--catalog-hover);
        box-shadow: none;
        transform: none;
    }
    .home-page .research-card:hover::before {
        width: 48px;
    }
}

@media (max-width: 720px) {
    .home-page .research-grid {
        grid-template-columns: 1fr;
    }
    .home-page .research-card + .research-card {
        border-top: 1px solid var(--catalog-line);
        border-left: 0;
    }
}

/* 产品板块 */
.products {
    padding: 64px 20px;
    background: var(--canvas);
    position: relative;
}

.products-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    margin-top: 1.75rem;
}

.product-item {
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.product-item:hover {
    border-color: var(--brand-ring);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

/* Featured product */
.product-item.featured {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg);
    align-items: start;
}

@media (max-width: 768px) {
    .product-item.featured {
        grid-template-columns: 1fr;
        width: 100%;
        min-width: 0;
        padding: 1.1rem;
    }
    .product-visual {
        width: 112px;
        min-width: 112px;
    }
    .product-info {
        width: 100%;
        min-width: 0;
    }
    .product-features {
        grid-template-columns: 1fr;
    }
    .product-item .product-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
    }
    .product-item .stat,
    .product-item .stat-label {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

.product-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 176px;
    background: color-mix(in srgb, var(--brand-soft) 32%, var(--surface-muted));
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    padding: 1.25rem;
}

.product-visual img {
    max-width: 76%;
    max-height: 76%;
    object-fit: contain;
    display: block;
}

.product-visual i {
    font-size: 2.35rem;
    color: var(--brand);
    line-height: 1;
}

.product-icon-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon {
    font-size: 3rem;
    z-index: 2;
    color: var(--brand);
}

.product-info h3 {
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    color: var(--text);
    margin-bottom: 0.6rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.product-info {
    min-width: 0;
}

.product-badge {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand-strong);
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    border: 1px solid transparent;
    margin-bottom: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.product-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.1rem;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
    margin-bottom: 1.1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.feature-icon {
    color: var(--brand);
    font-size: 0.9rem;
    width: 16px;
    display: inline-block;
    text-align: center;
}

svg.feature-icon {
    height: 16px;
    flex-shrink: 0;
}

/* Icon-less variant (products index): brand dot as the bullet */
.product-features-plain .feature::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-pill);
    background: var(--brand);
    flex-shrink: 0;
}

.product-btn {
    display: inline-block;
    background: var(--brand);
    color: var(--brand-contrast);
    border: 1px solid var(--brand);
    padding: 10px 22px;
    border-radius: var(--radius-control);
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
}

.product-btn:hover {
    background: var(--brand-strong);
    border-color: var(--brand-strong);
}

.product-btn-small {
    display: inline-block;
    background: var(--brand);
    color: var(--brand-contrast);
    border: 1px solid var(--brand);
    padding: 7px 18px;
    border-radius: var(--radius-control);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    text-decoration: none;
    font-weight: 500;
}

.product-btn-small:hover {
    background: var(--brand-strong);
    border-color: var(--brand-strong);
}

/* Compact product items */
.product-compact {
    padding: 1.5rem;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.product-icon-small {
    font-size: 1.1rem;
    color: var(--brand);
    width: 36px;
    height: 36px;
    background: var(--brand-soft);
    border: 1px solid transparent;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.product-btn-secondary {
    display: inline-block;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
    padding: 10px 22px;
    border-radius: var(--radius-control);
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
}

.product-btn-secondary:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand-strong);
}

.product-features-compact {
    margin: 1rem 0 1.25rem;
}

.feature-compact {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feature-icon-small {
    color: var(--brand);
    margin-right: 9px;
    font-size: 0.85rem;
    width: 14px;
    display: inline-block;
    text-align: center;
}

.product-compact h3 {
    color: var(--text);
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.product-compact p {
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

/* Product catalog — one continuous ruled matrix, not a stack of floating cards. */
.products-index-page .products {
    padding: 68px 0 104px;
    background: var(--canvas);
}

.products-index-page .subpage-spotlight {
    overflow: visible;
    background: transparent;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
}

.products-index-page .subpage-spotlight::before {
    top: -1px;
    left: 0;
    width: 54px;
    height: 2px;
}

.products-index-page .subpage-spotlight:hover {
    border-color: var(--border);
    box-shadow: none;
    transform: none;
}

.products-index-page .subpage-spotlight:hover::before {
    background: var(--brand-strong);
}

.products-index-page .spotlight-evidence {
    background: var(--catalog-field);
}

.products-index-page .products-showcase {
    --matrix-line: var(--catalog-line);
    counter-reset: product-index;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0;
    margin-top: 0;
    border-top: 1px solid var(--matrix-line);
    border-bottom: 1px solid var(--matrix-line);
    background: var(--catalog-field);
}

.home-page .products-showcase {
    margin-top: 1.75rem;
}

.products-index-page .product-item.featured {
    --cell-pad-x: 1.8rem;
    --product-art-opacity: 0.045;
    --product-art-hover-opacity: 0.07;
    --product-art-rotation: -4deg;
    position: relative;
    isolation: isolate;
    display: block;
    grid-column: span 4;
    min-height: 270px;
    height: 100%;
    overflow: hidden;
    padding: 1.9rem var(--cell-pad-x) 1.7rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: none;
    counter-increment: product-index;
    transition: background 0.25s ease;
}

.products-index-page .product-item.featured.product-item--atomhub,
.products-index-page .product-item.featured.product-item--yanlan {
    --cell-pad-x: 2.2rem;
    --product-art-opacity: 0.075;
    --product-art-hover-opacity: 0.1;
    grid-column: span 6;
    min-height: 360px;
    padding-top: 2.2rem;
    padding-bottom: 2rem;
}

/* Link detection takes a full row: with the red-team card retired from the
   catalog, a half-width cell would leave a hole beside it. */
.products-index-page .product-item.featured.product-item--link {
    grid-column: 1 / -1;
}

.products-index-page .product-item.featured.product-item--table {
    grid-column: 1 / -1;
    min-height: 210px;
}

.products-index-page .product-item.featured.product-item--atomhub {
    --product-art-rotation: -8deg;
}

.products-index-page .product-item.featured.product-item--yanlan {
    --product-art-rotation: 6deg;
}

/* Yanlin takes a full row of its own: the 12-column matrix pairs cards two to
   a row, and a sixth half-width cell would leave a hole beside it. */
.products-index-page .product-item.featured.product-item--yanlin {
    grid-column: 1 / -1;
    min-height: 240px;
    border-top: 1px solid var(--matrix-line);
}

/* The other marks are abstract orbitals that read well blown up and ghosted
   behind the copy. Yanlin's is a character, which only reads at full strength,
   so it sits small and solid in the art band instead. Specificity carries the
   featured class so it also wins over the hover and dark-theme art rules. */
.products-index-page .product-item.featured.product-item--yanlin .product-visual img,
.products-index-page .product-item.featured.product-item--yanlin:hover .product-visual img {
    top: 50%;
    right: 50%;
    width: clamp(84px, 9vw, 112px);
    height: auto;
    opacity: 1;
    filter: none;
    transform: translate(50%, -50%);
}

.products-index-page .product-item.featured.product-item--table {
    --product-art-rotation: -7deg;
}

.products-index-page .product-item.featured.product-item--atomhub {
    border-right: 1px solid var(--matrix-line);
}

.products-index-page .product-item.featured.product-item--link,
.products-index-page .product-item.featured.product-item--table {
    border-top: 1px solid var(--matrix-line);
}

.products-index-page .product-item.featured::before {
    content: '';
    position: absolute;
    z-index: 3;
    top: 0;
    left: var(--cell-pad-x);
    width: 18px;
    height: 2px;
    background: var(--catalog-line-strong);
    pointer-events: none;
    transition: width 0.3s ease, background 0.2s ease;
}

.products-index-page .product-item.featured.product-item--atomhub::before,
.products-index-page .product-item.featured.product-item--yanlan::before {
    width: 30px;
    background: var(--brand);
}

.products-index-page .product-item.featured::after {
    content: none;
}

.products-index-page .product-item:focus-within {
    background: var(--catalog-hover);
    box-shadow: none;
}

.products-index-page .product-item:focus-within::before {
    width: 52px;
    background: var(--brand-strong);
}

.products-index-page .product-visual {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    width: 34%;
    min-width: 0;
    height: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
    pointer-events: none;
    -webkit-mask-image: none;
    mask-image: none;
}

.products-index-page .product-visual::before {
    content: '';
    position: absolute;
    top: 18%;
    right: -42%;
    width: 138%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--brand) 18%, transparent), transparent 68%);
    filter: blur(28px);
    opacity: 0.3;
}

.products-index-page .product-item--link .product-visual::before,
.products-index-page .product-item--table .product-visual::before {
    opacity: 0.12;
    filter: blur(20px);
}

.products-index-page .product-visual img {
    position: absolute;
    top: 50%;
    right: -18%;
    bottom: auto;
    left: auto;
    width: 132%;
    height: 132%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    opacity: var(--product-art-opacity);
    filter: saturate(0.84) contrast(0.97);
    transform: translateY(-50%) rotate(var(--product-art-rotation));
    transition: opacity 0.35s ease, transform 0.5s ease;
}

.products-index-page .product-art-dark {
    display: none;
}

.products-index-page .product-info {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 78%;
    height: 100%;
    flex-direction: column;
}

.products-index-page .product-item--atomhub .product-info,
.products-index-page .product-item--yanlan .product-info {
    max-width: 74%;
}

.products-index-page .product-item--table .product-info {
    max-width: 72%;
}

.products-index-page .product-item--table .product-visual {
    width: 22%;
}

.products-index-page .product-info h3 {
    max-width: 30ch;
    margin: 0 0 0.7rem;
    font-size: clamp(1.2rem, 1.65vw, 1.45rem);
    line-height: 1.28;
}

.products-index-page .product-item--link h3,
.products-index-page .product-item--table h3 {
    font-size: 1.2rem;
}

.products-index-page .product-badge {
    display: inline-flex;
    align-items: baseline;
    align-self: flex-start;
    gap: 0.5rem;
    margin: 0 0 0.72rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--brand-strong);
    font-size: 0.7rem;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: 0.055em;
    text-transform: none;
}

.products-index-page .product-item--link .product-badge,
.products-index-page .product-item--table .product-badge {
    color: var(--text-subtle);
}

.products-index-page .product-badge::before {
    content: counter(product-index, decimal-leading-zero) ' /';
    color: var(--text-subtle);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.products-index-page .product-description {
    max-width: 52ch;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.62;
}

.products-index-page .product-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem 1rem;
    margin-bottom: 0;
}

.products-index-page .product-features .feature:nth-child(n + 3),
.home-page .product-features {
    display: none;
}

.products-index-page .feature::before {
    content: '';
    width: 14px;
    height: 1px;
    background: color-mix(in srgb, var(--brand) 62%, var(--border));
    flex: 0 0 14px;
    transform: translateY(-0.2em);
}

.products-index-page .feature {
    align-items: baseline;
    color: var(--text-subtle);
    font-size: 0.79rem;
    line-height: 1.45;
}

.products-index-page .product-buttons {
    margin-top: auto;
    padding-top: 1.4rem;
    gap: 1.15rem;
}

.products-index-page .product-btn,
.products-index-page .product-btn-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.35rem 0 0.25rem;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--brand-strong);
    font-size: 0.84rem;
    font-weight: 650;
    text-align: left;
}

.products-index-page .product-btn::after {
    content: ' \2192';
    display: inline-block;
    transition: transform 0.2s ease;
}

.products-index-page .product-btn-secondary {
    color: var(--text-muted);
}

.products-index-page .product-btn-secondary::after {
    content: ' \2197';
    display: inline-block;
    transition: transform 0.2s ease;
}

.products-index-page .product-btn:hover,
.products-index-page .product-btn-secondary:hover {
    border-bottom-color: currentColor;
    background: transparent;
    color: var(--brand-strong);
}

.products-index-page .product-btn:hover::after,
.products-index-page .product-btn-secondary:hover::after {
    transform: translateX(3px);
}

@media (hover: hover) {
    .products-index-page .product-item:hover {
        background: var(--catalog-hover);
        box-shadow: none;
        transform: none;
    }
    .products-index-page .product-item:hover::before {
        width: 52px;
        background: var(--brand-strong);
    }
    .products-index-page .product-item:hover .product-visual img {
        opacity: var(--product-art-hover-opacity);
        transform: translate(-4px, -50%) rotate(var(--product-art-rotation));
    }
}

[data-theme="dark"] .products-index-page .products-showcase {
    --matrix-line: var(--catalog-line);
    background: var(--catalog-field);
}

[data-theme="dark"] .products-index-page .product-item.featured {
    --product-art-opacity: 0.07;
    --product-art-hover-opacity: 0.095;
}

[data-theme="dark"] .products-index-page .product-item.featured.product-item--atomhub,
[data-theme="dark"] .products-index-page .product-item.featured.product-item--yanlan {
    --product-art-opacity: 0.095;
    --product-art-hover-opacity: 0.125;
}

[data-theme="dark"] .products-index-page .product-visual img {
    filter: saturate(0.9) brightness(1.08);
}

[data-theme="dark"] .products-index-page .product-visual::before {
    opacity: 0.3;
}

[data-theme="dark"] .products-index-page .product-item--link .product-visual::before,
[data-theme="dark"] .products-index-page .product-item--table .product-visual::before {
    opacity: 0.1;
    filter: blur(20px);
}

[data-theme="dark"] .products-index-page .product-art-light {
    display: none;
}

[data-theme="dark"] .products-index-page .product-art-dark {
    display: block;
}

@media (max-width: 1240px) {
    .products-index-page .product-item.featured.product-item--atomhub,
    .products-index-page .product-item.featured.product-item--yanlan {
        grid-column: 1 / -1;
        min-height: 320px;
    }
    .products-index-page .product-item.featured.product-item--atomhub {
        border-right: 0;
    }
    .products-index-page .product-item.featured.product-item--yanlan {
        border-top: 1px solid var(--matrix-line);
    }
}

@media (max-width: 900px) {
    .products-index-page .products-showcase {
        grid-template-columns: 1fr;
    }
    .products-index-page .product-item.featured,
    .products-index-page .product-item.featured.product-item--atomhub,
    .products-index-page .product-item.featured.product-item--yanlan {
        --cell-pad-x: 2rem;
        grid-column: 1 / -1;
        min-height: 240px;
        padding: 1.75rem var(--cell-pad-x) 1.55rem;
        border-top: 1px solid var(--matrix-line);
        border-right: 0;
        border-left: 0;
    }
    .products-index-page .product-item.featured:first-child {
        border-top: 0;
    }
    .products-index-page .product-item.featured.product-item--atomhub,
    .products-index-page .product-item.featured.product-item--yanlan {
        min-height: 300px;
    }
    .products-index-page .product-info,
    .products-index-page .product-item--atomhub .product-info,
    .products-index-page .product-item--yanlan .product-info,
    .products-index-page .product-item--table .product-info {
        max-width: 72%;
    }
    .products-index-page .product-visual,
    .products-index-page .product-item--table .product-visual {
        width: 28%;
    }
}

@media (max-width: 520px) {
    .products-index-page .section-hero,
    .research-index-page .section-hero,
    .products-index-page .subpage-signal,
    .research-index-page .subpage-signal,
    .products-index-page .products {
        padding-right: 0;
        padding-left: 0;
    }
    .products-index-page .products {
        padding-top: 48px;
        padding-bottom: 80px;
    }
    .products-index-page .products-showcase {
        background: transparent;
    }
    .products-index-page .product-item.featured,
    .products-index-page .product-item.featured.product-item--atomhub,
    .products-index-page .product-item.featured.product-item--yanlan {
        --cell-pad-x: 0;
        --product-art-opacity: 0.035;
        --product-art-hover-opacity: 0.055;
        min-height: 0;
        padding: 1.45rem 0 1.35rem;
    }
    .products-index-page .product-item.featured.product-item--atomhub,
    .products-index-page .product-item.featured.product-item--yanlan {
        --product-art-opacity: 0.06;
        --product-art-hover-opacity: 0.08;
    }
    .products-index-page .product-info,
    .products-index-page .product-item--atomhub .product-info,
    .products-index-page .product-item--yanlan .product-info,
    .products-index-page .product-item--table .product-info {
        max-width: 100%;
        height: auto;
    }
    .products-index-page .product-info h3 {
        max-width: 76%;
        font-size: 1.17rem;
    }
    .products-index-page .product-description {
        max-width: 88%;
    }
    .products-index-page .product-features {
        display: none;
    }
    .products-index-page .product-buttons {
        margin-top: 0;
        padding-top: 0.8rem;
    }
    .products-index-page .product-btn,
    .products-index-page .product-btn-secondary {
        min-height: 44px;
    }
    .products-index-page .product-visual,
    .products-index-page .product-item--table .product-visual {
        right: -24px;
        width: 176px;
        border-left: 0;
    }
    .products-index-page .product-visual::before {
        right: -46%;
        opacity: 0.28;
    }
    .products-index-page .product-visual img {
        right: -20%;
        width: 138%;
        height: 138%;
    }
    [data-theme="dark"] .products-index-page .product-item.featured {
        --product-art-opacity: 0.05;
        --product-art-hover-opacity: 0.07;
    }
    [data-theme="dark"] .products-index-page .product-item.featured.product-item--atomhub,
    [data-theme="dark"] .products-index-page .product-item.featured.product-item--yanlan {
        --product-art-opacity: 0.075;
        --product-art-hover-opacity: 0.095;
    }
}

@media (prefers-reduced-motion: reduce) {
    .products-index-page .product-visual img,
    .products-index-page .product-item,
    .products-index-page .product-item::before,
    .products-index-page .product-btn::after,
    .products-index-page .product-btn-secondary::after,
    .products-index-page .spotlight-link span,
    .research-index-page .subpage-spotlight,
    .research-index-page .spotlight-link span,
    .research-index-page .pub-row,
    .research-index-page .pub-title::after,
    .home-page .research-card,
    .home-page .research-card::before {
        transition: none;
    }
}

@media (pointer: coarse) {
    .products-index-page .product-btn,
    .products-index-page .product-btn-secondary,
    .home-page .section-more,
    .milestone-link,
    .product-upgrade-entry-link,
    .upgrade-back {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

.product-item .product-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.product-item .stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-item .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -0.01em;
}

.product-item .stat-label {
    font-size: 0.8rem;
    color: var(--text-subtle);
}

/* 服务板块 */
.services {
    padding: 64px 20px;
    background: var(--bg);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.1rem;
    margin-top: 1.75rem;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-ring);
    box-shadow: var(--shadow-card-hover);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
    color: var(--brand);
}

.service-card h3 {
    color: var(--text);
    font-size: 1.18rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.service-features {
    margin-bottom: 1.1rem;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.check-icon {
    color: var(--brand);
    font-weight: bold;
    font-size: 1rem;
}

.service-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -0.01em;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-subtle);
    margin-top: 0.2rem;
}

.service-highlight {
    background: var(--brand-soft);
    color: var(--brand-strong);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-card);
    text-align: center;
    margin-top: 1.1rem;
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 0.9rem;
}

.service-btn {
    background: var(--brand);
    color: var(--brand-contrast);
    border: 1px solid var(--brand);
    padding: 10px 22px;
    border-radius: var(--radius-control);
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1.1rem;
    width: 100%;
    font-weight: 500;
}

.service-btn:hover {
    background: var(--brand-strong);
    border-color: var(--brand-strong);
}

/* ============================================================
   Contact landing — cards + company info (en/zh /contact/)
   ============================================================ */
.contact-container {
    padding: 56px 20px;
    background: var(--bg-muted);
}

.contact-grid {
    display: grid;
    /* min(350px, 100%) so a 375px viewport doesn't horizontally overflow */
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--text-subtle);
}

.contact-icon {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.contact-title {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-email {
    display: inline-block;
    color: var(--text);
    font-size: 1.2rem;
    text-decoration: none;
    padding: 1rem 2rem;
    border: 2px solid var(--text);
    border-radius: 30px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.contact-email::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text);
    transition: left 0.3s;
    z-index: -1;
}

.contact-email:hover {
    color: var(--bg);
    transform: scale(1.03);
}

.contact-email:hover::before {
    left: 0;
}

.company-info {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 4rem;
    text-align: center;
}

.company-info h3 {
    color: var(--text);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-item {
    padding: 1.5rem;
    background: var(--bg-muted);
    border-radius: 10px;
}

.info-label {
    color: var(--text-subtle);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.info-value {
    color: var(--text);
    font-size: 1.1rem;
}

/* 页脚 */
.footer {
    background: var(--bg);
    color: var(--text-muted);
    padding: 48px 20px 24px;
    border-top: 1px solid var(--border);
    margin-top: 48px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    margin-bottom: 1.75rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-logo-wrapper {
    max-width: 180px;
    height: 48px;
    display: flex;
    align-items: center;
}

.footer-logo {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

[data-theme="dark"] .footer-logo-wrapper {
    background: url('../images/coolwei_logo-dark.png') left center / contain no-repeat;
}

[data-theme="dark"] .footer-logo {
    opacity: 0;
}

.footer-desc {
    font-size: 0.98rem;
    color: var(--text);
    font-weight: 600;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.footer-column h4 {
    color: var(--text);
    margin-bottom: 0.7rem;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.45rem;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.88rem;
}

.footer-column a:hover {
    color: var(--brand-strong);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    color: var(--text-subtle);
    font-size: 0.82rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Raster lockup is dark-on-transparent; render it as a white silhouette
   in dark mode so it stays legible. */
[data-theme="dark"] .footer-logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

@media (max-width: 720px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

/* In-content links */
.content-link,
main a:not(.btn):not(.product-btn):not(.product-btn-small):not(.product-btn-secondary):not(.service-btn):not(.research-card):not(.product-item) {
    color: var(--brand-strong);
    text-decoration: none;
    transition: color 0.2s;
}

.content-link:hover,
main a:not(.btn):not(.product-btn):not(.product-btn-small):not(.product-btn-secondary):not(.service-btn):not(.research-card):not(.product-item):hover {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============================================================
   Article — blog-style research post
   Used by /research/*.html paper detail pages.
   ============================================================ */

.article-page {
    background: var(--bg);
    color: var(--text);
    padding: 96px 20px 80px;
    font-family: var(--font-display);
}

.article-back {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-subtle);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 2.5rem;
    width: max-content;
    transition: color 0.2s, transform 0.2s;
}
.article-back:hover { color: var(--text); transform: translateX(-2px); text-decoration: none; }

.article-top-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.article-top-actions .article-back {
    margin-bottom: 0;
}
.article-next-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 0.42rem 0.78rem;
    color: var(--brand-strong);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.35;
    white-space: nowrap;
    border: 1px solid var(--brand-ring);
    border-radius: var(--radius-control);
    background: color-mix(in srgb, var(--bg) 88%, var(--brand-soft));
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.article-next-link:hover {
    color: var(--brand-strong);
    text-decoration: none;
    border-color: var(--brand);
    background: var(--brand-soft);
    transform: translateY(-1px);
}

.article-hero {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: left;
}

.article-eyebrow {
    display: inline-block;
    color: var(--brand-strong);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.article-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 0.75rem;
}

.article-subtitle {
    font-size: 1.18rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 1.75rem;
    font-weight: 400;
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: var(--text-subtle);
    margin-bottom: 1.5rem;
    line-height: 1.55;
}

.article-meta-authors {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.article-meta-affil {
    color: var(--text-subtle);
    font-size: 0.85rem;
}
.article-meta-affil strong {
    color: var(--brand-strong);
    font-weight: 600;
}

.article-meta-stamp {
    color: var(--text-subtle);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}
.article-meta-stamp > span + span::before {
    content: "·";
    margin: 0 0.5rem;
    color: var(--border-strong);
}

.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-actions .article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-control);
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.article-actions .article-link:hover {
    border-color: var(--brand);
    color: var(--brand-strong);
    background: var(--brand-soft);
    text-decoration: none;
}
.article-actions .article-link.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.article-actions .article-link.is-disabled:hover {
    border-color: var(--border-strong);
    color: var(--text);
    background: var(--bg);
}

.article-figures {
    max-width: 760px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.article-figure-stat {
    text-align: left;
}
.article-figure-stat .num {
    display: block;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}
.article-figure-stat .label {
    font-size: 0.78rem;
    color: var(--text-subtle);
    line-height: 1.35;
}

.article {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text);
}

.article p {
    margin: 0 0 1.25rem;
    color: var(--text);
}

.article a {
    color: var(--brand-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.article a:hover { color: var(--brand); }

.article-lede {
    font-size: 1.18rem;
    line-height: 1.6;
    color: var(--text);
    margin: 0 0 2.5rem;
}

.article-section { margin: 3rem 0; }
.article-section > :first-child { margin-top: 0; }
.article-section > :last-child { margin-bottom: 0; }

.article-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 2.5rem 0 1rem;
    line-height: 1.25;
}

.article-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.75rem 0 0.5rem;
    line-height: 1.35;
}

.article ul, .article ol {
    margin: 0 0 1.5rem;
    padding-left: 1.25rem;
}
.article li { margin-bottom: 0.5rem; line-height: 1.7; }

.article-pullquote {
    border-left: 2px solid var(--brand);
    padding: 0.25rem 0 0.25rem 1.25rem;
    margin: 2rem 0;
    font-size: 1.125rem;
    line-height: 1.55;
    font-style: italic;
    color: var(--text);
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 0.75rem;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}
.article-table thead th {
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-subtle);
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-strong);
}
.article-table tbody td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: top;
}
.article-table tbody td:first-child { padding-left: 0; }
.article-table tbody td:last-child  { padding-right: 0; }
.article-table thead th:first-child { padding-left: 0; }
.article-table thead th:last-child  { padding-right: 0; }
.article-table tbody tr:last-child td { border-bottom: none; }
.article-table tbody tr.is-ours td { font-weight: 600; }
.article-table tbody tr.is-ours td:first-child {
    box-shadow: inset 2px 0 0 var(--brand);
    padding-left: 0.6rem;
}
.article-table-num { text-align: right; font-variant-numeric: tabular-nums; }

.article-table-col-region,
.article-table thead th.article-table-region,
.article-table tbody td.article-table-region {
    width: 5.75rem;
    min-width: 5.75rem;
    white-space: nowrap;
}
.article-table-region-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.article-table-region-flag {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

/* First-column row labels in comparison tables (维度 / What it answers, etc.) */
.article-table-col-dim,
.article-table thead th.article-table-dim,
.article-table tbody td.article-table-dim {
    width: 6.75rem;
    min-width: 6.75rem;
    white-space: nowrap;
}
html[lang="en"] .article-table-col-dim,
html[lang="en"] .article-table thead th.article-table-dim,
html[lang="en"] .article-table tbody td.article-table-dim {
    width: 11rem;
    min-width: 11rem;
}

.article-table-scroll {
    width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0 0.75rem;
    -webkit-overflow-scrolling: touch;
}
.article-table-scroll .article-table {
    min-width: 680px;
    margin: 0;
}

.paper-native {
    margin: 1.75rem 0 0.75rem;
}

.paper-native-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.paper-native-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 0.82rem;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
    border-top: 2px solid var(--text);
    border-bottom: 2px solid var(--text);
}

.paper-native-table.is-wide {
    min-width: 980px;
    font-size: 0.72rem;
}

.paper-native-table caption,
.paper-algorithm-title {
    text-align: left;
    padding: 0 0 0.6rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text);
    caption-side: top;
}

.paper-native-table th,
.paper-native-table td {
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
    white-space: nowrap;
}

.paper-native-table thead th {
    font-weight: 650;
    color: var(--text);
    border-bottom: 1px solid var(--border-strong);
}

.paper-native-table tr:last-child td {
    border-bottom: none;
}

.paper-native-table .stub {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--bg);
    font-weight: 600;
    text-align: left;
}

.paper-native-table th.stub {
    z-index: 2;
}

.paper-native-table .num {
    text-align: right;
}

.paper-native-table .group {
    text-align: center;
    color: var(--text-muted);
}

.paper-native-table .best {
    font-weight: 750;
}

.paper-native-table .low {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.paper-native-table .is-ours td,
.paper-native-table .is-ours th {
    background: var(--brand-soft);
}

.paper-native-table .is-ours .stub {
    box-shadow: inset 3px 0 0 var(--brand);
}

.paper-check {
    color: #128a36;
    font-weight: 800;
}

.paper-check.is-likely {
    color: var(--text-subtle);
}

.paper-cross {
    color: #d72638;
    font-weight: 800;
}

.paper-math {
    font-family: "Times New Roman", "Cambria Math", "STIX Two Math", serif;
    font-style: italic;
    color: currentColor;
    white-space: nowrap;
}

.paper-algorithm {
    border-top: 2px solid var(--text);
    border-bottom: 2px solid var(--text);
    color: var(--text);
}

.paper-algorithm-title {
    padding: 0.55rem 0 0.5rem;
    border-bottom: 1px solid var(--border-strong);
}

.paper-algorithm-body {
    padding: 0.7rem 0 0.85rem;
    font-size: 0.86rem;
    line-height: 1.5;
}

.paper-algorithm-requirements {
    display: grid;
    gap: 0.32rem;
    margin: 0 0 0.65rem;
    padding: 0 0 0.65rem;
    border-bottom: 1px solid var(--border);
}

.paper-algorithm-requirements div strong {
    margin-right: 0.45rem;
}

.paper-algorithm-requirements strong,
.paper-algorithm .kw {
    font-weight: 750;
    color: var(--text);
}

.paper-algorithm-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: alg-line;
}

.paper-algorithm-steps li {
    counter-increment: alg-line;
    position: relative;
    padding-left: 2.1rem;
    margin: 0.24rem 0;
    line-height: 1.5;
}

.paper-algorithm-steps li::before {
    content: counter(alg-line) ':';
    position: absolute;
    left: 0;
    width: 1.4rem;
    text-align: right;
    color: var(--text-subtle);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.paper-algorithm-steps .indent {
    padding-left: 3.45rem;
}

@media (max-width: 640px) {
    .paper-native-table {
        min-width: 720px;
        font-size: 0.78rem;
    }
    .paper-native-table.is-wide {
        min-width: 920px;
        font-size: 0.68rem;
    }
    .paper-algorithm-body {
        font-size: 0.78rem;
    }
}

.article-callout {
    position: relative;
    margin: 2rem 0;
    padding: 1.25rem 1.45rem 1.25rem 1.7rem;
    border: 1px solid var(--brand-ring);
    border-radius: var(--radius-card);
    background: linear-gradient(145deg, var(--brand-soft) 0%, var(--bg-muted) 58%, var(--bg) 100%);
    box-shadow: var(--shadow-card);
    color: var(--text);
    line-height: 1.7;
    overflow: hidden;
}
.article-callout::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%);
}
.article-callout::after {
    content: '';
    position: absolute;
    right: -2.5rem;
    top: -3.5rem;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--brand-ring) 0%, transparent 68%);
    pointer-events: none;
}
.article-callout strong {
    color: var(--brand-strong);
    font-weight: 650;
}

.article-cta {
    margin: 3rem 0 0;
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--bg-muted);
}
.article-cta h2 {
    margin: 0 0 0.75rem;
    color: var(--text);
    font-size: 1.35rem;
}
.article-cta p {
    margin: 0 0 1.25rem;
    color: var(--text);
    line-height: 1.7;
}
.article-cta .btn-primary,
.article-cta .btn-primary:hover {
    color: var(--brand-contrast);
    text-decoration: none;
}
.article-cta .btn-primary {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--brand-strong);
    border-color: var(--brand-strong);
    box-shadow: 0 4px 14px var(--brand-ring);
}
.article-cta .btn-primary:hover {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 8px 24px var(--brand-ring);
    transform: translateY(-1px);
}

.article-figure-caption {
    font-size: 0.8125rem;
    color: var(--text-subtle);
    font-style: italic;
    line-height: 1.55;
    margin: 0.95rem 0 2.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.article-figure {
    margin: 1.5rem 0 0.75rem;
}
.article-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-card);
    background: var(--bg-muted);
    border: 1px solid var(--border);
}
.article-figure.is-bleed {
    margin-left: -1rem;
    margin-right: -1rem;
}
@media (min-width: 720px) {
    .article-figure.is-bleed {
        margin-left: -2rem;
        margin-right: -2rem;
    }
}
.article-figure svg {
    display: block;
    width: 100%;
    height: auto;
    font-family: inherit;
    color: var(--text);
}
.article-figure-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}
.article-figure-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.article-figure-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}
.article-figure-legend-swatch.is-v3 { background: var(--brand); }
.article-figure-legend-swatch.is-v2 { background: currentColor; opacity: 0.28; }

/* Photo set — asymmetric conference/field photo pair with a venue rule.
   Desktop: one 12:5 band, two columns filling it so the bottoms align.
   Mobile: stacked 4:3 frames. Caption reuses .article-figure-caption. */
.article-photoset {
    margin: 2.25rem 0 0.75rem;
}
.article-photoset .article-photoset-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--brand-strong);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}
.article-photoset .article-photoset-label::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--border);
}
.article-photoset-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
.article-photoset-item {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    background: var(--bg-muted);
}
.article-photoset-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 720px) {
    .article-photoset-grid {
        grid-template-columns: 7fr 5fr;
        aspect-ratio: 12 / 5;
    }
    .article-photoset-item {
        aspect-ratio: auto;
        height: 100%;
    }
}
/* Single-photo variant: full width at the image's natural aspect. */
.article-photoset.is-single .article-photoset-grid {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
}
.article-photoset.is-single .article-photoset-item {
    aspect-ratio: auto;
    height: auto;
}
.article-photoset.is-single .article-photoset-item img {
    height: auto;
}
@media (hover: hover) {
    .article-photoset-item:hover img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
    .article-photoset-item img { transition: none; }
    .article-photoset-item:hover img { transform: none; }
}

.article-divider {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 3rem auto;
    max-width: 720px;
}

.article-impact {
    margin: 1.65rem 0;
    display: grid;
    gap: 0.85rem;
    counter-reset: article-impact-item;
}
.article-impact > div {
    counter-increment: article-impact-item;
    position: relative;
    display: grid;
    grid-template-columns: 2.05rem minmax(0, 1fr);
    column-gap: 0.9rem;
    padding: 1rem 1.15rem 1.05rem;
    border: 1px solid color-mix(in srgb, var(--brand-ring) 64%, var(--border));
    border-radius: var(--radius-card);
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand-ring) 55%, transparent) 0%, transparent 32%),
        linear-gradient(145deg, color-mix(in srgb, var(--brand-soft) 70%, var(--bg)) 0%, var(--bg) 58%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}
.article-impact > div::before {
    content: counter(article-impact-item);
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.05rem;
    height: 2.05rem;
    margin-top: 0.08rem;
    color: var(--brand-strong);
    background: color-mix(in srgb, var(--bg) 88%, var(--brand-soft));
    border: 1px solid var(--brand-ring);
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.article-impact > div > strong {
    display: block;
    color: var(--brand-strong);
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 0.35rem;
    letter-spacing: 0;
}
.article-impact > div > span {
    color: var(--text);
    line-height: 1.7;
    font-size: 0.97rem;
}

@media (max-width: 600px) {
    .article-impact > div {
        grid-template-columns: 1.8rem minmax(0, 1fr);
        column-gap: 0.75rem;
        padding: 0.92rem 0.95rem 1rem;
    }
    .article-impact > div::before {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.72rem;
    }
    .article-impact > div > span {
        font-size: 0.95rem;
    }
}

.article-footer {
    max-width: 720px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-subtle);
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.article-footer a {
    color: var(--text-subtle);
    text-decoration: none;
}
.article-footer a:hover { color: var(--brand-strong); }
.article-footer-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    width: 100%;
    flex-wrap: wrap;
}
.article-footer .article-next-link {
    color: var(--brand-strong);
}

@media (max-width: 720px) {
    .article-page { padding: 138px 20px 64px; }
    .article-hero, .article-figures, .article, .article-footer, .article-divider { max-width: 100%; }
    .article-title { font-size: 1.85rem; }
    .article-subtitle { font-size: 1.05rem; }
    .article-figures { grid-template-columns: repeat(2, 1fr); }
    .article-table { font-size: 0.88rem; }
    .article-top-actions {
        align-items: flex-start;
        flex-direction: column;
    }
    .article-next-link {
        white-space: normal;
        text-align: left;
    }
}

@media (max-width: 720px) {
    .product-page { padding: 124px 20px 64px; }
}

/* ============================================================
   Product page — image-rich blog layout
   Used by /products/*.html detail pages. Shares the article tokens
   (sans-serif, narrow column for prose, hairline borders) but swaps
   the article hero for a 2-up text + image hero, adds alternating
   image+text feature rows, and a quiet CTA card at the bottom.
   ============================================================ */
.product-page {
    background: var(--bg);
    color: var(--text);
    padding: 96px 20px 80px;
    font-family: var(--font-display);
}

.product-back-row {
    max-width: 1080px;
    margin: 0 auto 2.5rem;
}
.product-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-subtle);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s, transform 0.2s;
}
.product-back:hover { color: var(--text); transform: translateX(-2px); text-decoration: none; }

.product-hero {
    max-width: 1080px;
    margin: 0 auto 4rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
}
.product-hero-text {
    position: relative;
    isolation: isolate;
    max-width: 540px;
    padding: 1.5rem 0;
}
.product-hero-text > :not(.product-logo-mark) {
    position: relative;
    z-index: 1;
}
.product-hero-image {
    width: 100%;
    border-radius: var(--radius-media);
    border: 1px solid var(--border);
    background: var(--bg-muted);
    overflow: hidden;
}
.product-hero-image img { display: block; width: 100%; height: auto; }

.product-logo-mark {
    position: absolute;
    z-index: 0;
    top: -54px;
    right: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(220px, 24vw, 290px);
    height: clamp(220px, 24vw, 290px);
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle, #000 0 52%, rgba(0, 0, 0, 0.72) 66%, transparent 82%);
    mask-image: radial-gradient(circle, #000 0 52%, rgba(0, 0, 0, 0.72) 66%, transparent 82%);
}
.product-logo-mark::before {
    content: '';
    position: absolute;
    inset: 13%;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--brand) 20%, transparent), transparent 68%);
    filter: blur(26px);
    opacity: 0.7;
}
.product-logo-mark img {
    position: absolute;
    inset: 10%;
    display: block;
    width: 80%;
    height: 80%;
    object-fit: contain;
    opacity: 0.095;
    filter: blur(0.4px) saturate(0.88);
}
.product-logo-mark--atomhub img { transform: rotate(-8deg); }
.product-logo-mark--yanlan img { transform: rotate(7deg); }

/* Yanlin has a character mark rather than an abstract one, so it leads with the
   mascot at full strength — a small solid chip beside the eyebrow — instead of
   the faint .product-logo-mark watermark the other product heroes use. */
.product-hero-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.product-hero-badge .product-eyebrow { margin-bottom: 0; }
.product-hero-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 6px;
    border-radius: 14px;
    background: var(--brand-soft);
}
.product-hero-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-logo-mark .product-mark-dark { display: none; }
[data-theme="dark"] .product-logo-mark img {
    opacity: 0.15;
    filter: blur(0.4px) saturate(0.94) brightness(1.08);
}
[data-theme="dark"] .product-logo-mark .product-mark-light { display: none; }
[data-theme="dark"] .product-logo-mark .product-mark-dark { display: block; }

.product-eyebrow {
    display: inline-block;
    color: var(--brand-strong);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.product-title {
    font-size: clamp(2.2rem, 4.2vw, 3.2rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0 0 1rem;
    color: var(--text);
}

.product-subtitle {
    font-size: clamp(1.1rem, 1.4vw, 1.25rem);
    line-height: 1.45;
    color: var(--text-muted);
    margin: 0 0 2rem;
    font-weight: 400;
}

.product-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}
.product-actions .btn { padding: 10px 22px; font-size: 0.92rem; }

/* Scoped to .product-page: the home showcase reuses the .product-stats
   class name with its own (3-up, shrinkable) grid — see 产品板块 above. */
.product-page .product-stats {
    max-width: 960px;
    margin: 0 auto 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
    gap: 1.5rem 2.5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.product-stat .num {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.35rem;
    font-variant-numeric: tabular-nums;
}
.product-stat .label {
    color: var(--text-subtle);
    font-size: 0.85rem;
    line-height: 1.45;
}

.product-body {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text);
}
.product-body > p { margin: 0 0 1.25rem; }

.product-lede {
    font-size: 1.18rem;
    line-height: 1.6;
    color: var(--text);
    margin: 0 auto 3rem;
    max-width: 760px;
}

.product-section { margin: 4rem 0; }
.product-section > h2 {
    max-width: 760px;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.2;
}
.product-section > p,
.product-section > ul,
.product-section > ol {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.product-section > p { margin-bottom: 1.25rem; line-height: 1.7; }
.product-section ul, .product-section ol { padding-left: 1.25rem; }
.product-section li { margin-bottom: 0.5rem; line-height: 1.7; }

/* Inline figures inside a product section must inherit the prose measure.
   Without this guard an SVG expands to the full viewport-width product page. */
.product-section > .article-figure {
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}
.product-section > .article-figure > svg {
    width: 100%;
    max-width: 100%;
}
/* A chain/stack diagram carries far more nodes than a bar chart, so at phone
   width the guard above scales it to ~6px type. For these figures only, hold a
   legible canvas and scroll instead of clipping. */
@media (max-width: 760px) {
    .product-section > .article-figure.product-diagram {
        overflow-x: auto;
        overflow-y: hidden;
    }
    .product-diagram > svg { min-width: 600px; }
}

.product-showcase {
    max-width: 1080px;
    margin: 3rem auto;
}
.product-showcase img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    background: var(--bg-muted);
}
.product-showcase figcaption {
    margin-top: 0.75rem;
    color: var(--text-subtle);
    font-size: 0.875rem;
    font-style: italic;
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Alternating feature row: image + text */
.product-feature {
    max-width: 1080px;
    margin: 4rem auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}
.product-feature.is-flipped { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.product-feature.is-flipped .product-feature-image { order: 2; }
.product-feature-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    background: var(--bg-muted);
}
.product-feature-text h3 {
    font-size: 1.45rem;
    font-weight: 600;
    margin: 0 0 1rem;
    letter-spacing: -0.018em;
    color: var(--text);
    line-height: 1.25;
}
.product-feature-text p { color: var(--text-muted); margin: 0 0 1rem; line-height: 1.65; }
.product-feature-text p:last-child { margin-bottom: 0; }

/* Capability grid — short bulleted feature list */
.product-capabilities {
    max-width: 960px;
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.25rem 3rem;
}
.product-capability h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text);
}
.product-capability p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* CTA card at the bottom of a product page */
.product-cta {
    max-width: 760px;
    margin: 5rem auto 0;
    padding: 3rem;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-media);
    background: var(--bg-muted);
}
.product-cta h2 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    color: var(--text);
}
.product-cta p {
    color: var(--text-muted);
    margin: 0 0 1.75rem;
    line-height: 1.6;
}

/* Product overview → dedicated release brief. Kept deliberately open and
   line-led so it reads as navigation, not another card in the catalog. */
.product-upgrade-entry {
    max-width: 1080px;
    margin: 5rem auto;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.product-upgrade-entry-index {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--brand-strong);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.product-upgrade-entry-index::before {
    content: '';
    width: 34px;
    height: 2px;
    background: var(--brand);
}
.product-upgrade-entry-copy h2 {
    margin: 0 0 0.55rem;
    color: var(--text);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.18;
    letter-spacing: -0.025em;
}
.product-upgrade-entry-copy p {
    max-width: 680px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}
.product-upgrade-entry-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--brand-strong);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}
.product-upgrade-entry-link span {
    transition: transform 0.2s ease;
}
.product-upgrade-entry-link:hover {
    color: var(--brand);
    text-decoration: none;
}
.product-upgrade-entry-link:hover span { transform: translateX(3px); }

/* ============================================================
   Yanlan V3.0 release brief — restrained, line-led product story.
   The comparison is HTML/CSS rather than a large SVG, which keeps type and
   measures stable across viewport sizes and language lengths.
   ============================================================ */
.yanlan-upgrade-page {
    --upgrade-line: var(--border);
    --upgrade-field: color-mix(in srgb, var(--surface) 94%, var(--brand-soft));
    background: var(--canvas);
}

.upgrade-main {
    padding-top: 65px;
    color: var(--text);
    overflow: hidden;
}

.upgrade-hero {
    position: relative;
    isolation: isolate;
    padding: 104px 20px 72px;
    background: var(--surface);
    border-bottom: 1px solid var(--upgrade-line);
    overflow: hidden;
}
.upgrade-hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    width: min(48vw, 720px);
    height: 100%;
    opacity: 0.38;
    background-image:
        linear-gradient(var(--upgrade-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--upgrade-line) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 44%, #000);
    mask-image: linear-gradient(90deg, transparent, #000 44%, #000);
}
.upgrade-hero-inner {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
}
.upgrade-back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 2.75rem;
    color: var(--text-subtle);
    text-decoration: none;
    font-size: 0.84rem;
    transition: color 0.2s ease, transform 0.2s ease;
}
.upgrade-back:hover {
    color: var(--text);
    text-decoration: none;
    transform: translateX(-2px);
}
.upgrade-kicker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    color: var(--brand-strong);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.upgrade-kicker::before {
    content: '';
    width: 34px;
    height: 1px;
    background: var(--brand);
}
.upgrade-title {
    max-width: 760px;
    margin: 0 0 1.25rem;
    font-size: clamp(2.65rem, 5.2vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 620;
    color: var(--text);
}
.upgrade-lede {
    max-width: 680px;
    margin: 0 0 2rem;
    color: var(--text-muted);
    font-size: clamp(1.06rem, 1.5vw, 1.24rem);
    line-height: 1.65;
}
.upgrade-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}
.upgrade-actions .btn {
    min-height: 44px;
    padding: 11px 23px;
    font-size: 0.92rem;
}
.upgrade-orbit {
    position: relative;
    justify-self: end;
    width: min(100%, 390px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}
.upgrade-orbit::before,
.upgrade-orbit::after,
.upgrade-orbit-ring {
    content: '';
    position: absolute;
    border-radius: 50%;
}
.upgrade-orbit::before {
    inset: 2%;
    border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--upgrade-line));
    background: color-mix(in srgb, var(--brand-soft) 38%, transparent);
    box-shadow: 0 0 80px color-mix(in srgb, var(--brand-ring) 28%, transparent);
}
.upgrade-orbit::after {
    inset: 18%;
    border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--upgrade-line));
    background: color-mix(in srgb, var(--surface) 76%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.upgrade-orbit-ring {
    inset: 9%;
    border: 28px solid color-mix(in srgb, var(--brand-soft) 52%, transparent);
    opacity: 0.75;
}
.upgrade-orbit img {
    position: relative;
    z-index: 1;
    display: block;
    width: 47%;
    height: 47%;
    object-fit: contain;
    filter: drop-shadow(0 18px 32px color-mix(in srgb, var(--brand-ring) 45%, transparent));
}
.upgrade-orbit .upgrade-mark-dark { display: none; }
[data-theme="dark"] .upgrade-orbit .upgrade-mark-light { display: none; }
[data-theme="dark"] .upgrade-orbit .upgrade-mark-dark { display: block; }
.upgrade-orbit-status {
    position: absolute;
    z-index: 2;
    top: 8%;
    right: 2%;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-subtle);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
}
.upgrade-orbit-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-ring);
}

.upgrade-metric-rail {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--upgrade-line);
    background: var(--upgrade-field);
}
.upgrade-metric {
    min-width: 0;
    padding: 1.65rem 1.7rem 1.8rem;
    border-left: 1px solid var(--upgrade-line);
}
.upgrade-metric:last-child { border-right: 1px solid var(--upgrade-line); }
.upgrade-metric strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--brand-strong);
    font-size: clamp(1.65rem, 2.8vw, 2.45rem);
    line-height: 1;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
}
.upgrade-metric span {
    display: block;
    color: var(--text-subtle);
    font-size: 0.78rem;
    line-height: 1.45;
}

.upgrade-section {
    padding: 96px 20px;
    border-bottom: 1px solid var(--upgrade-line);
    scroll-margin-top: 84px;
}
.upgrade-section.is-surface { background: var(--surface); }
.upgrade-section-inner {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
}
.upgrade-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.82fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: end;
}
.upgrade-section-index {
    display: block;
    margin-bottom: 1.35rem;
    color: var(--brand-strong);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.upgrade-section-heading h2 {
    max-width: 620px;
    margin: 0;
    color: var(--text);
    font-size: clamp(2rem, 3.9vw, 3.4rem);
    line-height: 1.08;
    font-weight: 620;
    letter-spacing: -0.045em;
}
.upgrade-section-heading > p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.upgrade-benchmark {
    margin-top: 3.5rem;
    border-top: 1px solid var(--upgrade-line);
    border-bottom: 1px solid var(--upgrade-line);
}
.upgrade-comparison-head,
.upgrade-comparison-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.75fr) minmax(180px, 1fr) minmax(180px, 1fr) 110px;
    column-gap: 2rem;
    align-items: center;
}
.upgrade-comparison-head {
    min-height: 52px;
    color: var(--text-subtle);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.upgrade-comparison-head span:nth-child(2),
.upgrade-comparison-head span:nth-child(3) {
    padding-left: 0.85rem;
}
.upgrade-comparison-row {
    min-height: 118px;
    padding: 1.25rem 0;
    border-top: 1px solid var(--upgrade-line);
}
.upgrade-metric-name strong {
    display: block;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.35;
}
.upgrade-metric-name small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-subtle);
    font-size: 0.72rem;
    line-height: 1.4;
}
.upgrade-version-value {
    min-width: 0;
    padding: 0 0.85rem;
}
.upgrade-version-label {
    display: none;
    color: var(--text-subtle);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.upgrade-version-value strong {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--text-muted);
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    line-height: 1;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}
.upgrade-version-value.is-v3 strong { color: var(--brand-strong); }
.upgrade-value-track {
    position: relative;
    display: block;
    width: 100%;
    height: 3px;
    background: var(--upgrade-line);
    overflow: hidden;
}
.upgrade-value-track::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--value);
    background: currentColor;
    opacity: 0.34;
}
.upgrade-version-value.is-v3 .upgrade-value-track::after {
    background: var(--brand);
    opacity: 1;
}
.upgrade-delta {
    justify-self: end;
    color: var(--brand-strong);
    font-size: 0.78rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.upgrade-method-note {
    margin: 1.15rem 0 0;
    color: var(--text-subtle);
    font-size: 0.78rem;
    line-height: 1.6;
}

.upgrade-delta-ledger {
    margin-top: 2.4rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--upgrade-line);
    border-bottom: 1px solid var(--upgrade-line);
}
.upgrade-delta-group {
    min-width: 0;
    padding-right: 2rem;
}
.upgrade-delta-group + .upgrade-delta-group {
    padding-right: 0;
    padding-left: 2rem;
    border-left: 1px solid var(--upgrade-line);
}
.upgrade-delta-group-heading,
.upgrade-delta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}
.upgrade-delta-group-heading {
    min-height: 58px;
    color: var(--text-subtle);
    font-size: 0.68rem;
    letter-spacing: 0.085em;
    text-transform: uppercase;
}
.upgrade-delta-group-heading strong {
    color: var(--text-muted);
    font-size: inherit;
    font-weight: 750;
}
.upgrade-delta-group-heading span {
    white-space: nowrap;
}
.upgrade-delta-row {
    min-height: 54px;
    border-top: 1px solid var(--upgrade-line);
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.4;
}
.upgrade-delta-row span { min-width: 0; }
.upgrade-delta-row strong {
    flex: 0 0 auto;
    color: var(--brand-strong);
    font-size: 0.78rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.upgrade-task-grid {
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--upgrade-line);
    border-bottom: 1px solid var(--upgrade-line);
}
.upgrade-task {
    min-width: 0;
    padding: 1.8rem 1.8rem 2rem;
}
.upgrade-task + .upgrade-task { border-left: 1px solid var(--upgrade-line); }
.upgrade-task-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}
.upgrade-task-heading h3 {
    margin: 0;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.upgrade-task-heading span {
    color: var(--text-subtle);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
}
.upgrade-task-delta {
    margin: 2.6rem 0 2rem;
}
.upgrade-task-delta strong {
    display: block;
    color: var(--brand-strong);
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}
.upgrade-task-delta span {
    display: block;
    margin-top: 0.45rem;
    color: var(--text-subtle);
    font-size: 0.74rem;
}
.upgrade-task-measures {
    display: grid;
    gap: 0.8rem;
}
.upgrade-task-measure {
    display: grid;
    grid-template-columns: 38px minmax(40px, 1fr) 58px;
    gap: 0.7rem;
    align-items: center;
    color: var(--text-subtle);
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
}
.upgrade-task-measure > span {
    font-weight: 700;
    letter-spacing: 0.04em;
}
.upgrade-task-measure > i {
    position: relative;
    display: block;
    height: 3px;
    background: var(--upgrade-line);
    overflow: hidden;
}
.upgrade-task-measure > i > b {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--value);
    background: currentColor;
    opacity: 0.32;
}
.upgrade-task-measure > strong {
    justify-self: end;
    color: var(--text-muted);
    font-size: 0.72rem;
}
.upgrade-task-measure.is-v3 { color: var(--brand); }
.upgrade-task-measure.is-v3 > i > b { opacity: 1; }
.upgrade-task-measure.is-v3 > strong { color: var(--brand-strong); }

.upgrade-protocol {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--upgrade-line);
    border-bottom: 1px solid var(--upgrade-line);
}
.upgrade-protocol-item {
    min-width: 0;
    min-height: 92px;
    padding: 1.25rem 1.4rem 1.4rem;
}
.upgrade-protocol-item + .upgrade-protocol-item { border-left: 1px solid var(--upgrade-line); }
.upgrade-protocol-item span,
.upgrade-protocol-item strong {
    display: block;
}
.upgrade-protocol-item span {
    margin-bottom: 0.55rem;
    color: var(--text-subtle);
    font-size: 0.68rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}
.upgrade-protocol-item strong {
    color: var(--text);
    font-size: clamp(1rem, 1.9vw, 1.3rem);
    font-weight: 620;
    line-height: 1.3;
    letter-spacing: -0.018em;
    font-variant-numeric: tabular-nums;
}

.upgrade-change-grid {
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--upgrade-line);
    border-bottom: 1px solid var(--upgrade-line);
}
.upgrade-change-item {
    position: relative;
    min-height: 260px;
    padding: 2rem 2rem 2.25rem;
}
.upgrade-change-item + .upgrade-change-item { border-left: 1px solid var(--upgrade-line); }
.upgrade-change-item::before {
    content: attr(data-index);
    display: block;
    margin-bottom: 3.75rem;
    color: var(--brand-strong);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.1em;
}
.upgrade-change-item h3 {
    margin: 0 0 0.75rem;
    color: var(--text);
    font-size: 1.18rem;
    line-height: 1.3;
    letter-spacing: -0.018em;
}
.upgrade-change-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.68;
}

.upgrade-outcome {
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
    border-top: 1px solid var(--upgrade-line);
    border-bottom: 1px solid var(--upgrade-line);
}
.upgrade-outcome-number {
    padding: 2rem 2rem 2.25rem 0;
    border-right: 1px solid var(--upgrade-line);
}
.upgrade-outcome-number strong {
    display: block;
    color: var(--brand-strong);
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
    font-variant-numeric: tabular-nums;
}
.upgrade-outcome-number span {
    display: block;
    margin-top: 0.7rem;
    color: var(--text-subtle);
    font-size: 0.78rem;
}
.upgrade-outcome-copy {
    padding: 2rem 0 2.25rem 2.5rem;
    align-self: center;
}
.upgrade-outcome-copy h3 {
    margin: 0 0 0.7rem;
    color: var(--text);
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.25;
    letter-spacing: -0.025em;
}
.upgrade-outcome-copy p {
    max-width: 720px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}
.upgrade-win-track {
    display: flex;
    gap: 2px;
    height: 5px;
    margin-top: 1.5rem;
}
.upgrade-win-track .is-v3 { width: 91.5%; background: var(--brand); }
.upgrade-win-track .is-v2 { flex: 1; background: var(--upgrade-line); }

.upgrade-win-breakdown {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--upgrade-line);
    border-bottom: 1px solid var(--upgrade-line);
}
.upgrade-win-breakdown-item {
    min-width: 0;
    padding: 1.5rem 2.25rem 1.65rem 0;
}
.upgrade-win-breakdown-item + .upgrade-win-breakdown-item {
    padding-right: 0;
    padding-left: 2.25rem;
    border-left: 1px solid var(--upgrade-line);
}
.upgrade-win-breakdown-item > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
}
.upgrade-win-breakdown-item > div:first-child span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 680;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}
.upgrade-win-breakdown-item > div:first-child strong {
    color: var(--brand-strong);
    font-size: 1.35rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.upgrade-win-breakdown-item p {
    min-height: 3.15em;
    margin: 0.8rem 0 1.15rem;
    color: var(--text-subtle);
    font-size: 0.78rem;
    line-height: 1.58;
}
.upgrade-breakdown-track {
    height: 3px;
    background: var(--upgrade-line);
    overflow: hidden;
}
.upgrade-breakdown-track span {
    display: block;
    width: var(--share);
    height: 100%;
    background: var(--brand);
}

.upgrade-use-cases {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--upgrade-line);
    border-bottom: 1px solid var(--upgrade-line);
}
.upgrade-use-case {
    min-height: 128px;
    padding: 1.5rem 1.5rem 1.7rem;
}
.upgrade-use-case + .upgrade-use-case { border-left: 1px solid var(--upgrade-line); }
.upgrade-use-case strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text);
    font-size: 0.95rem;
}
.upgrade-use-case span {
    display: block;
    color: var(--text-subtle);
    font-size: 0.8rem;
    line-height: 1.55;
}

.upgrade-cta {
    max-width: 1160px;
    margin: 0 auto;
    padding: 72px 20px 88px;
}
.upgrade-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
    align-items: center;
    padding: 2.4rem 0;
    border-top: 1px solid var(--upgrade-line);
    border-bottom: 1px solid var(--upgrade-line);
}
.upgrade-cta h2 {
    margin: 0 0 0.65rem;
    color: var(--text);
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}
.upgrade-cta p {
    max-width: 720px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}
.upgrade-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}
.upgrade-cta-actions .btn { min-height: 44px; }

@media (max-width: 900px) {
    .product-upgrade-entry {
        grid-template-columns: 96px minmax(0, 1fr);
    }
    .product-upgrade-entry-link {
        grid-column: 2;
        justify-self: start;
    }
    .upgrade-hero-inner {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 2rem;
    }
    .upgrade-section { scroll-margin-top: 112px; }
    .upgrade-section-heading {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: start;
    }
    .upgrade-section-heading > p { max-width: 720px; }
    .upgrade-comparison-head,
    .upgrade-comparison-row {
        grid-template-columns: minmax(138px, 0.72fr) minmax(150px, 1fr) minmax(150px, 1fr) 88px;
        column-gap: 1rem;
    }
    .upgrade-task { padding-right: 1.25rem; padding-left: 1.25rem; }
    .upgrade-protocol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .upgrade-protocol-item:nth-child(3) { border-top: 1px solid var(--upgrade-line); border-left: 0; }
    .upgrade-protocol-item:nth-child(4) { border-top: 1px solid var(--upgrade-line); }
    .upgrade-change-item { padding-left: 1.35rem; padding-right: 1.35rem; }
    .upgrade-use-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .upgrade-use-case:nth-child(3) { border-left: 0; border-top: 1px solid var(--upgrade-line); }
    .upgrade-use-case:nth-child(4) { border-top: 1px solid var(--upgrade-line); }
}

@media (max-width: 720px) {
    .product-upgrade-entry {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin: 4rem auto;
    }
    .product-upgrade-entry-index { gap: 0.9rem; }
    .product-upgrade-entry-link { grid-column: 1; }
    .upgrade-hero { padding-top: 80px; padding-bottom: 58px; }
    .upgrade-hero-inner { grid-template-columns: 1fr; }
    .upgrade-hero-copy { position: relative; z-index: 2; }
    .upgrade-orbit {
        position: absolute;
        z-index: 0;
        right: -100px;
        bottom: -72px;
        width: 300px;
        opacity: 0.34;
        pointer-events: none;
    }
    .upgrade-title { max-width: 560px; }
    .upgrade-lede { max-width: 540px; }
    .upgrade-metric-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .upgrade-metric:nth-child(3) { border-top: 1px solid var(--upgrade-line); }
    .upgrade-metric:nth-child(4) { border-top: 1px solid var(--upgrade-line); }
    .upgrade-section { padding-top: 72px; padding-bottom: 72px; }
    .upgrade-comparison-head { display: none; }
    .upgrade-comparison-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        gap: 1rem;
        padding: 1.4rem 0;
    }
    .upgrade-metric-name { grid-column: 1 / -1; }
    .upgrade-version-value { padding: 0; }
    .upgrade-version-label { display: block; margin-bottom: 0.45rem; }
    .upgrade-delta-ledger { grid-template-columns: 1fr; }
    .upgrade-delta-group { padding-right: 0; }
    .upgrade-delta-group + .upgrade-delta-group {
        padding-left: 0;
        border-top: 1px solid var(--upgrade-line);
        border-left: 0;
    }
    .upgrade-task-grid { grid-template-columns: 1fr; }
    .upgrade-task { padding-right: 0; padding-left: 0; }
    .upgrade-task + .upgrade-task { border-top: 1px solid var(--upgrade-line); border-left: 0; }
    .upgrade-change-grid { grid-template-columns: 1fr; }
    .upgrade-change-item { min-height: 0; padding: 1.65rem 0 1.8rem; }
    .upgrade-change-item + .upgrade-change-item { border-top: 1px solid var(--upgrade-line); border-left: 0; }
    .upgrade-change-item::before { margin-bottom: 1.6rem; }
    .upgrade-outcome { grid-template-columns: 1fr; }
    .upgrade-outcome-number { border-right: 0; border-bottom: 1px solid var(--upgrade-line); }
    .upgrade-outcome-copy { padding-left: 0; }
    .upgrade-win-breakdown { grid-template-columns: 1fr; }
    .upgrade-win-breakdown-item { padding-right: 0; }
    .upgrade-win-breakdown-item + .upgrade-win-breakdown-item {
        padding-left: 0;
        border-top: 1px solid var(--upgrade-line);
        border-left: 0;
    }
    .upgrade-win-breakdown-item p { min-height: 0; }
    .upgrade-cta-inner { grid-template-columns: 1fr; gap: 1.8rem; }
    .upgrade-cta-actions { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .upgrade-title { font-size: 2.55rem; }
    .upgrade-metric { padding: 1.35rem 1.1rem 1.5rem; }
    .upgrade-comparison-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .upgrade-delta { grid-column: 1 / -1; justify-self: start; }
    .upgrade-protocol { grid-template-columns: 1fr; }
    .upgrade-protocol-item + .upgrade-protocol-item { border-top: 1px solid var(--upgrade-line); border-left: 0; }
    .upgrade-use-cases { grid-template-columns: 1fr; }
    .upgrade-use-case + .upgrade-use-case { border-top: 1px solid var(--upgrade-line); border-left: 0; }
    .upgrade-cta-actions { flex-direction: column; align-items: stretch; }
    .upgrade-cta-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 900px) {
    .product-hero, .product-feature, .product-feature.is-flipped {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .product-logo-mark {
        top: -42px;
        right: 0;
        width: 230px;
        height: 230px;
    }
    .product-feature.is-flipped .product-feature-image { order: 0; }
    .product-cta { padding: 2rem 1.5rem; }
}

@media (max-width: 520px) {
    .product-hero-text { padding-top: 1rem; }
    .product-logo-mark {
        top: -24px;
        right: -28px;
        width: 190px;
        height: 190px;
    }
    .product-logo-mark img { opacity: 0.075; }
    [data-theme="dark"] .product-logo-mark img { opacity: 0.12; }
}

/* Soften screenshots in dark mode so they don't punch through */
[data-theme="dark"] .product-feature-image img,
[data-theme="dark"] .product-showcase img,
[data-theme="dark"] .product-hero-image img {
    filter: brightness(0.92) contrast(1.04);
}

/* ============================================================
   Theme toggle (sun / moon) — rendered into .nav-controls by js/site.js.
   Click handler wired there; FOUC-prevention in inline <head> script.
   ============================================================ */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover {
    color: var(--brand-strong);
    border-color: var(--brand);
    background: var(--brand-soft);
}
.theme-toggle svg { width: 16px; height: 16px; display: block; }

/* Show sun in dark mode (so click → light), moon in light mode (so click → dark) */
.theme-toggle .theme-icon-sun { display: none; }
.theme-toggle .theme-icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }

/* Smooth color transitions site-wide when theme flips */
html { transition: background-color 0.2s ease; }
body { transition: background-color 0.2s ease, color 0.2s ease; }

/* Dark-mode tweaks for elements that rely on subtle off-white tints */
[data-theme="dark"] .article-pullquote { color: var(--text); }
[data-theme="dark"] .btn-primary { color: var(--brand-contrast); }
[data-theme="dark"] .article-link.is-disabled { opacity: 0.45; }
[data-theme="dark"] img { /* slightly dim screenshots/photos so they don't punch through dark UI */
    /* opt-in only: pages that want this can add class="img-dim-on-dark" */
}
[data-theme="dark"] .img-dim-on-dark { filter: brightness(0.88) contrast(1.05); }

/* =========================================================================
   Safety-research series — HTML diagram / flow / timeline components (sr-*)
   Theme-safe (CSS vars only), responsive. For steps, stages, classifications.
   ========================================================================= */
.sr-diagram { margin: 2rem 0; max-width: 720px; }
.sr-diagram-title {
    font-size: 0.95rem; font-weight: 600; color: var(--text);
    margin: 0 0 1.1rem; letter-spacing: -0.01em;
}
.sr-diagram-caption {
    font-size: 0.8125rem; color: var(--text-subtle); font-style: italic;
    line-height: 1.55; margin: 1.1rem 0 0;
    padding-top: 0.85rem; border-top: 1px solid var(--border);
}

/* Numbered vertical stepper — pipelines, ordered stages */
.sr-steps { display: flex; flex-direction: column; }
.sr-step {
    display: grid; grid-template-columns: 40px 1fr; gap: 0.9rem;
    position: relative; padding-bottom: 1.15rem;
}
.sr-step:last-child { padding-bottom: 0; }
.sr-step::before {
    content: ''; position: absolute; left: 19px; top: 38px; bottom: -2px;
    width: 2px; background: var(--border);
}
.sr-step:last-child::before { display: none; }
.sr-step-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand-strong);
    border: 1px solid var(--brand-ring);
    font-weight: 700; font-size: 0.95rem; font-variant-numeric: tabular-nums;
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
}
.sr-step-body { padding-top: 0.4rem; min-width: 0; }
.sr-step-title { font-weight: 600; color: var(--text); margin: 0 0 0.15rem; }
.sr-step-body p { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Horizontal arrow flow — attack chains, A -> B -> C */
.sr-flow { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: stretch; }
.sr-flow-node {
    flex: 1 1 160px; min-width: 160px; position: relative;
    border: 1px solid color-mix(in srgb, var(--brand-ring) 64%, var(--border));
    border-radius: var(--radius-card); padding: 1rem 1.15rem 1.05rem;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand-ring) 55%, transparent) 0%, transparent 40%),
        linear-gradient(145deg, color-mix(in srgb, var(--brand-soft) 70%, var(--bg)) 0%, var(--bg) 60%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.sr-flow-node:hover { box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09); transform: translateY(-2px); }
.sr-flow-node.is-brand {
    border-color: var(--brand-strong);
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand-ring) 80%, transparent) 0%, transparent 46%),
        linear-gradient(145deg, color-mix(in srgb, var(--brand-soft) 92%, var(--bg)) 0%, color-mix(in srgb, var(--brand-soft) 30%, var(--bg)) 72%);
}
.sr-flow-node strong { display: block; color: var(--brand-strong); font-size: 0.97rem; font-weight: 700; margin-bottom: 0.3rem; }
.sr-flow-node span { color: var(--text-muted); font-size: 0.86rem; line-height: 1.55; }
.sr-flow-node:not(:last-child)::after {
    content: '\2192'; position: absolute; right: -1.5rem; top: 50%;
    transform: translateY(-50%); z-index: 3;
    width: 1.55rem; height: 1.55rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg); border: 1px solid var(--brand-ring); border-radius: 50%;
    color: var(--brand-strong); font-weight: 700; font-size: 0.85rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
@media (max-width: 600px) {
    .sr-flow { flex-direction: column; gap: 1.5rem; }
    .sr-flow-node:not(:last-child)::after { content: '\2193'; right: 50%; top: auto; bottom: -1.5rem; transform: translateX(50%); }
}

/* Two-panel classification — "A vs B" splits */
.sr-versus { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sr-versus-panel {
    border: 1px solid color-mix(in srgb, var(--brand-ring) 55%, var(--border));
    border-radius: var(--radius-card); padding: 1.3rem 1.4rem;
    background: linear-gradient(145deg, color-mix(in srgb, var(--brand-soft) 45%, var(--bg)) 0%, var(--bg) 65%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}
.sr-versus-panel.is-brand {
    border-color: var(--brand-strong);
    background: linear-gradient(145deg, color-mix(in srgb, var(--brand-soft) 88%, var(--bg)) 0%, color-mix(in srgb, var(--brand-soft) 26%, var(--bg)) 72%);
}
.sr-versus-label {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-subtle); margin: 0 0 0.5rem;
}
.sr-versus-panel.is-brand .sr-versus-label { color: var(--brand-strong); }
.sr-versus-panel h4 { margin: 0 0 0.5rem; font-size: 1.02rem; color: var(--text); letter-spacing: -0.01em; }
.sr-versus-panel p { margin: 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }
@media (max-width: 600px) { .sr-versus { grid-template-columns: 1fr; } }

/* Vertical timeline — dated milestones, capability-over-time */
.sr-timeline { position: relative; margin: 0; }
.sr-tl-item { position: relative; padding: 0 0 1.5rem 2rem; }
.sr-tl-item:last-child { padding-bottom: 0; }
.sr-tl-item::before {
    content: ''; position: absolute; left: 6px; top: 0.45rem; bottom: -0.3rem;
    width: 2px; background: var(--border);
}
.sr-tl-item:last-child::before { display: none; }
.sr-tl-item::after {
    content: ''; position: absolute; left: 0; top: 0.3rem;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--border-strong);
}
.sr-tl-item.is-live::after { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.sr-tl-date { font-size: 0.82rem; font-weight: 700; color: var(--brand-strong); font-variant-numeric: tabular-nums; }
.sr-tl-lane {
    display: inline-block; font-size: 0.68rem; font-weight: 600; color: var(--text-subtle);
    border: 1px solid var(--border); border-radius: var(--radius-pill);
    padding: 0.05rem 0.55rem; margin-left: 0.5rem; vertical-align: 0.1em;
}
.sr-tl-title { font-weight: 600; color: var(--text); margin: 0.15rem 0 0.15rem; }
.sr-tl-item > p { margin: 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* TL;DR — key-points hero card at the top of an article */
.sr-tldr {
    position: relative;
    margin: 0 0 2.5rem;
    padding: 1.45rem 1.55rem 1.25rem 1.85rem;
    background: linear-gradient(145deg, var(--brand-soft) 0%, var(--bg-muted) 55%, var(--bg) 100%);
    border: 1px solid var(--brand-ring);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    counter-reset: sr-tldr-item;
}
.sr-tldr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%);
}
.sr-tldr::after {
    content: '';
    position: absolute;
    right: -2.5rem;
    top: -3.5rem;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--brand-ring) 0%, transparent 68%);
    pointer-events: none;
}
.sr-tldr-label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-strong);
    margin: 0 0 0.95rem;
    padding: 0.3rem 0.75rem 0.3rem 0.55rem;
    background: color-mix(in srgb, var(--bg) 88%, var(--brand-soft));
    border: 1px solid var(--brand-ring);
    border-radius: var(--radius-pill);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.sr-tldr-label::before {
    content: '';
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background-color: var(--brand);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 4h16v16l-8-4-8 4V4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 4h16v16l-8-4-8 4V4z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}
.sr-tldr ul {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.sr-tldr li {
    position: relative;
    margin: 0;
    padding: 0.72rem 0 0.72rem 2.55rem;
    color: var(--text);
    line-height: 1.65;
    font-size: 0.98rem;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.sr-tldr li:first-child { padding-top: 0; }
.sr-tldr li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.sr-tldr li::before {
    counter-increment: sr-tldr-item;
    content: counter(sr-tldr-item);
    position: absolute;
    left: 0;
    top: 0.84rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--brand-strong);
    background: var(--bg);
    border: 1.5px solid var(--brand-ring);
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.sr-tldr li:first-child::before { top: 0.12rem; }
.sr-tldr strong {
    color: var(--brand-strong);
    font-weight: 650;
}
@media (max-width: 600px) {
    .sr-tldr {
        padding: 1.25rem 1.1rem 1.05rem 1.35rem;
    }
    .sr-tldr li {
        padding-left: 2.35rem;
        font-size: 0.95rem;
    }
    .sr-tldr li::before {
        width: 1.55rem;
        height: 1.55rem;
    }
}

/* "What is X?" aside — explain a term right where it's introduced */
.sr-aside {
    margin: 1.4rem 0; padding: 0.95rem 1.15rem;
    border-left: 3px solid var(--brand); background: var(--bg-muted);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    font-size: 0.95rem; color: var(--text-muted); line-height: 1.65;
}
.sr-aside p { margin: 0; }
.sr-aside b, .sr-aside strong { color: var(--text); font-weight: 600; }
.sr-aside-term {
    display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--brand-strong); margin-bottom: 0.3rem;
}
.sr-definition-list {
    display: grid;
    gap: 0.75rem;
    margin: 0.35rem 0 0;
}
.sr-definition-list > div {
    display: grid;
    gap: 0.2rem;
}
.sr-definition-list dt {
    color: var(--text);
    font-weight: 700;
    line-height: 1.45;
}
.sr-definition-list dd {
    margin: 0;
    color: var(--text);
    line-height: 1.65;
}

/* Risk / buyer cards — productized matrix, replaces the wide scrolling tables (safety section).
   One card system, reused for the 11-risk grid and the 4-buyer grid. */
.sr-risk-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin: 1.6rem 0 0;
}
.sr-risk-card {
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--bg);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.sr-risk-card:hover {
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand-ring) 70%, var(--border));
}
/* Full-width featured card — the overall "should this ship?" checkup sits on top */
.sr-risk-card.is-lead {
    grid-column: 1 / -1;
    border-color: color-mix(in srgb, var(--brand-ring) 64%, var(--border));
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand-ring) 55%, transparent) 0%, transparent 36%),
        linear-gradient(145deg, color-mix(in srgb, var(--brand-soft) 70%, var(--bg)) 0%, var(--bg) 60%);
}
.sr-risk-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}
.sr-risk-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.35;
}
.sr-risk-tag {
    flex: none;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand-strong);
    background: color-mix(in srgb, var(--brand-soft) 70%, var(--bg));
    border: 1px solid var(--brand-ring);
    border-radius: var(--radius-pill);
    padding: 0.12rem 0.6rem;
    white-space: nowrap;
}
.sr-risk-hook {
    margin: 0 0 0.95rem;
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.6;
}
/* The concrete example — editorial aside treatment (muted bg + left accent), not a filled card */
.sr-risk-eg {
    margin: 0 0 1.05rem;
    padding: 0.7rem 0.95rem 0.75rem;
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    background: var(--bg-muted);
}
.sr-risk-eg-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 0.3rem;
}
.sr-risk-eg p {
    margin: 0;
    color: var(--text);
    font-size: 0.93rem;
    line-height: 1.65;
}
.sr-risk-meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.45rem 0.7rem;
    margin: auto 0 0;
    padding-top: 0.95rem;
    border-top: 1px solid var(--border);
}
.sr-risk-meta dt {
    color: var(--brand-strong);
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
    padding-top: 0.05rem;
}
.sr-risk-meta dd {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.89rem;
    line-height: 1.55;
}
/* Card title links to the risk's deep-dive page */
.sr-risk-title a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}
.sr-risk-title a:hover { color: var(--brand-strong); }
.sr-risk-arrow {
    color: var(--brand);
    font-weight: 700;
    font-size: 0.85em;
    transition: transform 0.2s ease;
}
.sr-risk-title a:hover .sr-risk-arrow { transform: translateX(3px); }
/* "Real case" external source link inside the example box */
.sr-risk-src {
    display: inline-block;
    margin-top: 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-strong);
    text-decoration: none;
    border-bottom: 1px solid var(--brand-ring);
    line-height: 1.4;
}
.sr-risk-src:hover { border-bottom-color: var(--brand-strong); }

@media (max-width: 600px) {
    .sr-risk-grid { grid-template-columns: 1fr; }
    .sr-risk-card { padding: 1.15rem 1.15rem 1.1rem; }
    .sr-risk-meta { grid-template-columns: 1fr; gap: 0.12rem; }
    .sr-risk-meta dt { padding-top: 0.55rem; }
    .sr-risk-meta dt:first-of-type { padding-top: 0; }
    .sr-risk-meta dd { margin-bottom: 0.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================================
   16. 卡片系统 · 账册目录（紧）— Ledger card system, dense
   ----------------------------------------------------------------------------
   全站的卡片语言在这里收敛为一套。此前同一页里并存六种表面处理：描边加投影卡、
   渐变淡蓝盒、左侧色条卡、灰底平盒、透明居中卡、发丝线账册行——读者每换一个板块
   就要重新判断边界在哪、能不能点。本节把它们归到三个原型：

     A 台账行  ledger row   通栏条目，发丝线分隔，左侧留编号／日期／出处栏位，
                            悬停加底纹。纵向堆叠，永不横向切分。
     B 台账格  ledger cell  同一张网格里的格子，列线与行线由 1px 缝隙透出容器底色；
                            换行或单列时缝隙自动变成行线，不留悬空边框。
     C 主栏    masthead     每页至多一个的领衔对象。只有它允许有实底台面。

   家族 → 原型
     news-pinned ................................ C（唯一保留台面的对象）
     subpage-spotlight / spotlight-evidence ..... C（证据面板为 B）
     news-timeline-row / pub-row / milestone .... A
     research-card / product-item（矩阵）........ B
     service-card / contact-card ................ B
     article-figures / article-figure ........... A
     article-callout / article-impact / cta ..... A

   两条纪律贯穿全节：其一，**强调色一个对象只用一次**——置顶稿是顶部 2px 规线，
   领衔条是左上角短规线，其余徽标、数字、CTA 一律退成中性；颜色是最强的前注意
   线索，但只有稀缺时才能排序，到处都是就等于没有排序。其二，**层级由字重与字号
   承担**，数字一律近黑加等宽字形，标签退到 subtle。

   密度是本版的取向：账册之所以是账册，在于许多条目同时可读，一屏只见三条的目录
   本质上仍是卡片墙。因此五个家族的纵向节律收到同一口径，正文与栏位标签整体降一
   档，文章页的 callout／impact／cta／数据条从「块」压回「行」。规线随密度同步
   变轻——格子一密，原来的线就会读成方格纸，所以派生出 --catalog-hair：浅色退到
   八成，深色保持原值，因为深色的线本来就贴着可见下限，密度要从留白里省，不能从
   对比度里省。中文正文另设硬底线，任何一处都不低于 0.88rem / 1.6 行高。

   本节整体位于文件末尾，靠源序覆盖前面各家族的原始声明；改动这里之前，先确认
   要改的规则没有被更靠后的媒体查询再次覆盖。
   ========================================================================== */

/* ---------- 00 目录线令牌兜底 + 发丝线派生 --------------------------------
   `--catalog-*` 只定义在 .home-page / .products-index-page / .research-index-page
   上；新闻索引页、文章页、联系页的 <body> 没有类名，那里这些变量未定义，
   border-color 会退回 currentColor 画出一条近乎全黑的线。这里按原式在 body 上
   补一份：body 是类型选择器 (0,0,1)，输给已有的类选择器 (0,1,0)，三张已定义的
   页面不受影响。不动 :root，不动调色板。
   `--catalog-hair` 在 body 上就地派生：自定义属性在声明它的元素上求值，因此三张
   有类名的页面拿到的是类里那份 `--catalog-line`，无类名的页面拿到上面这份兜底，
   一句话覆盖全站而不必逐页重写。 */
body {
    --catalog-line: color-mix(in srgb, var(--border) 88%, transparent);
    --catalog-line-strong: color-mix(in srgb, var(--border-strong) 76%, transparent);
    --catalog-hover: color-mix(in srgb, var(--brand) 3.5%, transparent);
    --catalog-hair: color-mix(in srgb, var(--catalog-line) 80%, transparent);
}
[data-theme="dark"] body {
    --catalog-line: color-mix(in srgb, var(--border-strong) 72%, transparent);
    --catalog-line-strong: color-mix(in srgb, var(--border-strong) 90%, transparent);
    --catalog-hover: color-mix(in srgb, var(--brand) 6%, transparent);
    /* 深色下这条线已经贴着可见下限，密度从留白里省，不从对比度里省。 */
    --catalog-hair: var(--catalog-line);
}

/* ---------- 01 场域留白 —— 账册所在的版面 --------------------------------
   条目收紧之后，包住它们的 section 若仍按原留白，一屏还是只见三条。这里只收账册
   家族的直接容器，不动通用的 .section-hero。 */
.news-page-body { padding: 30px 20px 56px; }
.research-areas { padding: 46px 0 68px; }
.products-index-page .products { padding: 46px 0 68px; }
.home-page .research { padding: 52px 0; }
.subpage-signal { padding-top: 28px; }
.research-index-page .subpage-signal { padding-top: 34px; }
.contact-container { padding: 36px 20px; }

/* ---------- 02 news-pinned —— 原型 C 主栏 ---------------------------------
   一页一块台面：方角、实底、零投影。台面靠底色差站住，不靠浮起；顶部 2px 规线是
   全卡唯一的品牌色。紧版把它当高密度报头而非首屏大图：内距与数据条留白减半，标题
   上限从 2.35rem 收到 1.85rem，仍比条目标题（0.98rem）高出近一倍。 */
.news-pinned {
    background: var(--bg); border: 0; border-top: 2px solid var(--brand);
    border-radius: 0; box-shadow: none; margin-bottom: 1.9rem;
    padding: clamp(1rem, 2.2vw, 1.4rem) clamp(0.9rem, 1.9vw, 1.25rem) clamp(0.95rem, 2vw, 1.3rem);
}
/* 深色下 --bg 比 --bg-muted 版面更暗，台面会读成一个洞而不是一块板。抬到边框色。 */
[data-theme="dark"] .news-pinned {
    background: color-mix(in srgb, var(--surface-muted) 80%, var(--border-strong));
}
.news-pinned::before { display: none; }  /* 左脊是告警语法，不是「精选」语法 */
/* 去药丸：药丸底＋胶囊内距是第二处强调，与顶部规线相冲，一并归零。 */
.news-pinned-label {
    background: transparent; padding: 0; border: 0; border-radius: 0;
    color: var(--text-subtle); font-size: 0.68rem;
    font-weight: 650; letter-spacing: 0.16em; margin-bottom: 0.5rem;
}
.news-pinned-label::before { display: none; }
.news-pinned-meta { font-size: 0.8rem; margin-bottom: 0.4rem; gap: 0.35rem 0.5rem; }
.news-pinned-title { font-size: clamp(1.32rem, 2.4vw, 1.85rem); margin-bottom: 0.5rem; }
.news-pinned-lede { max-width: 64ch; font-size: 0.97rem; line-height: 1.62; margin-bottom: 0; }

/* 数据条：账册横条，列线分格，数值近黑等宽，标签退到 subtle。 */
.news-pinned-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
    margin: 1.05rem 0 0.85rem; color: var(--text-subtle);
    font-size: 0.79rem; line-height: 1.4;
    border-top: 1px solid var(--catalog-hair);
}
.news-pinned-stats > span {
    display: flex; flex-direction: column; gap: 0.2rem;
    padding: 0.7rem 1rem 0 0; border-right: 1px solid var(--catalog-hair);
}
.news-pinned-stats > span + span { padding-left: 1rem; }
.news-pinned-stats > span:last-child { border-right: 0; padding-right: 0; }
.news-pinned-stats > span + span::before { content: none; margin: 0; }
.news-pinned-stats strong {
    color: var(--text); font-size: 1.42rem; font-weight: 700; line-height: 1.05;
    letter-spacing: -0.025em; margin-right: 0; font-variant-numeric: tabular-nums;
}
.news-pinned-cta { color: var(--text); font-size: 0.9rem; }
.news-pinned-cta::after { color: var(--brand); }

/* 两列时列线只留中缝，第二行补一条行线——堆叠后规线在格子之间，不在右侧。 */
@media (max-width: 720px) {
    .news-pinned-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0.9rem; }
    .news-pinned-stats > span:nth-child(2n) { border-right: 0; padding-right: 0; }
    .news-pinned-stats > span:nth-child(n + 3) { border-top: 1px solid var(--catalog-hair); }
}

/* ---------- 03 subpage-spotlight —— 原型 C（证据面板为 B）-----------------
   领衔对象同样按报头处理：文案区内距从 2.25rem 收到 1.55rem，证据格从 1.25rem
   收到 0.9rem，标题上限 2rem → 1.7rem。 */
.subpage-spotlight { background: transparent; border-radius: 0;
    box-shadow: none; border-color: var(--catalog-hair); }
.subpage-spotlight:hover { background: var(--catalog-hover); box-shadow: none;
    transform: none; border-color: var(--catalog-hair); }
/* 研究页原来是整条左脊、产品页是左上短规线：统一成短规线，两页同一句话。 */
.research-index-page .subpage-spotlight::before { inset: -1px auto auto 0; width: 54px; height: 2px; }
.subpage-spotlight-copy { padding: clamp(1.1rem, 2.2vw, 1.55rem); }
.subpage-spotlight h2 { margin-bottom: 0.5rem; font-size: clamp(1.28rem, 2.1vw, 1.7rem); line-height: 1.22; }
.subpage-spotlight p { max-width: 68ch; font-size: 0.9rem; line-height: 1.62; }
/* 一次强调：短规线是唯一品牌色，眉标退到 subtle，箭头保留品牌色作可点提示。 */
.spotlight-eyebrow { color: var(--text-subtle); font-weight: 650;
    font-size: 0.7rem; letter-spacing: 0.14em; margin-bottom: 0.5rem; }
.spotlight-link { color: var(--text); margin-top: 0.8rem; font-size: 0.82rem; }
.spotlight-link span { color: var(--brand); }
.spotlight-evidence { background: transparent; border-color: var(--catalog-hair); padding: 0.9rem; }
.spotlight-evidence > span { padding: 0.5rem 0.7rem; }
.spotlight-evidence > span + span { border-color: var(--catalog-hair); }
.spotlight-evidence strong { color: var(--text); font-size: clamp(1.1rem, 1.9vw, 1.42rem); }
.spotlight-evidence small { margin-top: 0.22rem; font-size: 0.7rem; }
.products-index-page .spotlight-evidence,
.research-index-page .spotlight-evidence { background: transparent; }

/* ---------- 04 news-timeline-row (+ news-badge) —— 原型 A -----------------
   行距 1.1rem → 0.8rem，日期栏 110px → 88px、栏距 1.5rem → 1.1rem：省下的横向
   宽度全部还给摘要，摘要少折一行，等于每条再省一个行高。 */
.news-timeline-row {
    grid-template-columns: 88px minmax(84px, auto) minmax(0, 1fr);
    gap: 1.1rem; padding: 0.8rem 0.45rem;
    border-radius: 0; border-bottom-color: var(--catalog-hair);
    transition: background 0.22s ease;  /* 不再动 padding：账册行不该抖 */
}
.news-timeline-row:hover { background: var(--catalog-hover); padding-left: 0.45rem; }
.news-timeline-row.is-static:hover { background: transparent; padding-left: 0.45rem; }
.news-timeline-date { font-size: 0.82rem; }
.news-timeline-title { font-size: 0.98rem; margin-bottom: 0.16rem; line-height: 1.38; }
.news-timeline-excerpt { font-size: 0.875rem; line-height: 1.55; }
/* 年份栏头也降一档：2rem 的年份压过 1.85rem 的置顶标题，层级就倒了。 */
.news-year-header { margin: 1.5rem 0 0.3rem; padding-bottom: 0.45rem;
    border-bottom-color: var(--catalog-line-strong); }
.news-year-label { font-size: clamp(1.2rem, 1.9vw, 1.55rem); }
/* 徽标去药丸：一页 8 个 brand-soft 胶囊就是一次强调色泛滥。 */
.news-badge { background: transparent; color: var(--text-subtle); font-weight: 500;
    border: 1px solid var(--catalog-hair); border-radius: 0;
    padding: 0.1rem 0.42rem; font-size: 0.7rem; }

@media (max-width: 720px) {
    .news-timeline-row { gap: 0.32rem; padding: 0.72rem 0.45rem; }
    .news-timeline-meta-mobile { font-size: 0.78rem; margin-bottom: 0.08rem; gap: 0.5rem; }
}

/* ---------- 05 pub-row —— 原型 A，本方案的语言样板 -----------------------
   已经是本方案的语言（编号栏 + 出处栏 + 发丝线 + 底纹悬停），紧版只收节律：行距
   1.55rem → 1.05rem，年份分节的下边距 4.5rem → 2.6rem——六条研究原本要滚过三个
   4.5rem 的空档才走完。关键词一行 brand-strong × 7 行等于没有强调，退到 subtle。 */
.pub-row {
    grid-template-columns: 30px minmax(132px, 186px) minmax(0, 1fr);
    column-gap: clamp(0.85rem, 1.8vw, 1.5rem);
    padding: 1.05rem 0; border-bottom-color: var(--catalog-hair);
}
.pub-row::before { font-size: 0.66rem; }
.pub-venue { font-size: 0.7rem; letter-spacing: 0.05em; line-height: 1.5; }
.pub-title { font-size: 1.05rem; margin-bottom: 0.26rem; }
.pub-desc { max-width: 76ch; margin-bottom: 0.45rem; font-size: 0.88rem; line-height: 1.62; }
.pub-keywords { color: var(--text-subtle); font-size: 0.7rem; }
.research-areas .year-section { margin-bottom: 2.6rem;
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: clamp(1.5rem, 3vw, 3rem);
    border-top-color: var(--catalog-line-strong); }
.year-header { gap: 0.4rem; padding: 1.05rem 0 0; }
.year-label { font-size: clamp(1.28rem, 2vw, 1.6rem); }
.year-count { font-size: 0.74rem; }

@media (max-width: 900px) {
    .research-areas .year-section { margin-bottom: 2rem; }
    .year-header { padding: 0.95rem 0 0.7rem; }
    .pub-row { grid-template-columns: 28px minmax(0, 1fr); column-gap: 0.8rem; padding: 0.95rem 0; }
    .pub-main { margin-top: 0.4rem; }
}

/* ---------- 06 milestone-entry —— 原型 A，纵向变体 -----------------------
   无盒无影无圆角，语法不动；只把格高交还内容（去掉 270px 下限），并让年份大字与
   其余家族的标题量级对齐。研究索引页的「里程碑」一节已启用本族。 */
.milestone-track { margin-top: 2.4rem; border-top-color: var(--catalog-line-strong); }
.milestone-entry { min-height: 0; padding: 1.7rem clamp(1.1rem, 2.2vw, 2rem) 0; }
.milestone-entry + .milestone-entry { border-left-color: var(--catalog-hair); }
.milestone-meta { margin-bottom: 0.7rem; }
.milestone-entry time { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 0.65rem; }
.milestone-entry h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }
.milestone-entry > p { font-size: 0.86rem; line-height: 1.6; }
.milestone-link { margin-top: 0.85rem; }

/* 条目内的分月流水账。里程碑那一栏回答「哪一年」，这张小账册回答「几月、什么、
   发在哪」——三者分栏排，月份走等宽数字留在左槽，与 .pub-row 的编号槽同一句话。
   强调色在本族已经花在轴线与当前项的节点上，所以这里一律近黑加 subtle，不再着色。
   月份未定的条目（例如只有录用结论的论文）把左槽写成状态词，栏宽按最长的状态词
   兑，不因此另起一行。 */
.milestone-log {
    margin: 1.15rem 0 0;
    padding: 0;
    border-top: 1px solid var(--catalog-hair);
    list-style: none;
}
.milestone-log > li {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    column-gap: 0.7rem;
    padding: 0.62rem 0;
    border-bottom: 1px solid var(--catalog-hair);
}
.milestone-log-date {
    padding-top: 0.09rem;
    color: var(--text-subtle);
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.5;
}
.milestone-log-name {
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.45;
}
.milestone-log-venue {
    grid-column: 2;
    margin-top: 0.14rem;
    color: var(--text-subtle);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    line-height: 1.45;
}

/* ---------- 07 research-card —— 原型 B ----------------------------------- */
.research-card { background: transparent; border: 0; border-radius: 0;
    box-shadow: none; transition: background 0.22s ease; }
.research-card:hover { background: var(--catalog-hover);
    border-color: transparent; box-shadow: none; transform: none; }
.research-card h3 { font-size: 1.1rem; margin-bottom: 0.28rem; }
.card-meta { font-size: 0.78rem; margin-bottom: 0.5rem; }
.research-card p { font-size: 0.89rem; line-height: 1.55; margin-bottom: 0.8rem; }
/* 首页两格已由 .home-page 规则切成矩阵；格高交还内容，短规线随内距一起左移。 */
.home-page .research-grid { margin-top: 1.25rem;
    border-top-color: var(--catalog-hair); border-bottom-color: var(--catalog-hair); }
.home-page .research-card { min-height: 0; padding: 1.3rem 1.4rem 1.35rem; }
.home-page .research-card::before { left: 1.4rem; width: 22px; }
.home-page .research-card + .research-card { border-left-color: var(--catalog-hair); }
.home-page .card-tags { gap: 0.6rem; }
/* 标签收回一次强调：格子的品牌色已经花在顶部那道短规线上了。 */
.tag { background: transparent; color: var(--text-subtle); border: 0; border-radius: 0; padding: 0; }
.home-page .tag { color: var(--text-subtle); font-size: 0.7rem; }

@media (max-width: 720px) {
    .home-page .research-card + .research-card { border-top-color: var(--catalog-hair); }
}

/* ---------- 08 product-item —— 12 栏矩阵（原型 B）------------------------
   首页 <body> 同时带 products-index-page 与 home-page，两页共用同一张 12 栏矩阵，
   已经是本方案的语言。紧版只收格内留白与格高：`--cell-pad-x` 是短规线的定位基准
   （left: var(--cell-pad-x)），必须整体收，不能把内距清零——否则规线与文字错位。
   行线由基础表按 --link/--table 精确画好，不再另加相邻兄弟线。 */
.products-index-page .products-showcase { --matrix-line: var(--catalog-hair); }
.home-page .products-showcase { margin-top: 1.2rem; }
.products-index-page .product-item.featured {
    --cell-pad-x: 1.4rem; min-height: 210px;
    padding: 1.4rem var(--cell-pad-x) 1.3rem;
}
.products-index-page .product-item.featured.product-item--atomhub,
.products-index-page .product-item.featured.product-item--yanlan {
    --cell-pad-x: 1.7rem; min-height: 268px;
    padding-top: 1.65rem; padding-bottom: 1.5rem;
}
.products-index-page .product-item.featured.product-item--table { min-height: 168px; }
.products-index-page .product-info h3 { margin-bottom: 0.45rem; font-size: clamp(1.15rem, 1.6vw, 1.36rem); }
.products-index-page .product-description { margin-bottom: 0.75rem; font-size: 0.88rem; line-height: 1.62; }
.products-index-page .product-buttons { padding-top: 1rem; gap: 0.95rem; }
.products-index-page .feature { font-size: 0.77rem; }
.products-index-page .product-features { gap: 0.36rem 0.85rem; }
/* 徽标与 news-badge 同一句话：不做胶囊，做栏位标签；一格一次强调，强调已给规线。 */
.product-badge { background: transparent; color: var(--text-subtle); border: 0;
    border-radius: 0; padding: 0; font-weight: 650; letter-spacing: 0.08em; }
.products-index-page .product-badge { color: var(--text-subtle); margin-bottom: 0.5rem; font-size: 0.7rem; }
.home-page .product-visual { background: transparent; border: 0; border-radius: 0; }
/* 数字回到近黑与等宽字形，靠字号排序，不靠颜色。 */
.product-item .product-stats { padding-top: 0.75rem; gap: 0.7rem; border-top-color: var(--catalog-hair); }
.product-item .stat-value { color: var(--text); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.product-item .stat-label { font-size: 0.75rem; }

/* ---------- 09 service-card —— 原型 B ------------------------------------
   1px 网格缝隙透出容器底色 = 列线与行线。列数由 auto-fit 决定也不会出错，单列时
   同一条缝隙自动变成行线，不会留下悬空的右边框。站上暂未使用，同口径校准。 */
.services-grid { gap: 1px; background: var(--catalog-hair);
    border-top: 1px solid var(--catalog-hair); border-bottom: 1px solid var(--catalog-hair); }
.service-card { background: var(--bg); border: 0; border-radius: 0;
    box-shadow: none; padding: 1.3rem 1.25rem; transition: background 0.22s ease; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 0.65rem; }
.service-icon { margin-bottom: 0.65rem; }
/* 格子底色必须不透明，否则容器的线色会整片透上来。 */
.service-card:hover { background: color-mix(in srgb, var(--brand) 4%, var(--bg));
    border-color: transparent; box-shadow: none; transform: none; }

/* ---------- 10 contact-card —— 原型 B ------------------------------------ */
/* 联系页只有 3 张卡：auto-fit 网格在两列宽度下会空出第 4 格，空格子没有卡片
   底色盖住容器，整块被涂成线色（实测占网格面积 25.7%）。改用弹性换行。 */
.contact-grid { display: flex; flex-wrap: wrap; align-items: stretch; gap: 1px;
    background: var(--catalog-hair);
    border-top: 1px solid var(--catalog-hair); border-bottom: 1px solid var(--catalog-hair); }
.contact-card { flex: 1 1 300px; min-width: 0;
    background: var(--bg-muted); border: 0; border-radius: 0;
    padding: 1.25rem 1.2rem; text-align: left; transition: background 0.22s ease; }
.contact-card:hover { background: color-mix(in srgb, var(--brand) 4%, var(--bg-muted));
    border-color: transparent; transform: none; }
.contact-icon { font-size: 0.7rem; font-weight: 650; letter-spacing: 0.16em;
    color: var(--text-subtle); margin-bottom: 0.65rem; }
.contact-title { font-size: 1.12rem; margin-bottom: 0.38rem; }
.contact-description { margin-bottom: 0.85rem; font-size: 0.89rem; line-height: 1.6; }
/* 邮箱是这一格唯一的强调：不做描边药丸，也不做滑入填充。 */
.contact-email { padding: 0; border: 0; border-radius: 0; font-size: 0.94rem;
    font-weight: 600; color: var(--brand-strong); }
.contact-email::before { display: none; }
.contact-email:hover { color: var(--brand); transform: none; }

/* ---------- 11 文章版心节奏 ----------------------------------------------
   文章页是全站最花留白的地方：96px 顶距之后还有 2.5rem 返回链接、3rem 报头、
   2.5rem 导语、每节 3rem。顶距不动（固定导航的净空），其余按同一比例收；正文
   1.0625rem/1.75 → 1.02rem/1.68，长文一屏多出约三行。 */
.article-page { padding-bottom: 56px; }
.article-back { margin-bottom: 1.4rem; }
.article-hero { margin-bottom: 1.9rem; }
.article-eyebrow { margin-bottom: 0.6rem; font-size: 0.72rem; }
.article-title { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 0.55rem; }
.article-subtitle { font-size: 1.1rem; line-height: 1.45; margin-bottom: 1.15rem; }
.article-meta { gap: 0.25rem; margin-bottom: 1rem; font-size: 0.84rem; }
.article { font-size: 1.02rem; line-height: 1.68; }
.article p { margin-bottom: 0.95rem; }
.article-lede { font-size: 1.1rem; line-height: 1.6; margin-bottom: 1.55rem; }
.article-section { margin: 2rem 0; }
.article-section h2 { font-size: 1.35rem; margin: 1.7rem 0 0.65rem; }
.article-section h3 { font-size: 1.06rem; margin: 1.25rem 0 0.4rem; }
.article ul, .article ol { margin-bottom: 1.05rem; padding-left: 1.15rem; }
.article li { margin-bottom: 0.28rem; line-height: 1.62; }
.article-pullquote { margin: 1.35rem 0; padding-left: 1.05rem; font-size: 1.06rem; line-height: 1.5; }
.article-divider { margin: 2rem auto; background: var(--catalog-hair); }
.article-footer { margin-top: 2.4rem; padding-top: 1.3rem; border-top-color: var(--catalog-hair); }

/* ---------- 12 article-figures / article-figure-stat —— 原型 A -----------
   只做横向账册条：这里的格数逐页不同（4 个或 5 个），auto-fit 换行后 CSS 认不出
   「每行第一格」，硬加列线一定会在行首留下一条悬空规线。紧版把最小列宽从 140px
   收到 118px——五格数据条因此能在更窄的版心里保持一行，不换行就是最大的省。 */
.article-figures {
    margin: 0 auto 1.9rem; padding: 1rem 0; gap: 0.85rem 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    border-top-color: var(--catalog-hair); border-bottom-color: var(--catalog-hair);
}
.article-figure-stat .num { font-size: 1.48rem; font-weight: 700;
    letter-spacing: -0.025em; margin-bottom: 0.14rem; }
.article-figure-stat .label { font-size: 0.76rem; line-height: 1.3; letter-spacing: 0.02em; }

/* ---------- 13 article-figure —— 原型 A ---------------------------------- */
.article-figure { margin: 1.05rem 0 0.5rem; }
.article-figure img { border-radius: 0; border-color: var(--catalog-hair); }
.article-figure-caption { margin: 0.6rem 0 1.45rem; padding-top: 0.55rem;
    font-size: 0.78rem; border-top-color: var(--catalog-hair); }
.article-figure-legend { margin-top: 0.4rem; gap: 0.85rem; font-size: 0.75rem; }

/* ---------- 14 article-callout —— 原型 A --------------------------------- */
.article-callout { margin: 1.35rem 0; padding: 0.05rem 0 0.05rem 1.05rem; border: 0;
    border-left: 2px solid var(--brand);  /* 全块唯一的品牌色 */
    border-radius: 0; background: none; box-shadow: none;
    font-size: 1rem; line-height: 1.62; }
.article-callout::before,
.article-callout::after { display: none; }  /* 渐变脊 + 径向光斑，两个都拆掉 */
.article-callout strong { color: var(--text); font-weight: 700; }

/* ---------- 15 article-impact —— 原型 A ----------------------------------
   三块蓝渐变盒 → 一张编号在左栏的账册；序号沿用 .pub-row 的补零写法。行距从
   1.15rem 收到 0.82rem，与 .pub-row 同口径：文章页里的这张小账册，读起来该和研究
   索引页那张是同一本。 */
.article-impact { gap: 0; margin: 1.25rem 0; border-top: 1px solid var(--catalog-hair); }
.article-impact > div { grid-template-columns: 2.1rem minmax(0, 1fr); column-gap: 0.85rem;
    padding: 0.82rem 0; border: 0; border-bottom: 1px solid var(--catalog-hair);
    border-radius: 0; background: none; box-shadow: none; }
.article-impact > div::before {
    content: counter(article-impact-item, decimal-leading-zero);
    display: block; width: auto; height: auto; margin-top: 0.22rem; border: 0;
    color: var(--text-subtle); background: none; border-radius: 0; box-shadow: none;
    font-size: 0.68rem; font-weight: 650; letter-spacing: 0.06em; line-height: 1.5; }
.article-impact > div > strong { color: var(--text); margin-bottom: 0.2rem; line-height: 1.4; }
.article-impact > div > span { font-size: 0.93rem; line-height: 1.62; }
@media (max-width: 720px) {
    .article-impact > div { grid-template-columns: 1.9rem minmax(0, 1fr);
        column-gap: 0.7rem; padding: 0.78rem 0; }
    .article-impact > div::before { width: auto; height: auto; font-size: 0.66rem; }
    .article-impact > div > span { font-size: 0.91rem; }
}

/* ---------- 16 article-cta —— 原型 A ------------------------------------- */
.article-cta { margin-top: 2.2rem; padding: 1.15rem 0 0; background: transparent;
    border: 0; border-top: 1px solid var(--catalog-line-strong); border-radius: 0; }
.article-cta h2 { margin-bottom: 0.45rem; font-size: 1.2rem; }
.article-cta p { margin-bottom: 0.9rem; line-height: 1.62; }
/* 按钮是本块唯一的强调，不再另加光晕与位移。 */
.article-cta .btn-primary { box-shadow: none; padding: 11px 26px; font-size: 0.94rem; }
.article-cta .btn-primary:hover { box-shadow: none; transform: none; }

/* ---------- 17 中文正文下限 ----------------------------------------------
   上面各家族把正文与摘要整体降了一档，那是按拉丁字母的可读性定的。中文另有硬底
   线：字号不低于 0.88rem、行高不低于 1.6，再低方块字就会挤成一片灰。这里只把中文
   页面抬回底线，英文页面保持上面的紧凑值——同一套版式，两种文字各按各自的下限。
   选择器多带一层真实存在的父级（.news-timeline / .home-page / .research-areas /
   .products），特异度高于上面的家族规则，因此与源序无关。 */
html[lang="zh"] .news-timeline .news-timeline-excerpt {
    font-size: 0.9rem; line-height: 1.62; letter-spacing: 0.01em;
}
html[lang="zh"] .home-page .research-card p {
    font-size: 0.9rem; line-height: 1.62; letter-spacing: 0.01em;
}
html[lang="zh"] .research-areas .pub-desc {
    font-size: 0.88rem; line-height: 1.62; letter-spacing: 0.01em;
}
html[lang="zh"] .products .product-description {
    font-size: 0.88rem; line-height: 1.62; letter-spacing: 0.01em;
}

/* ======================================================================
   Open Form — September 2026
   Shared editorial rhythm, varied research art, screenshot-led products.
   Scoped to migrated pages so standalone research artifacts keep their layout.
   ====================================================================== */
body.open-form {
    --canvas:#fcfcfb;
    --surface:#fcfcfb;
    --surface-muted:#f0f2ee;
    --bg:var(--canvas);
    --bg-muted:var(--surface-muted);
    --radius-card:6px;
    --radius-media:6px;
    background:var(--canvas);
    font-family:var(--font-display);
    line-height:1.8
}

[data-theme=dark] body.open-form {
    --canvas:#090d16;
    --surface:#0d1420;
    --surface-muted:#151e2c;
    --bg:var(--canvas);
    --bg-muted:var(--surface-muted)
}

.open-form h1,.open-form h2,.open-form h3 {
    text-wrap:pretty;
    letter-spacing:-.025em
}
.open-form p {
    line-height:1.8
}
.open-form .container {
    max-width:1200px;
    padding-inline:24px
}
.open-form .navbar {
    background:var(--canvas);
    backdrop-filter:none;
    border-bottom:1px solid var(--border);
    box-shadow:none
}
.open-form .navbar>.container {
    min-height:86px;
    gap:28px
}
.open-form .brand-logo {
    width:218px;
    height:68px;
    object-fit:contain;
    max-width:none;
    filter:none
}
.brand-logo-dark {
    display:none
}
[data-theme=dark] .brand-logo-light {
    display:none
}
[data-theme=dark] .brand-logo-dark {
    display:block
}
.open-form .brand-mark {
    gap:0
}
.open-form .nav-menu {
    gap:28px
}
.open-form .nav-menu a {
    font-size:14px;
    font-weight:500
}
.open-form .nav-controls {
    gap:12px
}
.open-form .btn {
    border-radius:30px;
    padding:12px 23px;
    font-size:14px;
    box-shadow:none
}
.open-form .btn-primary {
    background:var(--brand);
    color:var(--brand-contrast)
}
.open-form .btn:hover {
    transform:none
}
.open-form a:focus-visible {
    outline:3px solid var(--brand-ring);
    outline-offset:4px
}

.open-form .hero {
    padding:145px 0 50px;
    background:var(--canvas)
}
.open-form .hero-layout,
.open-form .section-hero-layout {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
    align-items:center;
    gap:60px
}
/* Art frame is 3:2 at minimum and grows to the text column's height, so both
   columns share top and bottom edges whether the copy is short or long. It never
   crops past square: the cap is the art column's own width (container minus
   padding and gap, times its 1.1/2.1 share); past that it re-centers. */
.open-form .home-editorial,
.open-form .section-hero-art {
    position:relative;
    width:100%;
    height:100%;
    max-height:calc((min(1200px,100vw) - 100px) * 1.1 / 2.1);
    aspect-ratio:1.5;
    min-height:0
}
.open-form .hero-content {
    text-align:left;
    max-width:none
}
.open-form .hero-title {
    font-size:clamp(40px,4.5vw,60px);
    font-weight:550;
    line-height:1.27;
    letter-spacing:-.035em;
    margin-bottom:24px
}
.open-form .hero-title span {
    color:var(--brand)
}
/* EN couplet is ~4× longer than the ZH one; scale it to stack in the same column. */
html[lang="en"] .open-form .hero-title {
    font-size:clamp(32px,3.6vw,46px);
    line-height:1.15
}
.open-form .hero-lede {
    font-size:16px;
    line-height:1.95;
    max-width:490px;
    margin:0 0 26px
}
.open-form .hero-kicker {
    font-size:11px;
    letter-spacing:.08em;
    justify-content:flex-start;
    margin-bottom:24px
}
.open-form .hero-buttons,.open-form .hero-meta {
    justify-content:flex-start
}
.open-form .hero-meta {
    margin-top:25px
}
.home-editorial {
    margin:0
}
.home-editorial img,
.section-hero-art img {
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:6px
}
.open-form .home-release {
    padding-block:10px 0
}
.open-form .home-release .release-signal {
    width:100%;
    min-height:0;
    display:grid;
    grid-template-columns:180px 1fr 250px;
    gap:28px;
    padding:26px 0;
    border:0;
    border-block:1px solid var(--border);
    background:transparent;
    box-shadow:none;
    border-radius:0;
    overflow:visible
}
.open-form .home-release .release-signal::before {
    display:none
}
.open-form .home-release .release-signal-head {
    display:block
}
.open-form .home-release .release-signal-mark {
    display:none
}
.open-form .home-release .release-signal h2 {
    font-size:23px;
    line-height:1.4
}
.open-form .home-release .release-signal h2 br {
    display:none
}
.open-form .home-release .release-signal-body {
    padding:0
}
.open-form .home-release .release-signal p {
    font-size:13px;
    line-height:1.8
}
.open-form .home-release .release-signal-foot {
    border:0;
    align-self:center;
    padding:0
}
.open-form .home-release .release-signal-stat strong {
    font-size:27px
}
.open-form .release-status {
    margin-top:12px
}

.open-form .section-hero {
    padding:145px 0 50px;
    background:var(--canvas);
    border:0
}
.open-form .section-hero-inner {
    max-width:100%;
    text-align:left
}
.open-form .section-hero-title {
    font-size:clamp(36px,4vw,54px);
    font-weight:550;
    line-height:1.3;
    max-width:900px
}
.open-form .section-hero-lede {
    font-size:17px;
    max-width:740px;
    line-height:1.9
}
.open-form .section-hero-kicker {
    font-size:11px;
    letter-spacing:.08em
}
.open-form .section-hero-rule {
    display:none
}
.open-form .section-header {
    align-items:center;
    margin-bottom:28px
}
.open-form .section-title {
    font-size:34px;
    font-weight:550;
    line-height:1.4
}
.open-form .research,.open-form .products,.open-form .research-areas {
    padding-block:64px
}
.open-form .subpage-signal {
    padding-top:14px
}
.open-form .subpage-spotlight {
    background:transparent;
    border:1px solid var(--border);
    border-radius:6px;
    padding:28px 32px
}
.open-form .subpage-spotlight::before {
    display:none
}

/* Each paper keeps its own visual identity across the listing and leaf pages. */
.open-form .research-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
    border:0;
    margin-top:0
}
.open-form .research-card {
    padding:0;
    border:0;
    background:transparent;
    box-shadow:none;
    overflow:visible
}
.open-form .research-card+.research-card {
    border:0
}
.open-form .research-card::before {
    display:none
}
.open-form .research-card:hover {
    background:transparent
}
.open-form .research-card .card-content {
    padding:22px 0 0
}
.open-form .research-card h3 {
    font-size:27px;
    margin:0 0 8px
}
.open-form .research-card p {
    font-size:14px;
    line-height:1.85
}
.open-form .research-card .card-meta {
    font-size:12px;
    color:var(--text-subtle)
}
.editorial-art,.publication-art {
    margin:0
}
.editorial-art img,.publication-art img {
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:1.5;
    object-fit:cover;
    border-radius:5px
}
.open-form .pub-list {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:40px 30px;
    border:0
}
.open-form .pub-row {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:0;
    border:0;
    background:transparent
}
.open-form .pub-row::before {
    display:none
}
.open-form .pub-row:hover {
    background:transparent;
    transform:none
}
.open-form .pub-venue {
    padding:0;
    margin:18px 0 8px;
    font-size:12px
}
.open-form .pub-title {
    font-size:25px;
    line-height:1.4;
    margin-bottom:12px
}
.open-form .pub-main {
    flex:1;
    min-height:0
}
.open-form .pub-desc {
    font-size:15px;
    line-height:1.85;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    overflow:hidden
}
.open-form .pub-keywords {
    font-size:12px;
    margin-top:auto;
    padding-top:15px
}
.open-form .year-header {
    margin:36px 0 25px
}
.open-form .year-label {
    font-size:26px
}
.open-form .year-section+.year-section {
    margin-top:50px
}
.open-form .research-milestones {
    background:transparent;
    border-block:1px solid var(--border);
    padding-block:65px
}
.open-form .milestone-entry {
    padding-top:26px
}
.open-form .milestone-entry>p {
    font-size:14px;
    line-height:1.85
}

/* Product directory: real identity marks, consistent baselines, no watermarks. */
.open-form.products-index-page .products-showcase {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:28px;
    background:transparent;
    border:0
}
.open-form.products-index-page .product-item.featured {
    grid-column:auto;
    grid-row:auto;
    display:flex;
    flex-direction:column;
    min-height:0;
    padding:0 0 28px;
    border:0;
    border-bottom:1px solid var(--border);
    background:transparent;
    box-shadow:none;
    border-radius:0;
    overflow:visible
}
.open-form.products-index-page .product-item.featured::before {
    display:none
}
.open-form.products-index-page .product-item--atomhub {
    grid-column:1/-1!important
}
.open-form.products-index-page .product-visual {
    position:relative;
    inset:auto;
    width:100%;
    height:230px;
    margin:0 0 25px;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:1;
    transform:none;
    mask-image:none;
    -webkit-mask-image:none;
    overflow:hidden;
    border:0;
    border-radius:6px;
    background:none
}
.open-form.products-index-page .product-visual img {
    position:static;
    width:100%;
    height:100%;
    max-width:none;
    max-height:none;
    object-fit:cover;
    opacity:1;
    filter:none;
    transform:none
}
.open-form.products-index-page .product-info {
    padding:0;
    max-width:none;
    display:flex;
    flex-direction:column;
    flex:1
}
.open-form.products-index-page .product-info h3 {
    font-size:27px;
    margin-bottom:14px
}
.open-form.products-index-page .product-description {
    font-size:15px;
    line-height:1.85;
    max-width:760px
}
.open-form.products-index-page .product-buttons {
    margin-top:auto;
    padding-top:22px
}
.open-form .product-features .feature {
    font-size:13px
}
.open-form .product-badge {
    font-size:11px;
    color:var(--text-muted);
    margin-bottom:12px
}
.open-form .product-art-dark {
    display:none
}
.open-form .product-art-light {
    display:block
}

/* Product detail pages use full, uncropped screenshots. */
.open-form .product-page {
    padding:126px 24px 70px;
    background:var(--canvas)
}
.open-form .product-back-row,.open-form .product-hero,.open-form .product-section,.open-form .product-showcase,.open-form .product-stats,.open-form .product-lede,.open-form .product-cta {
    max-width:1152px
}
.open-form .product-hero {
    grid-template-columns:1fr 1.12fr;
    gap:55px;
    margin-bottom:35px
}
.open-form .product-hero-text {
    padding:0;
    max-width:none
}
.open-form .product-title {
    font-size:clamp(36px,4vw,52px);
    line-height:1.3;
    font-weight:550
}
.open-form .product-subtitle {
    font-size:16px;
    line-height:1.9
}
.open-form .product-hero-image {
    background:transparent;
    padding:0;
    border:0;
    border-radius:6px
}
.open-form .product-hero-image img {
    width:100%;
    height:auto;
    object-fit:contain;
    border:1px solid var(--border);
    border-radius:4px
}
.open-form .product-logo-mark {
    position:static;
    width:95px;
    height:95px;
    margin:0 0 20px;
    padding:0;
    mask-image:none;
    -webkit-mask-image:none;
    border-radius:0;
    pointer-events:auto
}
.open-form .product-logo-mark::before {
    display:none
}
.open-form .product-logo-mark img {
    position:static;
    inset:auto;
    width:100%;
    height:100%;
    opacity:1;
    filter:none;
    transform:none;
    object-fit:contain
}
.open-form .product-logo-mark .product-mark-dark {
    display:none
}
.open-form .product-logo-mark .product-mark-light {
    display:block
}
.open-form .product-hero-icon {
    width:70px;
    height:70px;
    background:transparent;
    border:0
}
.open-form .product-yanlin .product-hero-badge .product-hero-icon {
    display:none
}
.open-form .product-showcase {
    padding:26px;
    background:transparent;
    border:1px solid var(--border);
    border-radius:6px;
    margin:30px auto 40px
}
.open-form .product-showcase img {
    display:block;
    width:100%;
    height:auto;
    object-fit:contain;
    border:1px solid var(--border);
    border-radius:5px;
    box-shadow:0 12px 30px #13223612
}
.open-form .product-showcase figcaption {
    font-size:12px;
    line-height:1.8;
    margin-top:18px
}
.open-form .product-feature {
    gap:55px;
    margin-bottom:65px;
    align-items:center
}
.open-form .product-feature-image {
    background:var(--surface-muted);
    padding:18px;
    border-radius:6px
}
.open-form .product-feature-image img {
    display:block;
    width:100%;
    height:auto;
    object-fit:contain;
    border-radius:4px;
    box-shadow:none
}
.open-form .product-feature-text h3 {
    font-size:29px;
    line-height:1.4
}
.open-form .product-feature-text p {
    font-size:16px;
    line-height:1.9
}
.open-form .product-section {
    margin-block:60px;
    margin-inline:auto
}
.open-form .product-section h2 {
    font-size:32px;
    line-height:1.4
}
.open-form .product-cta {
    background:transparent;
    padding:35px;
    border:1px solid var(--border);
    border-radius:6px
}
.open-form .screenshot-link {
    display:block;
    cursor:zoom-in
}
.open-form .product-stat .num {
    font-size:32px;
    color:var(--brand)
}

/* News browsing is generous;
     article reading remains quiet. */
.open-form .news-page-body {
    max-width:1200px;
    padding:30px 24px 70px;
    margin:auto
}
.open-form .news-pinned {
    background:transparent;
    padding:34px;
    border:1px solid var(--border);
    border-radius:6px
}
.open-form .news-pinned-title {
    font-size:32px;
    line-height:1.45
}
.open-form .news-pinned-lede {
    font-size:16px;
    line-height:1.85;
    max-width:760px
}
.open-form .news-pinned-stats {
    margin-top:25px
}
.open-form .news-pinned-stats strong {
    color:var(--brand);
    font-size:26px
}
.open-form .news-timeline-row {
    padding:24px 0;
    grid-template-columns:95px 100px minmax(0,1fr);
    gap:24px
}
.open-form .news-timeline-row:hover {
    padding-left:0
}
.open-form .news-timeline-title {
    font-size:22px;
    line-height:1.45;
    margin-bottom:8px
}
.open-form .news-timeline-excerpt {
    font-size:14px;
    line-height:1.9
}
.open-form .news-year-header {
    margin-top:40px
}
.open-form .news-year-label {
    font-size:28px
}

.open-form .article-page {
    padding:125px 24px 70px;
    background:var(--canvas)
}
.open-form .article-hero {
    max-width:1152px;
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
    gap:55px;
    align-items:center;
    margin-bottom:40px
}
.open-form .article-hero-copy {
    min-width:0
}
.open-form .article-back {
    margin-bottom:25px
}
.open-form .article-title {
    font-size:clamp(32px,3.5vw,46px);
    font-weight:550;
    line-height:1.4
}
.open-form .article-subtitle {
    font-size:17px;
    line-height:1.85
}
.open-form .article-meta {
    font-size:13px;
    line-height:1.8
}
.article-editorial {
    margin:0;
    align-self:center
}
.article-editorial img {
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:1.5;
    object-fit:cover;
    border-radius:6px
}
.open-form .article-figures {
    max-width:1152px;
    padding:25px 0;
    margin-bottom:45px;
    gap:25px
}
.open-form .article-figure-stat .num {
    font-size:30px;
    color:var(--brand);
    line-height:1.3
}
.open-form .article-figure-stat .label {
    font-size:12px;
    line-height:1.7
}
.open-form .article {
    max-width:780px;
    margin-inline:auto;
    font-size:16px;
    line-height:1.95
}
.open-form .article p {
    line-height:1.95
}
.open-form .article-lede {
    font-size:19px;
    line-height:1.95
}
.open-form .article-section {
    margin-block:40px
}
.open-form .article-section h2 {
    font-size:28px;
    line-height:1.45;
    scroll-margin-top:115px
}
.open-form .article-section h3 {
    font-size:22px;
    line-height:1.5
}
.open-form .article-callout {
    padding:24px;
    background:transparent;
    border:0;
    border-left:3px solid var(--brand);
    border-radius:0;
    margin-block:28px
}
.open-form .article-figure {
    padding:18px;
    border:1px solid var(--border);
    border-radius:5px;
    background:var(--surface);
    margin-block:28px
}
.open-form .article-figure img {
    width:100%;
    height:auto;
    object-fit:contain;
    border:0
}
.open-form .article-figure-caption {
    font-size:12px;
    line-height:1.8;
    margin-bottom:0
}
.open-form .article-footer {
    max-width:1152px
}
.open-form .article-cta {
    padding:28px;
    background:transparent;
    border:1px solid var(--border);
    border-radius:5px
}
.article-reading-layout {
    max-width:1152px;
    display:grid;
    grid-template-columns:minmax(0,780px) minmax(180px,1fr);
    gap:70px;
    margin:auto
}
.open-form .article-reading-layout>.article {
    max-width:100%;
    min-width:0;
    margin:0
}
.article-contents {
    position:sticky;
    top:116px;
    align-self:start;
    border-top:1px solid var(--border);
    padding-top:18px;
    font-size:12px
}
.article-contents>p {
    color:var(--text);
    font-weight:600;
    margin-bottom:18px
}
.article-contents nav {
    display:flex;
    flex-direction:column;
    gap:14px
}
.article-contents a {
    color:var(--text-muted);
    line-height:1.8;
    text-decoration:none
}
.article-contents a:hover {
    color:var(--brand)
}

.open-form .upgrade-hero {
    background:var(--canvas)
}
.open-form .upgrade-title {
    font-size:clamp(38px,4.8vw,62px);
    line-height:1.3
}
.open-form .upgrade-section h2 {
    line-height:1.4
}
.open-form .upgrade-brand-mark img {
    filter:none;
    opacity:1
}
.open-form .upgrade-section.is-surface {
    background:var(--surface-muted)
}
.open-form .upgrade-cta {
    background:transparent;
    border:1px solid var(--border)
}
.open-form .contact-card {
    padding:30px;
    background:transparent;
    border-color:var(--border)
}
.open-form .contact-title {
    font-size:24px
}
.open-form .footer {
    background:var(--surface-muted);
    border-top:1px solid var(--border);
    padding-top:50px
}
.open-form .footer-content {
    gap:50px
}
.open-form .about {
    padding-block:65px
}

/* White-backed painted logo: render at native strength, not blurred or blended. */
.open-form img[src*="yanlan-brush-hd"] {
    filter:none!important;
    opacity:1!important;
    mix-blend-mode:normal;
    image-rendering:auto;
    border-radius:50%;
    background:#fff
}

@media(max-width:1000px) {
    .open-form .navbar>.container {
    gap:18px
}
.open-form .nav-menu {
    gap:18px
}
.open-form .brand-logo {
    width:185px
}
.open-form .hero-layout {
    gap:35px
}
.open-form .home-editorial,
.open-form .section-hero-art {
    max-height:calc((100vw - 75px) * 1.1 / 2.1)
}
.open-form .home-release .release-signal {
    grid-template-columns:150px 1fr
}
.open-form .home-release .release-signal-foot {
    grid-column:2
}
.open-form .article-hero {
    gap:30px
}
.article-reading-layout {
    gap:35px;
    grid-template-columns:minmax(0,1fr) 190px
}
.open-form .product-hero {
    gap:30px
}
.open-form .product-feature {
    gap:30px
}

}

@media(max-width:760px) {
    .open-form .navbar>.container {
    min-height:106px;
    gap:0 14px;
    flex-wrap:wrap;
    padding-block:4px 10px
}
.open-form .brand-logo {
    width:175px;
    height:55px
}
.open-form .nav-brand {
    flex:1
}
.open-form .nav-controls {
    margin:0
}
.open-form .nav-menu {
    display:flex;
    order:3;
    width:100%;
    justify-content:space-between;
    gap:8px;
    margin:0;
    padding:8px 0 0
}
.open-form .nav-menu a {
    font-size:12px
}
.open-form .container {
    padding-inline:20px
}
.open-form .hero {
    padding:145px 0 30px
}
.open-form .hero-layout {
    grid-template-columns:1fr;
    gap:30px
}
.open-form .home-editorial,
.open-form .section-hero-art {
    height:auto;
    max-height:none
}
.open-form .hero-title {
    font-size:41px
}
html[lang="en"] .open-form .hero-title {
    font-size:clamp(30px,9vw,34px)
}
.open-form .hero-lede {
    font-size:15px
}
.open-form .hero-buttons {
    flex-wrap:wrap
}
.open-form .hero-meta {
    font-size:12px
}
.open-form .home-release .release-signal {
    grid-template-columns:1fr;
    gap:18px
}
.open-form .home-release .release-signal-foot {
    grid-column:auto;
    max-width:320px
}
.open-form .home-release .release-signal-head {
    display:flex;
    justify-content:space-between
}
.open-form .release-status {
    margin:0
}
.open-form .section-hero {
    padding:145px 0 28px
}
.open-form .section-hero-title {
    font-size:37px
}
.open-form .section-hero-lede {
    font-size:15px
}
.open-form .section-header {
    gap:15px
}
.open-form .section-title {
    font-size:29px
}
.open-form .section-more {
    font-size:12px
}
.open-form .research-grid,.open-form .pub-list,.open-form.products-index-page .products-showcase {
    grid-template-columns:1fr
}
.open-form .research-card h3,.open-form .pub-title {
    font-size:25px
}
.open-form .research,.open-form .products,.open-form .research-areas {
    padding-block:40px
}
.open-form .pub-list {
    gap:35px
}
.open-form .subpage-spotlight {
    padding:23px
}
.open-form.products-index-page .product-item--atomhub {
    grid-column:auto!important
}
.open-form .product-page {
    padding:138px 20px 45px
}
.open-form .product-hero {
    grid-template-columns:1fr;
    gap:25px
}
.open-form .product-title {
    font-size:39px
}
.open-form .product-subtitle {
    font-size:15px
}
.open-form .product-showcase {
    padding:14px;
    margin-block:24px
}
.open-form .product-showcase figcaption {
    font-size:11px
}
.open-form .product-feature,.open-form .product-feature.is-flipped {
    grid-template-columns:1fr;
    gap:22px;
    margin-bottom:40px
}
.open-form .product-feature.is-flipped .product-feature-image {
    order:0
}
.open-form .product-feature-text h3 {
    font-size:26px
}
.open-form .product-feature-text p {
    font-size:15px
}
.open-form .product-hero-image {
    padding:12px
}
.open-form .product-section h2 {
    font-size:27px
}
.open-form .product-stats {
    grid-template-columns:repeat(2,minmax(0,1fr))
}
.open-form .product-stat .num {
    font-size:27px
}
.open-form .news-page-body {
    padding:24px 20px 45px
}
.open-form .news-pinned {
    padding:23px
}
.open-form .news-pinned-title {
    font-size:27px
}
.open-form .news-pinned-lede {
    font-size:15px
}
.open-form .news-timeline-row {
    grid-template-columns:64px minmax(0,1fr);
    gap:10px 16px;
    padding-block:22px
}
.open-form .news-timeline-row>:last-child {
    grid-column:2
}
.open-form .news-timeline-title {
    font-size:21px
}
.open-form .article-page {
    padding:140px 20px 50px
}
.open-form .article-hero {
    grid-template-columns:1fr;
    gap:25px
}
.open-form .article-title {
    font-size:32px
}
.open-form .article-subtitle {
    font-size:16px
}
.open-form .article-figures {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px
}
.open-form .article-figure-stat .num {
    font-size:26px
}
.open-form .article {
    font-size:15px
}
.open-form .article-lede {
    font-size:17px
}
.open-form .article-section h2 {
    font-size:25px;
    scroll-margin-top:135px
}
.open-form .article-figure {
    padding:12px
}
.article-reading-layout {
    display:flex;
    flex-direction:column;
    gap:25px
}
.article-contents {
    position:static;
    order:-1;
    width:100%
}
.article-contents nav {
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    gap:9px 18px
}
.open-form .article-next-link {
    white-space:normal
}
.open-form .article-top-actions {
    align-items:flex-start
}
.open-form .upgrade-title {
    font-size:38px
}
.open-form .contact-card {
    padding:24px
}
.open-form .footer-content {
    gap:30px
}

}

@media(prefers-reduced-motion:reduce) {
    .open-form * {
    scroll-behavior:auto;
    transition:none!important
}

}

/* Explicit themed image visibility beats legacy .brand-mark img rules. */
.open-form .brand-mark .brand-logo-dark,.open-form .product-visual .product-art-dark,.open-form .product-logo-mark .product-mark-dark {
    display:none
}

[data-theme=dark] .open-form .brand-mark .brand-logo-light {
    display:none
}

[data-theme=dark] .open-form .brand-mark .brand-logo-dark {
    display:block
}

.open-form .nav-menu {
    background:transparent;
    border:0;
    box-shadow:none;
    border-radius:0;
    padding:0
}

.open-form .nav-menu a,.open-form .nav-menu a.active {
    background:transparent;
    box-shadow:none;
    border-radius:0
}

.open-form .nav-menu a.active {
    color:var(--brand)
}

.open-form .hero-content,.open-form .release-signal {
    animation:none
}

.open-form .release-signal-foot {
    display:flex;
    gap:25px
}

.open-form .release-signal-stat {
    min-width:0;
    flex:1
}

.open-form .release-signal-stat strong,.open-form .release-signal-stat span {
    display:block
}

.open-form .home-release .release-signal::after {
    display:none
}

.open-form.products-index-page .product-item.featured.product-item--atomhub {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:35px;
    align-items:center
}

.open-form.products-index-page .product-item--atomhub .product-visual {
    height:auto;
    min-height:270px;
    padding:22px;
    margin:0
}

.open-form.products-index-page .product-visual img.product-card-screen {
    width:100%;
    height:auto;
    max-width:100%;
    max-height:none;
    border-radius:4px;
    object-fit:contain
}

html[lang=zh] .open-form .news-timeline .news-timeline-excerpt,html[lang=zh] .open-form .research-card p,html[lang=zh] .open-form .research-areas .pub-desc,html[lang=zh] .open-form .products .product-description {
    font-size:15px;
    line-height:1.85
}

@media(max-width:760px) {
    .open-form.products-index-page .product-item.featured.product-item--atomhub {
    grid-template-columns:1fr;
    gap:22px
}
.open-form.products-index-page .product-item--atomhub .product-visual {
    min-height:0
}

}

.open-form .home-release .release-signal-body h2 {
    max-width:none;
    overflow-wrap:break-word
}

/* Year rails and cover rows share a deliberate inset below the divider. */
.open-form .research-areas .year-section {
    padding-top:30px;
    margin-bottom:52px;
    align-items:start
}

.open-form .research-areas .year-header {
    margin:0;
    padding:0;
    gap:6px
}

.open-form .research-areas .pub-list {
    margin:0;
    padding:0
}

/* Product identity family: same visual weight, hand-painted marks, clear types. */
.open-form.products-index-page .products-showcase {
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:28px
}

.open-form.products-index-page .product-item.featured {
    grid-column:span 2!important;
    display:flex
}

.open-form.products-index-page .product-item--link.featured,.open-form.products-index-page .product-item--table.featured {
    grid-column:span 3!important
}

.open-form.products-index-page .product-visual {
    height:220px;
    min-height:0;
    padding:0
}

.open-form.products-index-page .product-item.featured .product-visual img,.open-form.products-index-page .product-item.featured:hover .product-visual img {
    width:100%;
    height:100%;
    max-width:none;
    max-height:none;
    object-fit:cover;
    transform:none;
    border-radius:0;
    background:none;
    padding:0
}

.open-form.products-index-page .product-info h3 {
    font-size:25px
}

.code-workflow {
    max-width:1152px;
    margin:30px auto 40px;
    padding:28px;
    border-radius:6px;
    border:1px solid var(--border)
}

.code-workflow-bar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:0 0 18px;
    font-size:13px
}

.code-workflow-bar>span {
    font-size:11px;
    color:var(--text-muted)
}

.code-workflow-body {
    display:grid;
    grid-template-columns:1fr 1fr;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:6px;
    overflow:hidden
}

.code-task,.code-review {
    padding:30px;
    min-width:0
}
.code-review {
    border-left:1px solid var(--border)
}

.code-task>p {
    font-size:20px;
    line-height:1.7;
    color:var(--text)
}

.code-progress {
    border-top:1px solid var(--border);
    padding-top:20px;
    margin-top:25px;
    font-size:12px;
    color:var(--text-muted)
}

.code-review>span {
    font-size:12px;
    color:var(--text-muted)
}

.code-review pre {
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    font:14px/2 ui-monospace,SFMono-Regular,Consolas,monospace;
    margin:22px 0
}

.code-remove {
    color:var(--text-subtle);
    text-decoration:line-through
}
.code-add {
    color:var(--brand)
}

.code-review>p,.code-workflow figcaption {
    font-size:12px;
    line-height:1.8;
    color:var(--text-muted)
}
.code-workflow figcaption {
    margin-top:16px
}

.code-steps {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:26px;
    list-style:none;
    padding:0;
    margin-top:30px
}

.code-steps li {
    border-top:1px solid var(--border);
    padding-top:22px
}
.step-index {
    font:12px ui-monospace,monospace;
    color:var(--brand)
}

.code-steps h3 {
    font-size:23px;
    margin:18px 0 12px
}
.code-steps p {
    font-size:15px;
    color:var(--text-muted)
}

@media(max-width:1000px) {
    .open-form.products-index-page .products-showcase {
    grid-template-columns:repeat(2,minmax(0,1fr))
}
.open-form.products-index-page .product-item.featured {
    grid-column:auto!important
}
.open-form.products-index-page .product-item--table.featured {
    grid-column:1/-1!important
}
.code-steps {
    grid-template-columns:1fr 1fr
}

}

@media(max-width:760px) {
    .open-form .research-areas .year-section {
    padding-top:24px;
    gap:22px
}
.open-form.products-index-page .products-showcase {
    grid-template-columns:1fr
}
.open-form.products-index-page .product-item.featured {
    grid-column:auto!important
}
.code-workflow {
    padding:16px
}
.code-workflow-body {
    grid-template-columns:1fr
}
.code-review {
    border-left:0;
    border-top:1px solid var(--border)
}
.code-task,.code-review {
    padding:22px
}
.code-steps {
    grid-template-columns:1fr;
    gap:25px
}
.code-task>p {
    font-size:18px
}

}


/* ======================================================================
   Open Form · polish — September 2026
   Slightly more brand presence, one footer, news/contact brought into the
   same rhythm, dark-mode and narrow-nav fixes, hand-drawn figure kit.
   ====================================================================== */
body.open-form {
    --sketch-paper:#f8f5ee;
    --sketch-ink:#1b2130;
    --sketch-accent:#d4552e;
    --sketch-hl:#ffe27a;
    --brand-line:color-mix(in srgb, var(--brand) 22%, transparent)
}
[data-theme=dark] body.open-form {
    --sketch-paper:#121927;
    --sketch-ink:#e8edf8;
    --sketch-accent:#f2906c;
    --sketch-hl:#8a7a2a
}

/* Navigation: the active item carries a brand underline. */
.open-form .nav-menu a {
    position:relative;
    padding:6px 2px;
    letter-spacing:0
}
.open-form .nav-menu a::after {
    content:'';
    position:absolute;
    left:0;
    right:0;
    bottom:-3px;
    height:2px;
    background:var(--brand);
    transform:scaleX(0);
    transform-origin:left;
    transition:transform .2s ease
}
.open-form .nav-menu a.active::after {
    transform:scaleX(1)
}
.open-form .nav-menu a:hover {
    color:var(--text)
}

/* Heroes: a soft brand bloom behind the top-right corner, no grid stamp. */
.open-form .hero,.open-form .section-hero {
    position:relative;
    overflow:hidden
}
.open-form .hero::before,.open-form .section-hero::before {
    content:'';
    position:absolute;
    inset:auto;
    top:-180px;
    right:-140px;
    width:640px;
    height:640px;
    border:0;
    border-radius:50%;
    background:radial-gradient(closest-side, color-mix(in srgb, var(--brand) 12%, transparent), transparent 72%);
    opacity:1;
    transform:none;
    animation:none;
    box-shadow:none;
    -webkit-mask:none;
    mask:none;
    pointer-events:none;
    z-index:0
}
.open-form .hero::after,.open-form.products-index-page .section-hero::after,.open-form.research-index-page .section-hero::after {
    display:none
}
.open-form .hero>.container,.open-form .section-hero>.container {
    position:relative;
    z-index:1
}
.open-form .section-hero-meta {
    margin-top:14px;
    font-size:13px
}

/* Section titles share the kicker's brand dash. */
.open-form .section-header .section-title::before,.open-form .about h2::before {
    content:'';
    display:inline-block;
    width:26px;
    height:2px;
    margin:0 14px 0 0;
    background:var(--brand);
    vertical-align:middle;
    position:relative;
    top:-4px
}
.open-form .section-header::after {
    background:var(--border)
}
.open-form .section-more {
    color:var(--brand-strong);
    font-weight:600;
    font-size:13px
}

/* Buttons and chips. */
.open-form .btn-secondary {
    border-color:var(--border-strong);
    color:var(--text)
}
.open-form .btn-secondary:hover {
    border-color:var(--brand);
    color:var(--brand)
}
.open-form .tag {
    background:var(--brand-soft);
    color:var(--brand-strong);
    border:0;
    padding:3px 9px;
    font-size:11px;
    font-weight:600;
    letter-spacing:.02em
}
.open-form .card-tags {
    gap:6px;
    margin-top:14px
}

/* Home: release row breathes; stats and version read in brand. */
.open-form .home-release .release-signal {
    grid-template-columns:190px 1fr 330px;
    gap:32px
}
.open-form .home-release .release-signal-meta {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:4px
}
.open-form .home-release .release-signal-head::before,.open-form .home-release .release-version::before {
    display:none
}
.open-form .home-release .release-signal-stat span {
    font-size:12px;
    white-space:nowrap
}
.open-form .home-release .release-signal-stat strong,.open-form .product-item .stat-value {
    color:var(--brand)
}
.open-form .release-version {
    color:var(--brand)
}
.open-form .release-status {
    border:0;
    margin:12px 0 0;
    padding:5px 11px 5px 9px;
    border-radius:999px;
    background:var(--brand-soft);
    color:var(--brand-strong);
    letter-spacing:.06em
}
.open-form .release-status>span {
    box-shadow:none
}

.open-form .subpage-spotlight:hover {
    transform:none;
    box-shadow:none
}
.open-form .spotlight-evidence {
    background:transparent;
    border-left:1px solid var(--brand-line)
}
.open-form .spotlight-evidence>span+span {
    border-left-color:var(--brand-line)
}
.open-form .spotlight-evidence strong {
    color:var(--brand)
}
.open-form .upgrade-cta-inner {
    border-color:var(--brand-line)
}

/* Product directory: brand index numerals; the wide utility card lies flat. */
.open-form.products-index-page .product-badge::before {
    color:var(--brand)
}
.open-form.products-index-page .product-item--table.featured {
    grid-column:1/-1!important;
    flex-direction:row;
    align-items:center;
    gap:40px
}
.open-form.products-index-page .product-item--table .product-visual {
    flex:0 0 320px;
    width:320px;
    height:200px;
    margin:0
}
.open-form.products-index-page .product-item--table .product-info {
    flex:1;
    min-width:0
}
.open-form.products-index-page .product-item--table .product-description {
    max-width:640px
}
.open-form.products-index-page .product-item--table .product-buttons {
    margin-top:0;
    padding-top:14px
}

/* Product pages close on one solid brand moment. */
.open-form .product-cta {
    padding:46px 36px;
    border-radius:6px;
    background:var(--brand);
    color:var(--brand-contrast)
}
.open-form .product-cta h2,.open-form .product-cta p {
    color:inherit
}
.open-form .product-cta p {
    opacity:.86
}
.open-form .product-cta .btn-primary {
    background:var(--brand-contrast);
    color:var(--brand)
}
.open-form .product-cta .btn-primary:hover {
    background:color-mix(in srgb, var(--brand-contrast) 90%, var(--brand))
}

/* Home: about the lab, as a two-column band between hairlines. */
.open-form .about {
    padding:72px 0;
    border:0;
    border-block:1px solid var(--border);
    background:transparent
}
.open-form .about .container {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);
    gap:48px;
    align-items:start
}
.open-form .about h2 {
    margin:0;
    text-align:left;
    font-size:34px;
    font-weight:550;
    line-height:1.3
}
.open-form .about p {
    margin:0;
    max-width:620px;
    text-align:left;
    font-size:16px;
    line-height:1.85
}
.open-form .about-links {
    display:flex;
    flex-wrap:wrap;
    gap:10px 26px;
    margin-top:22px
}
.open-form .about-links a {
    color:var(--brand-strong);
    font-size:14px;
    font-weight:600;
    text-decoration:none
}
.open-form .about-links a:hover {
    text-decoration:underline
}

/* Footer: same canvas, the SVG lockup, three quiet columns. */
.open-form .footer {
    margin:0;
    padding:60px 0 28px;
    background:var(--canvas);
    border-top:1px solid var(--border);
    color:var(--text-muted)
}
.open-form .footer-content {
    grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
    gap:48px;
    margin-bottom:40px
}
.open-form .footer-lockup {
    display:block;
    width:210px
}
.open-form .footer-lockup img {
    display:block;
    width:100%;
    height:auto
}
.open-form .footer-lockup .footer-logo-dark {
    display:none
}
[data-theme=dark] .open-form .footer-lockup .footer-logo-light {
    display:none
}
[data-theme=dark] .open-form .footer-lockup .footer-logo-dark {
    display:block
}
.open-form .footer-tagline {
    max-width:380px;
    margin-top:16px;
    font-size:14px;
    line-height:1.8
}
.open-form .footer-links {
    grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);
    gap:32px
}
.open-form .footer-column h4 {
    margin-bottom:14px;
    color:var(--text-subtle);
    font-size:11px;
    font-weight:600;
    letter-spacing:.08em;
    text-transform:uppercase
}
.open-form .footer-column li {
    margin-bottom:10px;
    font-size:14px;
    line-height:1.7
}
.open-form .footer-column a {
    font-size:14px
}
.open-form .footer-column a:hover {
    color:var(--brand)
}
.open-form .footer-bottom {
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:8px 20px;
    padding-top:22px;
    text-align:left;
    font-size:12px
}
.open-form .footer-bottom p {
    margin:0
}

/* News index: pinned story in a hairline frame, timeline on the canvas. */
.open-form .news-page-body {
    padding:10px 24px 70px;
    background:var(--canvas)
}
.open-form .news-pinned {
    margin-bottom:56px;
    padding:36px 40px;
    background:transparent;
    box-shadow:none
}
.open-form .news-pinned-label {
    background:var(--brand);
    color:var(--brand-contrast)
}
.open-form .news-pinned-label::before {
    background:var(--brand-contrast)
}
.open-form .news-pinned .news-badge {
    color:var(--brand-strong);
    border-color:var(--brand-line)
}
.open-form .news-pinned-stats {
    gap:12px 36px;
    margin:22px 0 26px
}
.open-form .news-pinned-stats>span {
    display:flex;
    flex-direction:column;
    color:var(--text-subtle);
    font-size:12px
}
.open-form .news-pinned-stats>span+span::before {
    display:none
}
.open-form .news-pinned-stats strong {
    margin:0 0 4px;
    font-size:28px;
    letter-spacing:-.02em;
    line-height:1.2
}
.open-form .news-pinned-cta {
    font-size:14px
}
.open-form .news-year-header {
    margin:48px 0 6px;
    padding-bottom:14px;
    border-bottom:1px solid var(--border)
}
.open-form .news-year-label,.open-form .year-label {
    color:var(--brand)
}
.open-form .news-timeline-row {
    border-radius:0
}
.open-form .news-timeline-row:hover {
    background:transparent
}
.open-form .news-timeline-date {
    color:var(--text-subtle);
    font-size:13px
}
.open-form .news-badge {
    font-size:11px;
    font-weight:600
}
.open-form .news-timeline-title {
    font-weight:600
}

/* Contact: cards on the canvas, split by the grid's 1px hairline gaps;
   company facts as a ruled list. */
.open-form .contact-container {
    padding:20px 0 70px;
    background:var(--canvas)
}
.open-form .contact-card,.open-form .contact-card:hover {
    transform:none;
    background:var(--canvas);
    border-color:transparent
}
.open-form .contact-email {
    padding:0;
    border:0;
    color:var(--brand-strong);
    font-size:15px;
    font-weight:600
}
.open-form .contact-email::before {
    display:none
}
.open-form .contact-email:hover {
    color:var(--brand);
    text-decoration:underline;
    transform:none
}
.open-form .company-info {
    margin-top:60px;
    padding:44px 0 0;
    border:0;
    border-top:1px solid var(--border);
    border-radius:0;
    background:transparent;
    text-align:left
}
.open-form .company-info h3 {
    margin-bottom:10px;
    font-size:28px;
    font-weight:550
}
.open-form .company-info>p {
    max-width:640px;
    margin:0;
    color:var(--text-muted);
    line-height:1.85
}
.open-form .info-grid {
    margin-top:32px;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:28px
}
.open-form .info-item {
    padding:18px 0 0;
    border-top:2px solid var(--brand);
    border-radius:0;
    background:transparent
}
.open-form .info-label {
    margin-bottom:8px;
    color:var(--text-subtle);
    font-size:11px;
    font-weight:600;
    letter-spacing:.08em;
    text-transform:uppercase
}
.open-form .info-value {
    font-size:16px;
    line-height:1.6
}

/* Yanlan V3.0 upgrade page: same brand bloom as every other page top, CTA as a card. */
.open-form .upgrade-hero::before {
    z-index:0;
    top:-180px;
    right:-140px;
    width:640px;
    height:640px;
    border-radius:50%;
    opacity:1;
    background:radial-gradient(closest-side, color-mix(in srgb, var(--brand) 12%, transparent), transparent 72%);
    -webkit-mask:none;
    mask:none;
    pointer-events:none
}
.open-form .upgrade-hero-inner {
    position:relative;
    z-index:1
}
.open-form .upgrade-cta {
    margin:72px auto;
    padding:40px 36px;
    border-radius:6px
}
.open-form .upgrade-cta-inner {
    padding:0;
    border:0
}
[data-theme=dark] .open-form .product-cta p {
    opacity:.94
}
.open-form .product-logo-mark img,[data-theme=dark] .open-form .product-logo-mark img {
    opacity:1
}

/* Dark mode keeps the same painted marks; there is no separate dark art. */
[data-theme=dark] .open-form.products-index-page .product-art-light,[data-theme=dark] .open-form .product-logo-mark .product-mark-light {
    display:block
}
[data-theme=dark] .open-form.products-index-page .product-art-dark,[data-theme=dark] .open-form .product-logo-mark .product-mark-dark {
    display:none
}

/* Hand-drawn research figures: ink on paper, brand for the series that matters. */
.open-form .article-figure.is-sketch {
    padding:22px 24px 16px;
    border:0;
    background:var(--sketch-paper);
    color:var(--sketch-ink)
}
.open-form .article-figure.is-sketch svg {
    display:block;
    width:100%;
    height:auto;
    overflow:visible;
    font-family:var(--font-display)
}
.open-form .article-figure.is-sketch .article-figure-caption {
    margin-top:14px;
    color:var(--text-muted)
}
.sk-ink,.sk-ink-soft,.sk-brand,.sk-accent {
    fill:none;
    stroke-linecap:round;
    stroke-linejoin:round
}
.sk-ink {
    stroke:currentColor;
    stroke-width:1.8
}
.sk-ink-soft {
    stroke:currentColor;
    stroke-width:1.4;
    opacity:.42
}
.sk-brand {
    stroke:var(--brand);
    stroke-width:2.4
}
.sk-accent {
    stroke:var(--sketch-accent);
    stroke-width:2.2
}
.sk-dash {
    stroke-dasharray:5 5
}
.sk-brand-fill {
    fill:var(--brand);
    opacity:.16
}
.sk-brand-solid {
    fill:var(--brand)
}
.sk-accent-fill {
    fill:var(--sketch-accent);
    opacity:.18
}
.sk-accent-solid {
    fill:var(--sketch-accent)
}
.sk-paper {
    fill:var(--canvas)
}
.sk-hl {
    fill:var(--sketch-hl);
    opacity:.6
}
.sk-text,.sk-text-sm,.sk-text-b {
    fill:currentColor
}
.sk-text {
    font-size:13px
}
.sk-text-sm {
    font-size:11px;
    opacity:.7
}
.sk-text-b {
    font-size:13px;
    font-weight:600
}
.sk-text-brand {
    fill:var(--brand);
    font-size:13px;
    font-weight:600
}
.sk-text-accent {
    fill:var(--sketch-accent);
    font-size:13px;
    font-weight:600
}
.sk-text-brand-sm {
    fill:var(--brand);
    font-size:11.5px;
    font-weight:600
}
.sk-mono {
    fill:currentColor;
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size:11.5px
}

@media(max-width:760px) {
    .open-form .nav-menu {
    flex-wrap:wrap;
    justify-content:flex-start;
    gap:4px 18px
}
.open-form .nav-menu a {
    padding:4px 0
}
.open-form .hero::before,.open-form .section-hero::before {
    top:-260px;
    right:-260px
}
.open-form .home-release .release-signal {
    grid-template-columns:1fr;
    gap:18px
}
.open-form .home-release .release-signal-meta {
    flex-direction:row;
    flex-wrap:wrap;
    gap:6px 14px
}
.open-form .home-release .release-signal-stat span {
    white-space:normal
}
.open-form.products-index-page .product-item--table.featured {
    flex-direction:column;
    align-items:stretch;
    gap:0
}
.open-form.products-index-page .product-item--table .product-visual {
    flex:none;
    width:100%;
    height:200px;
    margin:0 0 22px
}
.open-form .about {
    padding:52px 0
}
.open-form .about .container {
    grid-template-columns:1fr;
    gap:22px
}
.open-form .about h2 {
    font-size:28px
}
.open-form .footer {
    padding-top:44px
}
.open-form .footer-content {
    grid-template-columns:1fr;
    gap:30px
}
.open-form .footer-links {
    grid-template-columns:1fr 1fr;
    gap:24px
}
.open-form .footer-bottom {
    flex-direction:column
}
.open-form .news-pinned {
    padding:24px
}
.open-form .news-pinned-stats strong {
    font-size:24px
}
.open-form .info-grid {
    grid-template-columns:1fr;
    gap:20px
}
.open-form .article-figure.is-sketch {
    padding:14px 12px 10px;
    overflow-x:auto
}
.open-form .article-figure.is-sketch svg {
    min-width:600px
}

}

/* Sketch boxes: paper-filled shapes with an ink, brand or accent outline. */
.sk-box,.sk-box-brand,.sk-box-accent {
    stroke-linejoin:round;
    stroke-linecap:round
}
.sk-box {
    fill:var(--canvas);
    stroke:currentColor;
    stroke-width:1.8
}
.sk-box-brand {
    fill:var(--brand-soft);
    stroke:var(--brand);
    stroke-width:2
}
.sk-box-accent {
    fill:color-mix(in srgb, var(--sketch-accent) 14%, var(--canvas));
    stroke:var(--sketch-accent);
    stroke-width:2
}
.sk-dot {
    fill:var(--canvas);
    stroke:currentColor;
    stroke-width:1.8
}
.sk-grid {
    stroke:currentColor;
    stroke-width:1;
    opacity:.14
}

/* Final visual pass: consistent page edges, compact evidence and readable media. */
.open-form {
    --anchor-offset: 132px;
}
.open-form main [id],
.open-form section[id],
.open-form .article-section h2 {
    scroll-margin-top: var(--anchor-offset);
}
.open-form .home-release .release-signal {
    grid-template-columns: 160px minmax(0, 1fr) 280px;
    align-items: center;
    gap: 32px;
    padding-block: 30px;
}
.open-form .home-release .release-signal-body {
    min-height: 0;
}
.open-form .home-release .release-signal-head {
    padding: 0;
}
.open-form .home-release .release-signal-body > p {
    max-width: 48ch;
}
.open-form .home-release .release-signal-foot {
    width: 100%;
    max-width: none;
    gap: 18px;
}
.open-form .home-release .release-signal-stat strong {
    white-space: nowrap;
}
.open-form .home-release .release-signal-stat + .release-signal-stat {
    padding-left: 18px;
}
.open-form .news-page-body > .container {
    padding-inline: 0;
}
.open-form .spotlight-evidence {
    align-self: center;
    min-height: 0;
    padding-block: 14px;
}
/* (margin-inline:auto for .product-section lives in the main open-form
   block; re-declaring it here was a duplicate and was removed.) */
.open-form .product-lede,
.open-form .product-section > h2,
.open-form .product-section > p,
.open-form .product-section > .article-figure {
    max-width: 780px;
}
/* The base rule centres every measure-limited child inside the 1152px column,
   so a heading floated to x=250 above a capability grid that starts at x=64.
   Headings, prose and figures share the section's left gutter; only
   .product-lede keeps its deliberate centred editorial inset. */
.open-form .product-section > h2,
.open-form .product-section > p,
.open-form .product-section > ul,
.open-form .product-section > ol,
.open-form .product-section > .article-figure {
    margin-inline: 0 auto;
}
/* Feature rows (max-1080) and capability grids (max-960) were centred by
   their base rules, leaving three different left edges inside one section.
   Pin them to the same gutter the 780px text column uses. */
.open-form .product-section > .product-capabilities,
.open-form .product-section > .product-feature {
    margin-inline: 0 auto;
}
.open-form .product-lede {
    font-size: 18px;
    line-height: 1.9;
}
.open-form .product-section > p {
    font-size: 16px;
    line-height: 1.9;
}
.open-form .product-feature:first-child {
    margin-top: 0;
}
.open-form .product-feature:last-child {
    margin-bottom: 0;
}
.open-form .product-showcase figcaption {
    max-width: none;
    text-align: left;
    font-style: normal;
    font-size: 13px;
    margin-top: 16px;
}
.open-form .screenshot-link {
    border-radius: 5px;
}
.open-form .screenshot-link:hover img {
    border-color: var(--brand);
}
.open-form .product-stat .label {
    display: block;
    margin-top: 9px;
    line-height: 1.65;
}
.open-form .product-coolwei-code .code-steps,
.open-form .product-coolwei-code .product-capabilities {
    max-width: none;
}
.open-form .product-coolwei-code .code-steps {
    padding-left: 0;
}
.open-form .product-capability {
    border-top: 1px solid var(--border);
    padding-top: 22px;
}
.open-form .product-capability h3 {
    font-size: 20px;
    line-height: 1.45;
    margin-bottom: 12px;
}
.open-form .product-cta > p {
    max-width: 720px;
    margin-inline: auto;
}
.open-form .article-contents {
    max-height: calc(100dvh - 148px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding-bottom: 4px;
}
.open-form .article-figure-stat.is-reference .num {
    font-size: clamp(20px, 2.4vw, 30px);
    letter-spacing: -.04em;
    white-space: nowrap;
}
@media (max-width: 1000px) {
    .open-form .home-release .release-signal {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 22px 30px;
        align-items: start;
    }
    .open-form .home-release .release-signal-foot {
        grid-column: 2;
        max-width: 300px;
    }
}
@media (max-width: 760px) {
    .open-form {
        --anchor-offset: 154px;
    }
    .open-form .home-release .release-signal {
        grid-template-columns: minmax(0, 1fr);
        padding-block: 24px;
        gap: 22px;
    }
    .open-form .home-release .release-signal-foot {
        grid-column: auto;
    }
    .open-form .news-page-body {
        padding-inline: 20px;
    }
    .open-form .product-lede {
        font-size: 17px;
    }
    .open-form .product-section > p {
        font-size: 15px;
    }
    .open-form .product-showcase figcaption {
        font-size: 12px;
    }
    .open-form .article-contents {
        max-height: none;
        overflow: visible;
    }
}
@media (max-width: 760px) {
    .open-form .news-pinned-stats {
        gap: 14px 20px;
    }
    .open-form .news-pinned-stats > span,
    .open-form .news-pinned-stats > span + span {
        padding: 14px 0 0;
        border-right: 0;
    }
}

/* Section heroes share the home sculpture frame and vertical rhythm. */
.open-form .section-hero-layout {
    gap: 60px;
}
.open-form .section-art-hero .section-hero-title {
    text-wrap: balance;
    font-size: clamp(34px, 3.4vw, 46px);
    line-height: 1.35;
    margin-bottom: 24px;
}
.open-form .section-art-hero .section-hero-lede {
    font-size: 16px;
}
.section-hero-art {
    margin: 0;
}
.open-form .product-demo {
    padding: 22px;
    background: transparent;
    border: 1px solid var(--border);
}
.product-demo-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
    padding-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
}
.product-demo-heading > span:last-child {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}
.product-demo video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #0d1420;
}
.product-demo video:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
}
.open-form .product-feature-image.is-portrait {
    width: min(100%, 380px);
    justify-self: center;
    background: transparent;
    border: 1px solid var(--border);
}
@media (max-width: 1000px) {
    .open-form .section-hero-layout {
        gap: 35px;
    }
}
@media (max-width: 760px) {
    .open-form .section-hero-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }
    .open-form .section-art-hero .section-hero-title {
        font-size: 36px;
    }
    .open-form .product-demo {
        padding: 14px;
    }
    .product-demo-heading {
        padding-bottom: 12px;
    }
}


/* Product directory: compact identity plates and one continuous reading column. */
.open-form.products-index-page .product-directory .products-showcase {
    display: block;
    border-top: 1px solid var(--border);
}
.open-form.products-index-page .product-directory .product-item.featured {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    align-items: center;
    gap: 36px;
    padding: 32px 0;
    margin: 0;
    min-height: 0;
    transform: none;
}
.open-form.products-index-page .product-directory .product-visual {
    position: relative;
    inset: auto;
    width: 264px;
    height: 176px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    overflow: hidden;
}
.open-form.products-index-page .product-directory .product-visual::before {
    display: none;
}
.open-form.products-index-page .product-directory .product-item.featured .product-visual img,
.open-form.products-index-page .product-directory .product-item.featured:hover .product-visual img {
    position: static;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    border-radius: 0;
    object-fit: cover;
    transform: none;
    background: transparent;
}
.open-form.products-index-page .product-directory .product-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 168px;
    column-gap: 32px;
    align-content: center;
    width: 100%;
    max-width: none;
    height: auto;
    min-width: 0;
}
.open-form.products-index-page .product-directory .product-info > :not(.product-buttons) {
    grid-column: 1;
}
.open-form.products-index-page .product-directory .product-badge {
    margin-bottom: 10px;
    line-height: 1.6;
}
.open-form.products-index-page .product-directory .product-info h3 {
    margin: 0 0 12px;
    font-size: 27px;
    max-width: none;
}
.open-form.products-index-page .product-directory .product-description {
    margin: 0 0 16px;
    max-width: 66ch;
    font-size: 15px;
    line-height: 1.85;
}
.open-form.products-index-page .product-directory .product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0;
}
.open-form.products-index-page .product-directory .product-features .feature {
    display: flex;
    min-width: 0;
    font-size: 12px;
    line-height: 1.65;
}
.open-form.products-index-page .product-directory .product-buttons {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0 8px 26px;
    margin: 0;
    border-left: 1px solid var(--border);
}
@media (max-width: 1050px) {
    .open-form.products-index-page .product-directory .product-item.featured {
        grid-template-columns: 228px minmax(0, 1fr);
        gap: 28px;
    }
    .open-form.products-index-page .product-directory .product-visual {
        width: 228px;
        height: 152px;
    }
    .open-form.products-index-page .product-directory .product-info {
        grid-template-columns: minmax(0, 1fr);
    }
    .open-form.products-index-page .product-directory .product-buttons {
        grid-column: 1;
        grid-row: auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px 24px;
        padding: 14px 0 0;
        border: 0;
    }
}
@media (max-width: 600px) {
    .open-form.products-index-page .product-directory .product-item.featured {
        grid-template-columns: 120px minmax(0, 1fr);
        align-items: start;
        gap: 0 18px;
        padding-block: 26px;
    }
    .open-form.products-index-page .product-directory .product-visual {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 120px;
        height: 80px;
        border-radius: 4px;
    }
    .open-form.products-index-page .product-directory .product-info {
        display: contents;
    }
    .open-form.products-index-page .product-directory .product-info > .product-badge,
    .open-form.products-index-page .product-directory .product-item .product-info > h3 {
        grid-column: 2;
    }
    .open-form.products-index-page .product-directory .product-info > .product-badge {
        margin: 7px 0 6px;
        font-size: 10px;
    }
    .open-form.products-index-page .product-directory .product-info h3 {
        font-size: 23px;
        margin: 0 0 20px;
    }
    .open-form.products-index-page .product-directory .product-info > .product-description,
    .open-form.products-index-page .product-directory .product-info > .product-features,
    .open-form.products-index-page .product-directory .product-info > .product-buttons {
        grid-column: 1 / -1;
    }
    .open-form.products-index-page .product-directory .product-description {
        margin-top: 16px;
    }
}


/* YanAn */
.open-form .product-yanan .product-capabilities {
    max-width: none;
}
.product-yanan .yanan-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 600px) {
    .product-yanan .yanan-capabilities {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* Product name + real identity mark; the larger illustration remains expressive. */
.open-form .product-name-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
}
.open-form .product-name-lockup > span {
    min-width: 0;
}
.open-form .product-name-lockup > .product-formal-mark {
    position: static;
    display: block;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
    opacity: 1;
    filter: none;
    transform: none;
}
.open-form h1.product-name-lockup > .product-formal-mark {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
}
/* Secondary CTA link next to the primary button, so the article template does
   not need an inline margin on it. */
.open-form .article-cta .btn-primary + .article-link {
    margin-left: 1rem;
}
@media (max-width: 600px) {
    .open-form .product-name-lockup {
        gap: 9px;
    }
    .open-form .product-name-lockup > .product-formal-mark {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }
    .open-form h1.product-name-lockup > .product-formal-mark {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }
}

/* ------------------------------------------------------------------
   Open Form · alignment + grid corrections (controller)
   ------------------------------------------------------------------ */

/* The lede was the last element still centred on its own inside the
   section column: headings, prose, figures and card grids all sit on the
   1152px left gutter, so an inset lede read as a misalignment rather than
   as an editorial device. It now shares that gutter. Unlike section prose
   the lede is a direct child of .product-page, so it has to reproduce the
   gutter itself: half the slack between the page's content box and the
   1152px column, and zero once the viewport is narrower than the column. */
.open-form .product-lede {
    margin-inline: max(0px, calc((100% - 1152px) / 2)) auto;
}

/* The product grid is six columns with featured cards spanning two, which
   fits three per row. Adding YanAn made four featured cards, stranding the
   fourth alone in row two beside two empty columns. Spanning three gives a
   2x2 block; the full-width table card keeps its own 1/-1 rule. */
.open-form.products-index-page .product-item.featured:not(.product-item--table):not(.product-item--link) {
    grid-column: span 3 !important;
}

/* The YanAn engine rows put each engine's logo beside its description. The base
   .product-feature is capped at 1080px and centred, which would float the pair
   off the section's left gutter; on this page it runs the full column so the
   rows line up with everything above and below them. */
.open-form .product-yanan .product-feature {
    max-width: none;
    margin-inline: 0;
}

/* The portrait keeps its natural ratio and meets the row's outside edge. */
.open-form .product-yanlin .product-feature-image.is-portrait {
    justify-self: end;
}
@media (max-width: 900px) {
    .open-form .product-yanlin .product-feature-image.is-portrait {
        justify-self: start;
    }
}

/* Product layout: one page grid from the hero through the closing CTA. */
.open-form .product-page {
    --product-width: 1080px;
    padding: 144px 32px 72px;
}
.open-form .product-page > :is(.product-back-row, .product-hero, .product-showcase, .product-stats, .product-lede, .product-section, .product-upgrade-entry, .product-cta) {
    width: 100%;
    max-width: var(--product-width);
    margin-inline: auto;
}
.open-form .product-back-row { margin-bottom: 32px; }
.open-form .product-page > .product-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 56px;
    margin-bottom: 48px;
    align-items: center;
}
.open-form .product-hero-text { padding: 0; }
.open-form .product-subtitle { margin-bottom: 26px; }
.open-form .product-page > .product-showcase { margin-block: 40px; }
.open-form .product-page .product-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-block: 32px;
    padding-block: 24px;
}
.open-form .product-page > .product-lede {
    font-size: 18px;
    line-height: 1.85;
    margin-block: 40px 56px;
    padding: 24px 0;
    border-block: 1px solid var(--border);
}
.open-form .product-page > .product-section {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
    gap: 24px 48px;
    margin-block: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.open-form .product-section > * {
    grid-column: 1 / -1;
    min-width: 0;
}
.open-form .product-page .product-section > :is(h2, p, ul, ol, .article-figure) {
    width: 100%;
    max-width: none;
    margin: 0;
}
.open-form .product-page .product-section > h2 {
    grid-column: 1;
    font-size: 28px;
    line-height: 1.4;
    text-wrap: balance;
}
.open-form .product-page .product-section > h2 + p {
    grid-column: 2;
}
.open-form .product-page .product-section > p {
    font-size: 16px;
    line-height: 1.85;
}
.open-form .product-page .product-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: none;
    gap: 40px;
    margin: 16px 0;
}
.open-form .product-page .product-feature-text h3 {
    font-size: 25px;
    line-height: 1.4;
    margin-bottom: 16px;
}
.open-form .product-page .product-feature-image { padding: 16px; }
.open-form .product-page .product-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    gap: 28px 40px;
    margin: 0;
}
.open-form .product-page .code-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 40px;
}
.open-form .product-page .product-section > .article-figure {
    padding: 20px;
}
.open-form .product-page .product-section > .article-figure > svg {
    display: block;
    max-width: 840px;
    margin-inline: auto;
}
.open-form .product-yanan .article-figure > img {
    max-height: 440px;
    object-fit: contain;
    background: var(--surface-muted);
}
.open-form .product-page > .product-cta {
    margin-top: 64px;
    padding: 40px;
    text-align: left;
}
.open-form .product-page .product-cta > p {
    margin-left: 0;
    font-size: 16px;
    line-height: 1.8;
}
.open-form .product-page .product-cta h2 { font-size: 28px; }
/* Engine rows. The two engines read as one unit: each row is a ledger entry
   opened by a hairline, the same device .product-capability uses, and each row
   repeats the section's own column split, so the logo plate occupies the h2
   column and the copy starts on the same x as the section lede above it. The
   plate's top edge and the h3 share the row's top. */
.open-form .product-yanan .product-engine {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
    gap: 48px;
    align-items: start;
    border-top: 1px solid var(--border);
    margin: 14px 0 0;
    padding-top: 30px;
}
/* The lockups are dark-navy wordmarks with knocked-out counters, drawn for a
   light ground, so the plate holds one fixed light value in both themes instead
   of following --surface. Its hairline is tinted from the plate rather than from
   --border, so the edge still reads once the page around it goes dark. */
.open-form .product-yanan .product-engine-logo {
    display: grid;
    place-items: center;
    padding: 30px 34px;
    background: #f2f3ef;
    border: 1px solid rgba(10, 14, 22, .09);
    border-radius: var(--radius-card);
}
[data-theme="dark"] .open-form .product-yanan .product-engine-logo {
    background: #e5e8e0;
    border-color: rgba(10, 14, 22, .22);
}
.open-form .product-yanan .product-engine-logo img {
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 0;
    background: none;
    filter: none;
}
/* Stacked, the plate keeps a mark-sized measure instead of running the full
   column width; the shared .product-feature rule below supplies the 1-up grid. */
@media (max-width: 760px) {
    .open-form .product-yanan .product-engine { padding-top: 26px; }
    .open-form .product-yanan .product-engine-logo {
        justify-self: start;
        width: min(240px, 100%);
        padding: 18px 20px;
    }
}
/* The release brief uses the same outer measure as its parent product. */
.open-form :is(.upgrade-hero-inner, .upgrade-section-inner, .upgrade-metric-rail, .upgrade-cta) {
    max-width: 1080px;
}
.open-form .upgrade-section { padding-block: 64px; }
@media (max-width: 900px) {
    .open-form .product-page > .product-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
        gap: 32px;
    }
    .open-form .product-page > .product-section { column-gap: 28px; }
    .open-form .product-page .product-feature { gap: 28px; }
    .open-form .product-page .product-feature.is-flipped .product-feature-image { order: 2; }
}
@media (max-width: 760px) {
    .open-form .product-page { padding: 148px 20px 48px; }
    .open-form .product-back-row { margin-bottom: 24px; }
    .open-form .product-page > .product-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        margin-bottom: 32px;
    }
    .open-form .product-page > .product-lede {
        font-size: 16px;
        margin-block: 32px 40px;
        padding-block: 20px;
    }
    .open-form .product-page > .product-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin-block: 40px;
        padding-top: 24px;
    }
    .open-form .product-page .product-section > h2,
    .open-form .product-page .product-section > h2 + p { grid-column: 1; }
    .open-form .product-page .product-section > h2 { font-size: 26px; }
    .open-form .product-page .product-feature,
    .open-form .product-page .product-feature.is-flipped,
    .open-form .product-page .product-capabilities,
    .open-form .product-page .code-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .open-form .product-page .product-feature.is-flipped .product-feature-image { order: 0; }
    .open-form .product-page .product-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .open-form .product-page .product-section > .article-figure { padding: 12px; }
    .open-form .product-page > .product-cta { margin-top: 40px; padding: 24px; }
    .open-form .product-page .product-cta h2 { font-size: 25px; }
}

/* YanAn Red Team page: reuse the safety-research series' step diagram and
   conclusion callout, held to the prose column instead of the full 1080px
   container; both stack to one column at phone width. */
.open-form .product-page.product-redteam .product-section > .sr-diagram,
.open-form .product-page.product-redteam .product-section > .article-callout {
    grid-column: 2;
}
@media (max-width: 760px) {
    .open-form .product-page.product-redteam .product-section > .sr-diagram,
    .open-form .product-page.product-redteam .product-section > .article-callout {
        grid-column: 1;
    }
}

/* ------------------------------------------------------------------
   Coolwei Code · full-frame app screenshots (controller)
   Each screenshot ships as a light/dark pair. The pair is switched by the
   site's own data-theme attribute, so it follows the navbar toggle, not
   only the OS preference. Dark captures are already dark, so the generic
   dark-mode dimming filter on product screenshots is lifted for them.
   ------------------------------------------------------------------ */
.open-form img.shot-dark { display: none; }
[data-theme="dark"] .open-form img.shot-light { display: none; }
[data-theme="dark"] .open-form img.shot-dark { display: block; filter: none; }

/* Day / night pair shown together, one frame per column. */
.open-form .product-shot-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.open-form .product-shot-pair figure { margin: 0; }
.open-form .product-shot-pair img { display: block; width: 100%; height: auto; }
.open-form .product-shot-pair figcaption { font-size: 12px; color: var(--text-muted); margin-top: 10px; }
@media (max-width: 760px) {
    .open-form .product-shot-pair { grid-template-columns: minmax(0, 1fr); }
}

/* News cards share text rows, so wrapping titles never stagger the copy or CTAs. */
.open-form .news-featured .news-pinned-cta { margin-top: auto; padding-top: 16px; }
.open-form .news-release-evidence { margin-top: 32px; }
.open-form .news-release-evidence > .card-meta { color: var(--text-subtle); font-size: 13px; }
.open-form .news-release-evidence .news-pinned-stats { margin-top: 12px; }
@media (min-width: 761px) {
    .open-form .news-featured { row-gap: 0; }
    .open-form .news-featured .research-card h3 { min-height: 2.8em; line-height: 1.4; }
    @supports (grid-template-rows: subgrid) {
        .open-form .news-featured > .research-card {
            display: grid;
            grid-row: span 5;
            grid-template-rows: subgrid;
            row-gap: 0;
        }
        .open-form .news-featured .card-content { display: contents; }
        .open-form .news-featured .card-meta { margin-top: 22px; }
        .open-form .news-featured .research-card h3 { min-height: 0; }
        .open-form .news-featured .news-pinned-cta { align-self: end; }
    }
}

/* A small, local state snapshot of subtitle review, embedded in the article. */
.gec-demo { --gec-contour: #ee2525; --gec-correct: #287a44; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); color: var(--text); font-size: 12px; line-height: 1.5; }
[data-theme="dark"] .gec-demo { --gec-correct: #91d7a4; }
.gec-demo button { font: inherit; cursor: pointer; color: inherit; background: transparent; border: 1px solid var(--border); border-radius: 4px; padding: 5px 10px; }
.gec-demo button:hover { background: var(--brand-soft); }
.gec-demo button:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.gec-demo [hidden] { display: none !important; }
.gec-demo-top, .gec-demo-summary, .gec-demo-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.gec-demo-top > div { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.gec-demo-mark { color: var(--brand); font-size: 22px; vertical-align: middle; }
.gec-demo-breadcrumb { color: var(--text-subtle); font-size: 10px; border-left: 1px solid var(--border); padding-left: 12px; }
.gec-demo-workspace { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
.gec-demo-sidebar { border-right: 1px solid var(--border); padding-top: 10px; font-size: 10px; }
.gec-demo-sidebar > span { display: flex; align-items: center; gap: 7px; padding: 11px 9px; }
.gec-demo-sidebar > small { display: block; padding: 12px 9px 4px; color: var(--text-subtle); }
.gec-demo-nav-icon { color: var(--text-subtle); font-size: 14px; }
.gec-demo-sidebar .is-current { color: var(--brand); background: var(--brand-soft); box-shadow: inset 3px 0 var(--brand); font-weight: 600; }
.gec-demo-main { min-width: 0; padding: 12px; background: var(--surface-muted); }
.gec-demo-badge { padding: 3px 7px; border-radius: 4px; color: var(--brand); background: var(--brand-soft); font-size: 11px; }
.gec-demo-summary { background: var(--surface); color: var(--text-muted); font-size: 10px; flex-wrap: wrap; padding: 10px; gap: 8px 12px; border: 1px solid var(--border); border-radius: 5px; margin-bottom: 10px; }
.gec-demo-summary b { color: var(--text); font-size: 12px; }
.gec-demo-summary button { margin-left: auto; }
.gec-demo-columns { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border: 1px solid var(--border); border-radius: 5px; overflow: hidden; background: var(--surface); }
.gec-demo-source, .gec-demo-results { min-width: 0; }
.gec-demo-results { border-left: 1px solid var(--border); }
.gec-demo-image { margin: 12px; position: relative; }
.gec-demo-file { margin: 10px 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 10px; }
.gec-demo-file small { display: block; color: var(--text-subtle); }
.gec-demo-frame { position: relative; }
.gec-demo-contour { position: absolute; border: 2px solid var(--gec-contour); pointer-events: none; }
.gec-demo-frame-info { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--text-subtle); padding-top: 5px; }
.open-form .article-figure .gec-demo-image img { width: 100%; height: auto; display: block; margin: 0; border-radius: 4px; }
.gec-demo-image > span { display: block; padding: 5px 0 0; font-size: 11px; color: var(--text-subtle); }
.gec-demo-heading { min-height: 48px; font-size: 12px; font-weight: 600; }
.gec-demo-heading > span { color: var(--text-subtle); font-weight: 400; }
.gec-demo-transcript { max-height: 260px; overflow-y: auto; scrollbar-width: thin; }
.gec-demo .gec-demo-line { width: 100%; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; text-align: left; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 3px 8px; padding: 8px 10px; font-size: 11px; }
.gec-demo time { color: var(--brand); font-variant-numeric: tabular-nums; font-size: 11px; }
.gec-demo-line small { grid-column: 2; color: var(--text-subtle); font-size: 10px; }
.gec-demo-line[aria-pressed="true"], .gec-demo-suggestion.is-active { background: var(--brand-soft); box-shadow: inset 3px 0 var(--brand); }
.gec-demo-suggestion { border-bottom: 1px solid var(--border); }
.gec-demo .gec-demo-select { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: start; gap: 8px; width: 100%; min-height: 54px; border: 0; border-radius: 0; text-align: left; padding: 14px 12px; font-size: 13px; }
.gec-demo-select small { color: var(--text-muted); font-size: 11px; line-height: 24px; white-space: nowrap; }
.gec-demo-select > time { line-height: 24px; }
.gec-demo-number { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--border-strong); border-radius: 4px; font-size: 12px; color: var(--text-muted); }
.gec-demo-suggestion.is-active .gec-demo-number { color: var(--brand-contrast); background: var(--brand); border-color: var(--brand); }
.gec-demo-diff { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px; text-align: left; }
.gec-demo-diff > del, .gec-demo-diff > ins { display: inline-block; }
.gec-demo del { color: color-mix(in srgb, var(--logo-red) 65%, var(--text)); background: color-mix(in srgb, var(--logo-red) 8%, transparent); text-decoration: line-through; padding: 2px 4px; }
.gec-demo ins { color: var(--gec-correct); background: color-mix(in srgb, var(--gec-correct) 8%, transparent); text-decoration: none; padding: 2px 4px; }
.gec-demo-results { display: flex; flex-direction: column; }
.gec-demo-suggestions { max-height: 530px; overflow-y: auto; scrollbar-width: thin; }
.gec-demo-result-footer { font-size: 10px; padding: 10px 12px; border-top: 1px solid var(--border); margin-top: auto; color: var(--text-subtle); }
.gec-demo-detail { padding: 0 12px 16px; }
.gec-demo-detail > small { display: block; font-size: 10px; color: var(--text-subtle); margin-bottom: 10px; }
.open-form .gec-demo-detail p { font-size: 13px; line-height: 1.8; margin: 0 0 12px; color: var(--text-muted); }
.gec-demo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gec-demo-actions button { font-size: 12px; min-height: 32px; padding: 5px 12px; background: var(--surface); }
.gec-demo-actions [data-action="accepted"] { color: var(--brand-contrast); border-color: var(--brand); background: var(--brand); }
.gec-demo-actions [data-action="accepted"]:hover { background: var(--brand-strong); }
.gec-demo-hint { padding: 10px 16px; color: var(--text-subtle); font-size: 11px; border-top: 1px solid var(--border); }
.gec-demo-track-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-bottom: 1px solid var(--border); }
.gec-demo-track-tabs button { font-size: 11px; }
.gec-demo-track-tabs [aria-pressed="true"] { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.gec-demo-audio-track { padding: 8px; }
.open-form .gec-demo-audio-track p { font-size: 11px; line-height: 1.8; padding: 10px 4px; margin: 0; border-bottom: 1px solid var(--border); }
.gec-demo .gec-demo-audio-cue { width: 100%; color: var(--brand); padding: 12px 5px; font-size: 11px; }
.gec-demo-doc-heading { min-height: 48px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-bottom: 0; }
.gec-demo-doc-heading button { font-size: 11px; }
.gec-demo-doc-columns { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--border); background: var(--surface); }
.gec-demo-document.is-reviewing .gec-demo-doc-columns { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.gec-demo-editor { min-width: 0; }
.gec-demo-toolbar { min-height: 48px; padding: 8px 12px; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 15px; font-size: 12px; color: var(--text-muted); }
.gec-demo-toolbar > span:first-child { background: var(--surface-muted); padding: 2px 10px; }
.gec-demo-document-body { padding: 18px; height: 565px; overflow-y: auto; scrollbar-width: thin; }
.open-form .gec-demo-document-body p { margin: 0 0 18px; font-size: 14px; line-height: 2; color: var(--text); }
.open-form .gec-demo-document-body h3 { margin: 12px 0 20px; font-size: 23px; line-height: 1.5; letter-spacing: 0; }
.gec-demo .gec-demo-inline { display: inline; font: inherit; line-height: inherit; padding: 1px 2px; color: color-mix(in srgb, var(--gec-contour) 70%, var(--text)); border: 1px solid var(--gec-contour); border-radius: 3px; background: color-mix(in srgb, var(--gec-contour) 5%, transparent); text-align: left; }
.gec-demo .gec-demo-inline[aria-pressed="true"] { outline: 1px solid var(--gec-contour); outline-offset: 1px; }
.gec-demo .gec-demo-inline[data-status="accepted"] { color: var(--gec-correct); border-color: var(--gec-correct); outline-color: var(--gec-correct); }
.gec-demo .gec-demo-inline[data-status="ignored"] { color: var(--text-muted); border-color: var(--border-strong); outline-color: var(--border-strong); background: transparent; }
.gec-demo-publisher { font-size: 19px; font-weight: 600; margin-top: 12px; }
.gec-demo-publisher small { font-size: 10px; font-weight: 400; color: var(--text-subtle); margin-left: 10px; }
.gec-demo-date { padding: 14px 0; margin-bottom: 20px; font-size: 11px; color: var(--text-subtle); border-block: 1px solid var(--border); }
.gec-demo-original-photo { margin: 24px 0; }
.gec-demo .gec-demo-original-photo img { display: block; width: 100%; height: auto; border-radius: 2px; }
.gec-demo-source-credit { display: inline-block; font-size: 11px; color: var(--text-muted); margin-block: 10px 20px; }
.gec-demo { container-type: inline-size; }
.open-form .article-figure:has(.gec-demo) { padding: 0; border: 0; background: transparent; max-width: none; width: 100%; scroll-margin-top: 115px; }
.open-form .article-figure:has(.gec-demo) > figcaption { padding-top: 12px; }
.open-form.workspace-story .article-reading-layout { display: flex; flex-direction: column; gap: 32px; max-width: 1152px; }
.open-form.workspace-story .article-reading-layout > .article { width: 100%; max-width: none; }
.workspace-story .article-contents { order: -1; position: static; width: 100%; padding-block: 14px; border-block: 1px solid var(--border); }
.workspace-story .article-contents > p { margin-bottom: 8px; }
.workspace-story .article-contents nav { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; }
.workspace-story .article-contents a { font-size: 12px; }
.workspace-story .article > :is(p, .article-callout),
.workspace-story .article-section > :is(h2, h3, p, ul),
.workspace-story .article-section > .article-figure:not(:has(.gec-demo)),
.workspace-story .article-cta { max-width: 780px; margin-left: auto; margin-right: auto; }
.workspace-story .article-section:has(.gec-demo) { margin-block: 64px; }
.gec-gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 16px; }
.gec-gallery-tabs button { border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text-muted); font: inherit; font-size: 14px; padding: 10px 18px; cursor: pointer; }
.gec-gallery-tabs button[aria-pressed="true"] { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
[data-workspace-panel][hidden] { display: none !important; }
.open-form .product-gec .gec-workspace-section { display: block; }
.open-form .product-gec .gec-workspace-section > [data-gec-gallery] { width: 100%; max-width: none; }
.gec-capabilities { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
.gec-capability { border-top: 1px solid var(--border); padding-top: 24px; }
.open-form .product-hero-image.is-editorial { padding: 0; background: transparent; overflow: hidden; }
.open-form .product-hero-image.is-editorial img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 0; border-radius: 8px; }
.open-form.yanlan-upgrade-page .upgrade-main { padding-top: 0; overflow: visible; }
.open-form .product-page.product-release-intro { padding-bottom: 0; }
.open-form.yanlan-upgrade-page .upgrade-metric-rail { width: calc(100% - 64px); gap: 24px; margin: 0 auto 32px; padding-block: 24px; border-block: 1px solid var(--border); background: transparent; }
.open-form.yanlan-upgrade-page .upgrade-metric { padding: 0; border: 0; }
.open-form.yanlan-upgrade-page .upgrade-metric strong { font-size: 32px; line-height: 1.2; font-weight: 600; color: var(--brand); }
.open-form.yanlan-upgrade-page .upgrade-metric span { font-size: 13px; line-height: 1.5; }
.open-form.yanlan-upgrade-page .upgrade-section { padding: 56px 32px; background: var(--canvas); }
.open-form.yanlan-upgrade-page .upgrade-section-heading { grid-template-columns: minmax(0,.85fr) minmax(0,1.4fr); gap: 48px; align-items: start; }
.open-form.yanlan-upgrade-page .upgrade-section-heading h2 { font-size: 28px; line-height: 1.4; letter-spacing: -.02em; font-weight: 600; }
.open-form.yanlan-upgrade-page .upgrade-section-index { margin-bottom: 16px; font-size: 12px; }
.open-form.yanlan-upgrade-page .upgrade-section-heading > p { font-size: 16px; line-height: 1.85; }
.open-form.yanlan-upgrade-page .upgrade-cta h2 { font-size: 28px; line-height: 1.4; }
.upgrade-art { align-self: center; }
.upgrade-art img { display: block; width: 100%; height: auto; border-radius: 8px; }
@container (min-width: 850px) {
    .gec-demo-workspace { grid-template-columns: 150px minmax(0,1fr); }
    .gec-demo-sidebar { font-size: 12px; }
    .gec-demo-sidebar > span { padding: 10px 14px; }
    .gec-demo-top { padding: 16px 20px; font-size: 14px; }
    .gec-demo-breadcrumb, .gec-demo-badge { font-size: 12px; }
    .gec-demo-main { padding: 18px; }
    .gec-demo-summary { font-size: 12px; padding: 12px 16px; }
    .gec-demo-summary b { font-size: 15px; }
    .gec-demo-heading { font-size: 13px; }
    .gec-demo-file { font-size: 12px; }
    .gec-demo .gec-demo-line { font-size: 13px; grid-template-columns: 44px minmax(0,1fr); }
    .gec-demo time, .gec-demo .gec-demo-select, .gec-demo-actions button { font-size: 13px; }
    .gec-demo-select small { font-size: 11px; }
    .gec-demo-document-body { padding: 28px; height: 700px; }
    .open-form .gec-demo-document-body p { font-size: 15px; line-height: 2; }
    .open-form .gec-demo-document-body h3 { font-size: 30px; }
    .gec-demo-publisher { font-size: 23px; }
    .gec-demo-date { font-size: 13px; }
}
@media (max-width: 600px) {
    .gec-capabilities { grid-template-columns: minmax(0,1fr); }
    .gec-gallery-tabs { gap: 6px; }
    .gec-gallery-tabs button { padding: 9px 11px; font-size: 12px; }
}
@media (max-width: 760px) {
    .open-form.yanlan-upgrade-page .upgrade-section { padding: 40px 20px; }
    .open-form.yanlan-upgrade-page .upgrade-section-heading { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .open-form.yanlan-upgrade-page .upgrade-metric-rail { width: calc(100% - 40px); grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
    .gec-demo-workspace { grid-template-columns: minmax(0, 1fr); }
    .gec-demo-sidebar, .gec-demo-breadcrumb { display: none; }
    .gec-demo-main { padding: 8px; }
    .gec-demo-columns { grid-template-columns: minmax(0, 1fr); }
    .gec-demo-results { border-left: 0; border-top: 1px solid var(--border); }
    .gec-demo-top, .gec-demo-summary { padding: 10px 12px; }
    .gec-demo-line small { display: none; }
    .gec-demo-document.is-reviewing .gec-demo-doc-columns { grid-template-columns: minmax(0, 1fr); }
    .gec-demo-document-body { height: 430px; padding: 14px; }
}

/* Yanlin prepared-media product tour */
.product-yanlin .product-demo video{display:block;width:100%;aspect-ratio:16/9}

.yanlin-guide {position:fixed;right:22px;bottom:22px;z-index:1000;width:238px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:18px;box-shadow:0 16px 54px rgba(0,0,0,.18);overflow:hidden;font-family:var(--font-display)}
.yanlin-guide * {box-sizing:border-box}
.yanlin-guide-head {display:flex;justify-content:space-between;align-items:center;gap:8px;padding:11px 13px;font-size:12px}
.yanlin-guide-status {color:var(--brand);font-size:11px}
.yanlin-guide video {display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:#111}
.yanlin-guide-controls {padding:12px}
.yanlin-guide-progress {height:3px;background:var(--surface-muted);margin:0 0 11px;border-radius:3px;overflow:hidden}
.yanlin-guide-progress span {display:block;height:100%;width:0;background:var(--brand)}
.yanlin-guide-buttons {display:flex;gap:7px}
.yanlin-guide button {font:inherit;font-size:12px;cursor:pointer;border:1px solid var(--border);border-radius:24px;background:var(--surface);color:var(--text);min-height:36px;padding:7px 11px}
.yanlin-guide button:focus-visible {outline:2px solid var(--brand);outline-offset:2px}
.yanlin-guide .yanlin-guide-toggle {background:var(--brand);color:var(--brand-contrast);border-color:var(--brand);flex:1}
.yanlin-guide-foot {display:flex;align-items:center;justify-content:space-between;gap:4px;margin-top:7px}
.yanlin-guide .yanlin-guide-replay {border:0;background:none;color:var(--text-muted);padding:3px 0;font-size:11px;min-height:30px}
.yanlin-guide-time {font-size:11px;color:var(--text-muted);font-variant-numeric:tabular-nums}
.yanlin-guide-note {font-size:10px;line-height:1.6;color:var(--text-subtle);margin:0;border-top:1px solid var(--border);padding-top:7px}
@media(max-width:650px){
 .yanlin-guide {right:10px;bottom:10px;width:calc(100% - 20px);max-width:420px;display:grid;grid-template-columns:96px 1fr;border-radius:14px}
 .yanlin-guide-head {grid-column:1/-1;padding:7px 11px}
 .yanlin-guide video {width:96px;height:96px;align-self:start;margin-top:7px;border-radius:0 8px 8px 0}
 .yanlin-guide-controls {padding:7px 10px 9px}
 .yanlin-guide button {min-height:44px;padding:7px 10px}
 .yanlin-guide-note {font-size:10px}
 .yanlin-guide-foot {margin-top:1px}
}
.yanlin-guide-caption {display:block;font-size:11px;line-height:1.8;height:60px;max-height:78px;overflow:auto;overscroll-behavior:contain;margin-bottom:6px}.yanlin-guide-studio {color:var(--brand);font-size:10px;text-decoration:none}

.yanlin-art .yanlin-flow{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:28px;padding:12px;margin:0}
.yanlin-flow li{position:relative;padding:18px 14px;background:var(--surface-muted);border:1px solid var(--border);border-radius:14px}
.yanlin-flow li+li:before{content:'→';position:absolute;left:-25px;top:42px;color:var(--brand);font-size:22px}
.yanlin-art-icon{width:42px;height:42px;color:var(--brand);margin-bottom:16px}.yanlin-art-icon svg{width:100%;height:100%}
.yanlin-art-step{position:absolute;right:16px;top:22px;font-size:12px;color:var(--text-muted)}
.yanlin-flow h3{font-size:19px;margin:0 0 12px}.yanlin-flow p{font-size:14px;line-height:1.8;margin:0;color:var(--text-muted)}
.yanlin-scenes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:28px}
.yanlin-scenes article{padding:25px;border:1px solid var(--border);border-radius:15px;background:var(--surface)}
.yanlin-scenes span{font-size:12px;color:var(--brand)}.yanlin-scenes h3{font-size:21px;margin:14px 0}.yanlin-scenes p{font-size:15px;line-height:1.8;margin:0;color:var(--text-muted)}
.yanlin-play-art{padding:24px}.yanlin-page-stack{display:flex;gap:16px}.yanlin-page-stack span{display:grid;place-items:center;flex:1;aspect-ratio:1.6;background:var(--surface-muted);border:1px solid var(--border);border-radius:10px;font-size:18px;color:var(--text-muted)}
.yanlin-page-stack .is-active{border-color:var(--brand);color:var(--brand);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 12%,transparent)}
.yanlin-timeline{margin-top:32px}.yanlin-track{height:5px;background:var(--surface-muted);border-radius:10px}.yanlin-track i{display:block;height:100%;width:42%;background:var(--brand);border-radius:10px}.yanlin-control-labels{display:flex;justify-content:space-around;margin-top:22px;font-size:15px;color:var(--text-muted)}
.yanlin-technical summary{cursor:pointer;color:var(--brand);padding:18px 0}.yanlin-technical .product-diagram{margin-top:15px}
@media(max-width:650px){.yanlin-art .yanlin-flow{grid-template-columns:1fr;gap:24px;padding:0}.yanlin-flow li+li:before{content:'↓';top:-26px;left:50%}.yanlin-scenes{grid-template-columns:1fr}.yanlin-play-art{padding:5px}.yanlin-page-stack{gap:6px}.yanlin-page-stack span{font-size:11px}.yanlin-control-labels{font-size:12px}}

/* Product scenes: animated product-demo figures on the YanAn and Yanlan pages
   (markup from others/scripts/product_scenes.py, player in js/product-scenes.js).
   Paper cards on the page canvas, hairline edges (no drop shadows),
   brand glow, logo red for the one alert.
   Base styles are the final frame; .is-playing replays the inline --d/--t timeline. */
.product-scene {
    --ps-card:#fffdf9;
    --ps-line:rgba(74, 52, 30, 0.13);
    --ps-hair:rgba(74, 52, 30, 0.12);
    --ps-bubble:#ece6dd;
    --ps-alert:var(--logo-red);
    --ps-deep:color-mix(in srgb, var(--brand) 72%, #000);
    --ps-shine:rgba(255, 255, 255, 0.9);
}
[data-theme="dark"] .product-scene {
    --ps-card:#282a31;
    --ps-line:rgba(255, 255, 255, 0.09);
    --ps-hair:rgba(255, 255, 255, 0.09);
    --ps-bubble:#35373e;
    --ps-alert:#e5533f;
    --ps-deep:color-mix(in srgb, var(--brand) 58%, #000);
    --ps-shine:rgba(255, 255, 255, 0.16);
}
.open-form .article-figure.product-scene {
    max-width:1080px;
    margin:36px auto 12px;
    padding:36px 40px 18px;
    border:1px solid var(--border);
    border-radius:var(--radius-card);
    background:transparent;
    color:var(--text);
    overflow:hidden
}
.product-scene > svg {
    display:block;
    width:100%;
    max-width:880px;
    height:auto;
    margin-inline:auto;
    overflow:visible;
    font-family:var(--font-display)
}
.product-scene-caption {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    max-width:880px;
    margin:20px auto 0 !important;
    padding-top:14px;
    border-top:1px solid var(--ps-hair);
    color:var(--text-subtle);
    font-style:normal
}
.product-scene-toggle {
    display:inline-flex;
    align-items:center;
    gap:6px;
    flex:none;
    padding:6px 14px;
    border:0;
    border-radius:var(--radius-pill);
    background:color-mix(in srgb, var(--text) 7%, transparent);
    color:var(--text);
    font:inherit;
    font-size:12px;
    font-weight:500;
    cursor:pointer;
    transition:background-color .2s
}
.product-scene-toggle:hover { background:color-mix(in srgb, var(--text) 12%, transparent) }
.product-scene-toggle[hidden] { display:none }
.product-scene .product-scene-toggle svg.product-scene-icon { display:block; flex:none; width:11px; height:11px; margin:0; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round }
.product-scene-icon .i-play { display:none; fill:currentColor; stroke:none }
.product-scene-toggle[aria-pressed="true"] .i-pause { display:none }
.product-scene-toggle[aria-pressed="true"] .i-play { display:inline }

/* Surfaces */
.ps-card { fill:var(--ps-card); stroke:var(--ps-line); stroke-width:1 }
.ps-chip { fill:color-mix(in srgb, var(--text) 3%, transparent); stroke:var(--ps-line) }
.ps-tray { fill:color-mix(in srgb, var(--text) 3%, transparent); stroke:var(--ps-line); stroke-dasharray:4 4 }
.ps-hair { fill:none; stroke:var(--ps-hair) }
.ps-stop-brand { stop-color:var(--brand) }
.ps-stop-deep { stop-color:var(--ps-deep) }

/* Type */
.ps-title { fill:var(--text); font-size:17px; font-weight:600; letter-spacing:-.01em }
.ps-sub { fill:var(--text-muted); font-size:11.5px }
.ps-name { fill:var(--text); font-size:14px; font-weight:600; letter-spacing:-.005em }
.ps-item { fill:var(--text); font-size:13px; font-weight:500 }
.ps-label { fill:var(--text-subtle); font-size:10px; font-weight:600; letter-spacing:.08em }
.ps-num { fill:var(--text); font-size:28px; font-weight:600; letter-spacing:-.02em; font-variant-numeric:tabular-nums }
.ps-num.is-hot { fill:var(--ps-alert) }
.ps-count { fill:var(--brand); font-size:13px; font-weight:600; font-variant-numeric:tabular-nums }
.ps-cut { fill:var(--ps-alert); font-size:12px; font-weight:600 }
.ps-thr-label { fill:var(--ps-alert); font-size:10px; font-weight:500 }

/* Network, wires and signals */
.ps-edge { fill:none; stroke:var(--text); stroke-width:.7; opacity:.12 }
.ps-node { fill:var(--text); opacity:.2 }
.ps-brand { fill:var(--brand) }
.ps-alert { fill:var(--ps-alert) }
.ps-act { fill:var(--brand); opacity:0 }
.ps-wire { fill:none; stroke:var(--text); stroke-width:1; opacity:.16 }
.ps-flow { fill:none; stroke-width:1.6; stroke-linecap:round }
.ps-glint { fill:none; stroke:var(--brand); stroke-width:2.4; stroke-linecap:round; stroke-dasharray:.08 1.2; stroke-dashoffset:.08; opacity:0 }
.ps-ping { fill:none; stroke:var(--brand); stroke-width:1.2; opacity:0 }
.ps-link { fill:none; stroke:var(--ps-alert); stroke-width:1.2; opacity:.7 }
.ps-link-soft { fill:none; stroke:var(--text); stroke-width:1; stroke-dasharray:3 4; opacity:.25 }
.ps-track { fill:color-mix(in srgb, var(--text) 8%, transparent) }
.ps-step { fill:var(--ps-card); stroke:color-mix(in srgb, var(--text) 25%, transparent) }
.ps-thr { fill:none; stroke:var(--ps-alert); stroke-width:1; stroke-dasharray:3 3; opacity:.8 }
.ps-spark { fill:none; stroke:var(--brand); stroke-width:2; stroke-linecap:round; stroke-linejoin:round }
.ps-spark.is-hot { stroke:var(--ps-alert) }
.ps-gate { stroke:color-mix(in srgb, var(--text) 18%, transparent) }

/* Screen */
.ps-light { fill:color-mix(in srgb, var(--text) 14%, transparent) }
.ps-bubble-me { fill:var(--brand) }
.ps-on-brand { fill:#fff; opacity:.85 }
.ps-bubble { fill:var(--ps-bubble) }
.ps-word { fill:var(--text); opacity:.26 }
.ps-typing { fill:var(--text); opacity:.4 }
.ps-out { opacity:0 }
.ps-seq { opacity:0 }
.ps-banner { fill:color-mix(in srgb, var(--ps-alert) 9%, var(--ps-card)); stroke:color-mix(in srgb, var(--ps-alert) 28%, transparent) }
.ps-banner-t { fill:var(--ps-alert); font-size:12.5px; font-weight:600 }
.ps-bang { fill:none; stroke:#fff; stroke-width:2.2; stroke-linecap:round }
.ps-held { fill:none; stroke:color-mix(in srgb, var(--text) 30%, transparent); stroke-dasharray:3 3 }
.ps-held.is-hot { stroke:var(--ps-alert) }
.ps-travel { opacity:0 }
.ps-halt { transform:translateX(var(--dx)) }

/* Document and results */
.ps-squircle { fill:color-mix(in srgb, var(--brand) 12%, transparent) }
.ps-glyph { fill:none; stroke:var(--brand); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round }
.ps-glyph-fill { fill:var(--brand); stroke:none }
.ps-doc { fill:var(--text); font-size:13px; letter-spacing:0 }
.ps-doc-title { font-weight:600 }
.ps-doc-wrong { fill:var(--ps-alert); font-weight:600 }
.ps-typo-bg { fill:color-mix(in srgb, var(--ps-alert) 10%, transparent) }
.ps-squiggle { fill:none; stroke:var(--ps-alert); stroke-width:2.4; stroke-linecap:round; stroke-dasharray:.001 .105 }
.ps-pill { fill:var(--brand) }
.ps-pill-text { fill:#fff; font-size:12px; font-weight:600 }
.ps-scan { opacity:0 }
.ps-beam { fill:none; stroke:var(--brand); stroke-width:1.5 }
.ps-badge { fill:var(--brand) }
.ps-badge-t { fill:#fff; font-size:11.5px; font-weight:600 }
.ps-check { fill:none; stroke:var(--brand); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round }
.ps-hero-icon { fill:none; stroke:#fff; stroke-width:1.5; stroke-linejoin:round; opacity:.9 }
.ps-hero-label { fill:#fff; font-size:10px; font-weight:600; letter-spacing:.08em; opacity:.75 }
.ps-hero-main { fill:#fff; font-size:18px; font-weight:600; letter-spacing:-.01em }
.ps-hero-sub { fill:#fff; font-size:11.5px; opacity:.88 }
.ps-hero-sub.is-dim { opacity:.66 }

/* Yanlin: deck, rig, live stage, Q&A */
.ps-row-on { fill:color-mix(in srgb, var(--text) 4%, transparent) }
.ps-thumb { fill:color-mix(in srgb, var(--text) 4%, var(--ps-card)); stroke:var(--ps-line) }
.ps-thumb-title { fill:var(--brand); opacity:.55 }
.ps-thumb-line { fill:var(--text); opacity:.16 }
.ps-ring { fill:none; stroke:var(--brand); stroke-width:1.6 }
.ps-skel { fill:color-mix(in srgb, var(--text) 11%, transparent) }
.ps-stop-shine { stop-color:var(--ps-shine) }
.ps-shimmer { opacity:0 }
.ps-studio-base { fill:color-mix(in srgb, var(--text) 5%, var(--ps-card)) }
.ps-bone { fill:none; stroke:var(--brand); stroke-width:1.6; stroke-linecap:round }
.ps-joint { fill:var(--ps-card); stroke:var(--brand); stroke-width:1.6 }
.ps-face { fill:var(--brand) }
.ps-bracket { fill:none; stroke:var(--brand); stroke-width:1.6; stroke-linecap:round; opacity:.8 }
.ps-rig { opacity:.2 }
.ps-live { fill:rgba(12, 16, 28, .82) }
.ps-live-t { fill:#fff; font-size:10px; font-weight:700; letter-spacing:.08em }
.ps-status { fill:var(--ps-card); stroke:var(--ps-line) }
.ps-status-t { fill:var(--text); font-size:11px; font-weight:500 }
.ps-eq-bar { fill:var(--brand) }
.ps-subtitle { fill:var(--text); font-size:12px; font-weight:500 }
.ps-progress { fill:var(--brand) }
.ps-bubble-t { fill:var(--text); font-size:11.5px }
.ps-me-t { fill:#fff; font-size:11.5px; font-weight:500 }
.ps-think { fill:color-mix(in srgb, var(--brand) 12%, var(--ps-card)) }
.ps-metric { fill:color-mix(in srgb, var(--text) 5%, transparent); stroke:var(--ps-line) }
.ps-metric-t { fill:var(--text-muted); font-size:10.5px; font-weight:500; font-variant-numeric:tabular-nums }
.ps-chip-brand { fill:color-mix(in srgb, var(--brand) 12%, var(--ps-card)) }
.ps-chip-t { fill:var(--brand); font-size:11.5px; font-weight:600 }
.ps-input { fill:var(--ps-card); stroke:var(--ps-line) }
.ps-mic { fill:none; stroke:#fff; stroke-width:1.5; stroke-linecap:round }
.ps-doc-glyph { fill:none; stroke:var(--brand); stroke-width:1.2; stroke-linejoin:round }

/* Motion */
.ps-pop,.ps-slam,.ps-ping,.ps-eq,.ps-render { transform-box:fill-box; transform-origin:center }
.ps-grow { transform-box:fill-box; transform-origin:left center }
.ps-draw { stroke-dasharray:1 1 }
.ps-squiggle.ps-draw { stroke-dasharray:.001 .105 }
.is-playing .ps-fade { animation:ps-fade .5s ease-out var(--d) both }
.is-playing .ps-rise { animation:ps-rise .6s cubic-bezier(.2,.8,.2,1) var(--d) both }
.is-playing .ps-pop { animation:ps-pop .45s cubic-bezier(.2,.8,.2,1) var(--d) both }
.is-playing .ps-spring { animation-timing-function:cubic-bezier(.34,1.56,.64,1) }
.is-playing .ps-draw { animation:ps-draw var(--t,.4s) linear var(--d) both }
.is-playing .ps-squiggle.ps-draw { animation:ps-fade .3s ease-out var(--d) both }
.is-playing .ps-slam { animation:ps-slam .35s cubic-bezier(.34,1.56,.64,1) var(--d) both }
.is-playing .ps-out { animation:ps-out var(--t) ease-out var(--d) both }
.is-playing .ps-typing { animation:ps-bounce 1s ease-in-out var(--d) infinite }
.is-playing .ps-act { animation:ps-blink var(--t) ease-out var(--d) var(--n) }
.is-playing .ps-glint { animation:ps-glint var(--t) cubic-bezier(.4,0,.6,1) var(--d) var(--n) }
.is-playing .ps-ping { animation:ps-ping 1.1s ease-out var(--d) }
.is-playing .ps-seq { animation:ps-show var(--t) linear var(--d) }
.is-playing .ps-seq-end { animation:ps-hide var(--d) linear }
.is-playing .ps-travel { animation:ps-travel var(--t) cubic-bezier(.4,0,.2,1) var(--d) }
.is-playing .ps-halt { animation:ps-halt var(--t) cubic-bezier(.2,.8,.2,1) var(--d) both }
.is-playing .ps-scan { animation:ps-scan var(--t) linear var(--d) }
.is-playing .ps-grow { animation:ps-grow var(--t) cubic-bezier(.2,.8,.2,1) var(--d) both }
.is-playing .ps-dim { animation:ps-dim .6s ease-out var(--d) both }
.is-playing .ps-render { animation:ps-render .7s cubic-bezier(.2,.8,.2,1) var(--d) both }
.is-playing .ps-pulse { animation:ps-pulse 1.4s ease-in-out infinite }
.is-playing .ps-breathe { animation:ps-breathe .9s ease-in-out infinite alternate }
.is-playing .ps-eq { animation:ps-eq .55s ease-in-out var(--d) infinite alternate }
.is-playing .ps-shimmer { animation:ps-shimmer 1.8s linear 1.4s infinite }
.product-scene.is-paused * { animation-play-state:paused !important }

@keyframes ps-fade { from { opacity:0 } }
@keyframes ps-grow { from { transform:scaleX(0) } }
@keyframes ps-dim { from { opacity:1 } }
@keyframes ps-render { from { opacity:0; transform:scale(.94) } }
@keyframes ps-pulse { 50% { opacity:.3 } }
@keyframes ps-breathe { from { opacity:.45 } to { opacity:1 } }
@keyframes ps-eq { from { transform:scaleY(.35) } to { transform:scaleY(1) } }
@keyframes ps-shimmer { from { opacity:1; transform:translateX(0) } to { opacity:1; transform:translateX(360px) } }
@keyframes ps-rise { from { opacity:0; transform:translateY(8px) } }
@keyframes ps-pop { from { opacity:0; transform:scale(.6) } }
@keyframes ps-draw { from { stroke-dashoffset:1 } to { stroke-dashoffset:0 } }
@keyframes ps-slam { from { opacity:0; transform:scaleY(.2) } }
@keyframes ps-out { from { opacity:1 } to { opacity:0 } }
@keyframes ps-bounce { 0%,60%,100% { transform:translateY(0); opacity:.35 } 30% { transform:translateY(-3px); opacity:.8 } }
@keyframes ps-blink { 0% { opacity:0 } 20% { opacity:1 } 100% { opacity:0 } }
@keyframes ps-glint { from { opacity:1; stroke-dashoffset:.08 } to { opacity:1; stroke-dashoffset:-1 } }
@keyframes ps-ping { 0% { opacity:.8; transform:scale(.6) } 100% { opacity:0; transform:scale(2.4) } }
@keyframes ps-show { from,to { opacity:1 } }
@keyframes ps-hide { from,to { opacity:0 } }
@keyframes ps-travel { 0% { opacity:0; transform:translateX(0) } 12%,88% { opacity:1 } 100% { opacity:0; transform:translateX(var(--dx)) } }
@keyframes ps-halt { 0% { opacity:0; transform:translateX(0); fill:var(--brand) } 70% { fill:var(--brand) } 100% { opacity:1; transform:translateX(var(--dx)) } }
@keyframes ps-scan { 0% { opacity:1; transform:translateY(0) } 94% { opacity:1 } 100% { opacity:0; transform:translateY(var(--dy)) } }

@media (max-width:760px) {
    .open-form .article-figure.product-scene { padding:22px 16px 12px; overflow-x:auto }
    .product-scene > svg { min-width:600px }
    .product-scene-caption { min-width:0 }
}
@media (prefers-reduced-motion:reduce) {
    .product-scene *,.product-scene *::before,.product-scene *::after { animation:none !important }
}
/* ============================================================================
   17. Figure motion (.fm-*) — animated figures
   ----------------------------------------------------------------------------
   Inline-SVG schematics and redrawn charts that play when scrolled into view
   (js/figure-motion.js). Read like a lab notebook, not a product console:
   hairline axes, one brand series against ink, motion that behaves like an
   instrument — scan cursors, sweeps, strokes drawn at a constant rate, no
   bounce. Works inside the hand-drawn .is-sketch panels too.

   Contract
   · Base styles are the FINAL frame, so no-JS and reduced-motion readers get
     a complete static figure.
   · Animations attach only under .fm-armed (added by the script) and stay
     paused on frame 0 until .is-playing. Replay = drop both classes, reflow,
     re-add.
   · Each animated element carries .fm-a-<verb> plus inline --d (delay) /
     --t (duration); extras: --n iterations, --dx sweep distance, --a
     resting opacity, --d2 second-phase delay, --w wire weight.
   · Colors: --brand for the highlighted series, currentColor for ink,
     --fm-risk only for a harmful verdict.
   ========================================================================== */
.fm-figure { --fm-risk: var(--logo-red); }
[data-theme="dark"] .fm-figure { --fm-risk: color-mix(in srgb, var(--logo-red) 62%, white); }

.fm-head {
    display: flex; align-items: baseline; gap: 0.75rem;
    margin: 0 0 0.9rem; padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--catalog-hair, var(--border));
    font-size: 0.7rem; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-subtle);
}
.fm-tag {
    display: inline-flex; align-items: center; gap: 0.42rem; flex-shrink: 0;
    font-weight: 700; color: var(--brand-strong); font-variant-numeric: tabular-nums;
}
.fm-title { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--text-muted); }
.fm-live { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.3; }
.fm-armed.is-playing .fm-live { opacity: 1; animation: fm-live 1.4s ease-in-out infinite; }
.fm-replay {
    display: inline-flex; align-items: center; gap: 0.32rem; flex-shrink: 0;
    padding: 0.15rem 0; border: 0; background: none; cursor: pointer; visibility: hidden;
    font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--text-subtle);
    transition: color 0.18s linear;
}
.fm-armed .fm-replay { visibility: visible; }
.fm-replay:hover, .fm-replay:focus-visible { color: var(--brand-strong); }
/* Specificity matches .open-form .article-figure.is-sketch svg, which would stretch the icon. */
.article-figure.fm-figure .fm-replay svg { display: inline-block; width: 12px; height: 12px; min-width: 0; color: inherit;
    fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html[lang="zh"] .fm-head { font-size: 0.76rem; letter-spacing: 0.04em; }

/* SVG type — sizes are viewBox units, so they scale with the figure. */
.fm-svg { overflow: visible; }
/* Looping figures fade their last frame out before restarting. */
.fm-figure > svg, .fm-stage { transition: opacity 0.4s ease; }
.fm-figure.is-rewinding > svg, .fm-figure.is-rewinding .fm-stage { opacity: 0.12; }
.fm-svg text { fill: currentColor; font-variant-numeric: tabular-nums; }
.fm-t-lane { font-size: 13px; font-weight: 650; }
.fm-t-label { font-size: 12px; font-weight: 600; fill-opacity: 0.72; }
.fm-t-micro { font-size: 10.5px; font-weight: 650; letter-spacing: 0.08em; fill-opacity: 0.55; }
.fm-t-tick { font-size: 11px; fill-opacity: 0.55; }
.fm-t-end { font-size: 12px; font-weight: 700; fill-opacity: 0.6; }
.fm-t-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.fm-t-sym { font-size: 14px; font-weight: 600; }
.fm-t-big { font-size: 42px; font-weight: 700; letter-spacing: -0.03em; }
.fm-svg .fm-is-brand, .fm-svg .fm-t-sym { fill: var(--brand); fill-opacity: 1; }

/* Ink + structure */
.fm-hair { fill: none; stroke: currentColor; stroke-opacity: 0.14; }
.fm-grid { fill: none; stroke: currentColor; stroke-opacity: 0.09; }
.fm-axis { fill: none; stroke: currentColor; stroke-opacity: 0.4; }
.fm-arrow { fill: none; stroke: currentColor; stroke-opacity: 0.45; stroke-width: 1.2;
    stroke-linecap: round; stroke-linejoin: round; }
.fm-chip { fill: currentColor; fill-opacity: 0.035; stroke: currentColor; stroke-opacity: 0.3; }
.fm-tokbar { fill: currentColor; fill-opacity: 0.2; }
.fm-track { fill: currentColor; fill-opacity: 0.08; }
.fm-fill-ink { fill: currentColor; fill-opacity: 0.45; }
.fm-fill-brand { fill: var(--brand); }

/* Schematic parts: slabs, chips, tokens, pips, wires, nodes */
.fm-slab { fill: currentColor; fill-opacity: 0.05; stroke: currentColor; stroke-opacity: 0.26; stroke-width: 0.8; }
.fm-slab.fm-is-read { fill-opacity: 0.1; stroke-opacity: 0.75; stroke-width: 1.4; }
.fm-hot { opacity: 0; }
.fm-hot-ink { fill: currentColor; --fm-flash: 0.3; }
.fm-hot-brand { fill: var(--brand); --fm-flash: 0.55; }
.fm-token rect { fill: var(--bg); stroke: currentColor; stroke-opacity: 0.35; }
.fm-token.fm-is-risk rect { fill: color-mix(in srgb, var(--fm-risk) 8%, var(--bg)); stroke: var(--fm-risk); }
.fm-svg .fm-token.fm-is-risk text { fill: var(--fm-risk); }
.fm-pip { fill: currentColor; fill-opacity: 0.22; }
.fm-pip-hot { fill: var(--brand); }
.fm-wire { fill: none; stroke: var(--brand); stroke-opacity: var(--w, 0.6); stroke-linecap: round; }
.fm-node-brand { fill: color-mix(in srgb, var(--brand) 10%, var(--bg)); stroke: var(--brand); stroke-width: 1.4; }
.fm-net-link { fill: none; stroke: var(--brand); stroke-opacity: 0.3; stroke-width: 0.8; }
.fm-net-node { fill: var(--brand); }
.fm-verdict rect { fill: color-mix(in srgb, var(--fm-risk) 9%, var(--bg)); stroke: var(--fm-risk); stroke-width: 1.2; }
.fm-svg .fm-verdict text { fill: var(--fm-risk); font-size: 11.5px; font-weight: 750; letter-spacing: 0.12em; }

/* Charts */
.fm-band { fill: var(--brand); fill-opacity: 0.06; }
.fm-raw { fill: none; stroke: currentColor; stroke-opacity: 0.28; stroke-width: 1.1; stroke-linejoin: round; }
.fm-dot { fill: var(--bg); stroke: currentColor; stroke-opacity: 0.55; stroke-width: 1.1; }
.fm-trend { fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-linecap: round; }
.fm-ref { fill: none; stroke-width: 1.4; stroke-dasharray: 6 5; }
.fm-ref-ink { stroke: currentColor; stroke-opacity: 0.5; }
.fm-ref-brand { stroke: var(--brand); }
.fm-mark { fill: none; stroke: var(--brand); stroke-width: 1.4; }
.fm-mark.fm-mark-ink { stroke: currentColor; stroke-opacity: 0.5; }
.fm-ring, .fm-ring-box { fill: none; stroke: var(--brand); stroke-width: 1.2; opacity: 0; }
.fm-ring-box { stroke: var(--fm-risk); }
.fm-ring.fm-ring-accent { stroke: var(--sketch-accent, var(--fm-risk)); stroke-width: 1.6; }
.fm-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.fm-line-brand { stroke: var(--brand); }
.fm-line-ink { stroke: currentColor; stroke-opacity: 0.5; }
.fm-line.fm-is-light { stroke-width: 1.6; }
.fm-line-brand.fm-is-light { stroke-opacity: 0.55; }
.fm-line-ink.fm-is-light { stroke-opacity: 0.3; }
.fm-pt-brand { fill: var(--brand); stroke: var(--brand); }
.fm-pt-ink { fill: currentColor; fill-opacity: 0.55; stroke: none; }
.fm-pt-open { fill: var(--bg); fill-opacity: 1; stroke-width: 1.6; }
.fm-pt-ink.fm-pt-open { stroke: currentColor; stroke-opacity: 0.45; }

/* Scan cursor — hidden at rest, only exists while sweeping */
.fm-scan { opacity: 0; }
.fm-scan-line { fill: none; stroke: var(--brand); stroke-width: 1.2; }
.fm-scan-cap { fill: var(--brand); }
.fm-scan-wake { fill: var(--brand); fill-opacity: 0.07; }

/* Dot field + readout */
.fm-spark { fill: currentColor; opacity: 0.1; }
.fm-spark.fm-is-safe { fill: var(--brand); opacity: 1; }
.fm-halo { fill: none; stroke: var(--brand); stroke-width: 1; opacity: 0.35; }
.fm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(9rem, 11.5rem); gap: 1rem 2rem; align-items: center; }
.fm-readout { display: flex; flex-direction: column; gap: 0.25rem; padding-left: 1.25rem;
    border-left: 1px solid var(--catalog-hair, var(--border)); }
.fm-readout-num { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 700; line-height: 1;
    letter-spacing: -0.03em; color: var(--brand); font-variant-numeric: tabular-nums; }
.fm-readout-label { font-size: 0.86rem; font-weight: 650; color: var(--text); }
.fm-readout-sub { font-size: 0.78rem; line-height: 1.45; color: var(--text-subtle); }

/* Runtime scene (#demo on the YanAn page): the main model writes a reply word
   by word; threads of light carry its running signals to RedShield (top) and
   TingLan (bottom), whose cards track risk and cues, and the words leave as
   packets through one gate between them into the user's chat window. When
   RedShield catches it, part of the model flares red, a red verdict runs down
   the beam, the gate closes and the model goes dark around the alarm. A pale
   panel in light mode, deep ink in dark. Part rules are scoped to
   .fm-scene-svg so the paper figures' .fm-* parts are untouched. Deliberately
   generic: what is read, and how, is never shown or named. */
.fm-scene {
    --fm-glow: #0b3df5; --fm-glow-2: #3d63ff; --fm-ink: #0b1020; --fm-muted: #66708a;
    --fm-line: rgba(11, 61, 245, 0.2); --fm-faint: rgba(11, 61, 245, 0.1);
    --fm-node: #ffffff; --fm-panel: rgba(255, 255, 255, 0.92); --fm-panel-line: rgba(11, 20, 50, 0.1); --fm-shadow: rgba(11, 20, 50, 0.1);
    --fm-cue: #d98e0b; --fm-risk: #e0452a; --fm-risk-ink: #b3321b; --fm-risk-fill: rgba(224, 69, 42, 0.1);
    --fm-haze: 12%; --fm-dot: rgba(11, 20, 50, 0.08);
    --fm-stage: #f8faff; --fm-stage-2: #eaeef9;
    color: var(--fm-ink);
}
[data-theme="dark"] .fm-scene {
    --fm-glow: #6f8dff; --fm-glow-2: #c2cfff; --fm-ink: #e9eef8; --fm-muted: #8591ad;
    --fm-line: rgba(140, 163, 255, 0.24); --fm-faint: rgba(140, 163, 255, 0.11);
    --fm-node: #0d1634; --fm-panel: rgba(14, 21, 42, 0.9); --fm-panel-line: rgba(140, 163, 255, 0.22); --fm-shadow: rgba(0, 0, 0, 0.45);
    --fm-cue: #f4c95d; --fm-risk: #ff5a3c; --fm-risk-ink: #ffb4a3; --fm-risk-fill: rgba(255, 90, 60, 0.14);
    --fm-haze: 22%; --fm-dot: rgba(255, 255, 255, 0.06);
    --fm-stage: #0a1022; --fm-stage-2: #04070f;
}
.open-form .product-page .product-section > .article-figure.fm-scene, .article-figure.fm-scene {
    position: relative; isolation: isolate; overflow: hidden;
    padding: clamp(12px, 3vw, 28px) clamp(8px, 2.6vw, 28px) clamp(10px, 2vw, 16px);
    border: 1px solid var(--fm-panel-line); border-radius: var(--radius-media, 6px);
    background: radial-gradient(34% 62% at 18% 52%, color-mix(in srgb, var(--fm-glow) var(--fm-haze), transparent), transparent 72%),
                radial-gradient(28% 55% at 55% 50%, color-mix(in srgb, var(--fm-glow) calc(var(--fm-haze) * 0.6), transparent), transparent 72%),
                linear-gradient(180deg, var(--fm-stage), var(--fm-stage-2));
}
.fm-scene::before {                 /* dot grid, fading out toward the edges */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(circle at 1px 1px, var(--fm-dot) 1px, transparent 1.5px) 0 0 / 22px 22px;
    -webkit-mask-image: radial-gradient(75% 85% at 50% 50%, #000 35%, transparent 100%);
            mask-image: radial-gradient(75% 85% at 50% 50%, #000 35%, transparent 100%);
}
.fm-scene .fm-replay { position: absolute; top: 12px; right: 12px; z-index: 1; justify-content: center;
    width: 32px; height: 32px; padding: 0; border: 1px solid var(--fm-panel-line); border-radius: 50%;
    background: color-mix(in srgb, var(--fm-panel) 70%, transparent); color: var(--fm-muted);
    transition: color 0.18s linear, border-color 0.18s linear; }
.fm-scene .fm-replay:hover, .fm-scene .fm-replay:focus-visible { border-color: var(--fm-glow); color: var(--fm-glow); }
.article-figure .fm-scene-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-display); }
.open-form .fm-scene .article-figure-caption, .fm-scene .article-figure-caption {
    margin: 2px 0 0; padding: 0; border: 0; font-size: 11px; font-style: normal; line-height: 1.5;
    letter-spacing: 0.04em; color: var(--fm-muted); }

.fm-scene-svg .fm-st-glow { stop-color: var(--fm-glow); }
.fm-scene-svg .fm-st-risk, .fm-scene-svg .fm-st-warm { stop-color: var(--fm-risk); }
.fm-scene-svg text { font-variant-numeric: tabular-nums; }
.fm-scene-svg .fm-cap { fill: var(--fm-muted); font-size: 10.5px; font-weight: 650; letter-spacing: 0.12em; }
.fm-scene-svg .fm-brand { fill: var(--fm-ink); font-size: 18px; font-weight: 750; letter-spacing: 0.04em; }
.fm-scene-svg .fm-num { fill: var(--fm-ink); font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.fm-scene-svg .fm-num-hot { fill: var(--fm-risk); }
/* the main model: nodes wired to near neighbours, firing, warming, alarm */
.fm-scene-svg .fm-in { fill: none; stroke: var(--fm-glow); stroke-opacity: 0.35; stroke-width: 1.2; stroke-dasharray: 2 6; }
.fm-scene-svg .fm-edge { fill: none; stroke: var(--fm-line); stroke-width: 0.8; }
.fm-scene-svg .fm-node { fill: var(--fm-node); stroke: var(--fm-glow); stroke-width: 1; }
.fm-scene-svg .fm-act { opacity: var(--rest, 0.2); }
.fm-scene-svg .fm-core { fill: var(--fm-glow); }
.fm-scene-svg .fm-warmset { color: var(--fm-risk); }
.fm-scene-svg .fm-warmset .fm-core { fill: currentColor; }
.fm-scene-svg .fm-heat { fill: url(#fm-heat-g); }
.fm-scene-svg .fm-halt { opacity: 0.12; }
.fm-scene-svg .fm-halt-soft { opacity: 0.45; }
.fm-scene-svg .fm-pulse { fill: none; stroke: var(--fm-glow-2); stroke-width: 1.5; stroke-linecap: round;
    stroke-dasharray: 0.06 1.3; stroke-dashoffset: 0.06; opacity: 0; filter: url(#fm-glow); }
.fm-scene-svg .fm-port { fill: var(--fm-glow); filter: url(#fm-glow); }
.fm-scene-svg .fm-port-ring { fill: none; stroke: var(--fm-glow); stroke-opacity: 0.35; }
.fm-scene-svg .fm-alarm-ring { fill: none; stroke: var(--fm-risk); stroke-width: 1.6; }
.fm-scene-svg .fm-alarm-ping { fill: none; stroke: var(--fm-risk); stroke-width: 1.4; opacity: 0; }
.fm-scene-svg .fm-alarm-core { fill: var(--fm-risk); filter: url(#fm-glow); }
/* threads of light into the two engines */
.fm-scene-svg .fm-fiber { fill: none; stroke: var(--fm-line); stroke-width: 0.8; }
.fm-scene-svg .fm-glints { color: var(--fm-glow-2); }
.fm-scene-svg .fm-glints-warm { color: var(--fm-risk); }
.fm-scene-svg .fm-glint { --g: 0.1; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round;
    stroke-dasharray: var(--g) 1.2; stroke-dashoffset: var(--g); opacity: 0; filter: url(#fm-glow); }
.fm-scene-svg .fm-glint-cue { stroke: var(--fm-cue); }
.fm-scene-svg .fm-entry { fill: var(--fm-glow-2); opacity: 0; filter: url(#fm-glow); --fm-flash: 1; }
.fm-scene-svg .fm-entry-base { fill: var(--fm-glow); }
/* engine cards: RedShield's risk trace against the line, TingLan's cues */
.fm-scene-svg .fm-card { fill: var(--fm-panel); stroke: var(--fm-panel-line); stroke-width: 1.2; filter: drop-shadow(0 12px 20px var(--fm-shadow)); }
.fm-scene-svg .fm-card-alarm { fill: none; stroke: var(--fm-risk); stroke-width: 1.6; }
.fm-scene-svg .fm-trace-base { fill: none; stroke: var(--fm-faint); }
.fm-scene-svg .fm-thr { fill: none; stroke: var(--fm-risk); stroke-opacity: 0.7; stroke-dasharray: 3 3; }
.fm-scene-svg .fm-trace { fill: none; stroke: var(--fm-glow); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.fm-scene-svg .fm-trace-hot { fill: none; stroke: var(--fm-risk); stroke-width: 2.2; stroke-linecap: round; }
.fm-scene-svg .fm-tdot { fill: var(--fm-glow); }
.fm-scene-svg .fm-tdot-hot { fill: var(--fm-risk); }
.fm-scene-svg .fm-wave { fill: none; stroke: var(--fm-cue); stroke-opacity: 0.7; stroke-width: 1.8; }
.fm-scene-svg .fm-cue-dot { fill: var(--fm-cue); }
.fm-scene-svg .fm-ping { fill: none; stroke: var(--fm-cue); stroke-width: 1.4; opacity: 0; }
/* the beam between the engines, and the gate on it */
.fm-scene-svg .fm-aura { fill: url(#fm-aura-g); }
.fm-scene-svg .fm-curtain { fill: url(#fm-curtain-g); }
.fm-scene-svg .fm-curtain-risk { fill: url(#fm-curtain-risk-g); }
.fm-scene-svg .fm-beam { fill: none; stroke: url(#fm-beam-g); stroke-width: 1.6; }
.fm-scene-svg .fm-link-run { fill: none; stroke: var(--fm-glow); stroke-opacity: 0.6; stroke-width: 2; stroke-dasharray: 2 10; }
.fm-scene-svg .fm-beam-risk { fill: none; stroke: var(--fm-risk); stroke-width: 2; }
.fm-scene-svg .fm-beam-risk-glow { fill: none; stroke: var(--fm-risk); stroke-width: 8; stroke-opacity: 0.18; stroke-linecap: round; }
.fm-scene-svg .fm-stopsig { fill: var(--fm-risk); opacity: 0; filter: url(#fm-glow); }
.fm-scene-svg .fm-gate { fill: var(--fm-panel); stroke: var(--fm-glow); stroke-width: 2; }
.fm-scene-svg .fm-gate-glow { fill: var(--fm-glow); opacity: 0; filter: url(#fm-glow); --fm-flash: 0.45; }
.fm-scene-svg .fm-gate-alarm { fill: var(--fm-risk-fill); stroke: var(--fm-risk); stroke-width: 2.4; }
.fm-scene-svg .fm-gate-bar { fill: var(--fm-risk); filter: url(#fm-glow); }
.fm-scene-svg .fm-ring-risk { stroke: var(--fm-risk); stroke-width: 2; }
/* stream + packets */
.fm-scene-svg .fm-stream { fill: none; stroke: url(#fm-stream-g); stroke-width: 1.5; }
.fm-scene-svg .fm-run { fill: none; stroke: var(--fm-glow); stroke-opacity: 0.45; stroke-width: 1.5; stroke-dasharray: 2 14; }
.fm-scene-svg .fm-after { opacity: 0.15; }
.fm-scene-svg .fm-pk { fill: var(--fm-glow); filter: url(#fm-glow); }
.fm-scene-svg .fm-trail { fill: url(#fm-trail-g); }
.fm-scene-svg .fm-pk-go, .fm-scene-svg .fm-gone { opacity: 0; }
.fm-scene-svg .fm-pk-held { transform: translateX(var(--gx)); }
.fm-scene-svg .fm-pk-held .fm-pk { fill: var(--fm-risk); }
/* the user's chat window */
.fm-scene-svg .fm-screen { fill: var(--fm-panel); stroke: var(--fm-panel-line); stroke-width: 1.2; filter: drop-shadow(0 14px 22px var(--fm-shadow)); }
.fm-scene-svg .fm-divider { fill: none; stroke: var(--fm-panel-line); }
.fm-scene-svg .fm-dot3 { fill: var(--fm-muted); opacity: 0.35; }
.fm-scene-svg .fm-apptitle { fill: var(--fm-muted); opacity: 0.3; }
.fm-scene-svg .fm-shield { fill: none; stroke: var(--fm-glow); stroke-width: 1.4; stroke-linejoin: round; }
.fm-scene-svg .fm-shield-hot { fill: var(--fm-risk-fill); stroke: var(--fm-risk); stroke-width: 1.6; stroke-linejoin: round; }
.fm-scene-svg .fm-history { opacity: 0.55; }
.fm-scene-svg .fm-bubble { fill: var(--fm-muted); opacity: 0.1; }
.fm-scene-svg .fm-q { fill: var(--fm-muted); opacity: 0.35; }
.fm-scene-svg .fm-avatar { fill: var(--fm-glow); opacity: 0.85; }
.fm-scene-svg .fm-word { fill: var(--fm-glow); opacity: 0.5; }
.fm-scene-svg .fm-word-old { opacity: 0.35; }
.fm-scene-svg .fm-typing { opacity: 0; }
.fm-scene-svg .fm-typing-dot { fill: var(--fm-muted); }
.fm-scene-svg .fm-held { fill: none; stroke: var(--fm-risk); stroke-opacity: 0.6; stroke-dasharray: 3 2.5; }
.fm-scene-svg .fm-caret { fill: var(--fm-risk); }
.fm-scene-svg .fm-stop { fill: var(--fm-risk-fill); stroke: var(--fm-risk); stroke-opacity: 0.6; }
.fm-scene-svg .fm-stop-text { fill: var(--fm-risk-ink); font-size: 11.5px; font-weight: 700; }
.fm-scene-svg .fm-short { display: none; }
.fm-scene-svg .fm-input { fill: none; stroke: var(--fm-panel-line); stroke-width: 1.2; }
.fm-scene-svg .fm-send { fill: var(--fm-glow); opacity: 0.9; }
.fm-scene-svg .fm-send-arrow { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) {
    .fm-scene-svg .fm-cap, .fm-scene-svg .fm-long { display: none; }
    .fm-scene-svg .fm-short { display: inline; font-size: 18px; }
    .fm-scene-svg .fm-brand { font-size: 26px; }
    .fm-scene-svg .fm-num { font-size: 30px; }
    .fm-scene .fm-replay { top: 8px; right: 8px; width: 28px; height: 28px; }
}

.fm-scene-svg .fm-a-slam, .fm-scene-svg .fm-a-alarm { transform-box: fill-box; transform-origin: center; }
.fm-armed .fm-a-act1     { animation: fm-act1 var(--t, 0.36s) ease-out var(--d, 0s) infinite both; }
.fm-armed .fm-a-act2     { animation: fm-act2 var(--t, 0.72s) ease-out var(--d, 0s) infinite both; }
.fm-armed .fm-a-act3     { animation: fm-act3 var(--t, 1.08s) ease-out var(--d, 0s) infinite both; }
.fm-armed .fm-a-pulse    { animation: fm-pulse var(--t, 2s) linear var(--d, 0s) infinite both; }
.fm-armed .fm-a-sig      { animation: fm-sig var(--t, 0.36s) linear var(--d, 0s) var(--n, 1) both; }
.fm-armed .fm-a-warm     { animation: fm-warm var(--t, 1.8s) cubic-bezier(0.5, 0, 0.9, 0.5) var(--d, 0s) both; }
.fm-armed .fm-a-stopwarm { animation: fm-stopwarm var(--t, 1.8s) cubic-bezier(0.5, 0, 0.9, 0.5) var(--d, 0s) both; }
.fm-armed .fm-a-heat     { animation: fm-fade var(--t, 1.8s) cubic-bezier(0.5, 0, 0.9, 0.5) var(--d, 0s) both; }
.fm-armed .fm-a-alarm    { animation: fm-alarm var(--t, 0.8s) ease-out var(--d, 0s) var(--n, 1) both; }
.fm-armed .fm-a-run      { animation: fm-run var(--t, 1s) linear infinite; }
.fm-armed .fm-a-flow     { animation: fm-flow var(--t, 2s) linear infinite; }
.fm-armed .fm-a-redden   { animation: fm-redden var(--t, 0.2s) ease-out var(--d, 0s) both; }
.fm-armed .fm-a-drop     { animation: fm-drop var(--t, 0.3s) ease-in var(--d, 0s) both; }
.fm-armed .fm-a-slam     { animation: fm-slam var(--t, 0.3s) cubic-bezier(0.2, 0.9, 0.3, 1.25) var(--d, 0s) both; }
.fm-armed .fm-a-go       { animation: fm-go var(--t, 2s) linear var(--d, 0s) both; }
.fm-armed .fm-a-halt     { animation: fm-halt var(--t, 1s) linear var(--d, 0s) both; }
.fm-armed .fm-a-recoil   { animation: fm-recoil var(--t, 0.45s) ease-out var(--d, 0s) both; }
.fm-armed .fm-a-tint     { animation: fm-tint var(--t, 0.2s) ease-out var(--d, 0s) both; }
.fm-armed .fm-a-dim      { animation: fm-dim var(--t, 0.6s) ease-out var(--d, 0s) both; }
.fm-armed .fm-a-caret    { animation: fm-fade 0.01s linear var(--d, 0s) both, fm-blink 1.1s linear var(--d, 0s) infinite; }
.fm-armed .fm-a-typing   { animation: fm-typing var(--t, 2s) linear 0s both; }
.fm-armed .fm-a-bounce   { animation: fm-bounce 0.9s ease-in-out var(--d, 0s) infinite; }
/* a node fires on every 1st, 2nd or 3rd word: each flash is the same length */
@keyframes fm-act1     { 0% { opacity: 0.1; } 12% { opacity: var(--pk, 1); } 60%, 100% { opacity: 0.1; } }
@keyframes fm-act2     { 0% { opacity: 0.1; } 6% { opacity: var(--pk, 1); } 30%, 100% { opacity: 0.1; } }
@keyframes fm-act3     { 0% { opacity: 0.1; } 4% { opacity: var(--pk, 1); } 20%, 100% { opacity: 0.1; } }
@keyframes fm-pulse    { 0% { opacity: 1; stroke-dashoffset: 0.06; } 100% { opacity: 1; stroke-dashoffset: -1.08; } }
@keyframes fm-sig      { 0% { opacity: 1; stroke-dashoffset: var(--g, 0.1); } 100% { opacity: 1; stroke-dashoffset: -1; } }
@keyframes fm-warm     { from { color: var(--from, var(--fm-glow)); } }
@keyframes fm-stopwarm { from { stop-color: var(--fm-glow); } }
@keyframes fm-alarm    { 0% { opacity: 0; transform: scale(0.8); } 12% { opacity: 0.95; } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes fm-run      { to { stroke-dashoffset: -16; } }
@keyframes fm-flow     { from { transform: translateX(0); } to { transform: translateX(var(--dx, 0px)); } }
@keyframes fm-redden   { from { fill: var(--fm-ink); } }
@keyframes fm-drop     { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; }
                         90% { opacity: 1; transform: translateY(var(--dy, 0px)); } 100% { opacity: 0; transform: translateY(var(--dy, 0px)); } }
@keyframes fm-slam     { from { opacity: 0; transform: scaleY(0.1); } }
@keyframes fm-go       { 0% { opacity: 0; transform: translateX(0); } 5%, 92% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--dx, 0px)); } }
@keyframes fm-halt     { 0% { opacity: 0; transform: translateX(0); } 6% { opacity: 1; }
                         78% { transform: translateX(calc(var(--gx, 0px) - 18px)); animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); }
                         100% { opacity: 1; transform: translateX(var(--gx, 0px)); } }
@keyframes fm-recoil   { 0% { transform: translateX(0); } 30% { transform: translateX(-7px); } 100% { transform: translateX(0); } }
@keyframes fm-tint     { from { fill: var(--fm-glow); } }
@keyframes fm-dim      { from { opacity: 1; } }
@keyframes fm-blink    { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes fm-typing   { 0%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fm-bounce   { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-3px); opacity: 1; } }

/* Cell grid */
.fm-cell { fill: currentColor; fill-opacity: 0.3; }
.fm-cell-brand { fill: var(--brand); }

/* ---- motion ---- */
.fm-a-pop, .fm-a-lit, .fm-a-keep, .fm-a-ring, .fm-a-halo, .fm-a-grow { transform-box: fill-box; transform-origin: center; }
.fm-a-grow { transform-origin: left center; }
.fm-a-draw { stroke-dasharray: 1 2; }

/* !important: each .fm-a-* shorthand below resets play-state to running. */
.fm-armed:not(.is-playing) * { animation-play-state: paused !important; }
.fm-armed .fm-a-fade  { animation: fm-fade  var(--t, 0.5s) ease-out var(--d, 0s) both; }
.fm-armed .fm-a-rise  { animation: fm-rise  var(--t, 0.5s) cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s) both; }
.fm-armed .fm-a-pop   { animation: fm-pop   var(--t, 0.4s) cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s) both; }
.fm-armed .fm-a-draw  { animation: fm-draw  var(--t, 0.8s) cubic-bezier(0.3, 0.6, 0.2, 1) var(--d, 0s) both; }
.fm-armed .fm-a-grow  { animation: fm-grow  var(--t, 0.8s) linear var(--d, 0s) both; }
.fm-armed .fm-a-flash { animation: fm-flash var(--t, 1s) linear var(--d, 0s) var(--n, 1) both; }
.fm-armed .fm-a-lit   { animation: fm-lit   0.4s ease-out var(--d, 0s) both; }
.fm-armed .fm-a-ring  { animation: fm-ring  1.1s ease-out var(--d, 0s) both; }
.fm-armed .fm-ring-box.fm-a-ring { animation-name: fm-ring-box; }
.fm-armed .fm-a-halo  { animation: fm-halo  0.9s ease-out var(--d, 0s) both; }
.fm-armed .fm-a-sweep { animation: fm-sweep var(--t, 2s) linear var(--d, 0s) both; }
.fm-armed .fm-a-prune { animation: fm-in-a 0.45s ease-out var(--d, 0s) both,
                                   fm-out-a 0.5s ease-in var(--d2, 1s) forwards; }
.fm-armed .fm-a-keep  { animation: fm-in-a 0.45s ease-out var(--d, 0s) both,
                                   fm-lit 0.45s ease-out var(--d2, 1s) both,
                                   fm-full 0.45s ease-out var(--d2, 1s) forwards; }
.fm-armed .fm-linear  { animation-timing-function: linear; }

@keyframes fm-fade  { from { opacity: 0; } }
@keyframes fm-rise  { from { opacity: 0; transform: translateY(5px); } }
@keyframes fm-pop   { from { opacity: 0; transform: scale(0.35); } }
@keyframes fm-draw  { 0% { stroke-dashoffset: 1; opacity: 0; } 3% { opacity: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes fm-grow  { from { transform: scaleX(0); } }
@keyframes fm-flash { 0% { opacity: 0; } 10% { opacity: var(--fm-flash, 0.5); } 50%, 100% { opacity: 0; } }
@keyframes fm-lit   { from { fill: currentColor; fill-opacity: 0.25; transform: scale(0.55); } }
@keyframes fm-ring  { 0% { opacity: 0; transform: scale(0.4); } 25% { opacity: 0.9; } 100% { opacity: 0; transform: scale(2.1); } }
@keyframes fm-ring-box { 0% { opacity: 0; transform: scale(1); } 25% { opacity: 0.8; } 100% { opacity: 0; transform: scale(1.22, 1.6); } }
@keyframes fm-halo  { 0% { opacity: 0; transform: scale(0.3); } 40% { opacity: 0.9; } 100% { opacity: 0.35; transform: scale(1); } }
@keyframes fm-sweep { 0% { opacity: 0; transform: translateX(0); } 6%, 94% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--dx, 0px)); } }
@keyframes fm-in-a  { from { opacity: 0; } to { opacity: var(--a, 0.5); } }
@keyframes fm-out-a { from { opacity: var(--a, 0.5); } to { opacity: 0.1; } }
@keyframes fm-full  { from { opacity: var(--a, 0.5); } to { opacity: 1; } }
@keyframes fm-live  { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

@media (max-width: 620px) {
    .fm-split { grid-template-columns: 1fr; }
    .fm-readout { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem;
        padding: 0.75rem 0 0; border-left: 0; border-top: 1px solid var(--catalog-hair, var(--border)); }
    .fm-readout-sub { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .fm-figure *, .fm-figure *::before { animation: none !important; }
}

/* Coolwei Learning — shared site chrome, editorial introduction and course library. */
.learn-page { --learn-measure:720px; }
.learn-page #navbar-container { position:sticky; top:0; z-index:1000; }
.learn-page .navbar { position:relative; top:auto; }
.learn-page .nav-menu a { font-size:14px; }
.learn-page [hidden] { display:none !important; }
.learn-page main { min-height:calc(100vh - 220px); }
.learn-page .learn-kicker { display:block; font-size:13px; line-height:1.5; letter-spacing:.09em; font-weight:600; color:var(--text-muted); }
.learn-page .learn-accent { color:var(--brand); }
.learn-page .learn-lede { font-size:18px; line-height:1.85; color:var(--text-muted); max-width:630px; }
.learn-page .learn-muted { color:var(--text-muted); }
.learn-page .learn-hero { padding:56px 0 64px; }
.learn-page .learn-hero .hero-layout { align-items:center; gap:64px; }
.learn-page .learn-hero h1 { font-size:clamp(38px,4.3vw,58px); line-height:1.23; letter-spacing:-.04em; margin:24px 0; font-weight:650; }
.learn-page .learn-hero .hero-kicker { font-size:13px; letter-spacing:.04em; }
.learn-page .learn-hero .hero-buttons { gap:24px; align-items:center; margin-top:28px; }
.learn-page .btn { font-size:15px; min-height:46px; display:inline-flex; gap:14px; align-items:center; justify-content:center; }
.learn-page .learn-text-link { color:var(--text); font-size:16px; font-weight:550; display:inline-flex; gap:24px; align-items:center; padding:10px 0; text-decoration:none; }
.learn-page .learn-text-link:hover { color:var(--brand); }
.learn-page .learn-hero-art { margin:0; min-width:0; }
.learn-page .learn-hero-art img { width:100%; height:auto; display:block; border-radius:6px; }
.learn-page .learn-intro { padding-block:56px 68px; display:grid; grid-template-columns:1fr 1fr; gap:64px; border-top:1px solid var(--border); }
.learn-page .learn-intro h2 { font-size:32px; line-height:1.5; letter-spacing:-.025em; margin:0; }
.learn-page .learn-intro p { font-size:18px; line-height:1.85; margin:0; color:var(--text-muted); }
.learn-page .learn-feature { border-top:1px solid var(--border); padding-block:60px 72px; display:grid; grid-template-columns:240px minmax(0,1fr); gap:48px; }
.learn-page .learn-course-side p { font-size:14px; margin-top:10px; color:var(--text-muted); }
.learn-page .learn-course-main h2 { font-size:38px; line-height:1.3; margin:0 0 20px; letter-spacing:-.03em; }
.learn-page .learn-course-main > .learn-lede { max-width:750px; margin:0; }
.learn-page .learn-topic-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin:36px 0 28px; }
.learn-page .learn-topic-list > div { border-top:1px solid var(--border); padding-top:20px; }
.learn-page .learn-topic-list > div > span { font-size:14px; color:var(--brand); font-variant-numeric:tabular-nums; }
.learn-page .learn-topic-list h3 { margin:14px 0 10px; font-size:19px; line-height:1.5; font-weight:600; }
.learn-page .learn-topic-list p { font-size:15px; line-height:1.8; color:var(--text-muted); margin:0; }
.learn-page .learn-course-note { color:var(--text-muted); font-size:15px; line-height:1.8; max-width:730px; margin:26px 0 12px; }
.learn-page .learn-bottom-cta { border-top:1px solid var(--border); padding-block:58px 80px; display:grid; grid-template-columns:1fr 1fr; gap:64px; }
.learn-page .learn-bottom-cta h2 { font-size:34px; margin:0; }
.learn-page .learn-bottom-cta p { font-size:17px; color:var(--text-muted); line-height:1.8; margin:0 0 24px; }
.learn-page .learn-back { display:inline-flex; gap:8px; font-size:14px; color:var(--text-muted); text-decoration:none; line-height:1.8; }
.learn-page .learn-back:hover { color:var(--brand); }
.learn-page .learn-login-layout { display:grid; grid-template-columns:1fr minmax(320px,430px); gap:100px; align-items:start; padding-block:56px 90px; }
.learn-page .learn-login-intro .learn-back { margin-bottom:72px; }
.learn-page .learn-login-intro .learn-kicker { margin-bottom:24px; }
.learn-page .learn-login-intro h1 { font-size:52px; line-height:1.28; letter-spacing:-.035em; margin:0 0 24px; }
.learn-page .learn-login-intro .learn-lede { max-width:390px; }
.learn-page .learn-login-panel { margin-top:80px; padding:32px 0 0; border-top:2px solid var(--text); }
.learn-page .learn-login-panel h2 { font-size:30px; line-height:1.4; margin:0 0 8px; }
.learn-page .learn-login-panel > p { font-size:15px; line-height:1.75; margin:0 0 30px; }
.learn-page .learn-login-panel label { display:block; font-size:15px; margin:22px 0 9px; }
.learn-page .learn-login-panel input { width:100%; border:1px solid var(--border-strong,var(--border)); border-radius:4px; background:var(--bg); color:var(--text); padding:13px 14px; min-height:48px; font:inherit; font-size:16px; }
.learn-page .learn-password-field { position:relative; }
.learn-page .learn-password-field input { padding-right:80px; }
.learn-page .learn-password-field button { position:absolute; right:6px; top:5px; min-height:38px; padding:4px 10px; color:var(--text-muted); background:transparent; border:0; font:inherit; font-size:14px; cursor:pointer; }
.learn-page .learn-submit { width:100%; margin-top:28px; border:0; cursor:pointer; }
.learn-page .learn-submit:disabled { opacity:.65; cursor:wait; }
.learn-page .learn-login-panel .learn-login-help { font-size:14px; color:var(--text-muted); line-height:1.8; margin:24px 0 0; }
.learn-page .learn-error { margin:18px 0 0; padding:12px 14px; border-left:2px solid #c64636; background:color-mix(in srgb,#c64636 8%,transparent); color:var(--text); font-size:14px; line-height:1.7; }
.learn-page a:focus-visible, .learn-page button:focus-visible, .learn-page input:focus-visible { outline:2px solid var(--brand); outline-offset:4px; }
.learn-page .learn-library { padding-block:32px 90px; }
.learn-page .learn-library-top { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.learn-page .learn-account { display:flex; align-items:center; gap:18px; font-size:14px; color:var(--text-muted); }
.learn-page .learn-account button { padding:9px 0 9px 18px; border:0; border-left:1px solid var(--border); border-radius:0; color:var(--text); font:inherit; font-size:14px; background:transparent; cursor:pointer; }
.learn-page .learn-library-heading { margin:60px 0 44px; max-width:900px; }
.learn-page .learn-library-heading h1 { font-size:44px; letter-spacing:-.035em; line-height:1.3; margin:18px 0 20px; }
.learn-page .learn-library-heading .learn-lede { max-width:780px; }
.learn-page .learn-catalog-state { padding:28px 0; color:var(--text-muted); font-size:16px; line-height:1.7; border-top:1px solid var(--border); }
.learn-page .learn-course-row { display:grid; grid-template-columns:64px minmax(0,1fr) 40px; gap:24px; padding:34px 0 38px; border-block:1px solid var(--border); color:var(--text); text-decoration:none; }
.learn-page .learn-course-row + .learn-course-row { border-top:0; }
.learn-page .learn-row-number { font-size:16px; color:var(--text-muted); font-variant-numeric:tabular-nums; line-height:1.7; }
.learn-page .learn-row-content { min-width:0; }
.learn-page .learn-row-content h2 { margin:6px 0 12px; font-size:28px; letter-spacing:-.025em; line-height:1.4; }
.learn-page .learn-row-content p { font-size:17px; line-height:1.8; color:var(--text-muted); margin:0 0 18px; max-width:780px; }
.learn-page .learn-course-row:hover h2, .learn-page .learn-course-row:hover .learn-row-arrow { color:var(--brand); }
.learn-page .learn-row-arrow { font-size:30px; justify-self:end; }
.learn-page .learn-course-count { font-size:14px; color:var(--text-muted); }
.learn-page .learn-lesson-row { display:grid; grid-template-columns:64px minmax(0,1fr); gap:24px; padding:26px 0; border-top:1px solid var(--border); }
.learn-page .learn-lesson-row:last-child { border-bottom:1px solid var(--border); }
.learn-page .learn-lesson-row h2 { font-size:23px; margin:0 0 12px; }
.learn-page .learn-draft { display:inline-block; color:var(--text-muted); border:1px solid var(--border); font-size:13px; line-height:1.5; padding:3px 8px; margin:0 0 14px; border-radius:3px; }
.learn-page .learn-resource-links { display:flex; flex-wrap:wrap; gap:8px 24px; }
.learn-page .learn-resource-links a { color:var(--text-muted); font-size:15px; line-height:1.8; padding:4px 0; text-decoration:underline; text-underline-offset:4px; }
.learn-page .learn-resource-links a.learn-resource-primary { color:var(--brand); font-weight:550; }
.learn-page .learn-lesson-row .learn-muted { font-size:15px; margin:0; }
.learn-page .learn-nojs { color:var(--text-muted); padding-block:24px; }
@media(min-width:1000px) { .learn-page .nav-menu { gap:26px; } }
@media(max-width:900px) {
    .learn-page .learn-hero .hero-layout { gap:32px; }
    .learn-page .learn-intro, .learn-page .learn-bottom-cta { gap:32px; }
    .learn-page .learn-feature { grid-template-columns:150px minmax(0,1fr); gap:30px; }
    .learn-page .learn-topic-list { grid-template-columns:1fr; gap:18px; }
    .learn-page .learn-topic-list h3 { margin:6px 0; }
    .learn-page .learn-login-layout { gap:48px; grid-template-columns:1fr 1fr; }
    .learn-page .learn-login-intro h1 { font-size:40px; }
}
@media(max-width:640px) {
    .learn-page .nav-menu { flex-wrap:nowrap; overflow-x:auto; width:100%; min-width:0; justify-self:stretch; }
    .learn-page .nav-menu li { flex-shrink:0; }
    .learn-page .learn-hero { padding:34px 0 36px; }
    .learn-page .learn-hero .hero-layout, .learn-page .learn-intro, .learn-page .learn-bottom-cta, .learn-page .learn-feature, .learn-page .learn-login-layout { grid-template-columns:minmax(0,1fr); }
    .learn-page .learn-hero .hero-layout { gap:32px; }
    .learn-page .learn-hero h1 { font-size:39px; margin:22px 0; }
    .learn-page .learn-lede, .learn-page .learn-intro p { font-size:17px; line-height:1.8; }
    .learn-page .learn-hero .hero-buttons { gap:12px 24px; flex-wrap:wrap; }
    .learn-page .learn-hero-art img { aspect-ratio:3/2; }
    .learn-page .learn-intro, .learn-page .learn-feature { padding-block:36px 40px; gap:24px; }
    .learn-page .learn-intro h2, .learn-page .learn-bottom-cta h2 { font-size:28px; }
    .learn-page .learn-course-side p { margin:6px 0 0; }
    .learn-page .learn-course-main h2 { font-size:30px; }
    .learn-page .learn-topic-list { margin:28px 0; }
    .learn-page .learn-bottom-cta { padding-block:36px 54px; gap:20px; }
    .learn-page .learn-login-layout { padding-block:28px 54px; gap:32px; }
    .learn-page .learn-login-intro .learn-back { margin-bottom:34px; }
    .learn-page .learn-login-intro .learn-kicker { margin-bottom:16px; }
    .learn-page .learn-login-intro h1 { font-size:38px; margin-bottom:18px; }
    .learn-page .learn-login-panel { margin-top:0; padding-top:24px; }
    .learn-page .learn-library-top { align-items:flex-start; flex-wrap:wrap; gap:8px; }
    .learn-page .learn-library-heading { margin:36px 0 30px; }
    .learn-page .learn-library-heading h1 { font-size:34px; }
    .learn-page .learn-course-row { grid-template-columns:30px minmax(0,1fr) 24px; gap:12px; padding:26px 0; }
    .learn-page .learn-row-content h2 { font-size:24px; }
    .learn-page .learn-row-content p { font-size:16px; }
    .learn-page .learn-row-arrow { font-size:25px; }
    .learn-page .learn-lesson-row { grid-template-columns:32px minmax(0,1fr); gap:14px; }
    .learn-page .learn-lesson-row h2 { font-size:21px; }
    .learn-page .learn-resource-links { gap:8px 18px; }
}


/* Learn Test — 00A–00D challenge papers. */
.learn-subnav { display:flex; gap:30px; padding-block:17px; border-bottom:1px solid var(--border); }
.learn-subnav a { font-size:15px; text-decoration:none; padding:4px 0; color:var(--text-muted); }
.learn-subnav a[aria-current], .learn-subnav a:hover { color:var(--brand); text-decoration:underline; text-underline-offset:8px; }
.learn-test .test-main { max-width:1000px; padding-top:26px; padding-bottom:70px; }
.learn-test .test-heading { margin:24px 0; }
.learn-test .test-heading h1 { font-size:clamp(32px,4vw,40px); line-height:1.2; margin:0 0 16px; }
.learn-test .test-heading p { font-size:18px; color:var(--text-muted); }
.learn-test .test-controls { display:flex; align-items:flex-end; gap:24px; flex-wrap:wrap; }
.learn-test .test-controls label { display:grid; gap:8px; font-size:14px; }
.learn-test select, .learn-test input[type=text], .learn-test textarea { font:inherit; font-size:16px; color:var(--text); background:var(--bg); border:1px solid var(--border); border-radius:4px; padding:10px 12px; min-height:44px; }
.learn-test select { max-width:100%; }
.learn-test input[type=text] { display:block; width:240px; max-width:100%; margin-top:10px; }
.learn-test textarea { display:block; width:100%; resize:vertical; margin-top:10px; }
.learn-test :is(a,button,input,textarea,select):focus-visible { outline:2px solid var(--brand); outline-offset:4px; }
.learn-test #test-meta { margin:28px 0 8px; font-size:16px; }
.learn-test .test-instructions, .learn-test #test-submit-note { font-size:16px; line-height:1.8; color:var(--text-muted); max-width:760px; }
.learn-test .test-guidelines { margin:16px 0; }
.learn-test .test-guidelines summary { cursor:pointer; font-size:16px; }
.learn-test .test-guidelines .test-instructions { margin-top:14px; }
.learn-test .test-progress { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; border-top:1px solid var(--border); margin-top:28px; padding:18px 0; font-size:14px; }
.learn-test #test-save { color:var(--text-muted); }
.learn-test .test-jumps { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.learn-test .test-jumps a { display:grid; place-items:center; width:36px; height:36px; border:1px solid var(--border); border-radius:3px; color:var(--text); text-decoration:none; font-size:14px; }
.learn-test .test-jumps .is-answered { border-color:var(--brand); color:var(--brand); box-shadow:inset 0 -3px var(--brand); }
.learn-test .test-unit-heading { margin:32px 0 24px; font-size:25px; line-height:1.5; }
.learn-test .test-group { border-top:1px solid var(--border); margin-top:36px; scroll-margin-top:130px; }
.learn-test .test-context { font-size:17px; line-height:1.85; margin-bottom:32px; }
.learn-test .test-context p { font-size:17px; line-height:1.85; }
.learn-test .test-question { min-width:0; margin:0 0 36px; padding:24px 0 30px; border:0; border-bottom:1px solid var(--border); scroll-margin-top:130px; }
.learn-test .test-group .test-question:last-child { border-bottom:0; margin-bottom:0; }
.learn-test .test-question legend { font-size:20px; font-weight:600; line-height:1.5; padding:0; }
.learn-test .test-question p, .learn-test .test-question li { font-size:17px; line-height:1.85; }
.learn-test .test-prompt { margin-bottom:24px; overflow-x:auto; }
.learn-test .test-table-scroll { max-width:100%; overflow-x:auto; }
.learn-test .test-prompt p:first-child { margin-top:0; }
.learn-test .test-prompt table { border-collapse:collapse; margin:20px 0; width:auto; min-width:50%; font-size:16px; }
.learn-test .test-prompt :is(th,td) { padding:10px 16px; border-bottom:1px solid var(--border); text-align:left; white-space:nowrap; }
.learn-test .test-options { display:grid; gap:10px; }
.learn-test .test-option { display:flex; gap:12px; align-items:flex-start; border:1px solid var(--border); border-radius:4px; padding:14px 16px; font-size:17px; line-height:1.75; cursor:pointer; }
.learn-test .test-option:has(input:checked) { border-color:var(--brand); }
.learn-test input[type=radio] { margin-top:7px; flex:none; accent-color:var(--brand); width:18px; height:18px; }
.learn-test .test-option-letter { color:var(--text-muted); flex:none; }
.learn-test .test-question > label { display:block; font-size:15px; }
.learn-test .test-feedback { margin-top:28px; border-left:3px solid var(--brand); padding:2px 0 2px 22px; }
.learn-test .test-feedback h3 { margin-top:12px; font-size:18px; }
.learn-test .test-feedback label { display:block; margin:16px 0 8px; font-size:15px; }
.learn-test .test-result { border-block:2px solid var(--brand); padding:22px 0; margin-top:30px; scroll-margin-top:130px; }
.learn-test .test-result h2 { font-size:30px; margin:0 0 12px; }
.learn-test .test-result p { font-size:16px; line-height:1.8; }
.learn-test .test-submit-row { display:flex; flex-wrap:wrap; align-items:center; gap:18px; }
.learn-test #test-incomplete { padding:20px 0; font-size:16px; }
.learn-test .test-sources { border-top:1px solid var(--border); margin-top:52px; padding-top:20px; font-size:14px; line-height:1.8; color:var(--text-muted); }
.learn-test .test-sources summary { cursor:pointer; font-size:15px; color:var(--text); }
.learn-test .test-sources a { color:var(--brand); }
.learn-test .katex { font-size:1.05em; }
.learn-test .katex-display { overflow-x:auto; overflow-y:hidden; padding:5px 0; }
.learn-test input:disabled, .learn-test textarea:disabled { opacity:1; -webkit-text-fill-color:var(--text); }
@media(max-width:640px) {
  .learn-test .test-heading { margin:30px 0 26px; }
  .learn-test .test-controls { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
  .learn-test .test-controls select { min-width:0; width:100%; }
  .learn-test .test-controls > button { grid-column:1 / -1; justify-self:start; }
  .learn-test .test-controls label { min-width:0; }
  .learn-test .test-question legend { font-size:19px; }
  .learn-test .test-option { padding:12px 10px; gap:8px; }
  .learn-test .test-prompt :is(th,td) { padding:8px 12px; }
  .learn-test .test-feedback { padding-left:15px; }
}
@media print {
  .learn-test { --text:#111; --text-muted:#333; --bg:#fff; --border:#bbb; --brand:#222; background:white !important; color:#111 !important; }
  .learn-test :is(#navbar-container,#footer-container,.learn-subnav,.learn-library-top,.test-controls,.test-progress,.test-jumps,.test-submit-row,#test-incomplete,.test-sources) { display:none !important; }
  .learn-test .test-main { max-width:none; padding:0; }
  .learn-test .test-guidelines summary { display:none; }
  .learn-test .test-heading { margin:0 0 20px; }
  .learn-test .test-question { break-inside:avoid; }
  .learn-test .test-unit-heading { break-after:avoid; }
  .learn-test .test-group { border-top:0; }
  .learn-test .test-context { break-after:avoid; }
  .learn-test .test-prompt, .learn-test .test-table-scroll { overflow:visible; }
  .learn-test textarea { min-height:140px; }
  .learn-test :is(input,textarea,select) { background:white; color:#111; }
}

/* Course notebook editor — native page scroll, shared light/dark tokens. */
.learn-notebook-page .notebook-app { max-width: 1600px; margin: 0 auto; padding: 28px 32px 72px; }
.notebook-heading { display: flex; align-items: center; gap: 24px; padding-bottom: 18px; }
.notebook-heading > a { font-size: 15px; white-space: nowrap; }
.notebook-title-label { flex: 1; min-width: 0; }
.notebook-title-label input { width: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 26px; font-weight: 600; padding: 8px 0; }
.notebook-account { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.learn-notebook-page button, .learn-notebook-page select, .notebook-import { font-family: inherit; font-size: 14px; line-height: 1.45; min-height: 38px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); padding: 8px 12px; cursor: pointer; }
.learn-notebook-page button:hover, .notebook-import:hover { border-color: var(--brand); }
.learn-notebook-page button:disabled { opacity: .5; cursor: default; }
.learn-notebook-page :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.notebook-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 0; }
.notebook-toolbar #notebook-run-all { background: var(--brand); border-color: var(--brand); color: #fff; }
.notebook-toolbar-divider { height: 24px; border-left: 1px solid var(--border); margin: 0 6px; }
.notebook-kernel-status { margin-left: auto; font-size: 14px; padding: 6px; color: var(--text-muted); }
.notebook-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 32px; }
.notebook-sidebar { border-right: 1px solid var(--border); padding: 28px 24px 0 0; }
.notebook-sidebar > label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.notebook-sidebar select { width: 100%; max-width: 100%; }
.notebook-sidebar nav { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; font-size: 14px; overflow-wrap: anywhere; }
.notebook-sidebar nav a { color: var(--text-muted); text-decoration: none; line-height: 1.6; }
.notebook-sidebar nav a:hover { color: var(--brand); }
.notebook-help { margin-top: 32px; font-size: 14px; line-height: 1.75; color: var(--text-muted); }
.notebook-help summary { cursor: pointer; font-size: 14px; color: var(--text); }
.notebook-workspace { min-width: 0; padding-top: 24px; }
.notebook-message { margin-bottom: 18px; border-left: 3px solid var(--brand); padding: 10px 16px; background: color-mix(in srgb, var(--brand) 6%, transparent); font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.notebook-message.is-error { border-color: #c44936; }
#notebook-recovery { display: flex; gap: 16px; align-items: center; margin: 12px 0; font-size: 15px; }
#notebook-recovery[hidden], .notebook-message[hidden], .notebook-source[hidden], .notebook-outputs[hidden] { display: none; }
.notebook-document-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); gap: 12px; margin-bottom: 20px; }
.notebook-cell { display: flex; gap: 12px; margin: 0 0 22px; scroll-margin-top: 100px; }
.notebook-cell-rail { width: 42px; flex: 0 0 42px; padding-top: 40px; text-align: center; }
.notebook-cell-rail button { padding: 6px; width: 38px; height: 38px; border-radius: 50%; color: var(--brand); }
.notebook-execution { display: block; margin-top: 8px; color: var(--text-muted); font: 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.notebook-cell-body { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.notebook-cell:focus-within .notebook-cell-body { border-color: var(--brand); }
.notebook-cell-tools { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.notebook-cell-tools button, .notebook-cell-tools select { border: none; background: transparent; font-size: 14px; min-height: 36px; padding: 6px 8px; }
.notebook-cell-tools select { margin-right: auto; }
.notebook-source { display: block; width: 100%; box-sizing: border-box; resize: vertical; border: none; border-radius: 0; padding: 18px 20px; background: color-mix(in srgb, var(--text) 3%, var(--bg)); color: var(--text); font: 14px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 4; min-height: 80px; max-height: 1800px; white-space: pre; overflow: auto; }
.notebook-source:focus { outline-offset: -2px; }
.notebook-outputs { padding: 12px 20px; border-top: 1px solid var(--border); }
.notebook-outputs pre, .notebook-markdown pre { margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.notebook-output-error { color: #b43e2f; }
[data-theme="dark"] .notebook-output-error { color: #ff9e90; }
.notebook-outputs img { display: block; max-width: 100%; height: auto; background: #fff; margin: 12px 0; }
.notebook-markdown { padding: 8px 24px 20px; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.notebook-markdown h1 { font-size: 28px; line-height: 1.4; margin: 16px 0; }
.notebook-markdown h2 { font-size: 23px; margin: 18px 0 10px; }
.notebook-markdown h3 { font-size: 20px; margin: 16px 0 8px; }
.notebook-markdown p { margin: 10px 0; }
.notebook-markdown blockquote { border-left: 2px solid var(--brand); margin: 16px 0; padding-left: 16px; color: var(--text-muted); }
.notebook-markdown code { font-size: .9em; }
.learn-notebook-page .notebook-markdown-toggle { margin: 8px 20px 0; border: none; color: var(--brand); padding: 4px 0; }
.notebook-add { display: flex; gap: 12px; justify-content: center; border-top: 1px solid var(--border); padding: 24px 0; }
@media (max-width: 1000px) { .learn-notebook-page .notebook-app { padding: 20px 20px 50px; } .notebook-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 20px; } .notebook-account > span { display: none; } .notebook-heading { gap: 16px; } .notebook-title-label input { font-size: 23px; } }
@media (max-width: 700px) { .learn-notebook-page .notebook-app { padding: 18px 12px 48px; } .notebook-heading { flex-wrap: wrap; gap: 8px 16px; } .notebook-title-label { min-width: calc(100% - 90px); } .notebook-account { width: 100%; justify-content: flex-end; } .notebook-layout { display: block; } .notebook-sidebar { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--border); } .notebook-sidebar nav, .notebook-help { display: none; } .notebook-toolbar-divider { display: none; } .notebook-kernel-status { width: 100%; margin-left: 0; } .notebook-cell { gap: 6px; } .notebook-cell-rail { width: 32px; flex-basis: 32px; } .notebook-cell-rail button { width: 30px; min-height: 32px; height: 32px; } .notebook-source { padding: 14px 12px; } .notebook-markdown { padding: 8px 16px 18px; } .notebook-cell-tools { gap: 0; padding: 4px; flex-wrap: wrap; } .notebook-cell-tools button, .notebook-cell-tools select { font-size: 14px; padding: 6px; } .notebook-outputs { padding: 10px 12px; } .notebook-markdown h1 { font-size: 25px; } }
.learn-notebook-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.notebook-table { width: 100%; overflow-x: auto; margin: 16px 0; }
.notebook-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.notebook-table th, .notebook-table td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; min-width: 90px; }
.notebook-table th { background: var(--bg-muted); font-weight: 600; }
.notebook-math, .notebook-markdown .katex-display { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.learn-lesson-group { font-size: 24px; padding: 30px 0 16px; margin: 0; border-bottom: 1px solid var(--border); }

/* YanAn Red Team case study. Counts of rounds, samples and filters have distinct units. */
.open-form .product-redteam .rt-evidence {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
    align-items: start;
    gap: 24px clamp(28px, 6vw, 76px);
    padding: clamp(18px, 3vw, 36px);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}
.rt-evidence :is(h3, p) { margin: 0; }
.open-form .product-redteam .rt-evidence h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--text); }
.open-form .product-redteam .rt-count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin: 12px 0 18px; color: var(--text-muted); font-size: 15px; line-height: 1.4; }
.rt-count strong { color: var(--text); font-size: clamp(40px, 5vw, 68px); font-weight: 550; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.rt-count strong span { font-size: .62em; }
.rt-scope-marks { display: grid; grid-template-columns: 23fr 15fr; gap: clamp(12px, 2vw, 28px); align-items: end; max-width: 440px; }
.rt-scope-marks svg, .rt-review .rt-checks { display: block; max-width: 100%; height: auto; }
.rt-scope-marks svg { width: auto; margin: 0 0 7px; color: var(--text); }
.open-form .product-redteam .rt-scope-marks p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.rt-scope-marks p strong { color: var(--text); }
.rt-review .rt-count strong { color: var(--brand); }
.rt-review .rt-checks { width: 150px; }
.rt-evidence .article-figure-caption { grid-column: 1 / -1; margin: 0; padding-top: 12px; border-top: 1px solid var(--border); }
.rt-scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; gap: clamp(14px, 3vw, 36px); margin: 0; padding: 0; }
.rt-scale li { min-width: 0; }
.rt-rank { color: var(--brand); font: 600 20px/1.3 ui-monospace, monospace; }
.rt-meter { display: flex; gap: 4px; margin: 10px 0 12px; }
.rt-meter i { height: 5px; flex: 1; background: var(--border); border-radius: 2px; }
.rt-meter .filled { background: var(--brand); }
.open-form .product-redteam .rt-scale h3 { font-size: 17px; margin: 0 0 6px; }
.open-form .product-redteam .rt-scale p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-muted); }
@media (max-width: 760px) {
    .open-form .product-redteam .rt-evidence { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .rt-scope-marks { max-width: 380px; }
    .rt-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

/* YanAn Red Team model bank and shared review record. */
.rt-cluster {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}
.rt-cluster-plate {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: var(--surface);
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 14px 14px;
}
.rt-model-bank { padding: 24px 12px 0; }
.rt-model-bank ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}
.rt-model-bank li {
    display: grid;
    justify-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
}
.rt-model-bank img {
    box-sizing: content-box;
    display: block;
    width: 36px;
    height: 36px;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
}
.rt-model-routes { display: block; width: 100%; height: 38px; margin-top: 6px; }
.rt-model-routes path { fill: none; stroke: var(--brand); opacity: .45; vector-effect: non-scaling-stroke; }
.rt-model-routes .rt-signal { display: none; }
@media (prefers-reduced-motion: no-preference) {
    .rt-model-routes .rt-signal {
        display: block;
        stroke-width: 2;
        stroke-dasharray: 10 100;
        opacity: .95;
        animation: rt-signal 2.8s ease-in-out 1 both;
    }
}
@keyframes rt-signal { from { stroke-dashoffset: 10; } to { stroke-dashoffset: -100; } }
.rt-cluster-art { display: block; width: 100%; height: auto; }
/* Frame the selected surveyor in the original 3:2 illustration. */
.rt-scene { position: relative; overflow: hidden; }
.rt-viewfinder { display: none; }
.rt-cluster[data-role] .rt-viewfinder {
    position: absolute;
    display: block;
    left: var(--frame-x);
    top: var(--frame-y);
    width: var(--frame-w);
    bottom: 12%;
    border: 2px solid #fff8e7;
    border-radius: 12px;
    box-shadow: 0 0 0 100vmax rgb(29 21 14 / 38%), inset 0 0 12px rgb(255 248 231 / 22%);
    pointer-events: none;
}
.rt-cluster[data-role="role-explorer"] { --frame-x: 3%; --frame-y: 7%; --frame-w: 32%; }
.rt-cluster[data-role="role-exploiter"] { --frame-x: 36%; --frame-y: 31%; --frame-w: 30%; }
.rt-cluster[data-role="role-judge"] { --frame-x: 67%; --frame-y: 10%; --frame-w: 31%; }
.rt-viewfinder span {
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translate(-50%, 50%);
    padding: 3px 10px;
    border: 1px solid #fff8e7;
    border-radius: 20px;
    background: #352c25;
    color: #fff8e7;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.rt-role-workbench { min-width: 0; }
.rt-role-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 11px;
}
#agent-cluster .rt-role-tabs a {
    flex: 1;
    padding: 9px 2px;
    border-radius: 7px;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}
#agent-cluster .rt-role-tabs a:hover { background: color-mix(in srgb, var(--brand) 9%, transparent); }
#agent-cluster .rt-role-tabs a[aria-selected="true"] { background: var(--text); color: var(--surface); }
#agent-cluster .rt-role-tabs a:focus-visible, .rt-role-record:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.rt-role-record { margin-top: 18px; scroll-margin-top: 140px; }
.open-form .product-redteam .rt-role-record h3 { margin: 0 0 6px; font-size: 22px; }
.open-form .product-redteam .rt-role-record > p, .rt-handoff dd { margin: 0; color: var(--text-muted); font-size: 16px; line-height: 1.65; }
.rt-handoff {
    margin-top: 16px;
    padding: clamp(14px, 2vw, 22px);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand);
    border-radius: 0 10px 10px 0;
    background: color-mix(in srgb, var(--brand) 4%, var(--surface));
}
.open-form .product-redteam .rt-case-title { margin: 0 0 4px; font-size: 14px; color: var(--text-muted); }
.rt-handoff h4 { margin: 0; font-size: 19px; }
.rt-handoff dl { display: grid; gap: 10px; margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--border); }
.rt-handoff dl > div { display: grid; grid-template-columns: minmax(6em, 25%) 1fr; gap: 12px; }
.rt-handoff dt { font-size: 15px; font-weight: 600; line-height: 1.65; }
@media (prefers-reduced-motion: no-preference) {
    .rt-viewfinder { transition: left .24s ease, top .24s ease, width .24s ease; }
    .rt-role-record[role="tabpanel"]:not([hidden]) { animation: rt-record-in .22s ease-out; }
    @keyframes rt-record-in { from { opacity: .5; transform: translateY(3px); } }
}
@media (max-width: 760px) {
    .rt-cluster { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .rt-model-bank { padding: 16px 4px 0; }
    .rt-handoff dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
