

.cc-canvas {
    position: relative;
    width: 100%;
    container-type: inline-size; 
    overflow: hidden;
    border-radius: 12px;
}

.cc-item {
    position: absolute;
    box-sizing: border-box;
}



.cc-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    user-select: none;
}



.cc-text {
    overflow: hidden;
    line-height: 1.45;
    color: var(--color-text-primary);
    overflow-wrap: anywhere;
}

.cc-text.cc-valign-middle {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cc-bold { font-weight: 700; }
.cc-align-left { text-align: left; }
.cc-align-center { text-align: center; }
.cc-align-right { text-align: right; }

.cc-color-default { color: var(--color-text-primary); }
.cc-color-muted { color: var(--color-text-tertiary); }
.cc-color-accent { color: var(--color-accent); }
.cc-color-white { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }



.cc-rich a,
.cc-text a,
.cc-legacy-text a {
    color: var(--color-accent);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.cc-rich a:hover,
.cc-text a:hover,
.cc-legacy-text a:hover {
    text-decoration: underline;
}

.cc-emoji {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    vertical-align: -0.28em;
    margin: 0 0.04em;
    line-height: 1;
}

.cc-emoji img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.cc-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    padding: 0.08em 0.35em;
    border-radius: 0.35em;
    background: var(--color-bg-tertiary, rgba(127, 127, 127, 0.14));
    color: var(--color-text-primary);
}

.cc-pre {
    display: block;
    margin: 0.5em 0;
    padding: 0.6em 0.8em;
    border-radius: 0.6em;
    background: var(--color-bg-tertiary, rgba(127, 127, 127, 0.14));
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.cc-quote {
    display: block;
    margin: 0.45em 0;
    padding: 0.45em 0.8em;
    border-left: 0.22em solid var(--color-accent);
    border-radius: 0.5em;
    background: var(--color-accent-subtle, rgba(127, 127, 127, 0.1));
}

.cc-spoiler {
    cursor: pointer;
    border-radius: 0.3em;
    background: var(--color-text-tertiary);
    color: transparent;
    text-shadow: none;
    transition: background 0.2s, color 0.2s;
}

.cc-spoiler .cc-emoji { visibility: hidden; }

.cc-spoiler.is-open {
    background: transparent;
    color: inherit;
}

.cc-spoiler.is-open .cc-emoji { visibility: visible; }



.cc-legacy-image img {
    width: 100%;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--color-border-subtle, var(--color-border-default));
    object-fit: contain;
    max-height: 450px;
    margin-bottom: 14px;
}

.cc-legacy-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text-primary);
    overflow-wrap: anywhere;
}



.cc-article {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-primary);
    overflow-wrap: anywhere;
}

.cc-article > :first-child { margin-top: 0; }
.cc-article > :last-child { margin-bottom: 0; }

.cc-article h1, .cc-article h2, .cc-article h3, .cc-article h4 {
    margin: 1.1em 0 0.45em;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
}
.cc-article h1 { font-size: 1.55em; }
.cc-article h2 { font-size: 1.28em; }
.cc-article h3 { font-size: 1.1em; }
.cc-article h4 { font-size: 1em; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-tertiary); }

.cc-article p { margin: 0 0 0.75em; }
.cc-article hr {
    border: 0;
    border-top: 1px solid var(--color-border-default);
    margin: 1em 0;
}
.cc-article small { font-size: 0.86em; color: var(--color-text-tertiary); }
.cc-article mark {
    background: var(--color-accent-subtle, rgba(200, 240, 82, 0.35));
    color: inherit;
    padding: 0 0.25em;
    border-radius: 0.3em;
}
.cc-article kbd {
    font-family: inherit;
    font-size: 0.86em;
    padding: 0.05em 0.45em;
    border: 1px solid var(--color-border-default);
    border-bottom-width: 2px;
    border-radius: 0.35em;
    background: var(--color-bg-tertiary);
}


.cc-article ul, .cc-article ol {
    margin: 0 0 0.85em;
    padding-left: 1.4em;
}
.cc-article li { margin: 0.25em 0; }
.cc-article li::marker { color: var(--color-accent); font-weight: 700; }


