/* ======================================================== */
/*  PHYSICS-NEBULA // UI, HUD & KNOWLEDGE CARD STYLES     */
/* ======================================================== */
        .ui-layer {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 10;
        }

        .header {
            position: absolute;
            top: 28px;
            left: 34px;
            max-width: min(48vw, 620px);
            text-align: left;
            transition: opacity 0.36s ease, filter 0.36s ease, transform 0.36s ease;
        }

        .back-home-button,
        .star-search-container,
        .sector-hud,
        .timeline-control,
        .guide,
        .atlas-stage,
        .knowledge-stage,
        #tooltip {
            display: none !important;
        }

        .back-home-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin: 12px 0 0;
            padding: 8px 12px 8px 10px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background:
                linear-gradient(135deg, rgba(123, 228, 255, 0.12), rgba(255, 179, 110, 0.08) 58%, rgba(255, 255, 255, 0.04)),
                rgba(6, 10, 18, 0.72);
            color: rgba(244, 248, 255, 0.92);
            font-size: 10px;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            cursor: pointer;
            pointer-events: auto;
            backdrop-filter: blur(14px);
            box-shadow:
                0 16px 40px rgba(0, 0, 0, 0.24),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
            transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
            touch-action: manipulation;
        }

        .back-home-button::before {
            content: "\2190";
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: rgba(123, 228, 255, 0.14);
            color: rgba(171, 236, 255, 0.96);
            font-size: 11px;
            line-height: 1;
            box-shadow: 0 0 16px rgba(123, 228, 255, 0.18);
        }

        .back-home-button:hover {
            transform: translateY(-2px);
            border-color: rgba(123, 228, 255, 0.28);
            box-shadow:
                0 18px 46px rgba(0, 0, 0, 0.3),
                0 0 24px rgba(123, 228, 255, 0.08);
        }

        .header h1 {
            margin: 0;
            font-size: clamp(24px, 2.5vw, 34px);
            letter-spacing: clamp(1px, 0.22vw, 4px);
            line-height: 1.04;
            white-space: nowrap;
            font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
            font-weight: 400;
            background: linear-gradient(92deg, #ffffff 0%, #9fe6ff 45%, #ffd68d 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 14px rgba(115, 216, 255, 0.25));
        }

        .header .version {
            margin-top: 7px;
            font-size: 10px;
            letter-spacing: 1.8px;
            line-height: 1.1;
            white-space: nowrap;
            color: var(--text-dim);
            text-transform: uppercase;
            padding-left: 2px;
        }

        .timeline-control {
            position: absolute;
            right: 34px;
            bottom: 28px;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 10px;
            max-width: 248px;
            pointer-events: auto;
            z-index: 18;
            transition: opacity 0.36s ease, filter 0.36s ease, transform 0.36s ease;
        }

        .timeline-button {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 12px 18px;
            min-height: 46px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background:
                linear-gradient(135deg, rgba(255, 214, 136, 0.12), rgba(82, 169, 255, 0.08) 56%, rgba(255, 255, 255, 0.03)),
                rgba(6, 10, 18, 0.72);
            color: rgba(243, 247, 255, 0.92);
            font-size: 11px;
            letter-spacing: 1.8px;
            text-transform: uppercase;
            cursor: pointer;
            backdrop-filter: blur(14px);
            box-shadow:
                0 16px 40px rgba(0, 0, 0, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
            transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
            touch-action: manipulation;
        }

        .timeline-button::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: linear-gradient(180deg, #ffd78a 0%, #6fc8ff 100%);
            box-shadow: 0 0 14px rgba(255, 215, 138, 0.5);
        }

        .timeline-button:hover {
            transform: translateY(-2px);
            border-color: rgba(255, 215, 138, 0.3);
            box-shadow:
                0 18px 46px rgba(0, 0, 0, 0.34),
                0 0 28px rgba(255, 215, 138, 0.08);
        }

        .timeline-button.is-active {
            border-color: rgba(255, 215, 138, 0.34);
            background:
                linear-gradient(135deg, rgba(255, 214, 136, 0.2), rgba(96, 194, 255, 0.12) 56%, rgba(255, 255, 255, 0.04)),
                rgba(7, 12, 22, 0.78);
            box-shadow:
                0 20px 52px rgba(0, 0, 0, 0.36),
                0 0 32px rgba(255, 215, 138, 0.12);
        }

        /* Complete removal of cards, modals, and tooltips per user request: "把这些卡片和文字删掉！不需要了" */
        .knowledge-stage,
        .knowledge-stage.is-visible,
        .knowledge-card,
        .knowledge-card.is-visible,
        .knowledge-portal,
        #tooltip {
            display: none !important;
            pointer-events: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
        }

        .knowledge-portal {
            position: absolute;
            left: 50%;
            top: 50%;
            width: min(82vw, 940px);
            height: min(82vw, 940px);
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
            pointer-events: none;
            filter: blur(0.2px) saturate(1.12);
            z-index: 0;
        }

        .knowledge-stage.is-visible .knowledge-portal {
            opacity: 1;
        }

        .knowledge-portal::before,
        .knowledge-portal::after {
            content: "";
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            pointer-events: none;
        }

        .knowledge-portal::before {
            width: 92%;
            height: 92%;
            background:
                radial-gradient(circle at center, transparent 0 35%, color-mix(in srgb, var(--card-accent) 14%, transparent) 49%, transparent 66%),
                radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 0%, transparent 48%);
            opacity: 0.28;
            filter: blur(16px);
        }

        .knowledge-portal::after {
            width: 48%;
            height: 48%;
            background:
                radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.08) 18%, transparent 70%);
            opacity: 0.24;
            filter: blur(20px);
        }

        .knowledge-portal__halo,
        .knowledge-portal__ring,
        .knowledge-portal__mesh,
        .knowledge-portal__flare {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            pointer-events: none;
        }

        .knowledge-portal__halo {
            width: 100%;
            height: 100%;
            background:
                radial-gradient(circle at center, rgba(255, 255, 255, 0.14) 0%, transparent 44%),
                radial-gradient(circle at center, color-mix(in srgb, var(--card-accent) 18%, transparent) 0%, transparent 52%);
            mask: radial-gradient(circle at center, transparent 0 36%, #000 48%, transparent 74%);
            mix-blend-mode: screen;
            opacity: 0.34;
            filter: blur(22px);
        }

        .knowledge-portal__ring {
            border: 1px solid color-mix(in srgb, var(--card-accent) 34%, rgba(255, 255, 255, 0.16));
            box-shadow:
                0 0 28px color-mix(in srgb, var(--card-accent) 18%, transparent),
                inset 0 0 24px rgba(255, 255, 255, 0.06);
            mix-blend-mode: screen;
        }

        .knowledge-portal__ring.ring-a {
            width: 56%;
            height: 56%;
            opacity: 0.32;
        }

        .knowledge-portal__ring.ring-b {
            width: 82%;
            height: 82%;
            opacity: 0.2;
        }

        .knowledge-portal__mesh {
            width: 72%;
            height: 72%;
            background:
                repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.08) 0deg 4deg, transparent 4deg 16deg),
                radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, transparent 58%);
            mask: radial-gradient(circle at center, transparent 0 38%, #000 46%, #000 60%, transparent 74%);
            opacity: 0.18;
        }

        .knowledge-portal__flare {
            width: 38%;
            height: 38%;
            background:
                radial-gradient(circle at center, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.08) 24%, transparent 72%);
            opacity: 0.22;
            filter: blur(12px);
        }

        .knowledge-card {
            position: absolute;
            top: 50%;
            left: 50%;
            width: min(760px, calc(100vw - 40px));
            height: min(72vh, 640px);
            min-height: 380px;
            padding: var(--card-pad-top, 22px) var(--card-pad-x, 22px) var(--card-pad-bottom, 20px);
            border-radius: 30px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background:
                radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--card-accent) 16%, transparent) 0%, transparent 34%),
                radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.1) 0%, transparent 26%),
                linear-gradient(148deg, rgba(8, 13, 22, 0.94) 0%, rgba(5, 9, 18, 0.9) 48%, rgba(3, 6, 14, 0.92) 100%);
            box-shadow:
                0 46px 140px rgba(0, 0, 0, 0.56),
                0 0 110px color-mix(in srgb, var(--card-accent) 10%, transparent),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(24px);
            pointer-events: auto;
            opacity: 0;
            transform: translate3d(-50%, -50%, 0) scale(1);
            transition: none;
            z-index: 1;
            overflow: hidden;
            visibility: hidden;
            transform-origin: center center;
            display: flex;
            flex-direction: column;
            isolation: isolate;
            --card-title-size: clamp(28px, 4vw, 40px);
            --card-subtitle-size: 14px;
            --card-eyebrow-size: 11px;
            --card-copy-size: 14px;
            --card-section-title-size: 12px;
            --card-tag-size: 11px;
            --card-stat-label-size: 11px;
            --card-stat-value-size: 18px;
            --card-stat-padding-y: 12px;
            --card-stat-padding-x: 12px;
            --card-section-gap: 12px;
            --card-section-padding: 15px;
            --card-path-padding-y: 10px;
            --card-path-padding-x: 12px;
            --card-subtitle-margin: 10px;
        }

        .knowledge-card::before,
        .knowledge-card::after {
            content: "";
            position: absolute;
            pointer-events: none;
        }

        .knowledge-card::before {
            inset: 0;
            background:
                radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--card-accent) 34%, transparent) 0%, transparent 34%),
                radial-gradient(circle at 82% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 28%),
                radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.05) 0%, transparent 44%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24%);
            opacity: 0.86;
        }

        .knowledge-card::after {
            inset: 12px;
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow:
                inset 0 0 0 1px rgba(255, 255, 255, 0.02),
                0 0 0 1px rgba(255, 255, 255, 0.01);
        }

        .knowledge-card.is-visible {
            opacity: 1;
            transform: translate3d(-50%, -50%, 0) scale(1);
            visibility: visible;
        }

        .knowledge-card__close {
            position: absolute;
            top: 18px;
            right: 18px;
            width: 34px;
            height: 34px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.86);
            cursor: pointer;
            transition: background 0.2s ease, transform 0.2s ease;
            z-index: 2;
        }

        .knowledge-card__close:hover {
            background: rgba(255, 255, 255, 0.12);
            transform: rotate(90deg);
        }

        .knowledge-card__header,
        .knowledge-card__body {
            position: relative;
            z-index: 1;
        }

        .knowledge-card__header {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding-right: 54px;
        }

        .knowledge-card__hero {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 16px;
            align-items: start;
        }

        .knowledge-card__hero-main {
            min-width: 0;
        }

        .knowledge-card__body {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
            grid-template-areas:
                "spot lens"
                "bridge lens"
                "footer footer";
            grid-template-rows: auto auto minmax(0, 1fr);
            min-height: 0;
            gap: var(--card-section-gap);
            flex: 1;
            margin-top: 14px;
            align-content: start;
        }

        .knowledge-card__eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            color: rgba(255, 255, 255, 0.68);
            font-size: var(--card-eyebrow-size);
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .knowledge-card__eyebrow::before {
            content: "";
            width: 24px;
            height: 1px;
            background: linear-gradient(90deg, var(--card-accent), transparent);
            box-shadow: 0 0 10px color-mix(in srgb, var(--card-accent) 45%, transparent);
        }

        .knowledge-card__signal {
            position: static;
            display: inline-flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 2px;
            min-width: 116px;
            padding: 10px 12px 11px;
            border-radius: 16px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
            align-self: start;
        }

        .knowledge-card__signal-label {
            font-size: max(8px, calc(var(--card-eyebrow-size) - 1px));
            letter-spacing: 1.2px;
            color: rgba(255, 255, 255, 0.48);
        }

        .knowledge-card__signal-value {
            font-size: max(15px, calc(var(--card-stat-value-size) - 1px));
            font-weight: 600;
            color: #f7fbff;
            text-shadow: 0 0 16px color-mix(in srgb, var(--card-accent) 28%, transparent);
        }

        .knowledge-card__title {
            margin: 0;
            font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
            font-size: var(--card-title-size);
            line-height: 1.08;
            letter-spacing: 1px;
            color: #f8fbff;
            text-shadow: 0 0 24px color-mix(in srgb, var(--card-accent) 25%, transparent);
            text-wrap: balance;
        }

        .knowledge-card__subtitle {
            margin: var(--card-subtitle-margin) 0 0;
            font-size: var(--card-subtitle-size);
            line-height: 1.58;
            color: rgba(233, 241, 255, 0.72);
            max-width: 88%;
        }

        .knowledge-card__stats {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 6px;
            margin: 0;
        }

        .knowledge-stat {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 52px;
            padding: var(--card-stat-padding-y) var(--card-stat-padding-x) calc(var(--card-stat-padding-y) - 2px);
            border-radius: 14px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
            border: 1px solid rgba(255, 255, 255, 0.06);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }

        .knowledge-stat__label {
            display: block;
            margin-bottom: 6px;
            font-size: var(--card-stat-label-size);
            letter-spacing: 1px;
            color: rgba(255, 255, 255, 0.5);
        }

        .knowledge-stat__value {
            font-size: var(--card-stat-value-size);
            font-weight: 600;
            color: #f9fcff;
        }

        .knowledge-card__section {
            margin-top: 0;
            padding: calc(var(--card-section-padding) - 1px);
            border-radius: 18px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
            border: 1px solid rgba(255, 255, 255, 0.06);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
            min-height: 0;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .knowledge-card__section--spotlight {
            grid-area: spot;
            background:
                linear-gradient(180deg, color-mix(in srgb, var(--card-accent) 9%, rgba(255, 255, 255, 0.04)), rgba(255, 255, 255, 0.02)),
                linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
        }

        .knowledge-card__section--bridge {
            grid-area: bridge;
        }

        .knowledge-card__section--lens {
            grid-area: lens;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
                radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--card-accent) 12%, transparent), transparent 38%);
        }

        .knowledge-card__section--footer {
            grid-area: footer;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .knowledge-card__section-title {
            margin: 0 0 6px;
            font-size: var(--card-section-title-size);
            letter-spacing: 2px;
            color: color-mix(in srgb, var(--card-accent) 70%, white);
            text-transform: uppercase;
        }

        .knowledge-card__copy {
            margin: 0;
            font-size: var(--card-copy-size);
            line-height: 1.68;
            color: rgba(236, 243, 255, 0.86);
        }

        .knowledge-card__copy--lens {
            color: rgba(240, 246, 255, 0.9);
        }

        .knowledge-card__route-note {
            margin: 0;
            font-size: max(10px, calc(var(--card-copy-size) - 1px));
            line-height: 1.56;
            color: rgba(212, 227, 248, 0.7);
        }

        .knowledge-card__microcopy {
            margin: 0;
            font-size: max(10px, calc(var(--card-copy-size) - 2px));
            line-height: 1.66;
            color: rgba(206, 220, 242, 0.66);
        }

        .knowledge-card__microcopy--soft {
            color: rgba(220, 231, 248, 0.7);
        }

        .knowledge-card__section-subtitle {
            margin: 2px 0 0;
            font-size: max(9px, calc(var(--card-section-title-size) - 1px));
            letter-spacing: 1.2px;
            color: rgba(255, 255, 255, 0.52);
            text-transform: uppercase;
        }

        .knowledge-card__tags,
        .knowledge-card__paths {
            gap: 6px;
        }

        .knowledge-card__tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .knowledge-card__paths {
            display: grid;
            grid-template-columns: repeat(var(--card-link-columns, 2), minmax(0, 1fr));
            grid-auto-rows: minmax(60px, auto);
            align-items: stretch;
            align-content: start;
            gap: 6px;
        }

        .knowledge-tag {
            padding: 5px 9px;
            border-radius: 999px;
            font-size: var(--card-tag-size);
            color: rgba(247, 251, 255, 0.92);
            background: color-mix(in srgb, var(--card-accent) 16%, rgba(255, 255, 255, 0.03));
            border: 1px solid color-mix(in srgb, var(--card-accent) 28%, rgba(255, 255, 255, 0.08));
        }

        .knowledge-path {
            min-width: 0;
            min-height: 60px;
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            grid-auto-rows: min-content;
            align-content: start;
            justify-items: start;
            gap: 7px;
            padding: calc(var(--card-path-padding-y) - 2px) calc(var(--card-path-padding-x) - 1px);
            border-radius: 12px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .knowledge-path__type {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 3px 7px;
            border-radius: 999px;
            font-size: max(8px, calc(var(--card-tag-size) - 1px));
            line-height: 1;
            letter-spacing: 0.9px;
            color: rgba(255, 255, 255, 0.48);
            background: rgba(255, 255, 255, 0.05);
            text-transform: uppercase;
            white-space: nowrap;
        }

        .knowledge-path__name {
            display: block;
            min-width: 0;
            font-size: max(10px, calc(var(--card-copy-size) - 2px));
            line-height: 1.28;
            color: rgba(245, 249, 255, 0.94);
            word-break: break-word;
            overflow-wrap: anywhere;
        }

        .knowledge-card__signal--module {
            min-width: 152px;
            align-items: flex-start;
            gap: 4px;
        }

        .knowledge-stat__value--compact {
            font-size: max(11px, calc(var(--card-stat-value-size) - 5px));
            line-height: 1.32;
            font-weight: 500;
            letter-spacing: 0.2px;
            white-space: normal;
        }

        .knowledge-card__body--module {
            display: grid;
            grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
            align-items: start;
            gap: var(--card-section-gap);
        }

        .knowledge-card__column {
            min-width: 0;
            display: grid;
            align-content: start;
            gap: var(--card-section-gap);
        }

        .knowledge-card__section--overview {
            background:
                linear-gradient(180deg, color-mix(in srgb, var(--card-accent) 9%, rgba(255, 255, 255, 0.04)), rgba(255, 255, 255, 0.02)),
                linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
        }

        .knowledge-card__section--formulas {
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
                radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--card-accent) 12%, transparent), transparent 40%);
        }

        .knowledge-card__section--laws {
            background:
                linear-gradient(180deg, color-mix(in srgb, var(--card-accent) 8%, rgba(255, 255, 255, 0.04)), rgba(255, 255, 255, 0.018)),
                radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--card-accent) 10%, transparent), transparent 46%);
        }

        .knowledge-card__section--links {
            align-self: start;
            overflow: visible;
        }

        .knowledge-card--compact-links .knowledge-card__paths {
            grid-auto-rows: minmax(52px, auto);
            gap: 4px;
        }

        .knowledge-card--compact-links .knowledge-path {
            min-height: 52px;
            gap: 5px;
            padding: 5px 7px;
            border-radius: 11px;
        }

        .knowledge-card--compact-links .knowledge-path__type {
            padding: 2px 6px;
            font-size: max(7px, calc(var(--card-tag-size) - 2px));
        }

        .knowledge-card--compact-links .knowledge-path__name {
            font-size: max(9px, calc(var(--card-copy-size) - 3px));
            line-height: 1.2;
        }

        .knowledge-card__overview-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .knowledge-overview-item {
            min-width: 0;
            padding: 10px 11px 9px;
            border-radius: 14px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .knowledge-overview-item__label {
            display: block;
            margin-bottom: 5px;
            font-size: max(9px, calc(var(--card-section-title-size) - 1px));
            letter-spacing: 1px;
            color: rgba(255, 255, 255, 0.5);
            text-transform: uppercase;
        }

        .knowledge-overview-item__value {
            display: block;
            font-size: max(11px, calc(var(--card-copy-size) - 1px));
            line-height: 1.35;
            color: rgba(245, 249, 255, 0.92);
            overflow-wrap: anywhere;
        }

        .knowledge-overview-item__value--symbols {
            font-family: "Cambria Math", "STIX Two Text", "Times New Roman", serif;
            font-size: max(12px, calc(var(--card-copy-size) - 0px));
            letter-spacing: 0.15px;
        }

        .knowledge-card__summary {
            margin: 2px 0 0;
            font-size: var(--card-copy-size);
            line-height: 1.65;
            color: rgba(236, 243, 255, 0.84);
        }

        .knowledge-quantities {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
        }

        .knowledge-quantity {
            min-width: 0;
            padding: 11px 10px 10px;
            border-radius: 14px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022));
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .knowledge-quantity__head {
            display: flex;
            align-items: baseline;
            gap: 6px;
            margin-bottom: 7px;
        }

        .knowledge-quantity__symbol {
            font-size: max(15px, calc(var(--card-copy-size) + 2px));
            line-height: 1;
            font-weight: 600;
            color: color-mix(in srgb, var(--card-accent) 72%, white);
        }

        .knowledge-quantity__name {
            font-size: max(10px, calc(var(--card-copy-size) - 2px));
            line-height: 1.2;
            color: rgba(240, 246, 255, 0.86);
            overflow-wrap: anywhere;
        }

        .knowledge-quantity__definition {
            margin: 0;
            font-size: max(10px, calc(var(--card-copy-size) - 2px));
            line-height: 1.45;
            color: rgba(214, 227, 246, 0.74);
            overflow-wrap: anywhere;
        }

        .knowledge-quantity__unit {
            margin-top: 7px;
            font-size: max(9px, calc(var(--card-tag-size) - 1px));
            line-height: 1.2;
            color: rgba(255, 255, 255, 0.5);
            letter-spacing: 0.6px;
            text-transform: uppercase;
        }

        .knowledge-formulas {
            display: grid;
            gap: 8px;
        }

        .knowledge-formula {
            min-width: 0;
            padding: 11px 12px 10px;
            border-radius: 14px;
            background:
                linear-gradient(180deg, color-mix(in srgb, var(--card-accent) 8%, rgba(255, 255, 255, 0.05)), rgba(255, 255, 255, 0.02)),
                linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .knowledge-formula__expr {
            margin: 0 0 6px;
            font-size: max(12px, calc(var(--card-copy-size) + 0px));
            line-height: 1.35;
            font-family: "Cambria Math", "STIX Two Text", "Times New Roman", serif;
            letter-spacing: 0.2px;
            color: rgba(248, 251, 255, 0.98);
            overflow-wrap: anywhere;
        }

        .knowledge-formula__note {
            margin: 0;
            font-size: max(10px, calc(var(--card-copy-size) - 2px));
            line-height: 1.45;
            color: rgba(213, 227, 246, 0.72);
            overflow-wrap: anywhere;
        }

        .knowledge-card__bullet-list {
            margin: 0;
            padding: 0;
            list-style: none;
            display: grid;
            gap: 8px;
        }

        .knowledge-card__bullet-item {
            position: relative;
            padding-left: 14px;
            font-size: var(--card-copy-size);
            line-height: 1.58;
            color: rgba(232, 241, 255, 0.82);
        }

        .knowledge-card__bullet-item::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.68em;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: color-mix(in srgb, var(--card-accent) 72%, white);
            box-shadow: 0 0 10px color-mix(in srgb, var(--card-accent) 36%, transparent);
        }

        .knowledge-card__section-subtitle--link {
            margin-top: 0;
        }

        .guide {
            position: absolute;
            left: 34px;
            right: auto;
            bottom: 28px;
            max-width: 248px;
            padding: 12px 14px;
            border-radius: 18px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(5, 10, 18, 0.46);
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
            backdrop-filter: blur(12px);
            text-align: left;
            font-size: 11px;
            line-height: 1.8;
            letter-spacing: 0.8px;
            color: rgba(228, 237, 252, 0.6);
            transition: opacity 0.36s ease, filter 0.36s ease, transform 0.36s ease;
        }

        body.is-touch-device .guide {
            max-width: 260px;
            padding: 13px 15px;
            background: rgba(5, 10, 18, 0.56);
            color: rgba(236, 243, 255, 0.74);
        }

        .guide.guide--timeline {
            max-width: 304px;
            border-color: rgba(123, 228, 255, 0.16);
            background:
                linear-gradient(180deg, rgba(123, 228, 255, 0.08), rgba(255, 179, 110, 0.035) 72%, rgba(255, 255, 255, 0.02)),
                rgba(5, 10, 18, 0.76);
            box-shadow:
                0 20px 46px rgba(0, 0, 0, 0.28),
                0 0 28px rgba(123, 228, 255, 0.08);
            text-align: left;
            letter-spacing: 0;
            color: rgba(240, 246, 255, 0.9);
        }

        .guide__eyebrow {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
            font-size: 9px;
            font-weight: 700;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: rgba(152, 220, 255, 0.86);
        }

        .guide__eyebrow::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: linear-gradient(180deg, #ffd78a 0%, #7be4ff 100%);
            box-shadow: 0 0 14px rgba(123, 228, 255, 0.42);
            flex: none;
        }

        .guide__title {
            margin: 0;
            font-size: 19px;
            line-height: 1.18;
            font-weight: 600;
            letter-spacing: 0.01em;
            color: rgba(247, 250, 255, 0.98);
            overflow-wrap: anywhere;
        }

        .guide__meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }

        .guide__chip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 5px 9px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.04);
            font-size: 9px;
            line-height: 1;
            color: rgba(228, 237, 252, 0.74);
            letter-spacing: 0.08em;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .guide__chip--accent {
            border-color: rgba(123, 228, 255, 0.2);
            background: rgba(123, 228, 255, 0.1);
            color: rgba(214, 244, 255, 0.94);
        }

        .guide__module {
            margin-top: 10px;
            font-size: 12px;
            line-height: 1.65;
            color: rgba(236, 243, 255, 0.86);
            overflow-wrap: anywhere;
        }

        .guide__metrics {
            display: grid;
            gap: 8px;
            margin-top: 11px;
        }

        .guide__metric {
            padding: 9px 10px;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
        }

        .guide__metric-label {
            display: block;
            margin-bottom: 4px;
            font-size: 9px;
            line-height: 1.2;
            color: rgba(152, 220, 255, 0.76);
            letter-spacing: 0.14em;
            text-transform: uppercase;
        }

        .guide__metric-value {
            display: block;
            font-size: 12px;
            line-height: 1.5;
            color: rgba(248, 250, 255, 0.94);
            overflow-wrap: anywhere;
        }

        .guide__metric-value--formula {
            font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
            font-size: 11px;
            letter-spacing: 0.02em;
            white-space: normal;
        }

        .guide__note {
            margin-top: 10px;
            font-size: 11px;
            line-height: 1.65;
            color: rgba(214, 226, 244, 0.74);
            overflow-wrap: anywhere;
        }

        body.is-touch-device .guide.guide--timeline {
            padding: 14px 15px;
            background:
                linear-gradient(180deg, rgba(123, 228, 255, 0.1), rgba(255, 179, 110, 0.045) 74%, rgba(255, 255, 255, 0.02)),
                rgba(5, 10, 18, 0.82);
        }

        body.is-touch-device .guide.guide--timeline .guide__title {
            font-size: 17px;
        }

        @media (max-width: 1100px) {
            .timeline-control {
                top: auto;
                right: 22px;
                bottom: 28px;
            }

            .guide {
                left: 22px;
                right: auto;
                bottom: 28px;
            }

            .header {
                top: 22px;
                left: 24px;
                max-width: min(52vw, 520px);
            }

            .back-home-button {
                margin-top: 10px;
                padding: 8px 12px 8px 10px;
                font-size: 10px;
            }

            .timeline-control {
                top: auto;
                right: var(--touch-ui-right, 20px);
                bottom: var(--touch-ui-bottom, calc(env(safe-area-inset-bottom, 0px) + 24px));
                gap: 10px;
                align-items: flex-end;
                max-width: 220px;
            }

            .timeline-button,
            .atlas-button {
                min-width: 132px;
                padding: 13px 18px;
                font-size: 11px;
            }

            .timeline-speed {
                width: 100%;
                max-width: 220px;
            }

            .timeline-status {
                max-width: 220px;
                font-size: 11px;
                line-height: 1.7;
            }

            .timeline-status.is-visible {
                padding: 9px 12px 10px;
            }

            .guide {
                left: var(--touch-guide-left, 20px);
                right: auto;
                bottom: var(--touch-guide-bottom, calc(env(safe-area-inset-bottom, 0px) + 24px));
                max-width: 220px;
                text-align: left;
            }

            .knowledge-card {
                width: min(720px, calc(100vw - 42px));
                height: min(76vh, 760px);
            }
        }

        @media (max-width: 720px) {
            .header {
                top: 18px;
                left: 18px;
                max-width: min(76vw, 360px);
            }

            .back-home-button {
                margin-top: 8px;
                padding: 7px 10px 7px 9px;
                font-size: 9px;
                letter-spacing: 0.14em;
            }

            .back-home-button::before {
                width: 14px;
                height: 14px;
                font-size: 10px;
            }

            .timeline-control {
                top: auto;
                right: var(--touch-ui-right, 12px);
                bottom: var(--touch-ui-bottom, calc(env(safe-area-inset-bottom, 0px) + 14px));
                gap: 8px;
                max-width: 180px;
            }

            .timeline-button {
                padding: 10px 14px;
                font-size: 10px;
            }

            .atlas-button {
                padding: 10px 14px;
                font-size: 10px;
            }

            .timeline-speed {
                width: 100%;
                max-width: 180px;
                padding: 9px 10px 10px;
            }

            .timeline-speed__value {
                font-size: 11px;
            }

            .timeline-status {
                max-width: 180px;
                font-size: 10px;
            }

            .timeline-status.is-visible {
                padding: 7px 10px 8px;
            }

            .timeline-button,
            .atlas-button,
            .atlas-stage__close,
            .knowledge-card__close {
                min-height: 44px;
            }

            .knowledge-card {
                top: 52%;
                left: 50%;
                width: calc(100vw - 18px);
                height: min(80vh, 700px);
                min-height: 0;
                padding: 18px 18px 16px;
                border-radius: 22px;
            }

            .knowledge-card__hero {
                grid-template-columns: minmax(0, 1fr) auto;
                gap: 10px;
            }

            .knowledge-card__signal {
                min-width: 94px;
                padding: 8px 9px 9px;
            }

            .knowledge-card__signal--module {
                min-width: 118px;
            }

            .knowledge-card__subtitle {
                max-width: 100%;
            }

            .knowledge-card__stats {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
            }

            .knowledge-card__body {
                grid-template-columns: 1fr;
                grid-template-areas:
                    "spot"
                    "lens"
                    "bridge"
                    "footer";
                margin-top: 12px;
            }

            .knowledge-card__body--module {
                grid-template-columns: 1fr;
            }

            .knowledge-stat {
                padding: 10px 10px 8px;
            }

            .knowledge-card__overview-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .knowledge-quantities {
                grid-template-columns: 1fr;
            }

            .knowledge-card__paths {
                grid-template-columns: 1fr;
            }

            #tooltip {
                max-width: min(260px, calc(100vw - 30px));
            }
        }

        @media (max-width: 520px) {
            .guide {
                display: none !important;
            }
        }

        @keyframes travelFade {
            0% { opacity: 0; }
            14% { opacity: 1; }
            100% { opacity: 0; }
        }

        @keyframes travelBurst {
            0% { opacity: 0; transform: scale(0.28) rotate(0deg); }
            35% { opacity: 0.95; }
            100% { opacity: 0; transform: scale(1.32) rotate(24deg); }
        }

        @keyframes travelStreak {
            0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
            25% { opacity: 0.86; }
            100% { opacity: 0; transform: translate(-50%, -50%) scale(1.26); }
        }

        /* ======================================================== */
        /*  HYPERSPACE WARP SEARCH BAR & OVERVIEW RETURN BUTTON    */
        /* ======================================================== */
        .star-search-container {
            position: absolute;
            top: 24px;
            left: 50%;
            transform: translateX(-50%);
            width: min(480px, calc(100vw - 360px));
            z-index: 75;
            pointer-events: auto;
            font-family: inherit;
        }

        .star-search-box {
            display: flex;
            align-items: center;
            height: 40px;
            border-radius: 20px;
            background: linear-gradient(135deg, rgba(16, 27, 46, 0.82), rgba(8, 14, 25, 0.92));
            border: 1px solid rgba(120, 205, 255, 0.24);
            backdrop-filter: blur(18px);
            box-shadow:
                0 12px 36px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.08),
                0 0 18px rgba(60, 160, 255, 0.1);
            transition: border-color 0.24s ease, box-shadow 0.24s ease;
        }

        .star-search-box:focus-within {
            border-color: rgba(130, 225, 255, 0.65);
            box-shadow:
                0 16px 44px rgba(0, 0, 0, 0.55),
                inset 0 1px 0 rgba(255, 255, 255, 0.15),
                0 0 28px rgba(70, 190, 255, 0.3);
        }

        .star-search-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 100%;
            font-size: 13px;
            color: #8edeff;
            text-shadow: 0 0 10px rgba(130, 220, 255, 0.6);
            flex-shrink: 0;
        }

        .star-search-input {
            flex: 1;
            height: 100%;
            background: transparent;
            border: none;
            outline: none;
            color: #eaf4ff;
            font-size: 12.5px;
            letter-spacing: 0.4px;
            font-family: inherit;
        }

        .star-search-input::placeholder {
            color: rgba(185, 215, 245, 0.42);
            font-size: 11.5px;
        }

        .star-search-clear {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.4);
            font-size: 18px;
            cursor: pointer;
            border-radius: 50%;
            margin-right: 4px;
            transition: color 0.15s, background 0.15s;
        }

        .star-search-clear:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.1);
        }

        .star-search-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            max-height: 340px;
            overflow-y: auto;
            background: rgba(8, 14, 26, 0.94);
            border: 1px solid rgba(120, 205, 255, 0.22);
            border-radius: 14px;
            backdrop-filter: blur(20px);
            box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7), 0 0 20px rgba(50, 140, 255, 0.12);
            padding: 6px 0;
            scrollbar-width: thin;
            scrollbar-color: rgba(120, 200, 255, 0.3) transparent;
        }

        .star-search-dropdown::-webkit-scrollbar {
            width: 5px;
        }
        .star-search-dropdown::-webkit-scrollbar-thumb {
            background: rgba(120, 200, 255, 0.3);
            border-radius: 4px;
        }

        .star-search-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 14px;
            cursor: pointer;
            transition: background 0.12s ease;
            gap: 8px;
        }

        .star-search-item:hover,
        .star-search-item.is-selected {
            background: rgba(70, 160, 255, 0.14);
        }

        .star-search-item__main {
            display: flex;
            align-items: baseline;
            gap: 8px;
            min-width: 0;
        }

        .star-search-item__name {
            font-size: 13px;
            font-weight: 500;
            color: #f0f7ff;
            white-space: nowrap;
        }

        .star-search-item__highlight {
            color: #ffd68d;
            font-weight: 600;
        }

        .star-search-item__sub {
            font-size: 11px;
            color: rgba(190, 215, 245, 0.5);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .star-search-item__badge {
            font-size: 10px;
            padding: 2px 7px;
            border-radius: 999px;
            border: 1px solid currentColor;
            flex-shrink: 0;
            letter-spacing: 0.3px;
        }

        .star-search-empty {
            padding: 14px;
            text-align: center;
            font-size: 12px;
            color: rgba(200, 220, 245, 0.45);
        }

        /* 返回全景视点快捷悬浮按钮 */
        .return-overview-btn[hidden],
        .star-search-dropdown[hidden],
        .star-search-clear[hidden] {
            display: none !important;
        }

        .return-overview-btn {
            position: absolute;
            top: 74px;
            left: 50%;
            transform: translateX(-50%);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 7px 18px;
            border-radius: 999px;
            border: 1px solid rgba(120, 215, 255, 0.4);
            background: linear-gradient(135deg, rgba(22, 48, 86, 0.88), rgba(10, 20, 38, 0.92));
            color: #d6eeff;
            font-size: 11.5px;
            letter-spacing: 0.12em;
            cursor: pointer;
            pointer-events: auto;
            backdrop-filter: blur(14px);
            box-shadow:
                0 12px 32px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(70, 180, 255, 0.22);
            transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
            z-index: 75;
        }

        .return-overview-btn:hover {
            transform: translateX(-50%) translateY(-2px);
            border-color: rgba(150, 235, 255, 0.7);
            box-shadow:
                0 16px 40px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(90, 210, 255, 0.4);
            background: linear-gradient(135deg, rgba(30, 68, 120, 0.92), rgba(14, 28, 52, 0.95));
        }

        .return-overview-icon {
            font-size: 11px;
            color: #7ce4ff;
            text-shadow: 0 0 8px rgba(124, 228, 255, 0.8);
        }

        @media (max-width: 900px) {
            .star-search-container {
                left: 18px;
                transform: none;
                width: calc(100vw - 36px);
                top: 70px;
            }
            .return-overview-btn {
                top: 118px;
                left: 18px;
                transform: none;
            }
            .return-overview-btn:hover {
                transform: translateY(-2px);
            }
        }

        /* ======================================================== */
        /*  OBSERVATORY CELESTIAL HUD SECTOR CALLOUT (星域全息舷窗) */
        /* ======================================================== */
        .sector-hud {
            position: fixed;
            right: 42px;
            top: 50%;
            transform: translateY(-50%) translateX(32px);
            width: min(380px, calc(100vw - 48px));
            z-index: 35;
            pointer-events: none;
            opacity: 0;
            visibility: hidden;
            transition:
                opacity 0.46s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.46s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.46s;
            user-select: none;
            --sector-color: #52e396;
            --sector-glow: rgba(82, 227, 150, 0.18);
            --sector-border: rgba(82, 227, 150, 0.32);
            --sector-ambient: rgba(82, 227, 150, 0.1);
        }

        .sector-hud.is-active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateY(-50%) translateX(0);
        }

        .sector-hud__inner {
            position: relative;
            padding: 30px 28px 26px 28px;
            border-radius: 22px;
            background:
                radial-gradient(ellipse 110% 80% at top left, var(--sector-glow), transparent 65%),
                linear-gradient(155deg, rgba(12, 20, 34, 0.68) 0%, rgba(5, 9, 17, 0.48) 100%);
            backdrop-filter: blur(28px) saturate(180%);
            -webkit-backdrop-filter: blur(28px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.09);
            border-top: 1px solid var(--sector-border);
            box-shadow:
                0 24px 64px rgba(0, 0, 0, 0.52),
                0 0 40px var(--sector-ambient),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
            overflow: hidden;
        }

        .sector-hud__glow {
            position: absolute;
            inset: -20px;
            background: radial-gradient(circle at 75% 25%, var(--sector-glow), transparent 60%);
            pointer-events: none;
            filter: blur(30px);
            opacity: 0.6;
        }

        .sector-hud__close {
            position: absolute;
            right: 18px;
            top: 18px;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: rgba(255, 255, 255, 0.65);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.22s ease;
            z-index: 2;
        }

        .sector-hud__close:hover {
            background: rgba(255, 255, 255, 0.16);
            color: #ffffff;
            border-color: var(--sector-color);
            transform: scale(1.08);
        }

        .sector-hud__code-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
        }

        .sector-hud__dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--sector-color);
            box-shadow: 0 0 8px var(--sector-color);
            animation: sectorDotPulse 2.8s infinite ease-in-out;
        }

        @keyframes sectorDotPulse {
            0%, 100% { opacity: 0.6; transform: scale(0.9); }
            50% { opacity: 1; transform: scale(1.25); }
        }

        .sector-hud__code {
            font-family: "SF Mono", "Fira Code", "Roboto Mono", Consolas, monospace;
            font-size: 11px;
            letter-spacing: 0.22em;
            color: var(--sector-color);
            text-transform: uppercase;
            font-weight: 600;
        }

        .sector-hud__title {
            margin: 0 0 4px 0;
            font-size: 28px;
            font-weight: 500;
            letter-spacing: 0.08em;
            color: #ffffff;
            font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
            text-shadow: 0 0 24px var(--sector-glow);
            line-height: 1.25;
        }

        .sector-hud__sub {
            font-size: 10.5px;
            letter-spacing: 0.2em;
            color: rgba(255, 255, 255, 0.46);
            text-transform: uppercase;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            margin-bottom: 16px;
        }

        .sector-hud__meta-strip {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 18px;
        }

        .sector-hud__tag {
            font-size: 12px;
            padding: 4px 11px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.09);
            color: rgba(255, 255, 255, 0.82);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        .sector-hud__tag--hub {
            color: var(--sector-color);
            border-color: var(--sector-border);
            background: var(--sector-glow);
        }

        .sector-hud__quote {
            margin: 0 0 20px 0;
            font-size: 13.5px;
            line-height: 1.72;
            color: rgba(255, 255, 255, 0.8);
            border-left: 2px solid var(--sector-color);
            padding: 8px 14px;
            background: linear-gradient(90deg, var(--sector-glow), transparent);
            border-radius: 0 10px 10px 0;
            letter-spacing: 0.03em;
            font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
        }

        .sector-hud__section-label {
            font-size: 11px;
            letter-spacing: 0.18em;
            color: rgba(255, 255, 255, 0.42);
            text-transform: uppercase;
            font-weight: 500;
            margin-bottom: 10px;
        }

        .sector-hud__pillars {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
        }

        .sector-hud__pill {
            font-size: 12px;
            padding: 5px 12px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.11);
            color: rgba(255, 255, 255, 0.88);
            cursor: pointer;
            transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .sector-hud__pill::before {
            content: "✦";
            font-size: 8px;
            color: var(--sector-color);
            opacity: 0.75;
        }

        .sector-hud__pill:hover {
            background: var(--sector-glow);
            border-color: var(--sector-color);
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 4px 14px var(--sector-ambient);
        }

        @media (max-width: 900px) {
            .sector-hud {
                right: 18px;
                left: 18px;
                top: auto;
                bottom: 24px;
                width: auto;
                transform: translateY(32px);
            }
            .sector-hud.is-active {
                transform: translateY(0);
            }
            .sector-hud__inner {
                padding: 22px 20px 20px 20px;
            }
            .sector-hud__title {
                font-size: 24px;
            }
        }

        /* ======================================================== */
        /*  DEEP-SPACE SPECTRAL STREAM & FIBER RAIL UI (v7.0)       */
        /* ======================================================== */

        :root {
            --stream-accent: #ffd78a;
            --stream-glow: rgba(255, 215, 138, 0.28);
            --stream-bg-deep: rgba(3, 5, 10, 0.98);
            --spectral-stream-width: clamp(380px, 48vw, 620px);
        }

        /* 1. 返回全景准星按钮 */
        .return-overview-btn {
            position: fixed;
            top: 84px;
            left: 34px;
            z-index: 45;
            display: inline-flex;
            align-items: center;
            gap: 9px;
            padding: 9px 18px;
            border-radius: 999px;
            border: 1px solid rgba(255, 215, 138, 0.32);
            background: linear-gradient(135deg, rgba(255, 215, 138, 0.12), rgba(6, 11, 20, 0.85) 60%);
            color: rgba(255, 245, 230, 0.94);
            font-size: 11px;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            cursor: pointer;
            pointer-events: auto;
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 138, 0.1);
            transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
            touch-action: manipulation;
        }

        .return-overview-btn[hidden] {
            display: none !important;
        }

        .return-overview-btn:hover {
            transform: translateY(-2px);
            border-color: rgba(255, 215, 138, 0.65);
            box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 28px rgba(255, 215, 138, 0.22);
            color: #ffffff;
        }

        .return-overview-btn .return-icon {
            font-size: 14px;
            color: var(--stream-accent);
            line-height: 1;
        }

        .return-overview-btn .return-key {
            font-size: 9px;
            padding: 2px 6px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.6);
            font-family: 'SF Mono', Consolas, Monaco, monospace;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        /* 2. 右侧深空无界光谱画卷 (Spectral Stream) - 全维度可视化重构 */
        .spectral-stream {
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            width: var(--spectral-stream-width, clamp(380px, 48vw, 620px));
            min-width: 380px;
            z-index: 50;
            background: linear-gradient(90deg,
                rgba(3, 5, 10, 0) 0%,
                rgba(4, 7, 14, 0.76) 8%,
                rgba(4, 7, 14, 0.94) 28%,
                rgba(2, 4, 9, 0.98) 100%
            );
            backdrop-filter: blur(28px);
            -webkit-backdrop-filter: blur(28px);
            color: #dbe7f5;
            padding: 32px 34px 140px 42px;
            overflow-y: auto;
            overflow-x: hidden;
            overscroll-behavior: contain;
            overscroll-behavior-y: contain;
            pointer-events: none;
            visibility: hidden;
            transform: translateX(105%);
            opacity: 0;
            transition: transform 0.44s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.36s ease, visibility 0.44s;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            gap: 26px;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 215, 138, 0.28) transparent;
        }

        .spectral-stream.is-active {
            visibility: visible;
            pointer-events: auto;
            transform: translateX(0);
            opacity: 1;
        }

        .spectral-stream::-webkit-scrollbar {
            width: 5px;
        }

        .spectral-stream::-webkit-scrollbar-track {
            background: transparent;
        }

        .spectral-stream::-webkit-scrollbar-thumb {
            background: rgba(255, 215, 138, 0.25);
            border-radius: 999px;
        }

        .spectral-stream::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 215, 138, 0.45);
        }

        /* 顶栏控制 */
        .stream-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            padding-bottom: 14px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .stream-meta {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .stream-sector-code {
            font-size: 11px;
            letter-spacing: 2.2px;
            text-transform: uppercase;
            font-family: 'SF Mono', Consolas, Monaco, monospace;
            color: var(--stream-accent);
            text-shadow: 0 0 10px var(--stream-glow);
        }

        .stream-coords {
            font-size: 10px;
            letter-spacing: 1px;
            color: rgba(255, 255, 255, 0.45);
            font-family: 'SF Mono', Consolas, Monaco, monospace;
        }

        .stream-close-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.14);
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.8);
            font-size: 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.22s ease;
            flex-shrink: 0;
        }

        .stream-close-btn:hover {
            background: rgba(255, 215, 138, 0.18);
            border-color: var(--stream-accent);
            color: #ffffff;
            transform: rotate(90deg);
        }

        /* 1. 星核全息天象徽章 (Celestial Core HUD) */
        .stream-hero {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .stream-celestial-badge {
            display: flex;
            align-items: center;
            gap: 18px;
            padding: 14px 18px;
            border-radius: 12px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
            position: relative;
            overflow: hidden;
        }

        .stream-celestial-badge::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--stream-accent);
            box-shadow: 0 0 12px var(--stream-glow);
        }

        .stream-celestial-gyro {
            width: 58px;
            height: 58px;
            flex-shrink: 0;
            transform-origin: center;
        }

        .gyro-ring-outer {
            fill: none;
            stroke: var(--stream-accent);
            stroke-width: 1.5;
            stroke-dasharray: 6 3 2 3;
            opacity: 0.85;
            transform-origin: 50px 50px;
            animation: celestial-gyro-spin 18s linear infinite;
        }

        .gyro-ring-mid {
            fill: none;
            stroke: rgba(255, 255, 255, 0.4);
            stroke-width: 1;
            stroke-dasharray: 4 4;
            transform-origin: 50px 50px;
            animation: celestial-gyro-rev 12s linear infinite;
        }

        .gyro-ring-inner {
            fill: none;
            stroke: var(--stream-accent);
            stroke-width: 1.2;
            opacity: 0.6;
        }

        .gyro-axis {
            stroke: rgba(255, 255, 255, 0.2);
            stroke-width: 0.8;
            stroke-dasharray: 2 3;
        }

        .gyro-core {
            fill: var(--stream-accent);
            filter: drop-shadow(0 0 6px var(--stream-accent));
            animation: celestial-core-pulse 2.6s ease-in-out infinite alternate;
        }

        @keyframes celestial-gyro-spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        @keyframes celestial-gyro-rev {
            from { transform: rotate(360deg); }
            to { transform: rotate(0deg); }
        }

        @keyframes celestial-core-pulse {
            from { transform: scale(0.85); opacity: 0.75; }
            to { transform: scale(1.15); opacity: 1; }
        }

        .stream-title-meta {
            display: flex;
            flex-direction: column;
            gap: 6px;
            flex: 1;
            min-width: 0;
        }

        .stream-title-wrap {
            display: flex;
            align-items: baseline;
            gap: 12px;
            flex-wrap: wrap;
            min-width: 0;
            width: 100%;
        }

        .stream-title {
            margin: 0;
            font-size: clamp(20px, 2.2vw, 32px);
            font-weight: 600;
            letter-spacing: 0.5px;
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
            background: linear-gradient(135deg, #ffffff 40%, var(--stream-accent) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 28px var(--stream-glow);
        }

        .stream-importance-badge {
            font-size: 10px;
            letter-spacing: 1.2px;
            padding: 3px 8px;
            border-radius: 4px;
            background: rgba(255, 215, 138, 0.12);
            border: 1px solid rgba(255, 215, 138, 0.28);
            color: var(--stream-accent);
            text-transform: uppercase;
            font-family: 'SF Mono', Consolas, Monaco, monospace;
            flex-shrink: 0;
        }

        /* 标题下第2行：核心公式与物理表达式专属能级行 */
        .stream-title-formula {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-family: 'Cambria Math', 'KaTeX_Math', 'Times New Roman', serif;
            font-size: 18px;
            font-weight: 500;
            color: var(--stream-accent);
            letter-spacing: 0.5px;
            text-shadow: 0 0 16px var(--stream-glow);
            margin: 1px 0 3px 0;
            padding: 3px 10px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.1);
            width: fit-content;
            max-width: 100%;
            overflow-x: auto;
            white-space: nowrap;
        }

        .stream-title-formula i {
            font-style: italic;
            font-family: 'Cambria Math', 'KaTeX_Math', 'Times New Roman', serif;
        }

        .stream-title-formula sub {
            font-size: 0.72em;
            vertical-align: -0.28em;
            line-height: 0;
            opacity: 0.9;
        }

        .stream-title-formula sup {
            font-size: 0.72em;
            vertical-align: 0.38em;
            line-height: 0;
            opacity: 0.95;
            color: #ffffff;
            font-weight: 600;
        }

        .stream-formula-label {
            font-size: 9px;
            letter-spacing: 1.5px;
            font-family: 'SF Mono', Consolas, Monaco, monospace;
            color: rgba(255, 255, 255, 0.5);
            text-transform: uppercase;
            flex-shrink: 0;
        }

        .stream-formula-math {
            letter-spacing: 0.6px;
        }

        .stream-formula-math .formula-sep {
            color: rgba(255, 255, 255, 0.3);
            margin: 0 4px;
            font-size: 10px;
        }

        .stream-energy-metrics {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .stream-metric-tag {
            font-size: 10.5px;
            font-family: 'SF Mono', Consolas, Monaco, monospace;
            color: rgba(215, 230, 255, 0.72);
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 999px;
            padding: 2px 8px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .metric-dot {
            display: inline-block;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--stream-accent);
            box-shadow: 0 0 6px var(--stream-accent);
        }

        /* 随堂抽卡考查联动触发栏 */
        .stream-card-deck-trigger {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 10px 0 2px 0;
            padding: 9px 14px;
            border-radius: 12px;
            background: linear-gradient(90deg, rgba(56, 189, 248, 0.16) 0%, rgba(168, 85, 247, 0.14) 100%);
            border: 1px solid rgba(56, 189, 248, 0.4);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            user-select: none;
        }

        .stream-card-deck-trigger:hover {
            background: linear-gradient(90deg, rgba(56, 189, 248, 0.28) 0%, rgba(168, 85, 247, 0.24) 100%);
            border-color: rgba(56, 189, 248, 0.8);
            box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
            transform: translateY(-1px);
        }

        .stream-card-deck-trigger:active {
            transform: translateY(0) scale(0.98);
        }

        .card-deck-trigger-left {
            display: flex;
            align-items: center;
            gap: 9px;
            min-width: 0;
        }

        .card-deck-trigger-icon {
            font-size: 16px;
            filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
        }

        .card-deck-trigger-info {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .card-deck-trigger-tag {
            font-size: 9.5px;
            font-weight: 700;
            color: #38bdf8;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        .card-deck-trigger-title {
            font-size: 12px;
            font-weight: 600;
            color: #ffffff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .card-deck-trigger-btn-text {
            font-size: 11.5px;
            font-weight: 700;
            color: #e0f2fe;
            background: rgba(56, 189, 248, 0.2);
            border: 1px solid rgba(56, 189, 248, 0.5);
            border-radius: 999px;
            padding: 3px 10px;
            white-space: nowrap;
            flex-shrink: 0;
            margin-left: 8px;
            transition: all 0.2s ease;
        }

        .stream-card-deck-trigger:hover .card-deck-trigger-btn-text {
            background: rgba(56, 189, 248, 0.4);
            border-color: #38bdf8;
            box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
        }

        .stream-tagline {
            margin: 0;
            font-size: 13.5px;
            line-height: 1.6;
            color: rgba(215, 230, 250, 0.92);
            letter-spacing: 0.3px;
        }

        .stream-desc {
            margin: 0;
            font-size: 12.5px;
            line-height: 1.65;
            color: rgba(185, 205, 230, 0.72);
            padding: 12px 16px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.02);
            border-left: 2px solid var(--stream-accent);
            border-top: 1px solid rgba(255, 255, 255, 0.04);
            border-right: 1px solid rgba(255, 255, 255, 0.04);
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        }

        /* 共通模块分区 */
        .stream-section {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .stream-section-title {
            margin: 0;
            font-size: 11px;
            letter-spacing: 2px;
            text-transform: uppercase;
            font-family: 'SF Mono', Consolas, Monaco, monospace;
            color: var(--stream-accent);
            display: flex;
            align-items: center;
            gap: 8px;
            opacity: 0.95;
        }

        .stream-section-title::after {
            content: "";
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, rgba(255, 215, 138, 0.25), transparent);
        }

        /* 2. 核心可视化：知识引力点阵图谱与紧凑罗盘 (Knowledge Lattice Matrix & Tray) */
        .stream-section-title-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        }

        .stream-lattice-stats {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .lattice-stat-pill {
            font-size: 9.5px;
            font-family: 'SF Mono', Consolas, Monaco, monospace;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 2px 7px;
            border-radius: 999px;
            color: rgba(215, 230, 255, 0.75);
            display: inline-flex;
            align-items: center;
            gap: 4.5px;
            user-select: none;
        }

        .stat-dot {
            display: inline-block;
            width: 5px;
            height: 5px;
            border-radius: 50%;
        }

        .stat-dot.in {
            background: #38bdf8;
            box-shadow: 0 0 5px #38bdf8;
        }

        .stat-dot.out {
            background: #34d399;
            box-shadow: 0 0 5px #34d399;
        }

        .stat-dot.chain {
            background: #f59e0b;
            box-shadow: 0 0 5px #f59e0b;
        }

        /* ======================================================== */
        /*  Obsidian 风格知识引力网状星图 (Force-Directed Graph)      */
        /* ======================================================== */
        .stream-force-graph-card,
        .stream-topology-card {
            display: flex;
            flex-direction: column;
            gap: 8px;
            background: rgba(4, 8, 18, 0.76);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 10px;
            position: relative;
            overflow: hidden;
            box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
        }

        .stream-force-graph-wrap,
        .stream-topology-wrap {
            position: relative;
            width: 100%;
            height: 320px;
            border-radius: 8px;
            overflow: hidden;
            background: radial-gradient(circle at center, rgba(14, 25, 52, 0.55) 0%, rgba(2, 5, 12, 0.95) 100%);
            border: 1px solid rgba(255, 255, 255, 0.07);
            cursor: default;
            user-select: none;
            touch-action: none;
        }

        .stream-topology-canvas {
            display: block;
            width: 100%;
            height: 100%;
        }

        .stream-topology-hud {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 32px;
            padding: 0 10px;
            background: linear-gradient(180deg, rgba(3, 7, 16, 0.88) 0%, rgba(3, 7, 16, 0.45) 75%, rgba(3, 7, 16, 0) 100%);
            display: flex;
            justify-content: space-between;
            align-items: center;
            pointer-events: none;
            z-index: 5;
        }

        .topology-hud-left {
            display: flex;
            align-items: center;
            gap: 12px;
            overflow: hidden;
            white-space: nowrap;
        }

        .topology-hud-tag {
            font-family: 'SF Mono', Consolas, Monaco, monospace;
            font-size: 9.5px;
            letter-spacing: 0.8px;
            color: var(--stream-accent);
            text-shadow: 0 0 8px var(--stream-glow);
            font-weight: 600;
            flex-shrink: 0;
        }

        .topology-hud-tip {
            font-size: 9px;
            color: rgba(210, 230, 255, 0.55);
            letter-spacing: 0.3px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .topology-hud-actions {
            display: flex;
            align-items: center;
            gap: 4px;
            pointer-events: auto;
        }

        .graph-tool-btn {
            background: rgba(10, 20, 40, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: rgba(220, 235, 255, 0.8);
            border-radius: 4px;
            font-size: 10px;
            font-family: 'SF Mono', Consolas, Monaco, monospace;
            padding: 2px 7px;
            cursor: pointer;
            transition: all 0.15s ease;
            outline: none;
            user-select: none;
        }

        .graph-tool-btn:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: var(--stream-accent);
            color: #ffffff;
            box-shadow: 0 0 8px var(--stream-glow);
            transform: translateY(-1px);
        }

        .graph-tool-btn:active {
            transform: translateY(0);
        }

        /* 悬浮全息提示卡 */
        .stream-topology-tooltip {
            position: absolute;
            bottom: 8px;
            left: 8px;
            right: 8px;
            background: rgba(4, 9, 22, 0.94);
            border: 1px solid var(--stream-accent);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 16px var(--stream-glow);
            border-radius: 6px;
            padding: 7px 10px;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            z-index: 10;
            display: flex;
            flex-direction: column;
            gap: 2px;
            pointer-events: auto;
            animation: tooltip-fade-in 0.15s ease-out;
        }

        @keyframes tooltip-fade-in {
            from { opacity: 0; transform: translateY(4px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* 底部极简图例与状态指引条 */
        .graph-footer-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 2px 4px 0 4px;
            font-size: 10.5px;
            color: rgba(210, 230, 255, 0.7);
        }

        .graph-legend {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .legend-item {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 10px;
            color: rgba(220, 235, 255, 0.75);
        }

        .legend-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            display: inline-block;
        }

        .legend-dot.core {
            background: #ffffff;
            box-shadow: 0 0 6px var(--stream-accent);
            border: 1.5px solid var(--stream-accent);
        }

        .legend-dot.in {
            background: #38bdf8;
            box-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
        }

        .legend-dot.out {
            background: #34d399;
            box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
        }

        .legend-dot.sib {
            background: var(--stream-accent);
            box-shadow: 0 0 6px var(--stream-glow);
        }

        .graph-status-hint {
            font-size: 9.5px;
            font-family: 'SF Mono', Consolas, monospace;
            color: rgba(215, 235, 255, 0.45);
            letter-spacing: 0.3px;
        }

        .stream-formula-vars {
            display: flex;
            flex-direction: column;
            gap: 3px;
            margin-top: 4px;
            padding-top: 5px;
            border-top: 1px dashed rgba(255, 255, 255, 0.07);
        }

        .formula-var-item {
            font-size: 11px;
            line-height: 1.45;
            color: rgba(200, 220, 245, 0.78);
        }

        .formula-var-sym {
            font-weight: 600;
            color: var(--stream-accent);
            font-family: 'Cambria Math', 'Times New Roman', serif;
        }

        /* 3. 核心公式群 (精简重点文字卡片) */
        .stream-formulas {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .stream-formula-card {
            border-radius: 8px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%);
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-left: 3px solid var(--stream-accent);
            padding: 12px 16px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            transition: transform 0.2s ease, border-color 0.2s ease;
        }

        .stream-formula-card:hover {
            border-color: rgba(255, 255, 255, 0.16);
            transform: translateX(3px);
        }

        .stream-formula-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        }

        .formula-expr {
            font-size: 19px;
            font-weight: 700;
            font-family: 'Cambria Math', 'Times New Roman', serif;
            color: #ffffff;
            letter-spacing: 0.8px;
            text-shadow: 0 0 12px var(--stream-glow);
        }

        .formula-badge {
            font-size: 9.5px;
            font-family: 'SF Mono', Consolas, Monaco, monospace;
            padding: 2px 6px;
            border-radius: 3px;
            background: rgba(255, 215, 138, 0.12);
            color: var(--stream-accent);
            border: 1px solid rgba(255, 215, 138, 0.24);
        }

        .stream-formula-note {
            margin: 0;
            font-size: 12px;
            color: rgba(210, 228, 250, 0.85);
            line-height: 1.55;
        }

        /* 4. 核心物理量基石 (精简重点卡片) */
        .stream-quantities-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 9px;
        }

        .stream-quantity-card {
            padding: 11px 13px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.07);
            display: flex;
            flex-direction: column;
            gap: 5px;
            transition: border-color 0.2s, background 0.2s;
        }

        .stream-quantity-card:hover {
            border-color: var(--stream-accent);
            background: rgba(255, 215, 138, 0.05);
        }

        .stream-quantity-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 8px;
        }

        .stream-quantity-symbol {
            font-size: 17px;
            font-weight: 700;
            color: var(--stream-accent);
            font-family: 'Cambria Math', 'Times New Roman', serif;
        }

        .stream-quantity-name {
            font-size: 12px;
            color: #ffffff;
            font-weight: 600;
        }

        .quantity-type-tag {
            font-size: 9px;
            font-family: 'SF Mono', Consolas, Monaco, monospace;
            padding: 1px 5px;
            border-radius: 3px;
            background: rgba(255, 255, 255, 0.06);
            color: rgba(255, 255, 255, 0.6);
        }

        .stream-quantity-def {
            margin: 0;
            font-size: 11px;
            color: rgba(185, 205, 230, 0.7);
            line-height: 1.45;
        }

        .stream-quantity-unit {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.45);
            font-family: 'SF Mono', Consolas, Monaco, monospace;
            margin-top: 2px;
        }

        /* 5. 核心定律与物理图景 (结构化重点文字) */
        .stream-laws {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .stream-law-card {
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.025);
            border-left: 3px solid var(--stream-accent);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            border-right: 1px solid rgba(255, 255, 255, 0.05);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding: 11px 15px;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .stream-law-title {
            margin: 0;
            font-size: 13px;
            font-weight: 600;
            color: #ffffff;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .law-dot {
            font-size: 9px;
            color: var(--stream-accent);
        }

        .stream-law-statement {
            margin: 0;
            font-size: 12px;
            line-height: 1.6;
            color: rgba(215, 230, 250, 0.85);
        }

        /* 6. 深度解析与避坑要点 (重点文字清单) */
        .stream-insights-list {
            display: flex;
            flex-direction: column;
            gap: 7px;
        }

        .stream-insight-item {
            display: flex;
            align-items: flex-start;
            gap: 9px;
            padding: 9px 12px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 12px;
            line-height: 1.6;
            color: rgba(200, 220, 245, 0.8);
        }

        .insight-bullet {
            font-size: 9px;
            color: var(--stream-accent);
            margin-top: 4px;
            flex-shrink: 0;
        }

        .insight-content {
            flex: 1;
        }

        .insight-header {
            display: flex;
            align-items: center;
            gap: 6px;
            font-family: 'SF Mono', Consolas, Monaco, monospace;
            font-size: 10px;
            letter-spacing: 1px;
            color: var(--stream-accent);
        }

        .insight-text {
            margin: 0;
            font-size: 12px;
            line-height: 1.6;
            color: rgba(195, 215, 240, 0.76);
        }

        /* 7. 引力共振关联星辰 (Resonance Orbital Web) */
        .stream-resonance-wrap {
            display: flex;
            flex-direction: column;
            gap: 12px;
            background: rgba(4, 8, 18, 0.65);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 14px;
        }

        .resonance-svg-box {
            width: 100%;
            height: 180px;
            border-radius: 8px;
            background: radial-gradient(circle at center, rgba(20, 32, 64, 0.3) 0%, rgba(2, 4, 10, 0.9) 100%);
            border: 1px solid rgba(255, 255, 255, 0.05);
            position: relative;
            overflow: hidden;
        }

        .resonance-svg {
            width: 100%;
            height: 100%;
            display: block;
        }

        .stream-links-wrap {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .stream-link-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(240, 248, 255, 0.88);
            font-size: 11px;
            cursor: pointer;
            transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .stream-link-chip:hover {
            background: rgba(255, 215, 138, 0.18);
            border-color: var(--stream-accent);
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
        }

        .stream-link-chip .chip-type {
            font-size: 9px;
            padding: 2px 5px;
            border-radius: 3px;
            background: rgba(255, 255, 255, 0.08);
            color: rgba(255, 255, 255, 0.55);
        }

        .stream-link-chip .chip-arrow {
            font-size: 11px;
            color: var(--stream-accent);
        }
        /* 3. 底部演化光纤导轨 (Fiber Rail) */
        .fiber-rail {
            position: fixed;
            left: 34px;
            bottom: 24px;
            right: calc(var(--spectral-stream-width, clamp(380px, 48vw, 620px)) + 24px);
            z-index: 40;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 18px;
            border-radius: 12px;
            background: rgba(4, 7, 14, 0.82);
            border: 1px solid rgba(255, 255, 255, 0.09);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 215, 138, 0.05);
            pointer-events: none;
            visibility: hidden;
            opacity: 0;
            transform: translateY(24px);
            transition: opacity 0.36s ease, transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), right 0.42s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.36s;
        }

        .fiber-rail.is-active {
            visibility: visible;
            pointer-events: auto;
            opacity: 1;
            transform: translateY(0);
        }

        .fiber-nav-btn {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.04);
            color: rgba(255, 255, 255, 0.8);
            font-size: 16px;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .fiber-nav-btn:hover {
            border-color: var(--stream-accent);
            color: #ffffff;
            background: rgba(255, 215, 138, 0.2);
            transform: scale(1.1);
        }

        .fiber-track-wrap {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 6px;
            min-width: 0;
        }

        .fiber-info {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 11px;
            letter-spacing: 0.5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .fiber-sector-badge {
            color: var(--stream-accent);
            font-weight: 600;
        }

        .fiber-node-counter {
            color: rgba(255, 255, 255, 0.45);
            font-family: 'SF Mono', Consolas, Monaco, monospace;
            font-size: 10px;
        }

        .fiber-current-title {
            color: #ffffff;
            font-weight: 500;
        }

        .fiber-track {
            position: relative;
            height: 14px;
            display: flex;
            align-items: center;
        }

        .fiber-track-line {
            position: absolute;
            left: 0;
            right: 0;
            top: 50%;
            height: 2px;
            transform: translateY(-50%);
            background: linear-gradient(90deg,
                rgba(255, 215, 138, 0.15) 0%,
                rgba(255, 215, 138, 0.5) 50%,
                rgba(255, 215, 138, 0.15) 100%
            );
            border-radius: 999px;
        }

        .fiber-track-nodes {
            position: relative;
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 2;
        }

        .fiber-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.28);
            cursor: pointer;
            transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
        }

        .fiber-dot:hover {
            transform: scale(1.6);
            background: #ffffff;
            box-shadow: 0 0 10px #ffffff;
        }

        .fiber-dot.is-active {
            width: 11px;
            height: 11px;
            background: var(--stream-accent);
            box-shadow: 0 0 14px var(--stream-accent);
            transform: scale(1.2);
        }

        .fiber-dot.is-active::after {
            content: "";
            position: absolute;
            inset: -4px;
            border-radius: 50%;
            border: 1px solid var(--stream-accent);
            opacity: 0.6;
            animation: pulse-ring 1.8s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
        }

        @keyframes pulse-ring {
            0% { transform: scale(0.9); opacity: 0.8; }
            100% { transform: scale(1.8); opacity: 0; }
        }

        /* 4. 极简光标浮动提示 */
        .cosmic-tooltip {
            position: fixed;
            z-index: 35;
            pointer-events: none;
            opacity: 0;
            visibility: hidden;
            background: rgba(3, 6, 12, 0.88);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-left: 3px solid var(--stream-accent, #ffd78a);
            border-radius: 6px;
            padding: 8px 12px;
            color: #ffffff;
            font-size: 12px;
            line-height: 1.4;
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
            transition: opacity 0.18s ease, visibility 0.18s ease;
            transform: translate(14px, 14px);
            white-space: nowrap;
        }

        .cosmic-tooltip.is-visible {
            opacity: 1;
            visibility: visible;
        }

        .cosmic-tooltip .tip-title {
            font-weight: 600;
            color: #ffffff;
        }

        .cosmic-tooltip .tip-meta {
            font-size: 11px;
            color: var(--stream-accent);
            margin-top: 2px;
            font-family: 'SF Mono', Consolas, Monaco, monospace;
        }

        /* 当打开深空知识画卷或存在选中星辰时，严格阻断 3D 浮动提示遮挡画卷 */
        body.has-active-stream #cosmic-tooltip,
        body.has-active-stream .cosmic-tooltip,
        .spectral-stream.is-active ~ #cosmic-tooltip,
        .spectral-stream.is-active ~ .cosmic-tooltip,
        .spectral-stream.is-active + #cosmic-tooltip,
        .spectral-stream.is-active + .cosmic-tooltip {
            display: none !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }

        /* 知识引力拓扑与演化脉络图内嵌悬浮提示 */
        .stream-topology-tooltip {
            position: absolute;
            bottom: 8px;
            left: 10px;
            right: 10px;
            padding: 6px 12px;
            background: rgba(4, 9, 20, 0.92);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 6px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 11px;
            color: #ffffff;
            z-index: 10;
            pointer-events: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        /* 移动端响应式处理 */
        @media (max-width: 900px) {
            .spectral-stream {
                width: 100vw;
                min-width: 0;
                top: 35vh;
                bottom: 0;
                right: 0;
                left: 0;
                padding: 24px 20px 100px 20px;
                transform: translateY(105%);
                background: linear-gradient(180deg, rgba(3, 5, 10, 0.6) 0%, rgba(3, 5, 10, 0.98) 20%);
            }

            .spectral-stream.is-active {
                transform: translateY(0);
            }

            .fiber-rail {
                left: 16px;
                right: 16px;
                bottom: 16px;
            }

            .return-overview-btn {
                top: 72px;
                left: 18px;
            }
        }

        /* ======================================================== */
        /*  DEPTH-OF-FIELD BACKGROUND SWITCHER UI                   */
        /* ======================================================== */
        .depth-bg-switcher {
            position: absolute;
            top: 26px;
            right: 32px;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            pointer-events: auto;
            z-index: 25;
            user-select: none;
        }

        .depth-bg-button-group {
            display: inline-flex;
            align-items: center;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background:
                linear-gradient(135deg, rgba(123, 228, 255, 0.15), rgba(255, 179, 110, 0.08) 58%, rgba(255, 255, 255, 0.04)),
                rgba(6, 11, 20, 0.82);
            box-shadow:
                0 12px 32px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
        }

        .depth-bg-button-group:hover,
        .depth-bg-switcher.menu-active .depth-bg-button-group {
            border-color: rgba(123, 228, 255, 0.4);
            box-shadow:
                0 16px 40px rgba(0, 0, 0, 0.55),
                0 0 24px rgba(115, 216, 255, 0.18);
        }

        .depth-bg-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px 8px 14px;
            border: none;
            background: transparent;
            color: rgba(244, 248, 255, 0.95);
            font-size: 11px;
            letter-spacing: 0.12em;
            cursor: pointer;
            outline: none;
            font-family: inherit;
            transition: color 0.2s ease;
        }

        .depth-bg-btn:hover {
            color: #73d8ff;
        }

        .depth-bg-icon {
            font-size: 13px;
            filter: drop-shadow(0 0 6px rgba(115, 216, 255, 0.4));
        }

        .depth-bg-title {
            color: rgba(224, 233, 255, 0.6);
            font-size: 10px;
            text-transform: uppercase;
        }

        .depth-bg-current-name {
            font-weight: 600;
            color: #ffffff;
            background: linear-gradient(90deg, #ffffff, #9fe6ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .depth-bg-arrow-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 8px 12px 8px 6px;
            border: none;
            background: transparent;
            border-left: 1px solid rgba(255, 255, 255, 0.08);
            color: rgba(224, 233, 255, 0.7);
            font-size: 10px;
            cursor: pointer;
            outline: none;
            transition: color 0.2s ease;
        }

        .depth-bg-arrow-btn:hover {
            color: #73d8ff;
        }

        .depth-bg-arrow-btn span {
            display: inline-block;
            transition: transform 0.25s ease;
        }

        .depth-bg-switcher.menu-active .depth-bg-arrow-btn span {
            transform: rotate(180deg);
        }

        .depth-bg-menu {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            width: 270px;
            padding: 8px;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(6, 11, 20, 0.92);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            box-shadow:
                0 20px 50px rgba(0, 0, 0, 0.65),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
            opacity: 0;
            transform: translateY(-8px) scale(0.96);
            pointer-events: none;
            transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .depth-bg-menu.open {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }

        .depth-bg-option {
            display: flex;
            flex-direction: column;
            gap: 3px;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.18s ease, transform 0.12s ease;
            border: 1px solid transparent;
            margin-bottom: 2px;
        }

        .depth-bg-option:last-child {
            margin-bottom: 0;
        }

        .depth-bg-option:hover {
            background: rgba(115, 216, 255, 0.1);
            border-color: rgba(115, 216, 255, 0.2);
        }

        .depth-bg-option.active {
            background: rgba(115, 216, 255, 0.16);
            border-color: rgba(115, 216, 255, 0.35);
        }

        .depth-bg-option .opt-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .depth-bg-option .opt-badge {
            font-size: 9px;
            padding: 2px 6px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.08);
            color: rgba(224, 233, 255, 0.7);
            letter-spacing: 0.06em;
        }

        .depth-bg-option.active .opt-badge {
            background: rgba(115, 216, 255, 0.25);
            color: #73d8ff;
        }

        .depth-bg-option .opt-title {
            font-size: 12px;
            font-weight: 500;
            color: rgba(245, 248, 255, 0.95);
        }

        .depth-bg-option .opt-desc {
            font-size: 10px;
            color: rgba(224, 233, 255, 0.45);
            padding-left: 2px;
        }

        @media (max-width: 768px) {
            .depth-bg-switcher {
                top: 18px;
                right: 18px;
            }
            .depth-bg-menu {
                width: 230px;
            }
        }
