/*
 * SL886 — 美股 AI 3D 產業鏈研究
 * 暗色「研究實驗室」舞台 + editorial 側欄；色調延伸 --sl886-* 冷藍系統。
 */

.us-chain-page {
    --usc-bg-0: #050b16;
    --usc-bg-1: #0b1830;
    --usc-line: rgba(148, 180, 224, 0.18);
    --usc-line-strong: rgba(148, 180, 224, 0.34);
    --usc-ink: #e8eefb;
    --usc-sub: #9db2d4;
    --usc-up: #5eead4;
    --usc-mid: #60a5fa;
    --usc-down: #fbbf24;
    --usc-rel-supplier: #5eead4;
    --usc-rel-customer: #fbbf24;
    --usc-rel-foundry: #60a5fa;
    --usc-rel-license: #f472b6;
    --usc-rel-partner: #a3e635;
}

/* ---------- Layout ---------- */

.us-chain-layout {
    display: block;
    position: relative;
}

.us-chain-layout__stage {
    position: relative;
}

/* ---------- Stage ---------- */

.us-chain-stage-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--usc-line-strong);
    background:
        radial-gradient(120% 90% at 50% 0%, #16294c 0%, #0a1a36 42%, #050b16 100%);
    background-color: var(--usc-bg-0);
    box-shadow: 0 24px 60px -30px rgba(2, 10, 24, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

/* 裝配線劇場：接近一屏 */
.us-chain-stage-wrap--theater {
    border-radius: 14px;
    margin-top: 0.5rem;
}

.us-chain-stage-wrap--theater .us-chain-stage {
    height: calc(100dvh - 168px);
    min-height: 480px;
    max-height: 960px;
}

/* 全屏模式：撐滿整個視窗 */
.us-chain-stage-wrap:fullscreen {
    border-radius: 0;
    border: none;
    background: #050b16;
}

.us-chain-stage-wrap:fullscreen .us-chain-stage {
    height: 100vh;
    max-height: none;
}

.us-chain-stage {
    position: relative;
    width: 100%;
    height: clamp(560px, 86vh, 1100px);
    touch-action: none;
    cursor: grab;
    background:
        radial-gradient(90% 70% at 50% 0%, rgba(37, 70, 128, 0.55) 0%, rgba(8, 16, 32, 0) 60%),
        radial-gradient(60% 60% at 80% 90%, rgba(24, 90, 110, 0.25) 0%, rgba(8, 16, 32, 0) 65%),
        linear-gradient(180deg, #0a1730 0%, #050b16 100%);
}

.us-chain-stage:active {
    cursor: grabbing;
}

.us-chain-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
}

/* ---------- 3D labels (CSS2D) ---------- */

.us-chain-label {
    font-family: 'IBM Plex Sans TC', 'Noto Sans TC', system-ui, sans-serif;
    font-size: 11px;
    line-height: 1.2;
    color: #eaf2ff;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(8, 18, 36, 0.62);
    border: 1px solid rgba(148, 180, 224, 0.22);
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    user-select: none;
}

.us-chain-label__code {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.us-chain-label__name {
    color: #b7c8e6;
    margin-left: 5px;
}

.us-chain-label--dim {
    opacity: 0.18;
}

.us-chain-label--hot {
    border-color: rgba(96, 165, 250, 0.85);
    background: rgba(22, 45, 82, 0.85);
}

.us-chain-label--layer {
    font-weight: 700;
    letter-spacing: 0.14em;
    font-size: 12.5px;
    background: rgba(8, 18, 36, 0.5);
    border-color: rgba(148, 180, 224, 0.3);
}

.us-chain-label--station {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    padding: 5px 12px 5px 8px;
    border-radius: 999px;
    background: rgba(8, 18, 36, 0.78);
    border-color: rgba(96, 165, 250, 0.55);
}

.us-chain-label__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35em;
    height: 1.35em;
    margin-right: 6px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.35);
    font-size: 11px;
    font-weight: 800;
}

.us-chain-label--plaque {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(8, 18, 36, 0.82);
    border: 1px solid rgba(148, 180, 224, 0.4);
}

.us-chain-station-label {
    pointer-events: none;
    color: #cfe0fb;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 10px;
    background: rgba(10, 22, 43, 0.65);
    border: 1px solid var(--usc-line);
    border-radius: 10px;
    white-space: nowrap;
}

.us-chain-station-pills {
    position: absolute;
    left: 50%;
    bottom: 42px;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: min(920px, calc(100% - 24px));
    pointer-events: auto;
    z-index: 3;
}

.us-chain-station-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(148, 180, 224, 0.28);
    background: rgba(8, 18, 36, 0.72);
    color: #cfe0fb;
    border-radius: 999px;
    padding: 5px 11px 5px 6px;
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.us-chain-station-pill:hover {
    border-color: rgba(96, 165, 250, 0.75);
}

.us-chain-station-pill.is-active {
    background: rgba(37, 99, 235, 0.55);
    border-color: rgba(147, 197, 253, 0.9);
    color: #fff;
}

.us-chain-station-pill__n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4em;
    height: 1.4em;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    font-size: 11px;
    font-weight: 800;
}

