/* CodeNoteList — 参考 /intro 宣传页风格，与全站主题 token 对齐 */

html, body {
    overflow-x: hidden;
}

.cnl-page {
    /* 与 HydroOJ #panel 背景 #edf0f2 对齐 */
    --bg: #edf0f2;
    --bg-card: #FFFFFF;
    --bg-panel: #F3F2EE;
    --border: #E3E0D8;
    --border-light: #EBE8E2;
    --accent: #B45309;
    --accent-hover: #92400E;
    --accent-dim: rgba(180, 83, 9, 0.10);
    --accent-glow: rgba(180, 83, 9, 0.18);
    --accent-border: rgba(180, 83, 9, 0.20);
    --on-accent: #FFFFFF;
    --text-primary: #1C1917;
    --text-secondary: #57534E;
    --text-soft: #44403C;
    --text-muted: #A8A29E;
    --success: #3FB950;
    --danger: #F85149;
    --warning: #D29922;
    --info: #0b4587;
    --shadow: rgba(28, 25, 23, 0.12);
    --font-display: "Chakra Petch", "Noto Sans SC", sans-serif;
    --font-body: "Noto Sans SC", sans-serif;
    --font-mono: "JetBrains Mono", monospace;
    --content-max: 1024px;
    --page-gutter: 32px;
    --section-y: 40px;
    --radius: 14px;
    --radius-lg: 16px;
    --cnl-elev-soft:
        0 8px 22px color-mix(in srgb, var(--shadow) 20%, transparent),
        0 2px 8px color-mix(in srgb, var(--shadow) 8%, transparent);
    --cnl-elev-medium:
        0 20px 44px color-mix(in srgb, var(--shadow) 55%, transparent),
        0 8px 20px color-mix(in srgb, var(--shadow) 26%, transparent);
    --cnl-showcase-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 1px 4px rgba(28, 25, 23, 0.04),
        0 6px 16px rgba(28, 25, 23, 0.05),
        0 12px 28px rgba(28, 25, 23, 0.07);
    --cnl-product-shadow-rest:
        0 1px 0 color-mix(in srgb, #fff 55%, transparent) inset,
        0 1px 2px color-mix(in srgb, var(--shadow) 8%, transparent),
        0 3px 8px color-mix(in srgb, var(--shadow) 6%, transparent),
        0 8px 18px color-mix(in srgb, var(--shadow) 4%, transparent);
    --cnl-product-shadow-hover:
        0 1px 0 color-mix(in srgb, #fff 65%, transparent) inset,
        0 2px 6px color-mix(in srgb, var(--card-accent, var(--accent)) 8%, transparent),
        0 8px 18px color-mix(in srgb, var(--card-accent, var(--accent)) 12%, transparent),
        0 14px 28px color-mix(in srgb, var(--shadow) 8%, transparent);

    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg);
    min-height: 60vh;
}

.theme--dark .cnl-page {
    /* amber-night（深色模式） */
    --bg: #0F0C08;
    --bg-card: #1A1410;
    --bg-panel: #211A12;
    --border: #3D2E1C;
    --border-light: #2D2318;
    --accent: #EF9F27;
    --accent-hover: #D48A0C;
    --accent-dim: rgba(239, 159, 39, 0.12);
    --accent-glow: rgba(239, 159, 39, 0.25);
    --accent-border: rgba(239, 159, 39, 0.20);
    --on-accent: #0F0C08;
    --text-primary: #F5E6D0;
    --text-secondary: #9E8A70;
    --text-soft: #C9B99A;
    --text-muted: #6B5A42;
    --shadow: rgba(0, 0, 0, 0.35);
    --cnl-elev-soft:
        0 10px 26px rgba(0, 0, 0, 0.26),
        0 2px 8px rgba(0, 0, 0, 0.12);
    --cnl-elev-medium:
        0 22px 48px rgba(0, 0, 0, 0.55),
        0 8px 20px rgba(0, 0, 0, 0.3);
    --cnl-showcase-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 1px 4px rgba(0, 0, 0, 0.14),
        0 6px 16px rgba(0, 0, 0, 0.16),
        0 12px 28px rgba(0, 0, 0, 0.2);
    --cnl-product-shadow-rest:
        0 1px 0 color-mix(in srgb, #fff 5%, transparent) inset,
        0 1px 2px rgba(0, 0, 0, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.1),
        0 10px 22px rgba(0, 0, 0, 0.08);
    --cnl-product-shadow-hover:
        0 1px 0 color-mix(in srgb, #fff 8%, transparent) inset,
        0 2px 6px color-mix(in srgb, var(--card-accent, var(--accent)) 12%, transparent),
        0 8px 18px color-mix(in srgb, var(--card-accent, var(--accent)) 18%, transparent),
        0 14px 28px rgba(0, 0, 0, 0.18);
}


.cnl-container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

/* 顶栏高 2.8125rem，收紧 Hydro 默认 main 上/下内边距，消除导航与页脚前的灰条空隙 */
#panel > .main:has(.cnl-page) {
    padding-top: 2.8125rem;
    padding-bottom: 0 !important;
    background: #edf0f2;
}

.theme--dark #panel > .main:has(.cnl-page) {
    background: #0F0C08;
}

/* 抵消 Hydro main 底部留白，避免页脚前出现灰条 */
.cnl-page {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ── Main ── */
.cnl-main {
    padding-top: 0;
    padding-bottom: 0;
    min-width: 0;
    width: 100%;
}

/* ── Section（分区卡片） ── */
.cnl-section {
    padding: var(--section-y) 0;
}

.cnl-section-header {
    text-align: center;
    margin-bottom: 32px;
}

.cnl-section-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cnl-section-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.2;
}

.cnl-section-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

.cnl-section-showcase {
    margin: 20px auto 28px;
    max-width: 720px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.cnl-section-showcase img {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.cnl-section-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.cnl-section-label--left {
    text-align: left;
    margin-bottom: 20px;
}

/* ── Hot 100 split（左文案 + 右产品示意） ── */
.cnl-section--featured {
    --section-y: 56px;
}

.cnl-split {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 52px;
    align-items: center;
}

.cnl-split__copy {
    min-width: 0;
}

.cnl-split__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 20px;
    color: #F85149;
    background: color-mix(in srgb, #F85149 12%, transparent);
    border: 1px solid color-mix(in srgb, #F85149 28%, transparent);
}

.cnl-split__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.6vw, 36px);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
    line-height: 1.2;
}

.cnl-section--hot100 .cnl-split__title {
    white-space: pre-line;
}

.cnl-split__desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0 0 22px;
    max-width: 420px;
}

.cnl-split__list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cnl-split__visual {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 6px 8px 10px;
}

.cnl-split__visual .cnl-carousel {
    width: 100%;
}

/* ── Hot 100 功能预览轮播 ── */
.cnl-carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    height: clamp(260px, 38vw + 12vh, 400px);
    overflow: visible;
    background: transparent;
    border: none;
    border-radius: 0;
}

.cnl-split__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 2px 0 0;
    padding: 0 0 4px;
    width: 100%;
}

.cnl-split__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text-muted) 45%, var(--border));
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.cnl-split__dot:hover {
    background: color-mix(in srgb, #F85149 55%, var(--text-muted));
}

.cnl-split__dot.is-active {
    background: #F85149;
    animation: cnl-split-dot-breathe 2.6s ease-in-out infinite;
}

@keyframes cnl-split-dot-breathe {
    0%, 100% { transform: scale(1); opacity: 0.82; }
    50% { transform: scale(1.38); opacity: 1; }
}

.cnl-split__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.55;
}

.cnl-split__list i {
    margin-top: 2px;
    color: var(--success);
    font-size: 15px;
    flex-shrink: 0;
}

.cnl-split__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cnl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cnl-btn i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.cnl-btn:hover i {
    transform: translateX(3px);
}

.cnl-btn--primary {
    background: var(--accent);
    color: var(--on-accent) !important;
    border: 1px solid transparent;
    box-shadow: 0 8px 20px var(--accent-dim);
}

.cnl-btn--primary:hover {
    background: var(--accent-hover);
    color: var(--on-accent);
    transform: translateY(-1px);
}

.cnl-btn--ghost {
    background: transparent;
    color: var(--text-primary) !important;
    border: 2px solid var(--border);
}

.cnl-btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.cnl-carousel__captions {
    position: relative;
    flex-shrink: 0;
    height: 38px;
    padding: 12px 18px 4px;
    text-align: center;
}

.cnl-carousel__caption {
    position: absolute;
    left: 0;
    right: 0;
    top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: opacity 0.38s ease, transform 0.38s ease, visibility 0.38s;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    pointer-events: none;
}

.cnl-carousel__caption.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cnl-carousel__caption.is-prep-enter {
    opacity: 0;
    visibility: visible;
    transform: translateY(-10px);
}

.cnl-carousel__caption.is-leaving {
    opacity: 0;
    visibility: visible;
    transform: translateY(12px);
}

.cnl-carousel__caption-icon {
    font-size: 12px;
    color: color-mix(in srgb, #F85149 75%, var(--accent));
}

.cnl-carousel__caption.is-active .cnl-carousel__caption-icon {
    color: #F85149;
}

.cnl-carousel__stage {
    --showcase-accent: #F85149;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
    padding: 0;
    box-sizing: border-box;
    border-radius: 18px;
    background: var(--bg);
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 22%, var(--border));
    box-shadow: var(--cnl-showcase-shadow);
}

.theme--dark .cnl-carousel__stage {
    box-shadow: var(--cnl-showcase-shadow);
}

.cnl-carousel__stage .cnl-sol-mini,
.cnl-carousel__stage .cnl-article,
.cnl-carousel__stage .cnl-judge {
    box-shadow: none;
}

.cnl-carousel__stage .cnl-article__diagram.cnl-sol-mini {
    border: none;
    border-radius: 0;
    background: var(--bg-card);
}

.cnl-carousel__track {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}

.cnl-carousel__slide {
    position: absolute;
    inset: 0;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.46s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.cnl-carousel__slide.is-active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.cnl-carousel__slide.is-prep-right {
    transform: translateX(100%);
    visibility: visible;
    z-index: 2;
}

.cnl-carousel__slide.is-prep-left {
    transform: translateX(-100%);
    visibility: visible;
    z-index: 2;
}

.cnl-carousel__slide.is-exit-left {
    transform: translateX(-100%);
    visibility: visible;
    z-index: 1;
}

.cnl-carousel__slide.is-exit-right {
    transform: translateX(100%);
    visibility: visible;
    z-index: 1;
}

/* ── 轮播各屏内容 ── */
.cnl-slide {
    position: relative;
    height: 100%;
    padding: 20px 22px 8px;
}

/* 图文题解 — 与动画/评测 slide 一致，贴齐 stage 外框 */
.cnl-slide--article {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 在线评测 */
.cnl-slide--judge {
    padding: 0;
    height: 100%;
}

.cnl-slide--article .cnl-article {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.cnl-slide--article .cnl-article__scroll {
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    padding: 0;
    gap: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

.cnl-article {
    height: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--cnl-showcase-shadow);
    overflow: hidden;
    animation: cnl-slide-in 0.55s ease both;
}

.cnl-article__scroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--border) 80%, transparent) transparent;
}