.cc-article ul.nw-plain { list-style: none; padding-left: 0; }
.cc-article ul.nw-plain li { display: flex; gap: 0.45em; align-items: flex-start; }
.cc-article ul.nw-plain li > .cc-emoji { flex-shrink: 0; margin-top: 0.1em; }


.cc-article ol.nw-steps { list-style: none; padding-left: 0; counter-reset: nw-step; }
.cc-article ol.nw-steps li {
    counter-increment: nw-step;
    position: relative;
    padding-left: 2.2em;
    margin: 0.45em 0;
}
.cc-article ol.nw-steps li::before {
    content: counter(nw-step);
    position: absolute;
    left: 0;
    top: 0.05em;
    width: 1.55em;
    height: 1.55em;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-accent-text, #111);
    font-size: 0.9em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}


.cc-article img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0.7em;
}
.cc-article .nw-cover {
    width: 100%;
    border: 1px solid var(--color-border-subtle, var(--color-border-default));
    margin: 0 0 0.9em;
}

.cc-article video {
    display: block;
    width: 100%;
    max-width: 940px;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 auto 0.9em;
    border: 1px solid var(--color-border-subtle, var(--color-border-default));
    border-radius: 0.7em;
    background: #000;
}
.cc-article figure { margin: 0 0 0.9em; }
.cc-article figcaption {
    margin-top: 0.4em;
    font-size: 0.86em;
    color: var(--color-text-tertiary);
    text-align: center;
}


.cc-article .nw-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16em), 1fr));
    gap: 1.1em;
    align-items: start;
    margin: 0 0 0.9em;
}
.cc-article .nw-cols-media {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 1.3em;
    align-items: center;
    margin: 0 0 0.9em;
}
.cc-article .nw-cols-media > img { margin: 0; }
.cc-article .nw-cols-media > * { min-width: 0; }
.cc-article .nw-cols > * { min-width: 0; }