.us-chain-side__bullets {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--usc-sub);
    font-size: 13px;
    line-height: 1.55;
}

.us-chain-side__bullets li + li {
    margin-top: 0.35rem;
}

.us-chain-side__more {
    margin: 0.5rem 0 0;
    font-size: 12px;
    color: #7f97bd;
}

/* ---------- Controls (overlay) ---------- */

.us-chain-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.us-chain-overlay__top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    pointer-events: none;
}

.us-chain-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    pointer-events: auto;
}

.us-chain-search {
    position: relative;
}

.us-chain-search input {
    background: rgba(10, 22, 43, 0.78);
    border: 1px solid var(--usc-line-strong);
    color: var(--usc-ink);
    border-radius: 10px;
    padding: 6px 12px 6px 30px;
    font-size: 13px;
    min-width: 180px;
    outline: none;
}

.us-chain-search input::placeholder {
    color: #6f86ab;
}

.us-chain-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f97bd;
    font-size: 13px;
}

.us-chain-btn {
    pointer-events: auto;
    background: rgba(10, 22, 43, 0.78);
    border: 1px solid var(--usc-line-strong);
    color: #cfe0fb;
    border-radius: 10px;
    padding: 6px 11px;
    font-size: 12.5px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.us-chain-btn:hover {
    border-color: rgba(96, 165, 250, 0.8);
    color: #fff;
    background: rgba(30, 58, 104, 0.85);
}

.us-chain-btn.is-active {
    border-color: rgba(96, 165, 250, 0.9);
    background: rgba(37, 78, 140, 0.9);
    color: #fff;
}

.us-chain-btn--primary {
    background: linear-gradient(135deg, #2f6fe4, #1f4fb0);
    border-color: rgba(120, 170, 255, 0.6);
    color: #fff;
    font-weight: 600;
}

.us-chain-btn--primary:hover {
    filter: brightness(1.1);
    background: linear-gradient(135deg, #3f7ff4, #2a5fc0);
}

.us-chain-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

/* ---------- Cover band ---------- */

/* cover 插畫已唔再擋喺舞台前；樣式保留畀列表卡／og 用 */
.us-chain-cover-band {
    display: none;
}

.us-chain-cover-band.is-visible {
    margin: 0 0 16px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--usc-line-strong);
    box-shadow: 0 22px 50px -30px rgba(2, 10, 24, 0.9);
    background: #0a1425;
}

.us-chain-cover-band img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- Guided tour overlay ---------- */

.us-chain-tour {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translate(-50%, 24px);
    width: min(680px, calc(100% - 32px));
    padding: 16px 18px 14px;
    border-radius: 16px;
    background: rgba(7, 16, 32, 0.9);
    border: 1px solid rgba(120, 170, 255, 0.35);
    box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    color: var(--usc-ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 18;
}

.us-chain-tour.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.us-chain-tour__progress {
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 180, 224, 0.22);
    overflow: hidden;
    margin-bottom: 10px;
}

.us-chain-tour__progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #5eead4, #60a5fa, #fbbf24);
    transition: width 0.35s ease;
}

.us-chain-tour__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.us-chain-tour__counter {
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #7f97bd;
}

.us-chain-tour__close {
    background: transparent;
    border: none;
    color: #9db2d4;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 8px;
}

.us-chain-tour__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.us-chain-tour__title {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin: 6px 0 8px;
    line-height: 1.35;
}

.us-chain-tour__body {
    font-size: 14px;
    line-height: 1.85;
    color: #d5e2f7;
    margin: 0 0 14px;
    max-height: 26vh;
    overflow-y: auto;
}

.us-chain-tour__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.us-chain-tour__actions .us-chain-btn--primary {
    margin-left: auto;
}

@media (max-width: 575.98px) {
    .us-chain-tour {
        bottom: 8px;
        padding: 13px 14px 12px;
    }
    .us-chain-tour__title {
        font-size: 16.5px;
    }
    .us-chain-tour__body {
        font-size: 13px;
        max-height: 30vh;
    }
}

/* ---------- Legend ---------- */

.us-chain-legend {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(7, 16, 32, 0.72);
    border: 1px solid var(--usc-line);
    backdrop-filter: blur(6px);
    pointer-events: auto;
    max-width: 240px;
}

.us-chain-legend__title {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7f97bd;
}

.us-chain-legend__row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #cddcf5;
}