.cnl-article__scroll::-webkit-scrollbar {
    width: 4px;
}

.cnl-article__scroll::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--border) 80%, transparent);
    border-radius: 4px;
}

/* 图文题解 — 自适应填充，亮/暗主题 */
.cnl-article__diagram.cnl-sol-mini {
    --sol-bg: var(--bg-card);
    --sol-ink: var(--text-primary);
    --sol-line: var(--text-primary);
    --sol-cell-bg: var(--bg-panel);
    --sol-prefix: color-mix(in srgb, var(--text-secondary) 72%, transparent);
    --sol-blue: #7f9fc7;
    --sol-green: #91d66f;
    --sol-red: #ff4e68;
    --sol-gold: #f7bf21;
    --sol-shadow: 0 2px 6px color-mix(in srgb, var(--shadow) 55%, transparent);
    --sol-design-width: 680px;
    --sol-scale: 0.35;
    flex: 1;
    min-height: 0;
    height: 100%;
    padding: 0;
    border-radius: 12px;
    background: var(--sol-bg);
    border: 1px solid color-mix(in srgb, var(--sol-blue) 22%, var(--border));
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme--dark .cnl-article__diagram.cnl-sol-mini {
    --sol-blue: #8eb5d9;
    --sol-green: #9fd97f;
    --sol-red: #ff6b82;
    --sol-gold: #ffd54f;
    --sol-cell-bg: color-mix(in srgb, var(--bg-panel) 88%, #fff 12%);
    --sol-shadow: 0 2px 8px rgba(0, 0, 0, 0.38);
    border-color: color-mix(in srgb, var(--sol-blue) 30%, var(--border));
}

.cnl-sol-mini__scale {
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    margin: auto;
}

.cnl-sol-mini__scale > .page {
    width: var(--sol-design-width);
    flex-shrink: 0;
    transform: scale(var(--sol-scale));
    transform-origin: top left;
    margin: 0;
}

.cnl-sol-mini *,
.cnl-sol-mini *::before,
.cnl-sol-mini *::after {
    box-sizing: border-box;
}

.cnl-sol-mini .page {
    width: var(--sol-design-width);
    margin: 0 auto;
    padding: 4px 10px 6px;
    background: transparent;
    color: var(--sol-ink);
    font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "Microsoft YaHei", serif;
    line-height: 1.65;
}

.cnl-sol-mini h1 {
    margin: 0 0 4px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--sol-ink);
}

.cnl-sol-mini p {
    margin: 0;
    font-size: 17px;
    letter-spacing: 0.01em;
    color: var(--sol-ink);
}

.cnl-sol-mini .math {
    font-family: "Times New Roman", serif;
    font-style: italic;
    white-space: nowrap;
}

.cnl-sol-mini .target {
    margin: 6px 0 0;
    text-align: center;
    color: var(--sol-red);
    font-family: "Times New Roman", serif;
    font-style: italic;
    font-size: 26px;
    line-height: 1.2;
}

.cnl-sol-mini .diagram {
    position: relative;
    margin: 0 auto 6px;
    max-width: 640px;
    padding: 4px 0 2px;
}

.cnl-sol-mini .watermark {
    position: absolute;
    top: -6px;
    right: 0;
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #a9d8f5;
    opacity: 0.9;
    white-space: nowrap;
}

.cnl-sol-mini .flow-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    margin: 2px 0 10px;
}

.cnl-sol-mini .flow-arrow {
    position: relative;
    height: 3px;
    background: var(--sol-line);
    width: 42px;
    justify-self: center;
    transform: translateY(-14px);
}

.cnl-sol-mini .flow-arrow::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-top: 3px solid var(--sol-line);
    border-right: 3px solid var(--sol-line);
    transform: translateY(-50%) rotate(45deg);
}

.cnl-sol-mini .case {
    min-height: 168px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cnl-sol-mini .array-wrap {
    position: relative;
    display: inline-block;
    padding-top: 42px;
    padding-bottom: 28px;
}

.cnl-sol-mini .array {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 2;
}

.cnl-sol-mini .cell {
    position: relative;
    width: 52px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 2.5px solid var(--sol-blue);
    border-radius: 8px;
    background: var(--sol-cell-bg);
    box-shadow: var(--sol-shadow);
    font-size: 24px;
    font-family: "Times New Roman", serif;
    color: var(--sol-ink);
}

.cnl-sol-mini .cell.current-match {
    border-color: var(--sol-green);
    box-shadow: 0 3px 8px color-mix(in srgb, var(--sol-green) 35%, transparent);
}

.cnl-sol-mini .star {
    position: absolute;
    top: -13px;
    right: -8px;
    color: var(--sol-gold);
    font-size: 20px;
    line-height: 1;
    text-shadow: 0 1px 0 color-mix(in srgb, var(--sol-gold) 55%, #000);
    z-index: 3;
}

.cnl-sol-mini .prefix {
    position: absolute;
    z-index: 1;
    top: 37px;
    left: -10px;
    height: 70px;
    border: 2.5px dashed var(--sol-prefix);
    border-radius: 15px;
    background: transparent;
    pointer-events: none;
}

.cnl-sol-mini .prefix.one { width: 72px; }
.cnl-sol-mini .prefix.two { width: 134px; }
.cnl-sol-mini .prefix.three { width: 196px; }
.cnl-sol-mini .prefix.four { width: 258px; }

.cnl-sol-mini .j-pointer {
    position: absolute;
    top: -20px;
    width: 52px;
    height: 42px;
    text-align: center;
    font-family: "Times New Roman", serif;
    font-style: italic;
    font-size: 22px;
    line-height: 1;
    color: var(--sol-ink);
}

.cnl-sol-mini .j-pointer::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 26px;
    width: 2.5px;
    height: 18px;
    background: var(--sol-line);
}

.cnl-sol-mini .j-pointer::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 40px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid var(--sol-line);
}

.cnl-sol-mini .j-2 { left: 62px; }
.cnl-sol-mini .j-3 { left: 124px; }
.cnl-sol-mini .j-4 { left: 186px; }
.cnl-sol-mini .j-5 { left: 248px; }

.cnl-sol-mini .cross {
    position: absolute;
    bottom: 20px;
    color: var(--sol-red);
    font-family: Arial, sans-serif;
    font-size: 48px;
    line-height: 1;
    font-weight: 400;
    transform: rotate(-2deg);
}

.cnl-sol-mini .cross.at-1 { left: 9px; }
.cnl-sol-mini .cross.at-2 { left: 72px; }

.cnl-sol-mini .callout {
    position: absolute;
    z-index: 4;
    width: 2px;
    height: 42px;
    background: var(--sol-line);
    transform: rotate(-27deg);
    transform-origin: bottom center;
}

.cnl-sol-mini .callout::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -5px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid var(--sol-line);
}

.cnl-sol-mini .callout.step2 {
    left: 102px;
    bottom: -2px;
}

.cnl-sol-mini .callout.step4 {
    left: 34px;
    bottom: -2px;
    transform: rotate(54deg);
}

.cnl-sol-mini .caption {
    min-height: 30px;
    margin-top: 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.45;
    white-space: nowrap;
    color: var(--sol-ink);
}

.cnl-sol-mini .caption .math {
    font-size: 1.05em;
}

.cnl-sol-mini .explain {
    margin-top: 2px;
}

.cnl-sol-mini .explain + .explain {
    margin-top: 4px;
}

.cnl-sol-mini strong {
    font-weight: 800;
}

.cnl-article__codeblock {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, #1e1e1e 20%, var(--border));
    background: #1e1e1e;
}

.theme--dark .cnl-article__codeblock {
    border-color: #333;
}

.cnl-article__code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    background: #252526;
    border-bottom: 1px solid #333;
}

.cnl-article__code-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.cnl-article__code-tabs span {
    font-family: var(--font-mono);
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    color: #858585;
    cursor: default;
}

.cnl-article__code-tabs span.is-active {
    color: #fff;
    background: #094771;
}

.cnl-article__copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: #858585;
    flex-shrink: 0;
}

.cnl-article__code {
    margin: 0;
    padding: 8px 10px;
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 1.5;
    color: #d4d4d4;
    white-space: pre;
    overflow: hidden;
}

.cnl-article__code .kw { color: #C586C0; }
.cnl-article__code .fn { color: #DCDCAA; }
.cnl-article__code .cm { color: #6A9955; }

.cnl-article__qa {
    padding: 8px 10px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--accent) 5%, var(--bg-panel));
    border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
}

.cnl-article__qa-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.cnl-article__qa-title i {
    color: var(--accent);
    font-size: 10px;
}

.cnl-article__qa-item + .cnl-article__qa-item {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed color-mix(in srgb, var(--border) 70%, transparent);
}

.cnl-article__q {
    margin: 0 0 3px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.cnl-article__a {
    margin: 0;
    font-size: 9px;
    line-height: 1.45;
    color: var(--text-soft);
}

.cnl-article__a code {
    font-family: var(--font-mono);
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--accent) 10%, var(--bg-card));
    color: var(--text-primary);
}

.cnl-article__a strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 动画演示 */
.cnl-slide--anim {
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    height: 100%;
    background: #000;
}

.cnl-anim {
    width: 100%;
    height: 100%;
    background: #000;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}

.cnl-anim__head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 14px 6px;
    border-bottom: none;
    background: transparent;
    text-align: center;
}

.cnl-anim__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.cnl-anim__title strong {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: #f3f3f3;
}

.cnl-anim__tag {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 5px;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    flex-shrink: 0;
}

.cnl-anim__badge {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #9a9a9a;
    flex-shrink: 0;
}

.cnl-anim__step-nums {
    position: relative;
    display: inline-block;
    width: 1ch;
    height: 1em;
    vertical-align: bottom;
}

.cnl-anim__step-n {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #ddd;
    opacity: 0;
}

.cnl-anim__step-n--1 { animation: cnl-anim-step-1 var(--anim-duration) linear infinite; }
.cnl-anim__step-n--2 { animation: cnl-anim-step-2 var(--anim-duration) linear infinite; }
.cnl-anim__step-n--3 { animation: cnl-anim-step-3 var(--anim-duration) linear infinite; }
.cnl-anim__step-n--4 { animation: cnl-anim-step-4 var(--anim-duration) linear infinite; }