.cc-article .nw-hero {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 1.2em;
    align-items: stretch;
    margin: 0 0 1em;
}
.cc-article .nw-hero > img {
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.cc-article .nw-hero-side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.9em;
    padding: 1.3em 1.4em;
    border-radius: 1em;
    background: linear-gradient(160deg, #1b1b22 0%, #0f0f13 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.cc-article .nw-hero-side > * { margin: 0; }
.cc-article .nw-hero-side .nw-lead { font-size: 1.05em; line-height: 1.5; color: rgba(255, 255, 255, 0.92); }
.cc-article .nw-hero-side a { color: #c8f052; }
.cc-article .nw-hero-side .nw-kv-label { color: rgba(255, 255, 255, 0.5); }
.cc-article .nw-hero-side .nw-kpi-item,
.cc-article .nw-hero-side .nw-kpi-pink {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}
.cc-article .nw-hero-side .nw-kpi-value { color: #c8f052; }
.cc-article .nw-hero-side a.nw-btn {
    display: block;
    text-align: center;
    padding: 0.75em 1.2em;
    background: #c8f052;
    color: #111;
    font-size: 1.05em;
    border-radius: 0.7em;
}
.cc-article .nw-hero-side a.nw-btn:hover { filter: brightness(1.05); }
.cc-article .nw-hero-side .nw-btn-caption {
    margin-top: 0.5em;
    text-align: center;
    font-size: 0.86em;
    color: rgba(255, 255, 255, 0.55);
}
.cc-article .nw-hero-side .nw-kpi-label { color: rgba(255, 255, 255, 0.6); }
.cc-article .nw-hero-side .nw-note { background: rgba(200, 240, 82, 0.12); border-left-color: #c8f052; }
.cc-article .nw-hero-side .nw-note-pink { background: rgba(240, 106, 168, 0.16); border-left-color: #f06aa8; }


.cc-article .nw-kv {
    display: flex;
    gap: 0.6em;
    align-items: flex-start;
    line-height: 1.45;
}
.cc-article .nw-kv > .cc-emoji { flex-shrink: 0; margin-top: 0.15em; }
.cc-article .nw-kv-label {
    display: block;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: 0.15em;
}


.cc-article .nw-kpi-pink {
    background: linear-gradient(135deg, rgba(240, 106, 168, 0.18), rgba(240, 106, 168, 0.05));
    border-color: rgba(240, 106, 168, 0.4);
}
.cc-article .nw-kpi-pink .nw-kpi-value { color: #f06aa8; }


.cc-article .nw-card.nw-feature {
    position: relative;
    overflow: hidden;
    padding: 1em 1.1em 1em 1.3em;
    background: var(--color-bg-secondary); 
    border: 1px solid var(--color-border-default);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.cc-article .nw-feature::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-accent);
}
.cc-article .nw-feature-head {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 700;
    font-size: 1.05em;
    margin-bottom: 0.35em;
}
.cc-article .nw-feature-head .cc-emoji { width: 1.45em; height: 1.45em; vertical-align: middle; }
.cc-article .nw-feature-text {
    font-size: 0.95em;
    line-height: 1.5;
    color: var(--color-text-primary);
}


.cc-article .nw-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}
.cc-article .nw-cols-3 > .nw-card { font-size: 0.95em; line-height: 1.5; }


.cc-article .nw-card {
    padding: 0.9em 1.05em;
    border-radius: 0.85em;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-default);
}
.cc-article .nw-card > :first-child { margin-top: 0; }
.cc-article .nw-card > :last-child { margin-bottom: 0; }

.cc-article .nw-note {
    padding: 0.75em 1em;
    border-radius: 0.7em;
    border-left: 0.25em solid var(--color-accent);
    background: var(--color-accent-subtle, rgba(200, 240, 82, 0.18));
    margin: 0 0 0.9em;
}
.cc-article .nw-note-pink {
    border-left-color: #f06aa8;
    background: rgba(240, 106, 168, 0.12);
}
.cc-article .nw-note > :first-child { margin-top: 0; }
.cc-article .nw-note > :last-child { margin-bottom: 0; }


.cc-article .nw-badge {
    display: inline-block;
    padding: 0.12em 0.6em;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-accent-text, #111);
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    vertical-align: middle;
}
.cc-article .nw-badge-pink { background: #f06aa8; color: #fff; }
.cc-article .nw-badge-muted { background: var(--color-bg-tertiary); color: var(--color-text-secondary); }

.cc-article .nw-kpi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5em), 1fr));
    gap: 0.7em;
    margin: 0 0 0.9em;
}
.cc-article .nw-kpi-item {
    padding: 0.7em 0.85em;
    border-radius: 0.8em;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-default);
}
.cc-article .nw-kpi-value {
    font-size: 1.45em;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}
.cc-article .nw-kpi-label {
    font-size: 0.82em;
    color: var(--color-text-tertiary);
    margin-top: 0.2em;
}

.cc-article a.nw-btn {
    display: inline-block;
    padding: 0.5em 1.1em;
    border-radius: 0.65em;
    background: var(--color-accent);
    color: var(--color-accent-text, #111);
    font-weight: 700;
    text-decoration: none;
}
.cc-article a.nw-btn:hover { text-decoration: none; filter: brightness(1.06); }
.cc-article a.nw-btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-strong, var(--color-border-default));
}


.cc-article .nw-accent { color: var(--color-accent); }
.cc-article .nw-pink { color: #f06aa8; }
.cc-article .nw-muted { color: var(--color-text-tertiary); }
.cc-article .nw-center { text-align: center; }
.cc-article .nw-lead { font-size: 1.08em; color: var(--color-text-secondary); }
.cc-article .nw-tight { margin-bottom: 0.3em; }
.cc-article .nw-row { display: flex; flex-wrap: wrap; gap: 0.5em; align-items: center; }


.cc-article table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
    margin: 0 0 0.9em;
}
.cc-article th, .cc-article td {
    padding: 0.45em 0.6em;
    border-bottom: 1px solid var(--color-border-default);
    text-align: left;
    vertical-align: top;
}
.cc-article th {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-tertiary);
}

@media (max-width: 600px) {
    .cc-article { font-size: 14px; }
    .cc-article .nw-cols-media,
    .cc-article .nw-hero { grid-template-columns: 1fr; gap: 0.8em; }
    .cc-article .nw-cols-3 { grid-template-columns: 1fr; }
}




html[data-scheme="dark"] .cc-article .nw-badge-pink {
    color: var(--color-accent-text);
}