.us-chain-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
    box-shadow: 0 0 10px currentColor;
    background: currentColor;
}

.us-chain-legend__bar {
    width: 16px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    flex: 0 0 auto;
}

/* ---------- Tooltip ---------- */

.us-chain-tooltip {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    padding: 8px 11px;
    border-radius: 10px;
    background: rgba(6, 14, 28, 0.92);
    border: 1px solid var(--usc-line-strong);
    color: var(--usc-ink);
    font-size: 12px;
    line-height: 1.45;
    max-width: 260px;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.12s ease;
}

.us-chain-tooltip.is-visible {
    opacity: 1;
}

.us-chain-tooltip strong {
    color: #fff;
}

/* ---------- Loading ---------- */

.us-chain-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(180deg, rgba(9, 18, 36, 0.92), rgba(5, 11, 22, 0.92));
    z-index: 15;
    color: #cfe0fb;
    font-size: 13px;
    transition: opacity 0.4s ease;
}

.us-chain-loading.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.us-chain-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(96, 165, 250, 0.25);
    border-top-color: #60a5fa;
    animation: us-chain-spin 0.9s linear infinite;
}

@keyframes us-chain-spin {
    to { transform: rotate(360deg); }
}

.us-chain-hint {
    position: absolute;
    right: 12px;
    bottom: 88px;
    font-size: 11px;
    color: #7f97bd;
    pointer-events: none;
    max-width: 220px;
    text-align: right;
}

@media (max-width: 767.98px) {
    .us-chain-stage-wrap--theater .us-chain-stage {
        height: calc(100dvh - 120px);
        min-height: 420px;
    }

    .us-chain-station-pills {
        bottom: 10px;
        gap: 4px;
    }

    .us-chain-station-pill {
        font-size: 11px;
        padding: 4px 8px 4px 4px;
    }

    .us-chain-hint {
        display: none;
    }

    .us-chain-station-label {
        display: none;
    }
}

/* ---------- Sidebar（浮動抽屜，覆蓋喺 3D 舞台之上） ---------- */

.us-chain-side {
    position: absolute;
    top: 16px;
    right: 16px;
    bottom: 16px;
    width: 340px;
    max-width: calc(100% - 32px);
    border-radius: 18px;
    border: 1px solid var(--usc-line-strong);
    background: linear-gradient(180deg, rgba(13, 26, 49, 0.96) 0%, rgba(10, 20, 37, 0.96) 100%);
    backdrop-filter: blur(10px);
    color: var(--usc-ink);
    padding: 16px 16px 18px;
    overflow-y: auto;
    z-index: 16;
    box-shadow: -18px 0 50px -28px rgba(0, 0, 0, 0.85);
    transform: translateX(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.us-chain-side.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.us-chain-side__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #9db2d4;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 8px;
    z-index: 2;
}

.us-chain-side__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 767.98px) {
    .us-chain-side {
        top: auto;
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        max-height: 62vh;
        border-radius: 14px;
    }
}

.us-chain-side__empty {
    color: var(--usc-sub);
    font-size: 13px;
    line-height: 1.7;
}

.us-chain-side__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.us-chain-side__name {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0;
}

.us-chain-side__code {
    font-size: 12px;
    color: var(--usc-sub);
    letter-spacing: 0.04em;
}

.us-chain-layer-badge {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid currentColor;
    white-space: nowrap;
    flex: 0 0 auto;
}

.us-chain-layer-badge--up { color: var(--usc-up); }
.us-chain-layer-badge--mid { color: var(--usc-mid); }
.us-chain-layer-badge--down { color: var(--usc-down); }

.us-chain-side__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.us-chain-kv {
    background: rgba(18, 34, 62, 0.6);
    border: 1px solid var(--usc-line);
    border-radius: 10px;
    padding: 7px 10px;
}