.cnl-anim__stage {
    flex: 1;
    width: 100%;
    min-height: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.cnl-anim__panel {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.cnl-anim__target {
    width: 100%;
    text-align: center;
    font-family: "Times New Roman", serif;
    font-size: 17px;
    font-weight: 400;
    font-style: italic;
    color: #e8a87c;
    padding: 10px 12px 2px;
    background: transparent;
    border-radius: 0;
    line-height: 1.15;
    flex-shrink: 0;
}

.cnl-anim__target em {
    font-style: italic;
    color: #e8a87c;
}

.cnl-anim__viewport {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 200px;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}

.cnl-anim__scene {
    --anim-duration: 14s;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cnl-anim__hash-item--1 { animation: cnl-anim-hash-item-1 var(--anim-duration) linear infinite; }
.cnl-anim__hash-item--2 { animation: cnl-anim-hash-item-2 var(--anim-duration) linear infinite; }
.cnl-anim__hash-item--3 { animation: cnl-anim-hash-item-3 var(--anim-duration) linear infinite; }

.cnl-anim__hash-item.is-hit {
    animation: cnl-anim-hash-item-2 var(--anim-duration) linear infinite;
}

.cnl-anim__captions {
    position: relative;
    width: 100%;
    min-height: 2.9em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cnl-anim__captions .cnl-anim__caption {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    opacity: 0;
    visibility: hidden;
}

.cnl-anim__caption--1 { animation: cnl-anim-caption-1 var(--anim-duration) linear infinite; }
.cnl-anim__caption--2 { animation: cnl-anim-caption-2 var(--anim-duration) linear infinite; }
.cnl-anim__caption--3 { animation: cnl-anim-caption-3 var(--anim-duration) linear infinite; }
.cnl-anim__caption--4 { animation: cnl-anim-caption-4 var(--anim-duration) linear infinite; }

.cnl-anim__cell--1 { animation: cnl-anim-cell-focus-1 var(--anim-duration) linear infinite; }
.cnl-anim__cell--2 { animation: cnl-anim-cell-focus-2 var(--anim-duration) linear infinite; }
.cnl-anim__cell--3 { animation: cnl-anim-cell-focus-3 var(--anim-duration) linear infinite; }
.cnl-anim__cell--4 { animation: cnl-anim-cell-focus-4 var(--anim-duration) linear infinite; }
.cnl-anim__cell--2 { animation:
    cnl-anim-cell-focus-2 var(--anim-duration) linear infinite,
    cnl-anim-cell-match-2 var(--anim-duration) linear infinite;
}

@keyframes cnl-anim-j-slide {
    0%, 16% {
        left: 0;
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    }
    20% { left: calc(var(--anim-cell) + var(--anim-gap)); }
    20%, 36% {
        left: calc(var(--anim-cell) + var(--anim-gap));
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    }
    40% { left: calc((var(--anim-cell) + var(--anim-gap)) * 2); }
    40%, 56% {
        left: calc((var(--anim-cell) + var(--anim-gap)) * 2);
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    }
    60% { left: calc((var(--anim-cell) + var(--anim-gap)) * 3); }
    60%, 84% { left: calc((var(--anim-cell) + var(--anim-gap)) * 3); }
    88%, 100% { left: 0; }
}

@keyframes cnl-anim-j-bounce {
    0%, 16%, 20%, 36%, 40%, 56%, 60%, 84%, 88%, 100% { top: -2px; }
    18% { top: -8px; }
    38% { top: -8px; }
    58% { top: -8px; }
    78% { top: -8px; }
}

@keyframes cnl-anim-prefix-grow {
    0%, 16% {
        width: 0;
        opacity: 0;
        animation-timing-function: ease-out;
    }
    20%, 36% {
        width: calc(var(--anim-cell) + var(--anim-prefix-pad-x) * 2);
        opacity: 1;
        animation-timing-function: ease-out;
    }
    40%, 56% {
        width: calc(var(--anim-cell) * 2 + var(--anim-gap) + var(--anim-prefix-pad-x) * 2);
        opacity: 1;
        animation-timing-function: ease-out;
    }
    60%, 84% {
        width: calc(var(--anim-cell) * 3 + var(--anim-gap) * 2 + var(--anim-prefix-pad-x) * 2);
        opacity: 1;
    }
    88%, 100% {
        width: 0;
        opacity: 0;
    }
}

@keyframes cnl-anim-hash-empty-fade {
    0%, 14% { opacity: 1; transform: scale(1); visibility: visible; }
    16%, 84% { opacity: 0; transform: scale(0.85); visibility: hidden; }
    88%, 100% { opacity: 1; transform: scale(1); visibility: visible; }
}

@keyframes cnl-anim-hash-item-1 {
    0%, 14% { opacity: 0; transform: scale(0.55) translateY(10px); }
    16% { opacity: 1; transform: scale(1.1) translateY(0); }
    18%, 84% { opacity: 1; transform: scale(1) translateY(0); }
    88%, 100% { opacity: 0; transform: scale(0.55) translateY(10px); }
}

@keyframes cnl-anim-hash-item-2 {
    0%, 40% { opacity: 0; transform: scale(0.55) translateY(10px); border-color: #444; background: #111; }
    42% { opacity: 1; transform: scale(1.15) translateY(0); border-color: #a8d08d; background: color-mix(in srgb, #a8d08d 18%, #000); }
    44%, 50% { opacity: 1; transform: scale(1) translateY(0); border-color: #a8d08d; background: color-mix(in srgb, #a8d08d 12%, #000); }
    52%, 58% { opacity: 1; transform: scale(1.06) translateY(0); border-color: #c5e8a8; background: color-mix(in srgb, #a8d08d 20%, #000); }
    60%, 84% { opacity: 1; transform: scale(1) translateY(0); border-color: #a8d08d; background: color-mix(in srgb, #a8d08d 12%, #000); }
    88%, 100% { opacity: 0; transform: scale(0.55) translateY(10px); border-color: #444; background: #111; }
}

@keyframes cnl-anim-hash-item-3 {
    0%, 58% { opacity: 0; transform: scale(0.55) translateY(10px); }
    60% { opacity: 1; transform: scale(1.1) translateY(0); }
    62%, 84% { opacity: 1; transform: scale(1) translateY(0); }
    88%, 100% { opacity: 0; transform: scale(0.55) translateY(10px); }
}

@keyframes cnl-anim-check-pop {
    0%, 40% { opacity: 0; transform: translateX(-50%) scale(0) rotate(-18deg); }
    42% { opacity: 1; transform: translateX(-50%) scale(1.25) rotate(0deg); }
    44%, 84% { opacity: 1; transform: translateX(-50%) scale(1) rotate(0deg); }
    88%, 100% { opacity: 0; transform: translateX(-50%) scale(0) rotate(-18deg); }
}

@keyframes cnl-anim-caption-1 {
    0%, 18% { opacity: 1; transform: translateY(0); filter: blur(0); visibility: visible; }
    20%, 86% { opacity: 0; transform: translateY(8px); filter: blur(3px); visibility: hidden; }
    88%, 100% { opacity: 1; transform: translateY(0); filter: blur(0); visibility: visible; }
}

@keyframes cnl-anim-caption-2 {
    0%, 18% { opacity: 0; transform: translateY(-8px); filter: blur(3px); visibility: hidden; }
    20%, 36% { opacity: 1; transform: translateY(0); filter: blur(0); visibility: visible; }
    38%, 100% { opacity: 0; transform: translateY(8px); filter: blur(3px); visibility: hidden; }
}

@keyframes cnl-anim-caption-3 {
    0%, 38% { opacity: 0; transform: translateY(-8px); filter: blur(3px); visibility: hidden; }
    40%, 56% { opacity: 1; transform: translateY(0); filter: blur(0); visibility: visible; }
    58%, 100% { opacity: 0; transform: translateY(8px); filter: blur(3px); visibility: hidden; }
}

@keyframes cnl-anim-caption-4 {
    0%, 58% { opacity: 0; transform: translateY(-8px); filter: blur(3px); visibility: hidden; }
    60%, 86% { opacity: 1; transform: translateY(0); filter: blur(0); visibility: visible; }
    88%, 100% { opacity: 0; transform: translateY(8px); filter: blur(3px); visibility: hidden; }
}

@keyframes cnl-anim-step-1 {
    0%, 18% { opacity: 1; }
    20%, 86% { opacity: 0; }
    88%, 100% { opacity: 1; }
}

@keyframes cnl-anim-step-2 {
    0%, 18% { opacity: 0; }
    20%, 36% { opacity: 1; }
    38%, 100% { opacity: 0; }
}

@keyframes cnl-anim-step-3 {
    0%, 38% { opacity: 0; }
    40%, 56% { opacity: 1; }
    58%, 100% { opacity: 0; }
}

@keyframes cnl-anim-step-4 {
    0%, 58% { opacity: 0; }
    60%, 86% { opacity: 1; }
    88%, 100% { opacity: 0; }
}

@keyframes cnl-anim-cell-focus-1 {
    0%, 18% {
        border-color: #ed7d31;
        box-shadow: 0 0 0 2px color-mix(in srgb, #ed7d31 30%, transparent);
        color: #ffb07a;
    }
    20%, 100% { border-color: #bbb; box-shadow: none; color: #fff; }
}

@keyframes cnl-anim-cell-focus-2 {
    0%, 18% { border-color: #bbb; box-shadow: none; color: #fff; }
    20%, 36% {
        border-color: #ed7d31;
        box-shadow: 0 0 0 2px color-mix(in srgb, #ed7d31 30%, transparent);
        color: #ffb07a;
    }
    38%, 100% { border-color: #bbb; box-shadow: none; color: #fff; }
}

@keyframes cnl-anim-cell-focus-3 {
    0%, 38% { border-color: #bbb; box-shadow: none; color: #fff; }
    40%, 56% {
        border-color: #ed7d31;
        box-shadow: 0 0 0 2px color-mix(in srgb, #ed7d31 30%, transparent);
        color: #ffb07a;
    }
    58%, 100% { border-color: #bbb; box-shadow: none; color: #fff; }
}

@keyframes cnl-anim-cell-focus-4 {
    0%, 58% { border-color: #bbb; box-shadow: none; color: #fff; }
    60%, 84% {
        border-color: #ed7d31;
        box-shadow: 0 0 0 2px color-mix(in srgb, #ed7d31 30%, transparent);
        color: #ffb07a;
    }
    86%, 100% { border-color: #bbb; box-shadow: none; color: #fff; }
}

@keyframes cnl-anim-cell-match-2 {
    0%, 40% { background: #000; }
    42%, 58% { background: color-mix(in srgb, #a8d08d 22%, #000); border-color: #a8d08d; color: #d4f0b8; }
    60%, 100% { background: #000; }
}

.cnl-carousel__slide:not(.is-active) .cnl-anim__j-pointer,
.cnl-carousel__slide:not(.is-active) .cnl-anim__prefix,
.cnl-carousel__slide:not(.is-active) .cnl-anim__check,
.cnl-carousel__slide:not(.is-active) .cnl-anim__hash-empty,
.cnl-carousel__slide:not(.is-active) .cnl-anim__hash-item,
.cnl-carousel__slide:not(.is-active) .cnl-anim__caption,
.cnl-carousel__slide:not(.is-active) .cnl-anim__step-n,
.cnl-carousel__slide:not(.is-active) .cnl-anim__cell {
    animation-play-state: paused;
}

.cnl-carousel__slide:not(.is-active) .cnl-anim__j-pointer { left: 0; top: -2px; }
.cnl-carousel__slide:not(.is-active) .cnl-anim__prefix { width: 0; opacity: 0; }
.cnl-carousel__slide:not(.is-active) .cnl-anim__hash-empty { opacity: 1; visibility: visible; }
.cnl-carousel__slide:not(.is-active) .cnl-anim__hash-item,
.cnl-carousel__slide:not(.is-active) .cnl-anim__check { opacity: 0; }
.cnl-carousel__slide:not(.is-active) .cnl-anim__step-n--1,
.cnl-carousel__slide:not(.is-active) .cnl-anim__caption--1 {
    opacity: 1;
    visibility: visible;
}
.cnl-carousel__slide:not(.is-active) .cnl-anim__step-n:not(.cnl-anim__step-n--1),
.cnl-carousel__slide:not(.is-active) .cnl-anim__caption:not(.cnl-anim__caption--1) {
    opacity: 0;
    visibility: hidden;
}

/* Manim 风格数组演示 */
.cnl-anim__array-wrap {
    --anim-cell: 50px;
    --anim-gap: 6px;
    --anim-pad-top: 36px;
    --anim-prefix-pad-x: 6px;
    --anim-prefix-pad-y: 8px;
    position: relative;
    display: inline-block;
    padding-top: var(--anim-pad-top);
    padding-bottom: 18px;
}

.cnl-anim__array {
    position: relative;
    display: flex;
    gap: var(--anim-gap);
    align-items: center;
    z-index: 2;
}

.cnl-anim__cell {
    width: var(--anim-cell);
    height: var(--anim-cell);
    display: grid;
    place-items: center;
    border: 1.5px solid #bbb;
    border-radius: 5px;
    background: #000;
    font-family: "Times New Roman", serif;
    font-size: 26px;
    line-height: 1;
    color: #fff;
}

.cnl-anim__prefix {
    position: absolute;
    z-index: 1;
    top: calc(var(--anim-pad-top) - var(--anim-prefix-pad-y));
    left: calc(-1 * var(--anim-prefix-pad-x));
    height: calc(var(--anim-cell) + var(--anim-prefix-pad-y) * 2);
    width: 0;
    opacity: 0;
    border: 2px solid #a8d08d;
    border-radius: 6px;
    background: transparent;
    pointer-events: none;
    box-sizing: border-box;
    will-change: width, opacity;
    animation: cnl-anim-prefix-grow var(--anim-duration) linear infinite;
}

.cnl-anim__j-pointer {
    position: absolute;
    top: -2px;
    left: 0;
    width: var(--anim-cell);
    height: 42px;
    text-align: center;
    font-family: "Times New Roman", serif;
    font-style: italic;
    font-size: 22px;
    line-height: 1;
    color: #ed7d31;
    z-index: 3;
    will-change: left, top;
    animation:
        cnl-anim-j-slide var(--anim-duration) linear infinite,
        cnl-anim-j-bounce var(--anim-duration) linear infinite;
}

.cnl-anim__j-pointer::before {
    content: "";
    position: absolute;
    left: calc(50% - 0.5px);
    top: 24px;
    width: 1px;
    height: 12px;
    background: #ed7d31;
}

.cnl-anim__j-pointer::after {
    content: "";
    position: absolute;
    left: calc(50% - 4px);
    top: 34px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #ed7d31;
}

.cnl-anim__check {
    position: absolute;
    bottom: 0;
    left: calc(var(--anim-cell) + var(--anim-gap) + var(--anim-cell) / 2);
    transform: translateX(-50%);
    color: #a8d08d;
    font-family: "Times New Roman", serif;
    font-size: 22px;
    line-height: 1;
    z-index: 3;
    opacity: 0;
    will-change: transform, opacity;
    animation: cnl-anim-check-pop var(--anim-duration) linear infinite;
}

.cnl-anim__hash {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    width: 100%;
}

.cnl-anim__hash-label {
    font-family: "Times New Roman", serif;
    font-style: italic;
    font-size: 13px;
    color: #888;
    margin-right: 2px;
}

.cnl-anim__hash-empty {
    font-family: "Times New Roman", serif;
    font-size: 15px;
    color: #666;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px dashed #444;
    animation: cnl-anim-hash-empty-fade var(--anim-duration) linear infinite;
}

.cnl-anim__hash-item {
    font-family: "Times New Roman", serif;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
    color: #aaa;
    background: #111;
    border: 1px solid #444;
    opacity: 0;
}

.cnl-anim__hash-item em {
    font-style: italic;
    color: #fff;
}

.cnl-anim__hash-item.is-hit {
    color: #a8d08d;
}

.cnl-anim__caption {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #999;
    text-align: center;
    max-width: 92%;
    width: 100%;
}

.cnl-anim__caption strong {
    color: #ddd;
    font-weight: 600;
}

.cnl-anim__caption.is-hit {
    color: #a8d08d;
    font-weight: 600;
}

.cnl-judge {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: var(--bg-card);
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    animation: cnl-slide-in 0.55s ease both;
}

/* 左侧题面 */
.cnl-judge__problem {
    flex: 0 0 32%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-light);
    background: color-mix(in srgb, var(--bg-panel) 55%, var(--bg-card));
}

.cnl-judge__prob-head {
    padding: 10px 12px 8px;
    border-bottom: 1px solid var(--border-light);
}

.cnl-judge__prob-title {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.cnl-judge__prob-id {
    color: var(--info);
    margin-right: 2px;
}

.cnl-judge__prob-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    color: var(--text-muted);
}

.cnl-judge__prob-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

.cnl-judge__diff {
    color: #E3B341;
    gap: 1px !important;
    padding-inline: 5px !important;
}

.cnl-judge__diff i {
    font-size: 8px;
}

.cnl-judge__prob-body {
    flex: 1;
    min-height: 0;
    padding: 8px 12px 10px;
    overflow: hidden;
}

.cnl-judge__prob-desc {
    margin: 0 0 8px;
    font-size: 10px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.cnl-judge__prob-desc em {
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--info);
    background: color-mix(in srgb, var(--info) 10%, transparent);
    padding: 0 3px;
    border-radius: 3px;
}

.cnl-judge__sample-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cnl-judge__sample-block {
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-card);
    overflow: hidden;
}

.cnl-judge__sample-row {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 6px;
    align-items: start;
    padding: 5px 8px;
    font-size: 9px;
}

.cnl-judge__sample-row + .cnl-judge__sample-row {
    border-top: 1px solid var(--border-light);
}

.cnl-judge__sample-key {
    color: var(--text-muted);
    font-weight: 600;
    padding-top: 1px;
}

.cnl-judge__sample-row code {
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 1.45;
    color: var(--text-soft);
    white-space: pre-wrap;
    word-break: break-all;
}

/* 右侧工作区 */
.cnl-judge__workspace {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cnl-judge__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-panel);
}

.cnl-judge__toolbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.cnl-judge__lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

.cnl-judge__lang i {
    font-size: 7px;
    color: var(--text-muted);
}

.cnl-judge__mode {
    padding: 3px 7px;
    border-radius: 5px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    font-size: 9px;
    color: var(--text-muted);
    white-space: nowrap;
}

.cnl-judge__timer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* 代码编辑器 */
.cnl-judge__editor {
    flex: 1.4;
    min-height: 0;
    display: flex;
    padding: 4px 6px 2px;
    background: var(--bg-panel);
}

.cnl-judge__editor-body {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--ed-border, #DDE3EA);
    background: var(--ed-bg, #FAFBFD);
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, #fff 85%, transparent),
        0 2px 8px color-mix(in srgb, var(--shadow) 22%, transparent);
    --ed-bg: #FAFBFD;
    --ed-gutter: #EEF1F5;
    --ed-gutter-text: #9CA3AF;
    --ed-gutter-cur: #4B5563;
    --ed-text: #1F2937;
    --ed-border: #DDE3EA;
    --ed-line-hl: rgba(59, 130, 246, 0.09);
    --ed-kw: #7C3AED;
    --ed-ty: #0891B2;
    --ed-fn: #B45309;
    --ed-cm: #6B7280;
    --ed-num: #059669;
    --ed-op: #374151;
}

.cnl-judge__editor-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    border-radius: 8px 8px 0 0;
    z-index: 1;
    opacity: 0.85;
}

.theme--dark .cnl-judge__editor-body {
    --ed-bg: #100E0B;
    --ed-gutter: #0A0907;
    --ed-gutter-text: #4B5563;
    --ed-gutter-cur: #E5E7EB;
    --ed-text: #E5E7EB;
    --ed-border: #2A2318;
    --ed-line-hl: rgba(88, 166, 255, 0.14);
    --ed-kw: #C792EA;
    --ed-ty: #4EC9B0;
    --ed-fn: #FFCB6B;
    --ed-cm: #676E95;
    --ed-num: #C3E88D;
    --ed-op: #E5E7EB;
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, #fff 5%, transparent),
        inset 0 0 24px color-mix(in srgb, #000 25%, transparent),
        0 2px 10px color-mix(in srgb, #000 40%, transparent);
}

.cnl-judge__editor-scale {
    width: 100%;
}

.cnl-judge__lines {
    width: 100%;
    padding: 6px 0;
    background: var(--ed-bg);
    --judge-code-size: 8px;
    --judge-code-lh: 1.42;
}

.cnl-judge__row {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: stretch;
    min-height: calc(var(--judge-code-size) * var(--judge-code-lh));
}

.cnl-judge__ln {
    padding: 0 4px 0 0;
    font-family: var(--font-mono);
    font-size: var(--judge-code-size);
    line-height: var(--judge-code-lh);
    text-align: right;
    color: var(--ed-gutter-text);
    background: var(--ed-gutter);
    border-right: 1px solid var(--ed-border);
    user-select: none;
}

.cnl-judge__row.is-hl .cnl-judge__ln {
    background: color-mix(in srgb, var(--ed-line-hl) 55%, var(--ed-gutter));
}

.cnl-judge__row.is-cur .cnl-judge__ln {
    color: var(--ed-gutter-cur);
    font-weight: 700;
}

.cnl-judge__line {
    display: block;
    padding: 0 24px 0 6px;
    font-family: var(--font-mono);
    font-size: var(--judge-code-size);
    line-height: var(--judge-code-lh);
    color: var(--ed-text);
    white-space: pre;
    overflow: hidden;
    background: var(--ed-bg);
}

.cnl-judge__row.is-hl .cnl-judge__line {
    background: var(--ed-line-hl);
}

.cnl-judge__row.is-hl:not(.cnl-judge__row.is-hl + .cnl-judge__row.is-hl) .cnl-judge__line {
    box-shadow: inset 3px 0 0 #3B82F6;
}

.theme--dark .cnl-judge__row.is-hl:not(.cnl-judge__row.is-hl + .cnl-judge__row.is-hl) .cnl-judge__line {
    box-shadow: inset 3px 0 0 #58A6FF;
}

.cnl-judge__lines .kw { color: var(--ed-kw); font-weight: 500; }
.cnl-judge__lines .ty { color: var(--ed-ty); }
.cnl-judge__lines .fn { color: var(--ed-fn); }
.cnl-judge__lines .cm { color: var(--ed-cm); font-style: italic; }
.cnl-judge__lines .num { color: var(--ed-num); }
.cnl-judge__lines .op { color: var(--ed-op); }

.cnl-judge__cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-left: 1px;
    vertical-align: text-bottom;
    background: #3B82F6;
    border-radius: 1px;
    animation: cnl-judge-cursor 1.05s step-end infinite;
}

.theme--dark .cnl-judge__cursor {
    background: #58A6FF;
}

@keyframes cnl-judge-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cnl-judge__copy {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid var(--ed-border);
    background: color-mix(in srgb, var(--ed-bg) 70%, var(--bg-card));
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0;
    backdrop-filter: blur(6px);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cnl-judge__editor-body:hover .cnl-judge__copy {
    opacity: 0.92;
}

.cnl-judge__copy i {
    font-size: 7px;
}

/* 底部控制台 */
.cnl-judge__console {
    flex: 0 0 auto;
    border-top: 1px solid var(--border-light);
    background: color-mix(in srgb, var(--bg-panel) 40%, var(--bg-card));
}

.cnl-judge__console-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 8px 0;
}

.cnl-judge__tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.cnl-judge__tabs span {
    padding: 4px 7px;
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.cnl-judge__tabs span.is-active {
    color: var(--info);
    border-bottom-color: var(--info);
}

.cnl-judge__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.cnl-judge__btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.cnl-judge__btn i {
    font-size: 7px;
}

.cnl-judge__btn--run {
    color: #fff;
    background: #3B82F6;
    box-shadow: 0 1px 3px color-mix(in srgb, #3B82F6 35%, transparent);
}

.cnl-judge__btn--submit {
    color: #fff;
    background: #22C55E;
    box-shadow: 0 1px 3px color-mix(in srgb, #22C55E 35%, transparent);
}

.cnl-judge__console-body {
    padding: 4px 8px 6px;
}

.cnl-judge__cases {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 5px;
}

.cnl-judge__cases span {
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

.cnl-judge__cases span.is-active {
    color: var(--info);
    border-color: color-mix(in srgb, var(--info) 35%, var(--border));
    background: color-mix(in srgb, var(--info) 8%, var(--bg-card));
}

.cnl-judge__case-add {
    width: 18px;
    height: 18px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1;
}

.cnl-judge__io {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 5px;
}

.cnl-judge__io-label {
    display: block;
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.cnl-judge__io-box {
    padding: 3px 5px;
    min-height: 22px;
    border-radius: 5px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    font-family: var(--font-mono);
    font-size: 8px;
    line-height: 1.45;
    color: var(--text-soft);
    white-space: pre-wrap;
    word-break: break-all;
}

.cnl-judge__verdict-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--success) 8%, var(--bg-card));
    border: 1px solid color-mix(in srgb, var(--success) 22%, var(--border));
}

.cnl-judge__verdict {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
}

.cnl-judge__verdict.is-pass {
    color: var(--success);
}

.cnl-judge__meta {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--text-muted);
}

@keyframes cnl-node-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes cnl-slide-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .cnl-carousel__slide,
    .cnl-carousel__caption {
        transition: none !important;
    }

    .cnl-split__dot.is-active {
        animation: none !important;
    }

    .cnl-anim__j-pointer,
    .cnl-anim__prefix,
    .cnl-anim__check,
    .cnl-anim__hash-empty,
    .cnl-anim__hash-item,
    .cnl-anim__caption,
    .cnl-anim__step-n,
    .cnl-anim__cell,
    .cnl-article,
    .cnl-judge {
        animation: none !important;
    }

    .cnl-judge__cursor {
        animation: none !important;
        opacity: 1;
    }

    .cnl-anim__j-pointer {
        left: calc((var(--anim-cell) + var(--anim-gap)) * 2) !important;
    }

    .cnl-anim__prefix {
        width: calc(var(--anim-cell) * 2 + var(--anim-gap) + var(--anim-prefix-pad-x) * 2) !important;
        opacity: 1 !important;
    }

    .cnl-anim__hash-empty {
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .cnl-anim__hash-item--1,
    .cnl-anim__hash-item--2 {
        opacity: 1 !important;
        transform: none !important;
    }

    .cnl-anim__hash-item--2 {
        border-color: #a8d08d !important;
        background: color-mix(in srgb, #a8d08d 12%, #000) !important;
    }

    .cnl-anim__check {
        opacity: 1 !important;
        transform: translateX(-50%) scale(1) !important;
    }

    .cnl-anim__step-n--3,
    .cnl-anim__caption--3 {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .cnl-term__pane.is-active,
    .cnl-algo-split__panel.is-active,
    .cnl-roadmap__progress,
    .cnl-roadmap__node.is-current .cnl-roadmap__dot {
        animation: none !important;
    }
}

/* ── Spotlight 分区（ACM / 算法岗 / 华为） ── */
.cnl-spotlight__headrow {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cnl-spotlight__headrow .cnl-spotlight__icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.cnl-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 5px 12px 5px 6px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
}

.cnl-step-badge__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    font-weight: 600;
    color: var(--on-accent);
    background: var(--accent);
}

.cnl-step-badge__text {
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.cnl-spotlight {
    --spot-accent: var(--accent);
    --spot-accent-dim: var(--accent-dim);
    --spot-accent-border: var(--accent-border);
}

.cnl-spotlight__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 18px;
    background: color-mix(in srgb, var(--spot-accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--spot-accent) 28%, transparent);
    color: var(--spot-accent);
}

.cnl-spotlight__icon--teal { --spot-accent: #2DD4BF; }
.cnl-spotlight__icon--purple { --spot-accent: #C084FC; }
.cnl-spotlight__icon--red { --spot-accent: #E33; }

.cnl-spotlight__title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
    line-height: 1.2;
}

.cnl-spotlight__desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 20px;
    max-width: 480px;
}

.cnl-spotlight__list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cnl-spotlight__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.55;
}

.cnl-spotlight__list i {
    margin-top: 2px;
    color: var(--success);
    font-size: 14px;
    flex-shrink: 0;
}

.cnl-spotlight__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cnl-btn--teal {
    background: #0D9488;
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, #2DD4BF 25%, transparent);
}

.cnl-btn--teal:hover {
    background: #0F766E;
    color: #fff;
}

.cnl-btn--purple {
    background: #9333EA;
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, #C084FC 25%, transparent);
}

.cnl-btn--purple:hover {
    background: #7E22CE;
    color: #fff;
}

/* ACM — 左可视化 + 右文案 */
.cnl-spotlight--acm {
    --spot-accent: #2DD4BF;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 52px;
    align-items: center;
}

.cnl-spotlight--acm .cnl-spotlight__copy {
    min-width: 0;
    padding-left: 32px;
}

.cnl-spotlight--acm .cnl-spotlight__title {
    font-size: clamp(28px, 3.6vw, 36px);
    margin-bottom: 12px;
}

.cnl-spotlight--acm .cnl-spotlight__desc {
    max-width: none;
    margin-bottom: 14px;
}

.cnl-spotlight--acm .cnl-acm-badges {
    margin-bottom: 18px;
}

.cnl-spotlight--acm .cnl-spotlight__visual {
    --showcase-accent: #2DD4BF;
    min-width: 0;
    width: 100%;
    margin: 4px 0;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 24%, var(--border));
    background:
        radial-gradient(ellipse 75% 50% at 12% 16%, color-mix(in srgb, var(--showcase-accent) 6%, transparent), transparent 68%),
        var(--bg);
    box-shadow: var(--cnl-showcase-shadow);
    overflow: hidden;
}

.theme--dark .cnl-spotlight--acm .cnl-spotlight__visual {
    box-shadow: var(--cnl-showcase-shadow);
}

.cnl-spotlight--acm .cnl-acm-demo {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border: none;
    box-shadow: none;
    background: transparent;
}

.cnl-acm-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cnl-acm-stat {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid color-mix(in srgb, #2DD4BF 18%, var(--border));
    text-align: center;
}

.cnl-acm-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: #2DD4BF;
    line-height: 1.2;
    margin-bottom: 4px;
}

.cnl-acm-stat span {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.cnl-acm-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cnl-acm-badge {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.cnl-acm-badge--amber {
    color: var(--accent);
    background: var(--accent-dim);
    border-color: var(--accent-border);
}

.cnl-acm-badge--info {
    color: var(--info);
    background: color-mix(in srgb, var(--info) 12%, transparent);
    border-color: color-mix(in srgb, var(--info) 28%, transparent);
}

.cnl-acm-badge--teal {
    color: #0b6055;
    background: color-mix(in srgb, #2DD4BF 12%, transparent);
    border-color: color-mix(in srgb, #2DD4BF 28%, transparent);
}

.cnl-term {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, #2DD4BF 22%, var(--border));
    background: #0F1419;
    box-shadow:
        0 8px 20px color-mix(in srgb, #2DD4BF 8%, transparent),
        inset 0 1px 0 color-mix(in srgb, #fff 6%, transparent);
}

.theme--dark .cnl-term {
    background: #0A0E12;
    border-color: color-mix(in srgb, #2DD4BF 30%, var(--border));
}

.cnl-term__chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #1A2028;
    border-bottom: 1px solid #2A3440;
}

.cnl-term__dots {
    display: inline-flex;
    gap: 5px;
}

.cnl-term__dots i {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3D4A58;
}

.cnl-term__dots i:nth-child(1) { background: #F85149; }
.cnl-term__dots i:nth-child(2) { background: #D29922; }
.cnl-term__dots i:nth-child(3) { background: #3FB950; }

.cnl-term__title {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #8B9CB0;
}

.cnl-term__mode {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    color: #2DD4BF;
    background: color-mix(in srgb, #2DD4BF 15%, transparent);
    border: 1px solid color-mix(in srgb, #2DD4BF 30%, transparent);
}

.cnl-term__tabs {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: #141A21;
    border-bottom: 1px solid #243040;
}

.cnl-term__tab {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #6B7D90;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.cnl-term__tab:hover {
    color: #A8B8C8;
    background: color-mix(in srgb, #fff 4%, transparent);
}

.cnl-term__tab.is-active {
    color: #2DD4BF;
    background: color-mix(in srgb, #2DD4BF 12%, transparent);
    border-color: color-mix(in srgb, #2DD4BF 28%, transparent);
}

.cnl-term__body {
    position: relative;
    min-height: 200px;
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.6;
}

.cnl-term__pane {
    display: none;
}

.cnl-term__pane.is-active {
    display: block;
    animation: cnl-term-fade 0.25s ease;
}

@keyframes cnl-term-fade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.cnl-term__line {
    color: #C9D4E0;
    white-space: pre-wrap;
    word-break: break-word;
}

.cnl-term__line--gap {
    margin-top: 8px;
}

.cnl-term__line .kw { color: #C792EA; }
.cnl-term__line .fn { color: #82AAFF; }
.cnl-term__line .cm { color: #5C6D7E; font-style: italic; }
.cnl-term__line .num { color: #F78C6C; }
.cnl-term__line .str { color: #C3E88D; }
.cnl-term__line .ty { color: #FFCB6B; }

.cnl-term__prompt {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #2A3440;
    color: #2DD4BF;
}

.cnl-term__ps {
    color: #3FB950;
    margin-right: 6px;
}

.cnl-term__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: #5C6D7E;
    background: #141A21;
    border-top: 1px solid #243040;
}

.cnl-term__status i {
    color: #3FB950;
    margin-right: 4px;
}

.cnl-term__blink {
    color: #2DD4BF;
    animation: cnl-blink 1s step-end infinite;
}

@keyframes cnl-blink {
    50% { opacity: 0; }
}

/* 算法岗 — 左文案 + 右上方大目录 + 右下方题目列表 */
.cnl-algo-split {
    /* snow-blue / GitHub Light：accent #0969DA · hover #0550AE */
    --algo-accent: #0969DA;
    --algo-accent-deep: #0550AE;
    display: grid;
    /* 与 Hot100 .cnl-split 同列比，保证右侧板与 cnl-sol-mini 左对齐 */
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 52px;
    align-items: start;
}

.cnl-algo-split__copy {
    min-width: 0;
}

.cnl-algo-split__preview {
    min-width: 0;
    /* 对齐 Hot100 .cnl-split__visual 的水平内边距，使卡片左缘与 sol-mini 一致 */
    margin: 4px 0 4px 8px;
}

/* 白表面：抬升白底卡片 */
.cnl-algo-split__visual {
    --showcase-accent: var(--algo-accent);
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 22%, var(--border));
    background: var(--bg-card);
    box-shadow: var(--cnl-showcase-shadow);
    overflow: hidden;
}

.theme--dark .cnl-algo-split__visual {
    box-shadow: var(--cnl-showcase-shadow);
}

.cnl-algo-split__board {
    position: relative;
    min-width: 0;
    padding: 12px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.cnl-algo-split__nav {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid color-mix(in srgb, var(--algo-accent) 18%, var(--border-light));
    border-radius: 16px;
    background: color-mix(in srgb, var(--bg-card) 72%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.cnl-algo-split__nav-thumb {
    position: absolute;
    top: 5px;
    left: 0;
    z-index: 0;
    height: calc(100% - 10px);
    width: 0;
    border-radius: 12px;
    background: var(--algo-accent);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--algo-accent) 22%, transparent);
    transform: translateX(0);
    transition:
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .cnl-algo-split__nav-thumb {
        transition: none;
    }
}

.cnl-algo-split__tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    flex: 1;
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    padding: 12px 10px 12px 10px;
    border: none;
    border-radius: 12px;
    background: transparent;
    text-align: center;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.22s ease;
}

.cnl-algo-split__tab:hover {
    color: var(--text-primary);
}

.cnl-algo-split__tab:focus-visible,
.cnl-algo-split__item:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--algo-accent) 76%, #fff);
    outline-offset: 3px;
}

.cnl-algo-split__tab.is-active {
    color: #fff;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.cnl-algo-split__tab-title {
    overflow: hidden;
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cnl-algo-split__count {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
}

.cnl-algo-split__tab.is-active .cnl-algo-split__count {
    color: rgba(255, 255, 255, 0.76);
}

.cnl-algo-split__title {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.2vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.cnl-algo-split__desc {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 18px;
    max-width: 420px;
}

.cnl-algo-split__copy .cnl-spotlight__list {
    margin-bottom: 22px;
}

.cnl-algo-split__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cnl-algo-split__catalog {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: var(--algo-catalog-height, auto);
}

.cnl-algo-split__panel {
    display: none;
}

.cnl-algo-split__panel.is-active {
    display: block;
    animation: cnl-algo-panel-in 0.28s ease-out both;
}

.cnl-algo-split__panel--measure {
    display: block !important;
    position: absolute !important;
    visibility: hidden !important;
    inset: 0 auto auto 0;
    width: 100%;
    pointer-events: none;
}

@keyframes cnl-algo-panel-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cnl-algo-split__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.cnl-algo-split__list li {
    margin: 0;
}

.cnl-algo-split__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, var(--algo-accent) 12%, var(--border-light));
    border-radius: 13px;
    background: color-mix(in srgb, var(--bg-card) 86%, transparent);
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-secondary);
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
    overflow: hidden;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cnl-algo-split__item::after {
    content: "";
    position: absolute;
    inset: auto 12px 0;
    height: 2px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--algo-accent) 64%, transparent), transparent);
    opacity: 0;
    transform: scaleX(0.3);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.cnl-algo-split__item-index {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--algo-accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--algo-accent) 16%, transparent);
    font-family: var(--font-mono);
    font-size: 9px;
    color: color-mix(in srgb, var(--algo-accent) 76%, var(--text-secondary));
}

.cnl-algo-split__item-title {
    min-width: 0;
    flex: 1;
    color: var(--text-primary);
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cnl-algo-split__item-arrow {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    color: color-mix(in srgb, var(--algo-accent) 62%, var(--text-muted));
    background: color-mix(in srgb, var(--algo-accent) 8%, transparent);
    font-size: 10px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.cnl-algo-split__item:hover {
    color: var(--text-primary);
    border-color: color-mix(in srgb, var(--algo-accent) 32%, var(--border));
    background: color-mix(in srgb, var(--algo-accent) 8%, var(--bg-card));
    box-shadow: 0 12px 26px color-mix(in srgb, var(--algo-accent) 14%, transparent);
    transform: translateY(-2px);
}

.cnl-algo-split__item:hover::after,
.cnl-algo-split__item:hover .cnl-algo-split__item-arrow {
    opacity: 1;
    transform: none;
}

/* 左侧 CTA：GitHub 蓝实色 */
.cnl-algo-split .cnl-btn--algo {
    background: var(--algo-accent);
    color: #fff !important;
    border: 1px solid transparent;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--algo-accent) 22%, transparent);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.cnl-algo-split .cnl-btn--algo:hover {
    background: var(--algo-accent-deep);
    color: #fff;
}

/* 华为 — 左文案右路径 */
.cnl-spotlight--huawei {
    --spot-accent: #E33;
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: 32px;
    align-items: start;
}

.cnl-spotlight--huawei .cnl-spotlight__desc {
    max-width: none;
}

.cnl-roadmap-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cnl-roadmap {
    position: relative;
    padding: 20px 8px 8px;
}

.cnl-roadmap__track {
    position: absolute;
    top: 36px;
    left: 28px;
    right: 28px;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.cnl-roadmap__progress {
    display: block;
    height: 100%;
    width: 78%;
    background: linear-gradient(90deg, #E33, color-mix(in srgb, #E33 60%, #F97316));
    border-radius: 2px;
    animation: cnl-road-pulse 3s ease-in-out infinite;
}

@keyframes cnl-road-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.cnl-roadmap__nodes {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.cnl-roadmap__nodes--six {
    grid-template-columns: repeat(6, 1fr);
}

.cnl-roadmap:has(.cnl-roadmap__nodes--six) .cnl-roadmap__progress {
    width: 92%;
}

.cnl-roadmap:has(.cnl-roadmap__nodes--six) .cnl-roadmap__track {
    left: 20px;
    right: 20px;
}

.cnl-roadmap__node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.cnl-roadmap__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 14px;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 2px solid var(--border);
    transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.cnl-roadmap__node.is-active .cnl-roadmap__dot {
    color: #E33;
    border-color: color-mix(in srgb, #E33 50%, var(--border));
    background: color-mix(in srgb, #E33 8%, var(--bg-card));
}

.cnl-roadmap__node.is-current .cnl-roadmap__dot {
    color: #fff;
    background: #E33;
    border-color: #E33;
    box-shadow: 0 0 0 4px color-mix(in srgb, #E33 20%, transparent);
    animation: cnl-node-glow 2s ease-in-out infinite;
}

@keyframes cnl-node-glow {
    0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, #E33 20%, transparent); }
    50% { box-shadow: 0 0 0 8px color-mix(in srgb, #E33 10%, transparent); }
}

.cnl-roadmap__label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.cnl-roadmap__hint {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.cnl-roadmap-card {
    display: block;
    position: relative;
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid color-mix(in srgb, #E33 18%, var(--border));
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cnl-roadmap-card:hover {
    border-color: color-mix(in srgb, #E33 45%, var(--border));
    transform: translateY(-3px);
    box-shadow: 0 12px 36px color-mix(in srgb, #E33 12%, transparent);
}

.cnl-roadmap-card__glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E33, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cnl-roadmap-card:hover .cnl-roadmap-card__glow {
    opacity: 1;
}

.cnl-roadmap-card__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.cnl-roadmap-card__meta {
    flex: 1;
    min-width: 0;
}

.cnl-roadmap-card__title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-primary);
}

.cnl-roadmap-card__subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 8px;
    line-height: 1.5;
}

.cnl-roadmap-card__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.cnl-roadmap-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
    font-family: var(--font-display);
    font-weight: 500;
    color: #E33;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.cnl-roadmap-card:hover .cnl-roadmap-card__link {
    opacity: 1;
}

.cnl-roadmap-card .cnl-card__tags {
    margin-bottom: 0;
}

/* ── Product grid / card ── */
.cnl-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cnl-product-grid--double {
    grid-template-columns: repeat(2, 1fr);
}

.cnl-product-grid--single {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
}

.cnl-product-card {
    display: block;
    --card-accent: var(--accent);
    background: var(--bg-card);
    border: 1px solid color-mix(in srgb, var(--border) 88%, var(--card-accent) 12%);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--cnl-product-shadow-rest);
    transition:
        border-color 0.35s ease,
        background 0.35s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;
    height: 100%;
}

.cnl-product-card:hover {
    background: var(--bg-panel);
    border-color: color-mix(in srgb, var(--card-accent) 42%, var(--border));
    transform: translateY(-4px);
    box-shadow: var(--cnl-product-shadow-hover);
}

.cnl-product-card__shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--card-accent, var(--accent)), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.cnl-product-card:hover .cnl-product-card__shine {
    opacity: 1;
}

.cnl-product-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.cnl-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: color-mix(in srgb, var(--icon-box-color, var(--accent)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--icon-box-color, var(--accent)) 28%, transparent);
    color: var(--icon-box-color, var(--accent));
    font-size: 18px;
}

.cnl-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cnl-product-card__title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cnl-card__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.cnl-tag {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-weight: 500;
    border: 1px solid var(--tag-bd);
    line-height: 1.5;
    background: var(--tag-bg);
    color: var(--tag-c);
}

.cnl-badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 12px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid color-mix(in srgb, var(--badge-color, var(--accent)) 35%, transparent);
    background: color-mix(in srgb, var(--badge-color, var(--accent)) 12%, transparent);
    color: var(--badge-color, var(--accent));
}

.cnl-product-card__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.cnl-product-card__link {
    margin-top: 16px;
    font-size: 13px;
    color: var(--card-accent, var(--accent));
    font-family: var(--font-display);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.cnl-product-card:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--card-accent, var(--accent)) 45%, transparent);
    outline-offset: 3px;
}

.cnl-product-card:hover .cnl-product-card__link {
    opacity: 1;
}

/* ── 模拟面试（底部区块，对齐 intro MockInterviewSection） ── */
.cnl-section--mock {
    --mock-purple: #C084FC;
    --mock-teal: #2DD4BF;
    padding-top: 32px;
    padding-bottom: 32px;
}

.cnl-section--mock .cnl-split__desc {
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;
}

.cnl-section:not(.cnl-section--mock) + .cnl-section--mock {
    margin-top: -20px;
}

.cnl-mock-panel {
    --showcase-accent: var(--accent);
    background:
        radial-gradient(ellipse 65% 42% at 88% 0%, color-mix(in srgb, var(--mock-purple) 5%, transparent), transparent 58%),
        radial-gradient(ellipse 55% 38% at 8% 100%, color-mix(in srgb, var(--mock-teal) 4%, transparent), transparent 52%),
        var(--bg-card);
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 20%, var(--border));
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--cnl-showcase-shadow);
}

.theme--dark .cnl-mock-panel {
    box-shadow: var(--cnl-showcase-shadow);
}

.cnl-mock-panel--with-cover {
    padding-top: 0;
}

.cnl-mock-panel__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--info), var(--accent), var(--mock-purple));
}

.cnl-mock-panel__cover {
    display: block;
    width: calc(100% + 72px);
    max-width: none;
    height: 180px;
    object-fit: cover;
    margin: 0 -36px 24px;
}

.cnl-mock-panel__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.cnl-mock-panel__icon {
    width: 52px;
    height: 52px;
    font-size: 22px;
    flex-shrink: 0;
}

.cnl-mock-panel__head-text {
    flex: 1;
    min-width: 200px;
}

.cnl-mock-panel__title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
    line-height: 1.25;
}

.cnl-mock-panel__subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.cnl-mock-panel__cta {
    margin-left: auto;
}

.cnl-mock-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.cnl-mock-feature {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 18px;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cnl-mock-feature:hover {
    border-color: var(--feature-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--feature-accent) 10%, transparent);
}

.cnl-mock-feature .cnl-icon-box {
    width: 44px;
    height: 44px;
    font-size: 18px;
}

.cnl-mock-feature__title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 14px 0 6px;
}

.cnl-mock-feature__desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.cnl-mock-flow {
    position: relative;
    padding: 8px 0 4px;
}

.cnl-mock-flow__track {
    position: absolute;
    top: 28px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    z-index: 0;
}

.cnl-mock-flow__list {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    gap: 6px;
}

.cnl-mock-flow__step {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.cnl-mock-flow__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 6px;
    background: var(--bg-panel);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--step-color);
    font-size: 16px;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.cnl-mock-flow__step:hover .cnl-mock-flow__icon {
    border-color: var(--step-color);
    background: color-mix(in srgb, var(--step-color) 12%, transparent);
    transform: scale(1.06);
}

.cnl-mock-flow__index {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.cnl-mock-flow__name {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.cnl-mock-panel__hint {
    margin: 24px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cnl-mock-panel__hint i {
    color: var(--accent);
    font-size: 12px;
}

/* ── Separator ── */
.cnl-separator {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--page-gutter);
}

.cnl-separator__line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── Footer ── */
.cnl-footer {
    padding: 28px var(--page-gutter);
    margin-top: -60px;
    margin-bottom: -60px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

.cnl-footer code {
    font-family: var(--font-mono);
    font-size: 11px;
    background: var(--bg-panel);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ── Tooltip ── */
.cnl-tooltip {
    position: fixed;
    max-width: min(360px, 90vw);
    background: rgba(28, 25, 23, 0.95);
    color: #fff;
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    font-size: 13px;
    line-height: 1.6;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.15s ease;
}

.theme--dark .cnl-tooltip {
    background: rgba(30, 30, 35, 0.96);
}

.cnl-tooltip__title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    color: #fff;
}

.cnl-tooltip__title:empty {
    display: none;
}

.cnl-tooltip__body {
    color: #d4d4d8;
    word-break: break-word;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .cnl-page {
        --page-gutter: 28px;
    }

    .cnl-section--featured {
        --section-y: 44px;
    }

    .cnl-split,
    .cnl-spotlight--acm,
    .cnl-algo-split {
        gap: 40px;
    }
}

@media (max-width: 960px) {
    .cnl-page {
        --section-y: 32px;
    }

    .cnl-section--featured {
        --section-y: 36px;
    }

    .cnl-section-header {
        margin-bottom: 24px;
    }

    .cnl-split {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cnl-split__desc {
        max-width: none;
    }

    .cnl-split__title {
        font-size: clamp(22px, 5.5vw, 30px);
    }

    .cnl-spotlight--acm {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cnl-spotlight--acm .cnl-spotlight__copy {
        order: -1;
        padding-left: 0;
    }

    .cnl-algo-split__preview {
        margin-left: 0;
    }

    .cnl-spotlight--acm .cnl-spotlight__title {
        font-size: clamp(22px, 5.5vw, 30px);
    }

    .cnl-spotlight--huawei {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cnl-roadmap__nodes--six {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 24px;
    }

    .cnl-algo-split {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cnl-algo-split__title {
        font-size: clamp(22px, 5.2vw, 28px);
    }

    .cnl-algo-split__desc {
        max-width: none;
    }

    .cnl-algo-split__nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .cnl-algo-split__nav::-webkit-scrollbar {
        display: none;
    }

    .cnl-algo-split__tab {
        flex: 0 0 auto;
        min-width: 96px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .cnl-mock-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cnl-mock-flow__list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .cnl-mock-flow__track {
        display: none;
    }

    .cnl-mock-flow__step {
        flex: 0 0 auto;
        width: 88px;
    }

    .cnl-roadmap__nodes {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 28px;
    }

    .cnl-roadmap__track {
        display: none;
    }

    .cnl-carousel {
        height: clamp(240px, 36vw + 10vh, 340px);
    }

    .cnl-slide {
        padding: 14px 16px 6px;
    }

    .cnl-anim__viewport {
        min-height: 150px;
    }

    .cnl-anim__scene {
        min-height: 150px;
        padding: 8px 10px;
    }

    .cnl-anim__array-wrap {
        --anim-cell: 40px;
        --anim-gap: 5px;
        --anim-pad-top: 28px;
    }

    .cnl-anim__cell {
        font-size: 21px;
    }

    .cnl-anim__j-pointer {
        font-size: 18px;
    }

    .cnl-anim__target {
        font-size: 15px;
        padding: 8px 10px 2px;
    }

    .cnl-anim__caption {
        font-size: 12px;
    }

    .cnl-acm-demo {
        padding: 14px;
    }

    .cnl-acm-stat strong {
        font-size: 20px;
    }
}

@media (max-width: 900px) {
    .cnl-page {
        --page-gutter: 20px;
        --section-y: 28px;
    }

    .cnl-section--featured {
        --section-y: 32px;
    }

    .cnl-section--mock {
        padding-top: 36px;
    }

    .cnl-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .cnl-product-grid--single {
        grid-template-columns: 1fr;
    }

    .cnl-section-title {
        font-size: clamp(20px, 4.8vw, 24px);
    }

    .cnl-section-desc {
        font-size: 14px;
    }

    .cnl-section-showcase {
        margin: 16px auto 22px;
    }

    .cnl-section-showcase img {
        max-height: 240px;
    }

    .cnl-mock-panel__title {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .cnl-page {
        --page-gutter: 16px;
        --section-y: 24px;
    }

    .cnl-section--featured {
        --section-y: 28px;
    }

    .cnl-section--mock {
        padding-top: 4px;
        padding-bottom: 8px;
    }

    #panel > .main:has(.cnl-page) {
        margin-bottom: -40px;
    }

    .cnl-product-grid,
    .cnl-product-grid--double,
    .cnl-product-grid--single {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cnl-split__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cnl-split__list {
        gap: 10px;
        margin-bottom: 20px;
    }

    .cnl-split__list li {
        font-size: 13px;
    }

    .cnl-spotlight__actions,
    .cnl-algo-split__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cnl-spotlight__desc,
    .cnl-algo-split__desc {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .cnl-algo-split__list {
        grid-template-columns: 1fr;
    }

    .cnl-algo-split__board {
        padding: 12px;
        border-radius: 20px;
    }

    .cnl-algo-split__item {
        min-height: 42px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .cnl-algo-split__item-arrow {
        opacity: 1;
        transform: none;
    }

    .cnl-algo-split__tab {
        min-width: 84px;
        min-height: 50px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .cnl-algo-split__count {
        font-size: 10px;
    }

    .cnl-roadmap__nodes {
        grid-template-columns: 1fr 1fr;
    }

    .cnl-roadmap__nodes--six {
        grid-template-columns: repeat(2, 1fr);
    }

    .cnl-acm-stats {
        grid-template-columns: 1fr;
    }

    .cnl-acm-demo {
        padding: 12px;
        border-radius: 14px;
    }

    .cnl-acm-stat {
        padding: 10px 12px;
    }

    .cnl-acm-stat strong {
        font-size: 18px;
    }

    .cnl-acm-stat span {
        font-size: 10px;
    }

    .cnl-term__tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .cnl-term__tabs::-webkit-scrollbar {
        display: none;
    }

    .cnl-term__tab {
        flex: 0 0 auto;
        min-width: 72px;
    }

    .cnl-term__body {
        min-height: 0;
        padding: 12px 14px;
        font-size: 10px;
    }

    .cnl-btn {
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
    }

    .cnl-carousel {
        height: clamp(220px, 52vw + 6vh, 300px);
    }

    .cnl-carousel__captions {
        height: 34px;
        padding: 10px 12px 2px;
    }

    .cnl-carousel__caption {
        font-size: 12px;
        gap: 6px;
    }

    .cnl-slide {
        padding: 10px 12px 4px;
    }

    .cnl-slide--article {
        padding: 0;
    }

    .cnl-slide--anim,
    .cnl-slide--judge {
        padding: 0;
    }

    .cnl-sol-mini {
        border-radius: 10px;
    }

    .cnl-judge {
        border-radius: 10px;
    }

    .cnl-judge__problem {
        flex: 0 0 30%;
    }

    .cnl-judge__prob-title {
        font-size: 11px;
    }

    .cnl-judge__prob-desc {
        font-size: 9px;
    }

    .cnl-judge__console-head {
        flex-wrap: wrap;
        gap: 4px;
    }

    .cnl-judge__tabs span {
        padding: 3px 5px;
        font-size: 8px;
    }

    .cnl-judge__btn {
        padding: 2px 6px;
        font-size: 8px;
    }

    .cnl-judge__tab--hide-sm {
        display: none;
    }

    .cnl-judge__mode {
        display: none;
    }

    .cnl-judge__timer {
        display: none;
    }

    .cnl-judge__io {
        grid-template-columns: 1fr;
    }

    .cnl-anim__array-wrap {
        --anim-cell: 34px;
        --anim-gap: 4px;
        --anim-pad-top: 24px;
    }

    .cnl-anim__cell {
        font-size: 18px;
    }

    .cnl-anim__j-pointer {
        font-size: 15px;
    }

    .cnl-anim__target {
        font-size: 14px;
    }

    .cnl-anim__caption {
        font-size: 11px;
        max-width: 100%;
    }

    .cnl-anim__viewport {
        min-height: 130px;
    }

    .cnl-anim__scene {
        min-height: 130px;
        gap: 8px;
    }

    .cnl-product-card {
        padding: 18px 16px;
    }

    .cnl-product-card__head {
        gap: 10px;
        margin-bottom: 12px;
        display: grid;
        grid-template-columns: 38px 1fr;
        grid-template-rows: auto auto;
        align-items: center;
    }

    .cnl-product-card__head .cnl-icon-box {
        grid-row: 1 / -1;
        align-self: start;
    }

    .cnl-product-card__head .cnl-badge {
        grid-column: 2;
        justify-self: start;
    }

    .cnl-product-card__title {
        grid-column: 2;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        font-size: 15px;
    }

    .cnl-icon-box {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 12px;
    }

    .cnl-product-card__desc {
        font-size: 13px;
    }

    .cnl-section-title {
        font-size: clamp(18px, 5.2vw, 22px);
    }

    .cnl-section-desc {
        font-size: 13px;
        line-height: 1.65;
    }

    .cnl-section-showcase img {
        max-height: 200px;
    }

    .cnl-mock-panel {
        padding: 20px 16px;
    }

    .cnl-mock-panel__cover {
        width: calc(100% + 32px);
        height: 140px;
        margin: 0 -16px 16px;
    }

    .cnl-mock-panel__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .cnl-mock-panel__head-text {
        min-width: 0;
        width: 100%;
    }

    .cnl-mock-panel__title {
        font-size: 18px;
    }

    .cnl-mock-panel__subtitle {
        font-size: 12px;
    }

    .cnl-mock-panel__cta {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .cnl-mock-features {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .cnl-mock-feature {
        padding: 16px 14px;
    }

    .cnl-mock-flow__step {
        width: 72px;
    }

    .cnl-mock-flow__icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .cnl-mock-flow__name {
        font-size: 10px;
    }

    .cnl-footer {
        margin-top: -40px;
        margin-bottom: -40px;
        padding: 20px var(--page-gutter);
        font-size: 11px;
    }
}

@media (max-width: 520px) {
    .cnl-judge {
        flex-direction: column;
    }

    .cnl-judge__problem {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .cnl-judge__workspace {
        flex: 1;
        min-height: 0;
    }

    .cnl-judge__editor {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .cnl-page {
        --page-gutter: 12px;
        --section-y: 20px;
    }

    .cnl-section--featured {
        --section-y: 24px;
    }

    .cnl-section-header {
        margin-bottom: 18px;
    }

    .cnl-split__title,
    .cnl-spotlight--acm .cnl-spotlight__title,
    .cnl-algo-split__title {
        font-size: clamp(18px, 5.8vw, 22px);
    }

    .cnl-split__desc {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .cnl-carousel {
        height: clamp(200px, 55vw + 4vh, 260px);
    }

    .cnl-carousel__captions {
        height: 30px;
        padding: 8px 10px 0;
    }

    .cnl-carousel__caption {
        font-size: 11px;
        top: 8px;
    }

    .cnl-anim__array-wrap {
        --anim-cell: 28px;
        --anim-gap: 3px;
        --anim-pad-top: 20px;
        padding-bottom: 12px;
    }

    .cnl-anim__cell {
        font-size: 15px;
        border-width: 1px;
    }

    .cnl-anim__j-pointer {
        font-size: 13px;
    }

    .cnl-anim__hash {
        gap: 4px;
    }

    .cnl-anim__hash-item,
    .cnl-anim__hash-empty {
        font-size: 11px;
        padding: 3px 7px;
    }

    .cnl-anim__caption {
        font-size: 10px;
        line-height: 1.35;
    }

    .cnl-anim__title strong {
        font-size: 13px;
    }

    .cnl-judge__problem {
        flex: 0 0 28%;
    }

    .cnl-judge__prob-head {
        padding: 6px 8px 5px;
    }

    .cnl-judge__prob-body {
        padding: 6px 8px 8px;
    }

    .cnl-judge__sample-row {
        grid-template-columns: 24px 1fr;
        padding: 4px 6px;
    }

    .cnl-judge__lines {
        --judge-code-size: 7px;
    }

    .cnl-judge__row {
        grid-template-columns: 18px 1fr;
    }

    .cnl-term__chrome {
        padding: 8px 10px;
        gap: 6px;
    }

    .cnl-term__title {
        font-size: 10px;
    }

    .cnl-term__mode {
        display: none;
    }

    .cnl-term__body {
        min-height: 0;
        font-size: 9px;
    }

    .cnl-acm-badges {
        gap: 8px;
    }

    .cnl-acm-badge {
        font-size: 11px;
        padding: 5px 12px;
    }

    .cnl-product-card {
        padding: 16px 14px;
    }

    .cnl-badge {
        font-size: 10px;
        padding: 2px 8px;
    }

    .cnl-tag {
        font-size: 10px;
        padding: 2px 8px;
    }

    .cnl-mock-panel__cover {
        width: calc(100% + 24px);
        height: 120px;
        margin: 0 -12px 14px;
    }

    .cnl-mock-panel__icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .cnl-mock-feature .cnl-icon-box {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .cnl-mock-flow__list {
        gap: 8px;
    }

    .cnl-mock-flow__step {
        width: 64px;
    }

    .cnl-mock-flow__icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .cnl-mock-flow__index {
        font-size: 9px;
    }

    .cnl-mock-flow__name {
        font-size: 9px;
    }

    .cnl-mock-panel__hint {
        font-size: 12px;
        margin-top: 18px;
    }
}

@media (max-width: 380px) {
    .cnl-anim__array-wrap {
        --anim-cell: 24px;
        --anim-gap: 2px;
        --anim-pad-top: 18px;
    }

    .cnl-anim__cell {
        font-size: 13px;
    }

    .cnl-algo-split__tab {
        min-width: 72px;
        padding: 7px 8px;
        font-size: 11px;
    }

    .cnl-split__dot {
        width: 6px;
        height: 6px;
    }

    .cnl-btn {
        padding: 9px 14px;
        font-size: 12px;
    }
}

@media (hover: none) {
    .cnl-product-card:hover,
    .cnl-mock-feature:hover,
    .cnl-roadmap-card:hover {
        transform: none;
    }
}

/* ── 分区切换：面试手撕 / 八股题库 / 大厂专项 ── */
.cnl-hub {
    padding: 18px 0 0;
}

.cnl-hub__bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 5px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--cnl-product-shadow-rest);
}

.cnl-hub__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    transition: background 0.2s ease, color 0.2s ease;
}

.cnl-hub__tab i {
    font-size: 13px;
}

.cnl-hub__tab:hover {
    background: var(--accent-dim);
    color: var(--text-primary);
}

.cnl-hub__tab.is-active {
    background: var(--accent);
    color: var(--on-accent);
}

.cnl-hub__tab.is-active:hover {
    background: var(--accent-hover);
    color: var(--on-accent);
}

.cnl-hub__tab:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
    outline-offset: 2px;
}

.cnl-page--tear .cnl-main > .cnl-section:first-child {
    padding-top: 28px;
}

.cnl-hub-section__intro {
    margin-bottom: 28px;
}

.cnl-hub-block + .cnl-hub-block {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.cnl-hub-block__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.cnl-hub-block__copy {
    flex: 1;
    min-width: 0;
}

.cnl-hub-block__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

.cnl-hub-block__desc {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.cnl-hub-block__badge {
    flex-shrink: 0;
}

.cnl-hub-mark {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.cnl-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cnl-hub-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cnl-hub-grid--1 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cnl-hub-card {
    display: flex;
    flex-direction: column;
    --card-accent: var(--accent);
    background: var(--bg-card);
    border: 1px solid color-mix(in srgb, var(--border) 88%, var(--card-accent) 12%);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--cnl-product-shadow-rest);
    transition:
        border-color 0.35s ease,
        background 0.35s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;
    height: 100%;
    min-width: 0;
}

a.cnl-hub-card:hover {
    background: var(--bg-panel);
    border-color: color-mix(in srgb, var(--card-accent) 42%, var(--border));
    transform: translateY(-4px);
    box-shadow: var(--cnl-product-shadow-hover);
}

.cnl-hub-card__shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--card-accent, var(--accent)), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

a.cnl-hub-card:hover .cnl-hub-card__shine {
    opacity: 1;
}

.cnl-hub-card:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--card-accent, var(--accent)) 45%, transparent);
    outline-offset: 3px;
}

.cnl-hub-card__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.cnl-hub-card .cnl-icon-box {
    position: relative;
    overflow: visible;
}

.cnl-hub-card__lock {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 9px;
}

.cnl-hub-card__title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.cnl-hub-card__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
    text-wrap: pretty;
}

.cnl-hub-card__link {
    margin-top: auto;
    padding-top: 14px;
    font-size: 13px;
    color: var(--card-accent, var(--accent));
    font-family: var(--font-display);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

a.cnl-hub-card:hover .cnl-hub-card__link {
    opacity: 1;
}

.cnl-hub-card--locked {
    cursor: not-allowed;
    background: color-mix(in srgb, var(--bg-card) 82%, var(--bg) 18%);
}

.cnl-hub-card--locked .cnl-hub-card__title,
.cnl-hub-card--locked .cnl-hub-card__desc {
    color: var(--text-secondary);
}

.cnl-hub-card--locked .cnl-hub-card__link {
    color: var(--text-muted);
    opacity: 1;
}

.cnl-hub-card__touch-hint {
    white-space: normal;
}

.cnl-hub-card--pending {
    cursor: default;
}

.cnl-hub-card--pending .cnl-hub-card__link {
    color: var(--text-muted);
    opacity: 1;
}

.cnl-hub-empty {
    margin: 12px 0 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 800px) {
    .cnl-hub-grid,
    .cnl-hub-grid--2,
    .cnl-hub-grid--1 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cnl-hub {
        padding-top: 12px;
    }

    .cnl-hub__bar {
        width: 100%;
        border-radius: 16px;
    }

    .cnl-hub__tab {
        flex: 1 1 0;
        padding: 8px 6px;
        font-size: 13px;
        gap: 0;
    }

    .cnl-hub__tab i {
        display: none;
    }

    .cnl-hub-block__head {
        align-items: flex-start;
    }

    .cnl-hub-block__title {
        font-size: 18px;
    }

    .cnl-hub-block__badge {
        display: none;
    }
}

@media (hover: none) {
    a.cnl-hub-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cnl-hub__tab,
    .cnl-hub-card,
    .cnl-hub-card__shine,
    .cnl-hub-card__link {
        transition: none;
    }
}
