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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a1628;
    color: #e0e0e0;
    display: flex;
}

:root {
    --sky-neon-cyan: #59f0ff;
    --sky-neon-gold: #ffd166;
    --sky-neon-rose: #ff6b89;
    --sky-panel-bg-top: rgba(6, 16, 38, 0.95);
    --sky-panel-bg-bottom: rgba(4, 10, 24, 0.92);
    --sky-panel-border: rgba(131, 235, 255, 0.26);
    --sky-panel-glow: rgba(89, 240, 255, 0.24);
    --sky-panel-width: clamp(360px, 39vw, 520px);
    --sky-panel-height: var(--sky-panel-width);
    --sky-panel-safe-gap: 28px;
}

.map-stage {
    flex: 1;
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

#virtualsky-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

#virtualsky-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.sidebar {
    width: 380px;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 20, 40, 0.95) 0%, rgba(20, 30, 60, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 2px solid rgba(255, 215, 102, 0.2);
}

.title {
    font-size: 28px;
    color: #ffd166;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(255, 215, 102, 0.3);
}

.subtitle {
    font-size: 12px;
    color: #a0a0a0;
    letter-spacing: 1px;
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 12px;
    overflow-y: auto;
    max-height: 220px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.nav-btn.active {
    background: linear-gradient(135deg, #E84A5F, #ff6b6b);
    border-color: #E84A5F;
    color: white;
    box-shadow: 0 4px 15px rgba(232, 74, 95, 0.4);
}

.nav-number {
    font-size: 16px;
    font-weight: 700;
    color: #ffd166;
    min-width: 28px;
}

.nav-btn.active .nav-number {
    color: #ffffff;
}

.nav-text {
    font-size: 13px;
    font-weight: 500;
}

.content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chapter {
    display: none;
    animation: fadeIn 0.3s ease;
}

.chapter.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chapter h2 {
    font-size: 20px;
    color: #ffd166;
    margin-bottom: 12px;
    font-weight: 600;
}

.chapter p {
    font-size: 13px;
    color: #b0b0b0;
    line-height: 1.7;
    margin-bottom: 14px;
    text-align: justify;
}

.symbols-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.sym {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    color: #a0a0a0;
    transition: all 0.2s;
}

.sym:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.sym span {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

.terms-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terms-mini div {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #00A0B0;
    padding: 8px 10px;
    font-size: 12px;
    color: #b0b0b0;
    border-radius: 4px;
}

.steps-mini {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.steps-mini div {
    background: rgba(232, 74, 95, 0.1);
    border-left: 3px solid #E84A5F;
    padding: 8px 10px;
    font-size: 12px;
    color: #b0b0b0;
    border-radius: 4px;
}

.steps-mini strong {
    color: #E84A5F;
}

.states-mini {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.states-mini div {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    font-size: 11px;
    color: #a0a0a0;
    border-radius: 4px;
    border-left: 2px solid #ffd166;
}

.controls-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.controls-info div {
    background: rgba(0, 160, 176, 0.1);
    border-left: 2px solid #00A0B0;
    padding: 6px 10px;
    font-size: 12px;
    color: #a0a0a0;
    border-radius: 4px;
}
.filter-controls {
    position: fixed;
    bottom: 30px;
    left: 400px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 16px;
    border-radius: 30px;
    display: flex;
    gap: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.analysis-legend {
    position: fixed;
    left: 400px;
    bottom: 98px;
    z-index: 102;
    width: 320px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(4, 12, 28, 0.82);
    border: 1px solid rgba(89, 240, 255, 0.16);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.analysis-legend-title {
    margin-bottom: 10px;
    color: #dff8ff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.analysis-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #afc9d6;
}

.analysis-legend-item + .analysis-legend-item {
    margin-top: 6px;
}

.analysis-legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.analysis-legend-swatch.is-aligned {
    background: #59f0ff;
}

.analysis-legend-swatch.is-slight {
    background: #ffd166;
}

.analysis-legend-swatch.is-significant {
    background: #ff6b89;
}

.analysis-legend-note {
    margin-top: 10px;
    font-size: 10px;
    color: #7f99ab;
    line-height: 1.5;
}

.analysis-toolbar {
    position: fixed;
    left: 400px;
    bottom: 210px;
    z-index: 103;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(4, 12, 28, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.analysis-toolbar-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.analysis-toolbar-label {
    font-size: 11px;
    color: #9fc4d6;
    letter-spacing: 0.06em;
}

.analysis-toolbar-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.analysis-filter-btn,
.analysis-method-toggle {
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #c8d9e4;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.analysis-filter-btn:hover,
.analysis-method-toggle:hover {
    background: rgba(255, 209, 102, 0.12);
    border-color: rgba(255, 209, 102, 0.38);
    transform: translateY(-1px);
}

.analysis-filter-btn.is-active,
.analysis-method-toggle.is-active {
    background: linear-gradient(135deg, rgba(232, 74, 95, 0.88), rgba(255, 107, 107, 0.92));
    border-color: rgba(255, 142, 142, 0.84);
    color: #fff;
    box-shadow: 0 0 16px rgba(232, 74, 95, 0.28);
}

.analysis-stats {
    position: fixed;
    right: 20px;
    bottom: 108px;
    z-index: 104;
    width: 260px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(4, 12, 28, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(12px);
}

.analysis-stats-title {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #dff8ff;
}

.analysis-stats-body {
    display: grid;
    gap: 8px;
}

.analysis-stats-mode {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(89, 240, 255, 0.06);
    border: 1px solid rgba(89, 240, 255, 0.14);
    color: #bce9f2;
    font-size: 11px;
    line-height: 1.5;
}

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

.analysis-stats-card {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.analysis-stats-card strong {
    display: block;
    color: #edf6ff;
    font-size: 14px;
    margin-bottom: 2px;
}

.analysis-stats-card span {
    color: #8fb3c3;
    font-size: 10px;
}

.analysis-method-panel {
    position: fixed;
    left: 400px;
    top: 86px;
    z-index: 130;
    width: 340px;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    background: rgba(3, 10, 24, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.analysis-method-panel[hidden] {
    display: none;
}

.analysis-method-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff1c9;
    background: rgba(255, 209, 102, 0.06);
}

.analysis-method-content {
    padding: 12px 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.analysis-method-section {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.analysis-method-section strong {
    display: block;
    margin-bottom: 6px;
    color: #9ce7f5;
    font-size: 12px;
}

.analysis-method-section p {
    margin: 0;
    color: #b7cad7;
    font-size: 11px;
    line-height: 1.65;
}

.filter-btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: #b0b0b0;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(255, 215, 102, 0.15);
    border-color: #ffd166;
    color: #ffd166;
    transform: scale(1.05);
}

.filter-btn.active {
    background: linear-gradient(135deg, #E84A5F, #ff6b6b);
    border-color: #E84A5F;
    color: white;
    box-shadow: 0 0 15px rgba(232, 74, 95, 0.5);
}

.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    text-align: center;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #ffd166;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-indicator p {
    color: #ffd166;
    font-size: 14px;
}

.sky-panel {
    position: absolute;
    top: 24px;
    right: 24px;
    width: min(var(--sky-panel-width), calc(100vw - var(--sky-panel-safe-gap) * 2));
    height: min(var(--sky-panel-width), calc(100vw - var(--sky-panel-safe-gap) * 2));
    aspect-ratio: 1 / 1;
    max-width: calc(100vw - var(--sky-panel-safe-gap) * 2);
    max-height: calc(100vh - var(--sky-panel-safe-gap) * 2);
    display: flex;
    padding: 0;
    border-radius: 50%;
    background: rgba(5, 12, 26, 0.54);
    border: 1px solid rgba(124, 205, 221, 0.16);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
    z-index: 30;
    overflow: hidden;
    transform: translate3d(-50%, -100%, 0);
    transition: transform 0.25s ease, opacity 0.25s ease, height 0.25s ease, box-shadow 0.2s ease, left 0.2s ease, top 0.2s ease;
}

.sky-panel::before {
    display: none;
}

.sky-panel::after {
    display: none;
}

.sky-panel.is-collapsed {
    height: auto;
}

.sky-panel.is-collapsed .sky-panel-body {
    display: none;
}

.sky-panel-header p,
.sky-panel-status[hidden],
.sky-horizon-hint {
    display: none !important;
}

.sky-panel-toggle,
.sky-panel-fab,
.sky-panel-action-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 18, 34, 0.74);
    color: #f3f6ff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sky-panel-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    z-index: 4;
}

.sky-panel-toggle {
    display: none;
}

.sky-panel-toggle.is-active {
    border-color: rgba(255, 209, 102, 0.72);
    color: #fff6db;
    box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.16), 0 0 18px rgba(255, 209, 102, 0.16);
}

.sky-panel-toggle:hover,
.sky-panel-fab:hover,
.sky-panel-action-btn:hover {
    background: linear-gradient(180deg, rgba(52, 94, 128, 0.65), rgba(18, 42, 68, 0.68));
    border-color: rgba(255, 209, 102, 0.62);
    box-shadow: 0 0 16px rgba(89, 240, 255, 0.28);
    transform: translateY(-1px);
}

.sky-panel-body {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    background: radial-gradient(circle at 50% 14%, rgba(37, 90, 156, 0.3), rgba(8, 18, 34, 0.94) 60%, rgba(4, 10, 22, 0.98) 100%);
    touch-action: none;
    transform: none;
    transform-origin: 50% 100%;
    transition: transform 0.25s ease, border-radius 0.25s ease;
}

.sky-panel.is-compact {
    gap: 0;
    padding: 0;
    border-radius: 50%;
}

.sky-panel.is-compact .sky-panel-header {
    min-height: 34px;
    padding: 4px 6px 0;
}

.sky-panel.is-compact .sky-panel-header h3 {
    font-size: 14px;
}

.sky-panel.is-compact .sky-panel-header p {
    display: none;
}

.sky-panel.is-compact .sky-panel-toggle {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    font-size: 11px;
}

.sky-panel.is-compact .sky-panel-body {
    min-height: 168px;
    border-radius: 50%;
    transform: none;
}

.sky-panel.is-compact .sky-panel-status {
    min-height: 40px;
    padding: 6px 8px;
    margin: 0 6px 4px;
}

.sky-panel.is-compact .sky-status-main {
    font-size: 11px;
}

.sky-panel.is-compact .sky-status-meta {
    font-size: 10px;
}

.sky-panel-body::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24%, transparent 72%, rgba(8, 18, 34, 0.32) 100%);
    opacity: 0.8;
}

.sky-zoom-controls {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;    
    gap: 4px;
    background: rgba(6, 16, 38, 0.85);
    border: 1px solid var(--sky-panel-border);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sky-panel.is-collapsed .sky-zoom-controls {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.8);
}

.sky-panel.is-compact .sky-zoom-controls {
    left: 2px;
    padding: 2px;
}

.sky-zoom-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sky-zoom-btn:hover {
    background: rgba(131, 235, 255, 0.15);
    color: #fff;
    border-color: rgba(131, 235, 255, 0.3);
}

.sky-zoom-btn:active {
    background: rgba(131, 235, 255, 0.25);
    transform: scale(0.95);
}

.sky-panel-body::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(89, 240, 255, 0.03) 0%, rgba(89, 240, 255, 0) 44%, rgba(8, 18, 34, 0.12) 66%, rgba(5, 10, 22, 0.42) 100%);
}

.sky-horizon-hint {
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 13%;
    z-index: 2;
    height: 1px;
    border-top: 1px solid rgba(255, 209, 102, 0.28);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sky-horizon-hint span {
    position: absolute;
    right: 0;
    top: -18px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(7, 16, 30, 0.82);
    border: 1px solid rgba(255, 209, 102, 0.28);
    color: #ffe4a3;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.sky-star-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sky-star-focus {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 90;
}

.sky-star-focus.is-visible {
    opacity: 1;
}

.sky-star-focus-ring {
    position: absolute;
    transform: translate(16px, -50%);
    height: 32px;
    left: -16px;
    top: -16px;
    border-radius: 50%;
    padding: 5px 10px 5px 12px;
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--focus-color, #ffd166) 22%, transparent 78%), 0 0 30px color-mix(in srgb, var(--focus-color, #ffd166) 48%, transparent 52%);
    animation: sky-focus-pulse 1.5s ease-in-out infinite;
    will-change: transform;
}

.sky-star-focus-beam {
    position: absolute;
    overflow: visible;
}


.sky-star-marker[data-anchor-side='left'] {
    transform: translate(calc(-100% - 16px), -50%);
}

.sky-star-marker[data-anchor-side='top'] {
    transform: translate(-50%, calc(-100% - 14px));
}
.sky-star-focus-beam-path {
    fill: none;
    stroke: color-mix(in srgb, var(--focus-color, #ffd166) 84%, white 16%);
    position: absolute;
    left: -8px;
    top: 50%;
    stroke-width: 2;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--focus-color, #ffd166) 42%, transparent 58%));
    marker-end: url(#sky-focus-arrow);
    transform: translate(-50%, -50%);
}


.sky-star-marker[data-anchor-side='left']::before {
    left: auto;
    right: -15px;
    transform: translate(50%, -50%);
}

.sky-star-marker[data-anchor-side='top']::before {
    left: 50%;
    top: calc(100% + 8px);
    transform: translate(-50%, -50%);
}
.sky-star-focus-arrow {
    fill: color-mix(in srgb, var(--focus-color, #ffd166) 84%, white 16%);
}

.sky-star-focus-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(5, 14, 28, 0.95), rgba(4, 10, 22, 0.94));
    border: 1px solid color-mix(in srgb, var(--focus-color, #ffd166) 38%, rgba(255, 255, 255, 0.16) 62%);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32), 0 0 20px color-mix(in srgb, var(--focus-color, #ffd166) 20%, transparent 80%);
    color: #edf3ff;
}

.sky-star-focus-card strong {
    font-size: 13px;
    color: color-mix(in srgb, var(--focus-color, #ffd166) 80%, white 20%);
}

.sky-star-focus-card span {
    font-size: 11px;
    line-height: 1.35;
    color: #c5d3ea;
}

@keyframes sky-focus-pulse {
    0%, 100% {
        transform: scale(0.92);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.sky-star-marker {
    position: absolute;
    --marker-transform: translate(18px, -50%);
    transform: var(--marker-transform);
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 112px;
    padding: 3px 8px 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 18, 34, 0.74);
    color: #f1f4fb;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.sky-star-marker[data-anchor-side='left'] {
    --marker-transform: translate(calc(-100% - 18px), -50%);
}

.sky-star-marker[data-anchor-side='top'] {
    --marker-transform: translate(-50%, calc(-100% - 14px));
}

.sky-star-marker::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--star-color, #ffffff);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--star-color, #ffffff) 14%, transparent 86%), 0 0 8px var(--star-color, #ffffff);
}

.sky-star-marker::after {
    content: '';
    position: absolute;
    left: -9px;
    top: 50%;
    width: 10px;
    border-top: 1px solid color-mix(in srgb, var(--star-color, #ffffff) 44%, transparent 56%);
    transform: translateY(-50%);
}

.sky-star-marker[data-anchor-side='left']::before {
    left: auto;
    right: -15px;
    transform: translate(50%, -50%);
}

.sky-star-marker[data-anchor-side='left']::after {
    left: auto;
    right: -14px;
}

.sky-star-marker[data-anchor-side='top']::before {
    left: 50%;
    top: calc(100% + 10px);
    transform: translate(-50%, -50%);
}

.sky-star-marker[data-anchor-side='top']::after {
    left: 50%;
    top: calc(100% + 1px);
    width: 1px;
    height: 10px;
    border-top: none;
    border-left: 1px solid color-mix(in srgb, var(--star-color, #ffffff) 44%, transparent 56%);
    transform: translateX(-50%);
}

.sky-star-marker:hover {
    transform: var(--marker-transform) scale(1.03);
    background: rgba(10, 22, 42, 0.9);
    border-color: rgba(89, 240, 255, 0.34);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.sky-star-marker.is-hovered {
    border-color: color-mix(in srgb, var(--star-color, #59f0ff) 70%, white 30%);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--star-color, #59f0ff) 30%, transparent 70%), 0 0 22px color-mix(in srgb, var(--star-color, #59f0ff) 36%, transparent 64%);
}

.sky-star-marker.is-dimmed {
    opacity: 0.42;
}

.sky-star-marker.is-approximate {
    border-style: dashed;
}

.sky-star-marker.is-highlighted {
    background: linear-gradient(180deg, rgba(255, 209, 102, 0.22), rgba(106, 78, 20, 0.2));
    border-color: rgba(255, 209, 102, 0.9);
    color: #fff7da;
    box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.18), 0 0 18px rgba(255, 209, 102, 0.32), 0 0 28px color-mix(in srgb, var(--star-color, #ffd166) 35%, transparent 65%);
}

.sky-panel-status {
    position: relative;
    z-index: 1;
    min-height: 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 7px 10px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(10, 24, 44, 0.86), rgba(6, 16, 30, 0.92));
    border: 1px solid rgba(95, 188, 208, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    margin: 0 10px 6px;
}

.sky-status-main {
    font-size: 12px;
    color: #d8efff;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sky-status-meta {
    font-size: 11px;
    color: #9ec2d9;
}







/* 星盘 */
.sky-panel-status[data-tone='warn'] {
    border-color: rgba(255, 209, 102, 0.45);
    box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.12), 0 0 18px rgba(255, 209, 102, 0.14);
}

.sky-panel-status[data-tone='active'] {
    border-color: rgba(89, 240, 255, 0.55);
    box-shadow: inset 0 0 0 1px rgba(89, 240, 255, 0.18), 0 0 22px rgba(89, 240, 255, 0.16);
}

.sky-panel.is-fused {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: min(var(--sky-panel-width), calc(100vw - var(--sky-panel-safe-gap) * 2));
    height: min(var(--sky-panel-width), calc(100vw - var(--sky-panel-safe-gap) * 2));
    aspect-ratio: 1 / 1;
    max-width: calc(100vw - var(--sky-panel-safe-gap) * 2);
    max-height: calc(100vh - var(--sky-panel-safe-gap) * 2);
    padding: 0;
    background: rgba(5, 11, 24, 0.2);
    border-color: rgba(95, 205, 224, 0.14);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.34);
}




.sky-panel.is-fused::before {
    background: linear-gradient(180deg, rgba(89, 240, 255, 0.1), transparent 24%, transparent 76%, rgba(255, 107, 137, 0.08));
}

.sky-panel.is-fused::after {
    top: auto;
    bottom: -120px;
    right: auto;
    left: 50%;
    width: 420px;
    height: 260px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(89, 240, 255, 0.22), rgba(89, 240, 255, 0));
}

.sky-panel.is-fused .sky-panel-header,
.sky-panel.is-fused .sky-panel-status {
    position: relative;
    z-index: 3;
    width: auto;
    background: linear-gradient(180deg, rgba(8, 18, 34, 0.72), rgba(6, 14, 28, 0.64));
    backdrop-filter: blur(12px);
}

.sky-panel.is-fused .sky-panel-body {
    position: relative;
    inset: auto;
    z-index: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 16%, rgba(52, 116, 210, 0.18), rgba(6, 14, 32, 0.94) 58%, rgba(3, 8, 18, 0.98) 100%);
    overflow: hidden;
}

.sky-panel.is-fused .sky-panel-body::before {
    background: 
        radial-gradient(circle at 50% 50%, transparent 68%, rgba(89, 240, 255, 0.25) 68.5%, rgba(89, 240, 255, 0.45) 69.5%, transparent 70%),
        radial-gradient(circle at 50% 50%, transparent 84%, rgba(89, 240, 255, 0.15) 84.5%, rgba(89, 240, 255, 0.35) 85.5%, transparent 86%),
        radial-gradient(circle at 50% 50%, transparent 97.5%, rgba(89, 240, 255, 0.4) 98%, rgba(89, 240, 255, 0.8) 99%, rgba(89, 240, 255, 0.4) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%, rgba(6, 14, 32, 0.18) 100%);
    opacity: 0.6;
}

.sky-panel.is-fused .sky-panel-body::after {
    background: linear-gradient(180deg, rgba(89, 240, 255, 0.02) 0%, rgba(89, 240, 255, 0) 44%, rgba(5, 11, 24, 0.18) 100%);
}

.sky-panel.is-fused #virtualsky-container {
    opacity: 0.8;
    mix-blend-mode: screen;
    filter: saturate(1.15) contrast(1.08) drop-shadow(0 0 18px rgba(89, 240, 255, 0.16));
}

.sky-panel.is-fused #virtualsky-container canvas {
    mix-blend-mode: screen;
    opacity: 0.92;
}

.sky-panel.is-fused .sky-star-overlay {
    mix-blend-mode: screen;
}

.sky-panel.is-fused .sky-star-marker {
    background: linear-gradient(180deg, rgba(10, 24, 44, 0.42), rgba(10, 24, 44, 0.18));
    border-color: rgba(145, 227, 242, 0.26);
    box-shadow: 0 0 0 1px rgba(89, 240, 255, 0.06), 0 0 16px rgba(89, 240, 255, 0.1);
}

.sky-panel.is-fused .sky-star-marker.is-highlighted,
.sky-panel.is-fused .sky-star-marker.is-hovered {
    mix-blend-mode: normal;
}

.sky-panel.is-fused .sky-star-focus-card {
    background: linear-gradient(180deg, rgba(7, 16, 30, 0.82), rgba(6, 12, 24, 0.74));
    backdrop-filter: blur(12px);
}

.sky-panel.is-fused .virtualsky-container_clock,
.sky-panel.is-fused .virtualsky-container_position {
    background: rgba(5, 14, 28, 0.42) !important;
    backdrop-filter: blur(10px);
}

.sky-panel-controls {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.sky-panel-fab,
.sky-panel-action-btn {
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.language-toggle {
    min-width: 58px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.sky-panel-fab.is-collapsed {
    border-color: rgba(255, 209, 102, 0.42);
    color: #fff3cc;
}

@media (max-width: 720px) {
    .sky-panel-controls {
        top: 12px;
        right: 12px;
        left: auto;
        max-width: calc(100vw - 24px);
        gap: 8px;
    }
}

.observer-anchor {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 26;
    width: 0;
    height: 0;
    pointer-events: none;
}

.observer-pulse {
    position: absolute;
    left: -18px;
    top: -18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 209, 102, 0.45);
    box-shadow: 0 0 0 10px rgba(255, 209, 102, 0.08);
    animation: observer-pulse 1.8s ease-in-out infinite;
}

.observer-core {
    position: absolute;
    left: -7px;
    top: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffd166, #ff9f43);
    box-shadow: 0 0 18px rgba(255, 209, 102, 0.5);
}

.observer-label {
    position: absolute;
    left: 18px;
    top: -12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(7, 16, 32, 0.84);
    border: 1px solid rgba(255, 209, 102, 0.35);
    color: #fff0c4;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

@keyframes observer-pulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.92;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

.maplibregl-popup-content {
    background: rgba(20, 20, 40, 0.96) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 14px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
}

.popup-content {
    color: #e0e0e0;
}

.popup-content h3 {
    margin: 0 0 10px 0;
    color: #E84A5F;
    font-size: 15px;
}

.popup-content p {
    margin: 5px 0;
    font-size: 12px;
    line-height: 1.5;
}

.popup-content .label {
    color: #00A0B0;
    font-weight: 600;
}

.popup-content .analysis-badge,
.panel-content .analysis-badge {
    margin-top: 8px;
}

.nav-buttons::-webkit-scrollbar,
.content-area::-webkit-scrollbar {
    width: 4px;
}

.nav-buttons::-webkit-scrollbar-track,
.content-area::-webkit-scrollbar-track {
    background: transparent;
}

.nav-buttons::-webkit-scrollbar-thumb,
.content-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.nav-buttons::-webkit-scrollbar-thumb:hover,
.content-area::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1200px) {
    :root {
        --sky-panel-width: clamp(400px, 52vw, 560px);
        --sky-panel-height: var(--sky-panel-width);
    }

    .sidebar {
        width: 320px;
    }
    
    .filter-controls {
        left: 340px;
    }
}

@media (max-width: 900px) {
    :root {
        --sky-panel-width: min(100%, calc(100vw - 28px));
        --sky-panel-height: var(--sky-panel-width);
        --sky-panel-safe-gap: 14px;
    }

    body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .sidebar-header {
        padding: 16px;
        border-bottom: 1px solid rgba(255, 215, 102, 0.2);
    }
    
    .title {
        font-size: 22px;
    }
    
    .nav-buttons {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        padding: 12px;
        gap: 6px;
    }
    
    .nav-btn {
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .content-area {
        max-height: 200px;
        padding: 12px;
    }
    
    .chapter {
        padding: 0;
    }
    
    .chapter h2 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .chapter p {
        font-size: 12px;
    }
    
    .filter-controls {
        left: 20px;
        bottom: 20px;
    }

    .map-stage {
        height: 60vh;
    }

    .sky-panel {
        top: auto;
        bottom: 14px;
        right: auto;
        left: 50%;
        width: min(var(--sky-panel-width), calc(100vw - 28px));
        height: min(var(--sky-panel-width), calc(100vw - 28px));
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        transform: translate3d(-50%, -100%, 0);
    }

    .sky-panel-body {
        transform: none;
    }

    .sky-panel.is-fused {
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        width: min(var(--sky-panel-width), calc(100vw - 28px));
        height: min(var(--sky-panel-width), calc(100vw - 28px));
        aspect-ratio: 1 / 1;
    }

    .sky-panel.is-fused .sky-panel-header,
    .sky-panel.is-fused .sky-panel-status {
        width: 100%;
    }

    .sky-panel-controls {
        top: 14px;
        right: 14px;
        gap: 8px;
    }

    .sky-panel-fab,
    .sky-panel-action-btn {
        padding: 9px 14px;
        min-width: 96px;
    }
}

@media (max-width: 600px) {
    :root {
        --sky-panel-width: min(100%, calc(100vw - 20px));
        --sky-panel-height: var(--sky-panel-width);
        --sky-panel-safe-gap: 10px;
    }

    .sidebar {
        max-height: 35vh;
    }
    
    .nav-buttons {
        max-height: 100px;
        overflow-y: auto;
    }
    
    .filter-controls {
        padding: 10px 12px;
        gap: 6px;
    }
    
    .filter-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .sky-panel {
        padding: 0;
        border-radius: 50%;
        bottom: 10px;
        left: 50%;
        right: auto;
        width: min(var(--sky-panel-width), calc(100vw - 20px));
        height: min(var(--sky-panel-width), calc(100vw - 20px));
        aspect-ratio: 1 / 1;
        transform: translate3d(-50%, -100%, 0);
    }

    .sky-panel-body {
        transform: none;
    }

    .sky-panel.is-fused {
        width: min(var(--sky-panel-width), calc(100vw - 20px));
        height: min(var(--sky-panel-width), calc(100vw - 20px));
        aspect-ratio: 1 / 1;
        padding: 0;
    }

    .sky-panel-header {
        min-height: 30px;
        padding: 4px 42px 0 6px;
    }

    .sky-panel-header p {
        display: none;
    }

    .sky-panel-status {
        min-height: 42px;
        padding: 8px 10px;
        margin: 0 6px 4px;
    }

    .sky-panel-controls {
        top: 10px;
        right: 10px;
        gap: 6px;
    }

    .sky-panel-fab,
    .sky-panel-action-btn {
        min-width: 88px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .sky-status-main {
        font-size: 11px;
    }

    .sky-status-meta {
        font-size: 10px;
    }
}

.coordinate-system {
    background: rgba(0, 160, 176, 0.08);
    border-left: 3px solid #00A0B0;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.coordinate-system h3 {
    font-size: 13px;
    color: #00A0B0;
    margin-bottom: 10px;
    font-weight: 600;
}

.param-box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.param-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 160, 176, 0.3);
    padding: 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #a0a0a0;
    text-align: center;
}

.param-item strong {
    display: block;
    color: #00A0B0;
    font-size: 12px;
    margin-bottom: 4px;
}

.term-full {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#ctl {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.virtualsky-container_clock,
.virtualsky-container_position {
    display: block !important;
    background: rgba(8, 18, 34, 0.65) !important;
    border: 1px solid rgba(89, 240, 255, 0.25) !important;
    border-radius: 8px !important;
    color: #c5e8ff !important;
    font-size: 10px !important;
    padding: 4px 6px !important;
    box-shadow: 0 0 14px rgba(89, 240, 255, 0.14) !important;
}

.term-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.4;
    color: #b0b0b0;
}

.term-item strong {
    color: #E84A5F;
    display: block;
    margin-bottom: 3px;
}

.term-item em {
    display: inline;
    color: #00A0B0;
    font-style: normal;
    font-weight: 600;
}

.quadrant-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quadrant {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #a0a0a0;
    line-height: 1.5;
}

.quadrant strong {
    display: block;
    margin-bottom: 4px;
}

/* 坐标转换 (Chapter 3) 样式 */
.conversion-step {
    background: rgba(232, 74, 95, 0.08);
    border-left: 3px solid #E84A5F;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.conversion-step h3 {
    font-size: 13px;
    color: #E84A5F;
    margin-bottom: 8px;
    font-weight: 600;
}

.formula-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #b0b0b0;
    line-height: 1.5;
}

.formula-box strong {
    color: #ffd166;
    display: block;
    margin-top: 6px;
    margin-bottom: 3px;
}

.formula-box .formula {
    background: rgba(255, 255, 255, 0.08);
    padding: 6px;
    border-radius: 3px;
    margin: 6px 0;
    border-left: 2px solid #ffd166;
}

.formula code {
    font-family: 'Courier New', monospace;
    color: #00A0B0;
    font-size: 10px;
    display: block;
    overflow-x: auto;
}

.data-source,
.reference-point {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.data-source strong,
.reference-point strong {
    color: #E84A5F;
    font-size: 11px;
}

.conversion-summary {
    background: rgba(255, 215, 102, 0.08);
    border-left: 3px solid #ffd166;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.conversion-summary h3 {
    font-size: 13px;
    color: #ffd166;
    margin-bottom: 8px;
    font-weight: 600;
}

.process-flow {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.flow-step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 3px;
    font-size: 11px;
    color: #a0a0a0;
    text-align: center;
}

.flow-step .symbol {
    display: block;
    font-size: 10px;
    color: #ffd166;
    margin-top: 2px;
}

/* 历史文献章节样式 */
.history-section {
    background: rgba(255, 215, 102, 0.08);
    border-left: 3px solid #ffd166;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.history-section h3 {
    font-size: 13px;
    color: #ffd166;
    margin-bottom: 8px;
    font-weight: 600;
}

.history-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 102, 0.2);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 11px;
    color: #b0b0b0;
    line-height: 1.5;
}

.history-item strong {
    color: #ffd166;
    display: block;
    margin-bottom: 4px;
}

.theory-section {
    background: rgba(0, 160, 176, 0.08);
    border-left: 3px solid #00A0B0;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.theory-section h3 {
    font-size: 13px;
    color: #00A0B0;
    margin-bottom: 8px;
    font-weight: 600;
}

.theory-box {
    background: rgba(0, 160, 176, 0.1);
    border: 1px solid rgba(0, 160, 176, 0.3);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 11px;
    color: #b0b0b0;
    line-height: 1.5;
}

.theory-box strong {
    color: #00A0B0;
    display: block;
    margin-bottom: 3px;
}

/* 星宿详情样式 */
.star-detailed {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.star-detailed h3 {
    font-size: 13px;
    color: #E84A5F;
    margin-bottom: 8px;
    font-weight: 600;
}

.star-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.star-card {
    background: rgba(0, 160, 176, 0.1);
    border: 1px solid rgba(0, 160, 176, 0.3);
    border-left: 3px solid #00A0B0;
    padding: 6px;
    border-radius: 3px;
    font-size: 10px;
    color: #a0a0a0;
    line-height: 1.4;
}

.star-card strong {
    display: block;
    margin-bottom: 2px;
}

.application-section {
    background: rgba(232, 74, 95, 0.08);
    border-left: 3px solid #E84A5F;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.application-section h3 {
    font-size: 13px;
    color: #E84A5F;
    margin-bottom: 8px;
    font-weight: 600;
}

.application-box {
    background: rgba(232, 74, 95, 0.1);
    border: 1px solid rgba(232, 74, 95, 0.3);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 11px;
    color: #b0b0b0;
    line-height: 1.5;
}

.application-box strong {
    color: #E84A5F;
    display: block;
    margin-bottom: 3px;
}

.application-box em {
    color: #00A0B0;
    font-style: normal;
    font-weight: 600;
}

.principle-section {
    background: rgba(255, 215, 102, 0.08);
    border-left: 3px solid #ffd166;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.principle-section h3 {
    font-size: 13px;
    color: #ffd166;
    margin-bottom: 8px;
    font-weight: 600;
}

.principle-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.principle-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 102, 0.2);
    padding: 6px;
    border-radius: 3px;
    font-size: 10px;
    color: #a0a0a0;
}

.principle-item strong {
    color: #ffd166;
}

/* 现代研究样式 */
.research-section {
    background: rgba(0, 160, 176, 0.08);
    border-left: 3px solid #00A0B0;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.research-section h3 {
    font-size: 13px;
    color: #00A0B0;
    margin-bottom: 8px;
    font-weight: 600;
}

.research-item {
    background: rgba(0, 160, 176, 0.1);
    border: 1px solid rgba(0, 160, 176, 0.3);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 10px;
    color: #b0b0b0;
    line-height: 1.5;
}

.research-item strong {
    color: #00A0B0;
    display: block;
    margin-bottom: 3px;
}

.modern-view {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.modern-view h3 {
    font-size: 12px;
    color: #ffd166;
    margin-bottom: 8px;
    font-weight: 600;
}

.view-box {
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid #00A0B0;
    padding: 6px;
    margin-bottom: 6px;
    font-size: 10px;
    color: #a0a0a0;
    line-height: 1.4;
}

.view-box strong {
    color: #ffd166;
}

.data-comparison {
    background: rgba(255, 215, 102, 0.1);
    border: 1px solid rgba(255, 215, 102, 0.2);
    padding: 8px;
    border-radius: 4px;
    font-size: 10px;
    color: #b0b0b0;
    line-height: 1.5;
}

.data-comparison h3 {
    font-size: 11px;
    color: #ffd166;
    margin-bottom: 6px;
    font-weight: 600;
}

.star-knowledge {
    background: rgba(255, 215, 102, 0.08);
    border: 1px solid rgba(255, 215, 102, 0.2);
    padding: 8px;
    border-radius: 4px;
    margin-top: 12px;
}

.star-knowledge h3 {
    font-size: 12px;
    color: #ffd166;
    margin-bottom: 8px;
    font-weight: 600;
}

.knowledge-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid #ffd166;
    padding: 6px;
    margin-bottom: 6px;
    font-size: 10px;
    color: #b0b0b0;
    line-height: 1.4;
}

.knowledge-item strong {
    color: #ffd166;
    display: block;
    margin-bottom: 2px;
}

.search-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 150;
    width: 280px;
}

.search-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 13px;
    font-family: 'Noto Sans SC', sans-serif;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.85);
    border-color: #ffd166;
    box-shadow: 0 0 10px rgba(255, 215, 102, 0.3);
}

.search-input::placeholder {
    color: #888;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 160;
}

.search-results.active {
    display: block;
}

.search-item {
    padding: 10px 14px;
    color: #b0b0b0;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    transition: all 0.2s;
}

.search-item:hover {
    background: rgba(255, 215, 102, 0.1);
    color: #ffd166;
}

.search-item strong {
    color: #ffd166;
}

.search-item .tag {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(0, 160, 176, 0.3);
    border-radius: 3px;
    margin-left: 6px;
    color: #00A0B0;
}

.coord-display {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.75);
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.coord-info {
    color: #ffd166;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    margin-bottom: 4px;
}

.coord-label {
    font-size: 10px;
    color: #888;
    text-align: right;
}

.info-panel {
    position: fixed;
    bottom: 30px;
    left: 400px;
    width: 320px;
    max-height: 400px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 215, 102, 0.2);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 110;
    display: none;
    flex-direction: column;
    backdrop-filter: blur(10px);
    transition: top 0.24s ease, bottom 0.24s ease, opacity 0.24s ease, transform 0.24s ease;
}

.info-panel.active {
    display: flex;
}

body.is-detail-focus .analysis-toolbar,
body.is-detail-focus .analysis-legend,
body.is-detail-focus .filter-controls {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

body.is-detail-focus .info-panel.active {
    top: 86px;
    bottom: auto;
    max-height: calc(100vh - 120px);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 215, 102, 0.15);
    background: rgba(255, 215, 102, 0.05);
}

#panel-title {
    font-size: 13px;
    color: #ffd166;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #ffd166;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 12px;
    font-size: 11px;
    color: #b0b0b0;
    line-height: 1.6;
}

.panel-content.placeholder {
    color: #666;
    font-style: italic;
}

.panel-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.panel-item strong {
    color: #00A0B0;
    display: block;
    margin-bottom: 4px;
}

.panel-item-value {
    color: #b0b0b0;
}

.analysis-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    border: 1px solid transparent;
}

.analysis-badge.is-aligned {
    background: rgba(89, 240, 255, 0.12);
    border-color: rgba(89, 240, 255, 0.36);
    color: #8ef5ff;
}

.analysis-badge.is-slight {
    background: rgba(255, 209, 102, 0.14);
    border-color: rgba(255, 209, 102, 0.4);
    color: #ffe08f;
}

.analysis-badge.is-significant {
    background: rgba(255, 107, 137, 0.14);
    border-color: rgba(255, 107, 137, 0.4);
    color: #ff9ab0;
}

.analysis-inline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.analysis-metric {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.analysis-metric-label {
    font-size: 10px;
    color: #7db8cc;
    margin-bottom: 4px;
}

.analysis-metric-value {
    font-size: 12px;
    color: #edf6ff;
}

.analysis-list {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #b8c9d5;
}

.analysis-list li + li {
    margin-top: 4px;
}

.analysis-note {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(89, 240, 255, 0.06);
    border: 1px solid rgba(89, 240, 255, 0.16);
    color: #b6deeb;
    line-height: 1.55;
}

@media (max-width: 1200px) {
    .search-container {
        width: 240px;
    }

    .analysis-toolbar,
    .analysis-legend {
        left: 320px;
        width: 280px;
    }

    .analysis-method-panel {
        left: 320px;
    }
    
    .info-panel {
        left: 320px;
        width: 280px;
    }

    body.is-detail-focus .info-panel.active {
        top: 86px;
    }
}

@media (max-width: 900px) {
    .analysis-toolbar,
    .analysis-legend {
        left: 16px;
        width: min(280px, calc(100vw - 32px));
    }

    .analysis-toolbar {
        bottom: 228px;
    }

    .analysis-legend {
        bottom: 126px;
        width: min(280px, calc(100vw - 32px));
    }

    .analysis-stats {
        right: 10px;
        bottom: auto;
        top: 60px;
        width: 220px;
    }

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

    .analysis-method-panel {
        left: 10px;
        right: 10px;
        width: auto;
        top: 60px;
    }

    .analysis-inline-grid {
        grid-template-columns: 1fr;
    }

    body.is-detail-focus .info-panel.active {
        left: 10px;
        right: 10px;
        width: auto;
        top: 60px;
        bottom: auto;
        max-height: calc(100vh - 84px);
    }
}

@media (max-width: 900px) {
    .search-container {
        right: 10px;
        top: 10px;
        width: 200px;
    }
    
    .info-panel {
        left: 10px;
        right: auto;
        width: 220px;
    }
    
    .coord-display {
        right: 10px;
        bottom: auto;
        top: 60px;
    }
}