.us-chain-kv span {
    display: block;
    font-size: 10.5px;
    color: var(--usc-sub);
    letter-spacing: 0.04em;
}

.us-chain-kv strong {
    font-size: 13.5px;
    color: #fff;
    font-weight: 600;
}

.us-chain-side__note {
    font-size: 13px;
    line-height: 1.75;
    color: #d5e2f7;
    background: rgba(22, 45, 82, 0.42);
    border-left: 3px solid rgba(96, 165, 250, 0.6);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

.us-chain-side__section {
    margin-top: 14px;
}

.us-chain-side__section h4 {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8ba3c9;
    margin: 0 0 8px;
}

.us-chain-rel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 9px;
    border-radius: 8px;
    background: rgba(14, 28, 52, 0.7);
    border: 1px solid var(--usc-line);
    font-size: 12.5px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.us-chain-rel:hover {
    border-color: rgba(96, 165, 250, 0.7);
    background: rgba(24, 48, 84, 0.8);
}

.us-chain-rel__who {
    color: #eaf2ff;
    font-weight: 600;
}

.us-chain-rel__tag {
    font-size: 11px;
    color: #8ba3c9;
}

.us-chain-side__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 9px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2f6fe4, #1f4fb0);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(120, 170, 255, 0.5);
    box-shadow: 0 10px 24px -12px rgba(47, 111, 228, 0.9);
}

.us-chain-side__cta:hover {
    color: #fff;
    filter: brightness(1.08);
}

.us-chain-disclaimer {
    margin-top: 14px;
    font-size: 11px;
    line-height: 1.6;
    color: #6f86ab;
    border-top: 1px dashed var(--usc-line);
    padding-top: 10px;
}

/* ---------- Fallback table ---------- */

.us-chain-fallback {
    display: none;
    padding: 4px;
}

.us-chain-fallback.is-visible {
    display: block;
}

.us-chain-fallback .table {
    margin-bottom: 0;
    color: #38507a;
    font-size: 13px;
}

.us-chain-fallback .table thead th {
    color: #163c73;
    border-color: #e6ecf5;
    white-space: nowrap;
    font-weight: 600;
    background: #f7f9fd;
}

.us-chain-fallback .table td {
    border-color: #e6ecf5;
    vertical-align: middle;
}

.us-chain-fallback a {
    color: #2463c0;
    text-decoration: none;
}

.us-chain-fallback a:hover {
    text-decoration: underline;
}

.us-chain-fallback h2,
.us-chain-fallback h3 {
    color: #163c73;
}

.us-chain-fallback__layer {
    color: #163c73;
    font-weight: 700;
    padding-left: 10px;
    border-left: 3px solid #d7e3f8;
}

.us-chain-fallback__layer--up { border-left-color: #0f766e; color: #0f766e; }
.us-chain-fallback__layer--mid { border-left-color: #2563eb; color: #2563eb; }
.us-chain-fallback__layer--down { border-left-color: #b45309; color: #b45309; }

/* ---------- Overview panel ---------- */

/* ---------- 產業鏈綜述（白色面板內，用淺色編輯主題） ---------- */

.us-chain-overview {
    font-size: 14.5px;
    line-height: 1.95;
    color: #38507a;
    letter-spacing: 0.01em;
    white-space: pre-wrap;
    text-align: justify;
}

/* 長段文字用首字下沉式引言，提升可讀性 */
.us-chain-overview::first-letter {
    font-size: 1.06em;
    font-weight: 700;
    color: #163c73;
}

.us-chain-layerdefs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--sl886-line2, #d7e3f8);
}

@media (max-width: 767.98px) {
    .us-chain-layerdefs {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
}

.us-chain-layerdef {
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--sl886-bg1, #f7f9fd);
    border: 1px solid var(--sl886-line, #e6ecf5);
    border-left-width: 3px;
    font-size: 13px;
    line-height: 1.75;
    color: #38507a;
}

.us-chain-layerdef strong {
    display: block;
    margin-bottom: 5px;
    font-size: 12.5px;
    letter-spacing: 0.06em;
}

.us-chain-layerdef--up { border-left-color: #0f766e; }
.us-chain-layerdef--mid { border-left-color: #2563eb; }
.us-chain-layerdef--down { border-left-color: #b45309; }

.us-chain-layerdef--up strong { color: #0f766e; }
.us-chain-layerdef--mid strong { color: #2563eb; }
.us-chain-layerdef--down strong { color: #b45309; }

/* ---------- Index: hero + theme dossier cards ---------- */

.us-chain-page--index .us-chain-index-hero {
    position: relative;
    overflow: hidden;
}

.us-chain-page--index .us-chain-index-hero::before {
    content: '';
    position: absolute;
    inset: auto -8% -40% 40%;
    height: 180px;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(37, 99, 235, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 60%, rgba(15, 118, 110, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.us-chain-index-hero__flow {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 14px 0 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--sl886-blue, #2563eb);
}

.us-chain-index-hero__flow i {
    font-size: 1.25rem;
    opacity: 0.55;
}

.us-chain-theme-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .us-chain-theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

.us-chain-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 18px;
    border: 1px solid #dbe7ff;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--sl886-shadow, 0 10px 30px -18px rgba(15, 40, 90, 0.28));
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    animation: usc-card-in 0.55s ease both;
    animation-delay: var(--usc-card-delay, 0ms);
}

@keyframes usc-card-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.us-chain-card:hover {
    transform: translateY(-4px);
    border-color: #b7cffc;
    box-shadow: 0 22px 44px -24px rgba(37, 99, 235, 0.45);
    text-decoration: none;
    color: inherit;
}

.us-chain-card__art {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.us-chain-card__art-label {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Chip art — fab / wafer */
.us-chain-card__art--ai-chip {
    background:
        radial-gradient(80% 70% at 28% 45%, rgba(94, 234, 212, 0.35) 0%, transparent 55%),
        radial-gradient(70% 60% at 78% 55%, rgba(96, 165, 250, 0.3) 0%, transparent 50%),
        linear-gradient(155deg, #071428 0%, #0f2748 45%, #06101f 100%);
}

.usc-art-chip {
    position: absolute;
    inset: 0;
}

.usc-art-chip__wafer {
    position: absolute;
    left: 14%;
    top: 18%;
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        repeating-linear-gradient(0deg, rgba(94, 234, 212, 0.15) 0 1px, transparent 1px 10px),
        repeating-linear-gradient(90deg, rgba(96, 165, 250, 0.12) 0 1px, transparent 1px 10px),
        radial-gradient(circle at 40% 35%, #7dd3fc 0%, #0e7490 42%, #082f49 78%);
    box-shadow:
        0 0 40px rgba(45, 212, 191, 0.35),
        inset 0 0 0 2px rgba(165, 243, 252, 0.35);
    animation: usc-wafer-spin 18s linear infinite;
}

.usc-art-chip__gpu {
    position: absolute;
    right: 10%;
    bottom: 16%;
    width: 34%;
    height: 38%;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0c4a6e 50%, #164e63 100%);
    border: 1px solid rgba(125, 211, 252, 0.45);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.usc-art-chip__gpu::before {
    content: '';
    position: absolute;
    inset: 18% 22%;
    border-radius: 4px;
    background: linear-gradient(180deg, #67e8f9 0%, #0284c7 100%);
    opacity: 0.85;
}

.usc-art-chip__trace {
    position: absolute;
    left: 48%;
    top: 42%;
    width: 22%;
    height: 2px;
    background: linear-gradient(90deg, #5eead4, #60a5fa);
    box-shadow: 0 0 10px #5eead4;
    transform: rotate(-12deg);
}

@keyframes usc-wafer-spin {
    to { transform: rotate(360deg); }
}

/* Drama art — storyboard / reel (warm amber, not chip cyan) */
.us-chain-card__art--ai-short-drama {
    background:
        radial-gradient(70% 60% at 70% 30%, rgba(251, 191, 36, 0.28) 0%, transparent 55%),
        radial-gradient(60% 50% at 20% 70%, rgba(244, 114, 182, 0.18) 0%, transparent 50%),
        linear-gradient(160deg, #1a0f14 0%, #3b1d2a 40%, #120a12 100%);
}

.usc-art-drama {
    position: absolute;
    inset: 0;
}

.usc-art-drama__reel {
    position: absolute;
    left: 8%;
    top: 22%;
    width: 22%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px solid rgba(251, 191, 36, 0.55);
    background:
        radial-gradient(circle at 50% 50%, transparent 28%, rgba(251, 191, 36, 0.2) 29% 38%, transparent 39%),
        #2a1620;
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.25);
}

.usc-art-drama__reel::after {
    content: '';
    position: absolute;
    inset: 32%;
    border-radius: 50%;
    background: #fbbf24;
    opacity: 0.85;
}

.usc-art-drama__frame {
    position: absolute;
    width: 22%;
    height: 42%;
    border-radius: 6px;
    border: 1px solid rgba(255, 228, 180, 0.35);
    background: linear-gradient(180deg, rgba(255, 237, 213, 0.12) 0%, rgba(251, 146, 60, 0.2) 100%);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}

.usc-art-drama__frame--1 { right: 38%; top: 22%; transform: rotate(-6deg); }
.usc-art-drama__frame--2 { right: 18%; top: 28%; transform: rotate(4deg); background: linear-gradient(180deg, rgba(253, 186, 116, 0.2), rgba(244, 114, 182, 0.25)); }
.usc-art-drama__frame--3 { right: 28%; bottom: 14%; width: 26%; height: 28%; transform: rotate(-2deg); }

.usc-art-drama__signal {
    position: absolute;
    left: 28%;
    top: 48%;
    width: 18%;
    height: 2px;
    background: linear-gradient(90deg, #fbbf24, #f472b6);
    box-shadow: 0 0 12px #fbbf24;
    animation: usc-signal-pulse 2.4s ease-in-out infinite;
}

@keyframes usc-signal-pulse {
    0%, 100% { opacity: 0.45; transform: scaleX(0.85); }
    50% { opacity: 1; transform: scaleX(1); }
}

.us-chain-card__art--default {
    background: linear-gradient(160deg, #0e1c35, #0a1425);
}

.usc-art-default {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 40% 40%, rgba(96, 165, 250, 0.25), transparent 50%);
}

.us-chain-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.us-chain-card__eyebrow {
    font-size: 11px;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--sl886-blue, #2563eb);
    margin-bottom: 6px;
}

.us-chain-card--ai-short-drama .us-chain-card__eyebrow {
    color: #b45309;
}

.us-chain-card__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--sl886-ink, #0f172a);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.us-chain-card__desc {
    font-size: 13px;
    line-height: 1.65;
    color: var(--sl886-sub, #64748b);
    margin: 0 0 12px;
    flex: 1;
}

.us-chain-card__layers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.us-chain-card__layers li {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eef4ff;
    border: 1px solid #dbe7ff;
}

.us-chain-card--ai-short-drama .us-chain-card__layers li {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.us-chain-card__meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.us-chain-card__cta {
    font-size: 13px;
    color: var(--sl886-blue, #2563eb);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.us-chain-card--ai-short-drama .us-chain-card__cta {
    color: #c2410c;
}

.us-chain-card:hover .us-chain-card__cta i {
    transform: translateX(3px);
    transition: transform 0.18s ease;
}

.us-chain-index-note {
    border-style: dashed;
}

@media (prefers-reduced-motion: reduce) {
    .us-chain-card,
    .usc-art-chip__wafer,
    .usc-art-drama__signal {
        animation: none !important;
    }
}

/* legacy thumb (theme pages / older markup) */
.us-chain-card__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.us-chain-stage-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9db2d4;
}

/* ---------- Market hub entry card ---------- */

.us-chain-entry-card {
    --usc-entry-ink: #e8eefb;
    --usc-entry-sub: #a9bce0;
    display: block;
    height: 100%;
    border-radius: 16px;
    border: 1px solid rgba(148, 180, 224, 0.34);
    background: linear-gradient(120deg, #101f3c 0%, #0a1425 60%);
    padding: 16px 18px;
    overflow: hidden;
    text-decoration: none !important;
    color: var(--usc-entry-ink);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.us-chain-entry-card:hover,
.us-chain-entry-card:focus {
    transform: translateY(-3px);
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 0 22px 44px -26px rgba(47, 111, 228, 0.85);
    color: var(--usc-entry-ink);
    text-decoration: none !important;
}

.us-chain-entry-card__eyebrow {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5eead4;
    margin-bottom: 8px;
}

.us-chain-entry-card__row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.us-chain-entry-card__text {
    flex: 1 1 auto;
    min-width: 0;
}

.us-chain-entry-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 6px;
}

.us-chain-entry-card__desc {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--usc-entry-sub) !important;
    margin-bottom: 8px;
}

.us-chain-entry-card__cta {
    font-size: 13px;
    color: #8ab6ff;
    font-weight: 600;
}

.us-chain-entry-card__thumb {
    flex: 0 0 132px;
    width: 132px;
    max-width: 40%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(148, 180, 224, 0.25);
}

@media (max-width: 575.98px) {
    .us-chain-entry-card__thumb {
        flex-basis: 96px;
        width: 96px;
        max-width: 36%;
    }
}
