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

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

#nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 16, 0.9);
    padding: 10px 0;
}

#nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
}

#nav ul li a {
    color: #00b4ff;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s;
}

#nav ul li a.active {
    background: rgba(0, 180, 255, 0.3);
    color: #fff;
}

#canvas-container {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100vh - 50px);
    z-index: 1;
}

main {
    position: relative;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    min-height: calc(100vh - var(--nav-h));
    height: auto;
    z-index: 10;
    pointer-events: none;
}

section {
    display: none;
    width: 100%;
    height: calc(100vh - var(--nav-h));
    padding: 20px;
    pointer-events: auto;
}

section.active {
    display: block;
}

#section-principle,
#section-history,
#section-application,
#section-wave,
#section-home {
    height: auto;
    min-height: calc(100vh - var(--nav-h));
}

#section-principle .section-content {
    height: auto;
    min-height: 100%;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
}

.section-content {
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 16, 0.85);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 180, 255, 0.3);
    position: relative;
}

#wave-container {
    width: 100%;
    min-height: 0;
    position: relative;
}

#wave-container #wave-mode-switch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* ---------- 首页：3D 模型全屏嵌入 ---------- */
#section-home .section-content {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
    position: relative;
}

#home-hero {
    position: relative;
    height: calc(100vh - var(--nav-h));
    overflow: hidden;
}

.home-article-box {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: min(380px, 42vw);
    max-height: calc(100vh - var(--nav-h) - 3rem);
    display: flex;
    flex-direction: column;
    background: rgba(8, 12, 22, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 170, 0.28);
    border-radius: 14px;
    overflow: hidden;
    z-index: 5;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.article-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 2.4rem 1.6rem 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 170, 0.5) transparent;
}

/* 文章浮窗缩小/展开按键（酷炫雷达球） */
.home-article-box { --orb: #00d4aa; --orb-rgb: 0, 212, 170; }
.wave-article-box { --orb: #8b5cf6; --orb-rgb: 139, 92, 246; }

.article-toggle {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 4;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 12, 22, 0.6);
    color: var(--orb);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}

.article-toggle:hover {
    background: rgba(8, 12, 22, 0.92);
    transform: scale(1.1);
    box-shadow: 0 0 14px rgba(var(--orb-rgb), 0.7);
}

.article-toggle .ico-min {
    width: 16px;
    height: 16px;
    display: block;
}

.article-toggle .radar-orb {
    display: none;
}

/* 浮窗收起/展开的平滑过渡 */
.home-article-box,
.wave-article-box {
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-radius 0.4s ease,
                box-shadow 0.4s ease;
}

/* 缩小后变成配色一致的雷达小圆球悬浮窗 */
.home-article-box.collapsed,
.wave-article-box.collapsed {
    width: 60px !important;
    height: 60px !important;
    max-height: 60px !important;
    bottom: auto !important;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
}

.home-article-box.collapsed .article-scroll,
.wave-article-box.collapsed .article-scroll {
    display: none;
}

.home-article-box.collapsed .ico-min,
.wave-article-box.collapsed .ico-min {
    display: none;
}

.home-article-box.collapsed .article-toggle,
.wave-article-box.collapsed .article-toggle {
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    border: none;
    background: radial-gradient(circle at 50% 50%,
                rgba(var(--orb-rgb), 0.40) 0%,
                rgba(var(--orb-rgb), 0.12) 55%,
                rgba(8, 12, 22, 0.85) 74%);
    box-shadow: 0 0 22px rgba(var(--orb-rgb), 0.6),
                inset 0 0 14px rgba(var(--orb-rgb), 0.45);
    animation: orbFloat 3.2s ease-in-out infinite;
}

.home-article-box.collapsed .article-toggle .radar-orb,
.wave-article-box.collapsed .article-toggle .radar-orb {
    display: block;
}

/* 雷达小圆球内部：旋转扫描 + 中心光点 + 扩散涟漪 */
.radar-orb {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.radar-orb::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        rgba(var(--orb-rgb), 0) 0deg,
        rgba(var(--orb-rgb), 0) 300deg,
        rgba(var(--orb-rgb), 0.75) 348deg,
        rgba(var(--orb-rgb), 0) 360deg);
    -webkit-mask: radial-gradient(circle, #000 58%, transparent 60%);
    mask: radial-gradient(circle, #000 58%, transparent 60%);
    animation: radarSweep 2.2s linear infinite;
}

.radar-orb::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orb);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--orb), 0 0 18px rgba(var(--orb-rgb), 0.7);
}

.home-article-box.collapsed .article-toggle::after,
.wave-article-box.collapsed .article-toggle::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px solid rgba(var(--orb-rgb), 0.6);
    animation: orbRipple 2.4s ease-out infinite;
    pointer-events: none;
}

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

@keyframes orbFloat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.07); }
}

@keyframes orbRipple {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(1.25); opacity: 0; }
}

.article-scroll::-webkit-scrollbar {
    width: 6px;
}

.article-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 170, 0.45);
    border-radius: 3px;
}

.article-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.home-article-box .intro-lead {
    font-family: 'Georgia', serif;
    font-size: 1.02rem;
    line-height: 1.85;
    color: #e8ecf4;
    margin-bottom: 1.6rem;
}

.home-article-box .intro-lead strong {
    color: var(--accent);
}

.home-article-box .intro-block {
    margin-bottom: 1.4rem;
}

.home-article-box .intro-block h3 {
    font-family: 'Jura', sans-serif;
    font-size: 1.08rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
    padding-left: 12px;
    border-left: 3px solid var(--accent);
}

.home-article-box .intro-block p {
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    line-height: 1.95;
    color: #9fb0c8;
}

/* 波干涉页文章浮窗（叠在 3D 画布之上，位于右侧相位指示下方） */
.wave-article-box {
    position: absolute;
    top: 7rem;
    right: 1.5rem;
    bottom: 1.5rem;
    width: min(360px, 40vw);
    display: flex;
    flex-direction: column;
    background: rgba(8, 12, 22, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 14px;
    overflow: hidden;
    z-index: 50;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.wave-article-box .wave-explain {
    max-width: none;
    margin: 0;
    padding: 0;
}

.wave-article-box .article-scroll {
    scrollbar-color: rgba(139, 92, 246, 0.55) transparent;
}

.wave-article-box .article-scroll::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
}

.wave-article-box .wave-explain .explain-title {
    font-size: 1.25rem;
    text-align: left;
    margin-bottom: 1.1rem;
}

.wave-article-box .wave-explain p {
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 1rem;
}

.wave-article-box .wave-explain .explain-try {
    margin-top: 1.6rem;
    padding: 1.3rem 1.4rem;
}

.wave-article-box .wave-explain .explain-try h4 {
    font-size: 1.02rem;
}

.wave-article-box .wave-explain ul li {
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .home-article-box {
        top: 1rem;
        left: 1rem;
        right: 1rem;
        width: auto;
        max-height: calc(100vh - var(--nav-h) - 2rem);
    }
    .article-scroll {
        padding: 2.2rem 1.3rem 1.2rem;
    }
    .home-article-box .intro-lead {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }
    .home-article-box .intro-block p {
        font-size: 0.9rem;
        line-height: 1.8;
    }
    .wave-article-box {
        top: auto;
        left: 1rem;
        right: 1rem;
        bottom: 1.5rem;
        width: auto;
        max-height: 38vh;
    }
}

#section-wave .section-content {
    height: auto;
    min-height: calc(100vh - var(--nav-h));
}

#home-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
#home-stage canvas { display: block; }

#home-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(5, 6, 13, 0.85) 0%, rgba(5, 6, 13, 0.35) 40%, rgba(5, 6, 13, 0) 62%),
        linear-gradient(0deg, rgba(5, 6, 13, 0.7) 0%, rgba(5, 6, 13, 0) 38%);
}

#home-info {
    position: absolute;
    left: clamp(1.5rem, 5vw, 4rem);
    bottom: clamp(2rem, 8vh, 5rem);
    z-index: 3;
    max-width: 560px;
    pointer-events: none;
}

#home-info .home-label {
    font-family: var(--shell-font);
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

#home-info .home-title {
    font-family: 'Jura', sans-serif;
    font-weight: 500;
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    line-height: 1.05;
    color: var(--ink);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(0, 212, 170, 0.35);
}

#home-info .home-sub {
    font-family: 'Georgia', serif;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    line-height: 1.7;
    color: #c8d2e0;
    margin-bottom: 1.5rem;
}

#home-info .home-hint {
    font-family: var(--shell-font);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
#home-info .home-hint::before {
    content: '';
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

#home-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    z-index: 100;
    background: rgba(5, 6, 13, 0.82);
    padding: 30px 50px;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 170, 0.35);
}

#home-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #1f2937;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

#wave-loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0a0a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 16px;
    z-index: 1000;
}

#wave-loading .spinner {
    width: 40px; height: 40px;
    border: 3px solid #333;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

#wave-controls {
    width: 100%;
    background: rgba(10, 12, 20, 0.97);
    padding: 16px 20px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    justify-content: center;
    align-items: flex-start;
    border-top: 1px solid rgba(99, 102, 241, 0.3);
}

.wave-control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

#wave-controls label {
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wave-value-display {
    font-size: 11px;
    color: #6366f1;
    font-weight: bold;
}

#wave-controls input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #333;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 2px;
}

#wave-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
}

#wave-controls button {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: #2a2a3e;
    color: white;
    cursor: pointer;
    font-size: 13px;
    min-width: 44px;
    min-height: 44px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wave-controls button:hover { background: #3a3a5e; }
#wave-controls button:active { transform: scale(0.95); }
#wave-controls button.primary { background: #6366f1; }
#wave-controls button.primary:hover { background: #5558e8; }

.wave-zoom-btns {
    display: flex;
    gap: 8px;
}

.wave-zoom-btns button {
    width: 44px;
    height: 44px;
    font-size: 22px;
    font-weight: bold;
    padding: 0;
}

#wave-info {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(20, 20, 30, 0.88);
    backdrop-filter: blur(8px);
    padding: 16px;
    border-radius: 12px;
    max-width: 300px;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
}

#wave-info h2 {
    font-size: 15px;
    color: #fbbf24;
    margin-bottom: 6px;
}

#wave-info p {
    font-size: 12px;
    color: #ccc;
    line-height: 1.6;
}

#wave-phase-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(20, 20, 30, 0.88);
    backdrop-filter: blur(8px);
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
    text-align: center;
}

#wave-phase-indicator h3 {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.phase-arc {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

#wave-mode-switch {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 200;
    background: rgba(20, 20, 30, 0.9);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.mode-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-btn:hover {
    background: rgba(139, 92, 246, 0.2);
}

.mode-btn.active {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

#wave-stage {
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 400px;
    overflow: hidden;
}

#wave-stage canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.wave-explain {
    max-width: 880px;
    margin: 0 auto;
    padding: 3rem 2rem 3.5rem;
}

.wave-explain .explain-title {
    font-family: 'Jura', sans-serif;
    font-size: 1.5rem;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 1.6rem;
    text-align: center;
}

.wave-explain p {
    font-family: 'Georgia', serif;
    font-size: 1.02rem;
    line-height: 2.05;
    color: #9fb0c8;
    margin-bottom: 1.3rem;
}

.wave-explain .explain-try {
    margin-top: 2.5rem;
    padding: 2rem;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
}

.wave-explain .explain-try h4 {
    font-family: 'Jura', sans-serif;
    font-size: 1.15rem;
    color: #c7d2fe;
    margin-bottom: 1rem;
}

.wave-explain ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.3rem;
}

.wave-explain ul li {
    position: relative;
    padding-left: 1.4rem;
    font-family: 'Georgia', serif;
    font-size: 1rem;
    line-height: 1.9;
    color: #9fb0c8;
    margin-bottom: 0.6rem;
}

.wave-explain ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.wave-explain ul li strong {
    color: var(--accent);
}

#wave-info {
    padding: 10px 16px 6px;
}
#wave-info h2 { font-size: 1rem; margin-bottom: 4px; }
#wave-info p { font-size: 0.82rem; color: #8892a8; line-height: 1.5; }

#wave-phase-indicator {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 10;
    background: rgba(8, 10, 20, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    padding: 8px 12px;
    text-align: center;
}
#wave-phase-indicator h3 { font-size: 11px; color: #8892a8; margin-bottom: 4px; }
#wave-phase-indicator .phase-arc { display: flex; justify-content: center; }
#wave-phase-indicator .phase-label { font-size: 15px; font-weight: 700; color: #fbbf24; margin-top: 4px; }

.phase-label {
    font-size: 18px;
    color: #fbbf24;
    font-weight: bold;
    margin-top: 8px;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: #050818;
}

.controls-panel {
    width: 100%;
    background: linear-gradient(180deg, #0f1640 0%, #0a0e27 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    padding: 16px;
    overflow-y: auto;
    max-height: 50vh;
    flex-shrink: 0;
    z-index: 10;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.panel-icon {
    font-size: 28px;
}

.panel-title {
    font-size: 18px;
    font-weight: 600;
    color: #e8ecf4;
}

.panel-subtitle {
    font-size: 11px;
    color: #7b8ba3;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.control-section {
    margin-bottom: 18px;
}

.section-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.section-label span:first-child {
    font-size: 14px;
    font-weight: 500;
    color: #e8ecf4;
}

.section-unit {
    font-size: 11px;
    color: #7b8ba3;
    letter-spacing: 0.1em;
}

.slider-wrapper {
    position: relative;
    margin-bottom: 8px;
}

.slider-value-display {
    position: absolute;
    right: 0;
    top: -28px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #f0abfc;
    font-size: 14px;
    background: rgba(139, 92, 246, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.phase-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    padding: 12px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 10px;
}

.phase-scale {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    color: #7b8ba3;
}

.element-preview {
    margin-top: 12px;
    padding: 12px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 10px;
}

.element-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.element-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.frequency-info {
    margin-top: 8px;
    font-size: 12px;
    color: #a78bfa;
    text-align: center;
}

.frequency-info strong {
    color: #f0abfc;
    font-family: 'Courier New', monospace;
}

.presets-section {
    margin-bottom: 18px;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.preset-btn {
    padding: 12px 8px;
    background: rgba(139, 92, 246, 0.08);
    color: #e8ecf4;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.preset-btn:hover {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.preset-icon {
    font-size: 20px;
    color: #a78bfa;
}

.preset-name {
    font-size: 13px;
    font-weight: 500;
}

.preset-desc {
    font-size: 10px;
    color: #7b8ba3;
    letter-spacing: 0.1em;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.btn {
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-icon {
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary.running {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.btn-primary.running:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    min-width: 100px;
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.25);
    transform: translateY(-1px);
}

.info-panel {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 14px;
}

.info-header {
    font-size: 12px;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 13px;
    color: #7b8ba3;
}

.info-value {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #f0abfc;
    font-size: 14px;
}

.status-value.running {
    color: #6ee7b7;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.app-container input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #1e2a5a;
    outline: none;
    cursor: pointer;
}

.app-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    border: 2px solid #c4b5fd;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
    transition: all 0.2s;
}

.app-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.7);
}

.canvas-container {
    flex: 1;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.canvas-header {
    padding: 16px 20px;
    background: rgba(10, 14, 30, 0.8);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    flex-shrink: 0;
}

.header-title {
    font-size: 16px;
    font-weight: 600;
    color: #e8ecf4;
    margin-bottom: 4px;
}

.header-subtitle {
    font-size: 12px;
    color: #7b8ba3;
}

.canvas-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#mainCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

.legend-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 16px;
    background: rgba(10, 14, 30, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    padding: 10px 16px;
    backdrop-filter: blur(8px);
    z-index: 5;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #a78bfa;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-wave {
    width: 20px;
    height: 8px;
    border-bottom: 2px dashed #a78bfa;
    border-radius: 0 0 10px 10px;
}

.legend-cone {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid #a78bfa;
}

.formula-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 5;
}

.formula-box {
    background: rgba(10, 14, 30, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 10px 16px;
    backdrop-filter: blur(8px);
}

.formula-label {
    font-size: 11px;
    color: #7b8ba3;
    margin-right: 10px;
}

.formula-box code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #f0abfc;
    background: rgba(139, 92, 246, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.canvas-footer {
    padding: 12px 20px;
    background: rgba(10, 14, 30, 0.8);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.footer-info {
    font-size: 12px;
    color: #7b8ba3;
}

.footer-stats {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
    color: #f0abfc;
    background: rgba(139, 92, 246, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
}

.state-indicator.idle {
    background: rgba(107, 114, 128, 0.7);
    color: #d1d5db;
}

.state-indicator.running {
    background: rgba(245, 158, 11, 0.8);
    color: #fff;
}

.formula-bar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 14, 39, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 12px;
    color: #c4b5fd;
    z-index: 5;
    pointer-events: none;
    white-space: nowrap;
    text-align: center;
}

.formula-bar code {
    font-family: 'Courier New', monospace;
    color: #f0abfc;
}

@media (min-width: 768px) {
    .app-container {
        flex-direction: row;
    }
    .controls-panel {
        width: 300px;
        max-height: 100vh;
        border-bottom: none;
        border-right: 1px solid rgba(139, 92, 246, 0.3);
        padding: 16px;
        overflow-y: auto;
    }
    .canvas-container {
        min-height: 100vh;
    }
}

.principle-container {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 170, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(240, 192, 64, 0.02) 0%, transparent 50%),
        #0a0e1a;
}

.principle-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.principle-hero .hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=radar%20technology%20digital%20array%20radar%20dark%20blue%20technology%20background%20glowing%20elements%20sci-fi&image_size=landscape_16_9') center center / cover no-repeat;
    z-index: 0;
    opacity: 0.15;
    filter: brightness(0.6);
}

.principle-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(10, 14, 26, 0.55) 0%,
            rgba(10, 14, 26, 0.75) 40%,
            rgba(10, 14, 26, 0.92) 75%,
            #0a0e1a 100%
        );
    z-index: 1;
}

.principle-hero .hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.15) 0%, rgba(240, 192, 64, 0.06) 40%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: pulseGlow 4s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.principle-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.principle-hero .hero-label {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #00d4aa;
    margin-bottom: 1.5rem;
}

.principle-hero .hero-title {
    font-family: 'Jura', sans-serif;
    font-weight: 300;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 1.15;
    color: #e8ecf4;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.principle-hero .hero-title-accent {
    display: block;
    font-weight: 500;
    background: linear-gradient(135deg, #00d4aa, #f0c040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.principle-hero .hero-subtitle {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    color: #7b8ba3;
    margin-bottom: 2.5rem;
}

.principle-hero .hero-meta {
    font-family: monospace;
    font-size: 0.75rem;
    color: #7b8ba3;
    letter-spacing: 0.15em;
    padding-top: 1.5rem;
    position: relative;
}

.principle-hero .hero-meta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7b8ba3, transparent);
}

.principle-hero .hero-meta span {
    color: #00d4aa;
}

.principle-hero .hero-quote {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #c8cfe0;
    line-height: 1.7;
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 0 1.5rem;
}

.principle-hero .hero-quote::before {
    content: '\201C';
    font-size: 3rem;
    color: #00d4aa;
    opacity: 0.2;
    line-height: 1;
}

.principle-hero .hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.principle-hero .hero-scroll-indicator span {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7b8ba3;
}

.principle-hero .hero-scroll-indicator svg {
    width: 24px;
    height: 24px;
    stroke: #00d4aa;
    stroke-width: 2;
    fill: none;
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

.principle-intro {
    max-width: 740px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
}

.principle-intro::before,
.principle-intro::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 1px;
    height: 60px;
    transform: translateY(-50%);
    background: linear-gradient(180deg, transparent, #00d4aa, transparent);
    opacity: 0.3;
}

.principle-intro::before { left: 0; }
.principle-intro::after { right: 0; }

.principle-intro .intro-label {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #00d4aa;
    margin-bottom: 1.5rem;
}

.principle-intro .intro-text {
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    line-height: 1.9;
    color: #e8ecf4;
}

.principle-intro .intro-text::first-letter {
    float: left;
    font-family: 'Jura', sans-serif;
    font-weight: 500;
    font-size: 3.2em;
    line-height: 1;
    padding-right: 0.1em;
    padding-top: 0.05em;
    color: #00d4aa;
    text-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

.principle-intro .intro-text em {
    color: #00d4aa;
    font-style: italic;
}

.principle-intro .intro-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00d4aa, transparent);
    margin: 3rem auto 0;
}

.principle-chapters {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
}

.principle-chapters .chapters-header {
    text-align: center;
    margin-bottom: 4rem;
}

.principle-chapters .chapters-title {
    font-family: 'Jura', sans-serif;
    font-weight: 300;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: #e8ecf4;
    letter-spacing: 0.08em;
    display: inline-block;
    position: relative;
    padding-bottom: 0.8rem;
}

.principle-chapters .chapters-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, #00d4aa, #f0c040);
    border-radius: 1px;
}

.principle-chapters .chapters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    perspective: 1000px;
}

@media (min-width: 768px) {
    .principle-chapters .chapters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

.principle-chapters .chapter-card {
    position: relative;
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 2.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
}

.principle-chapters .chapter-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.principle-chapters .chapter-card:hover {
    border-color: #00d4aa;
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.08), 0 20px 60px rgba(0, 0, 0, 0.3);
}

.principle-chapters .chapter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4aa, #f0c040);
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.principle-chapters .chapter-card:hover::before {
    opacity: 1;
}

.principle-chapters .chapter-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 0% 100%, rgba(0, 212, 170, 0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.principle-chapters .chapter-card:hover::after {
    opacity: 1;
}

.principle-chapters .chapter-card .tilt-shine {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 40%, rgba(0,212,170,0.08) 50%, rgba(255,255,255,0) 60%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.principle-chapters .chapter-card:hover .tilt-shine {
    opacity: 1;
}

.principle-chapters .chapter-number {
    font-family: 'Jura', sans-serif;
    font-weight: 500;
    font-size: 3.5rem;
    line-height: 1;
    color: #00d4aa;
    margin-bottom: 1rem;
    opacity: 0.85;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(0, 212, 170, 0.25), 0 0 40px rgba(0, 212, 170, 0.1);
    position: relative;
    z-index: 1;
}

.principle-chapters .chapter-card:nth-child(even) .chapter-number {
    color: #f0c040;
    text-shadow: 0 0 20px rgba(240, 192, 64, 0.25), 0 0 40px rgba(240, 192, 64, 0.1);
}

.principle-chapters .chapter-label {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #7b8ba3;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.principle-chapters .chapter-title {
    font-family: 'Jura', sans-serif;
    font-weight: 500;
    font-size: 1.35rem;
    line-height: 1.35;
    color: #e8ecf4;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    position: relative;
    z-index: 1;
}

.principle-chapters .chapter-desc {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    line-height: 1.9;
    letter-spacing: 0.02em;
    color: #7b8ba3;
    flex-grow: 1;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.principle-chapters .chapter-link {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #00d4aa;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 1;
    padding-bottom: 2px;
}

.principle-chapters .chapter-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #00d4aa, #f0c040);
    transition: width 0.4s ease;
}

.principle-chapters .chapter-link:hover::after {
    width: 100%;
}

.principle-chapters .chapter-link:hover {
    gap: 0.85rem;
    color: #f0c040;
}

.principle-chapters .chapter-link .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.principle-chapters .chapter-link:hover .arrow {
    transform: translateX(3px);
}

.chapter-detail-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.chapter-detail-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
}

.chapter-detail-modal .modal-content {
    position: relative;
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 3rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.chapter-detail-modal .modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #7b8ba3;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chapter-detail-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #e8ecf4;
}

.chapter-detail-modal .modal-body {
    color: #c8cfe0;
    line-height: 1.9;
}

.chapter-detail-modal .modal-body .detail-section {
    margin-top: 1.5rem;
}

.chapter-detail-modal .modal-body .detail-section p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.chapter-detail-modal .modal-body .detail-section strong {
    color: #00d4aa;
}

.chapter-detail-modal .modal-body .detail-section em {
    color: #f0c040;
}

.chapter-detail-modal .modal-body .detail-section h4 {
    font-family: 'Jura', sans-serif;
    font-size: 1.2rem;
    color: #e8ecf4;
    margin: 1.5rem 0 1rem;
}

.chapter-detail-modal .modal-body .detail-section h5 {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.95rem;
    color: #00d4aa;
    margin: 1.2rem 0 0.8rem;
    letter-spacing: 0.1em;
}

.chapter-detail-modal .detail-conclusion {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(240, 192, 64, 0.05));
    border-left: 3px solid #00d4aa;
    border-radius: 0 8px 8px 0;
    padding: 1.2rem 1.5rem;
    margin-top: 1.5rem;
}

.chapter-detail-modal .detail-conclusion p {
    font-size: 1rem;
    color: #c8cfe0;
    margin: 0;
}

.chapter-detail-modal .detail-conclusion strong {
    color: #00d4aa;
}

.chapter-detail-modal .summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.chapter-detail-modal .summary-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.chapter-detail-modal .summary-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.chapter-detail-modal .summary-card h4 {
    font-family: 'Jura', sans-serif;
    font-size: 1rem;
    color: #e8ecf4;
    margin-bottom: 0.5rem;
}

.chapter-detail-modal .summary-card p {
    font-size: 0.85rem;
    color: #7b8ba3;
    margin: 0;
    line-height: 1.6;
}

.chapter-detail-modal .final-quote {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(240, 192, 64, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 170, 0.2);
    margin-top: 2rem;
}

.chapter-detail-modal .final-quote p {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #00d4aa;
    margin: 0;
}

#section-history {
    height: auto;
    min-height: 100%;
}

#section-history .section-content {
    height: auto;
    min-height: 100%;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
}

.advantage-container {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(0, 212, 170, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(240, 192, 64, 0.03) 0%, transparent 50%),
        #0a0e1a;
}

.advantage-hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.advantage-hero .hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=radar%20technology%20evolution%20timeline%20dark%20blue%20technology%20background%20futuristic&image_size=landscape_16_9') center center / cover no-repeat;
    z-index: 0;
    opacity: 0.12;
    filter: brightness(0.5);
}

.advantage-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(10, 14, 26, 0.6) 0%,
            rgba(10, 14, 26, 0.85) 60%,
            #0a0e1a 100%
        );
    z-index: 1;
}

.advantage-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.advantage-hero .hero-label {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #00d4aa;
    margin-bottom: 1.5rem;
}

.advantage-hero .hero-title {
    font-family: 'Jura', sans-serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.15;
    color: #e8ecf4;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.advantage-hero .hero-title-accent {
    display: block;
    font-weight: 500;
    background: linear-gradient(135deg, #00d4aa, #f0c040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.advantage-hero .hero-subtitle {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #7b8ba3;
    margin-bottom: 1.5rem;
}

.advantage-hero .hero-desc {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    line-height: 2;
    color: #7b8ba3;
    max-width: 600px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.timeline-line {
    position: absolute;
    left: 8rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(0, 212, 170, 0.4), rgba(0, 212, 170, 0.1));
}

.timeline-node {
    position: relative;
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-node.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-node.right .timeline-card {
    margin-left: 12rem;
}

.timeline-dot {
    position: absolute;
    left: 8rem;
    top: 2rem;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0a0e1a;
    border: 4px solid #00d4aa;
    z-index: 2;
}

.timeline-dot .dot-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00d4aa;
}

.timeline-card {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 3rem;
    transition: all 0.4s ease;
}

.timeline-card:hover {
    border-color: #00d4aa;
    box-shadow: 0 0 40px rgba(0, 212, 170, 0.08), 0 20px 50px rgba(0, 0, 0, 0.35);
}

.timeline-card .card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.timeline-card .card-year {
    font-family: 'Jura', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #00d4aa;
    letter-spacing: -0.02em;
}

.timeline-card .card-period {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7b8ba3;
    padding: 0.4rem 1rem;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 20px;
}

.timeline-card .card-title {
    font-family: 'Jura', sans-serif;
    font-weight: 500;
    font-size: 2rem;
    color: #e8ecf4;
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}

.timeline-card .card-subtitle {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7b8ba3;
    margin-bottom: 2rem;
}

.timeline-card .card-image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0a0e1a;
    border: 1px dashed #1e293b;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.timeline-card:hover .card-image-placeholder {
    border-color: #00d4aa;
}

.timeline-card .card-image-placeholder .placeholder-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.timeline-card .card-image-placeholder .placeholder-text {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.9rem;
    color: #7b8ba3;
    letter-spacing: 0.1em;
}

.timeline-card .card-description {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    line-height: 2;
    color: #7b8ba3;
}

.timeline-card .card-keywords {
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 212, 170, 0.05);
    border-left: 3px solid #00d4aa;
    border-radius: 0 8px 8px 0;
}

.timeline-card .card-keywords .keywords-label {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #00d4aa;
}

.timeline-card .card-keywords .keywords-text {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    color: #e8ecf4;
}

.timeline-card .card-detail-section {
    margin-bottom: 2rem;
}

.timeline-card .card-detail-section:last-child {
    margin-bottom: 0;
}

.timeline-card .card-detail-section h4 {
    font-family: 'Jura', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #00d4aa;
    margin-bottom: 1rem;
}

.timeline-card .card-detail-section p {
    font-family: 'Georgia', serif;
    font-size: 1.15rem;
    line-height: 2.1;
    color: #7b8ba3;
    margin: 0;
}

.advantage-summary {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.advantage-summary h2 {
    font-family: 'Jura', sans-serif;
    font-size: 1.8rem;
    color: #e8ecf4;
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
}

.advantage-summary .summary-text {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    line-height: 2;
    color: #7b8ba3;
    margin-bottom: 2rem;
    text-align: left;
}

.advantage-summary .summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .advantage-summary .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .advantage-summary .summary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.advantage-summary .summary-card {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
}

.advantage-summary .summary-card:hover {
    border-color: #00d4aa;
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.06);
}

.advantage-summary .summary-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.advantage-summary .summary-card h4 {
    font-family: 'Jura', sans-serif;
    font-size: 1rem;
    color: #e8ecf4;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.advantage-summary .summary-content-placeholder {
    width: 100%;
    height: 120px;
    background: #0a0e1a;
    border: 1px dashed #1e293b;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.advantage-summary .summary-card:hover .summary-content-placeholder {
    border-color: #00d4aa;
}

.advantage-footer {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, #0a0e1a, #0f1420);
    border-top: 1px solid #1e293b;
}

.advantage-footer .footer-content h2 {
    font-family: 'Jura', sans-serif;
    font-size: 2rem;
    color: #e8ecf4;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.advantage-footer .footer-content p {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    color: #7b8ba3;
    margin: 0;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 1.5rem;
    }
    
    .timeline-node.right .timeline-card {
        margin-left: 3.5rem;
        margin-right: 0;
    }
    
    .timeline-dot {
        left: 1.5rem;
        width: 24px;
        height: 24px;
        border-width: 3px;
    }
    
    .timeline-dot .dot-inner {
        width: 10px;
        height: 10px;
    }
    
    .timeline-card {
        padding: 1.5rem;
    }
    
    .timeline-card .card-title {
        font-size: 1.5rem;
    }
    
    .timeline-card .card-year {
        font-size: 1.5rem;
    }
    
    .timeline-card .card-detail-section p {
        font-size: 1rem;
    }
    
    .advantage-summary {
        padding: 2rem 1.5rem;
    }
    
    .advantage-summary .summary-text {
        font-size: 0.95rem;
    }
    
    .advantage-hero .hero-title {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
}

#section-application {
    height: auto;
    min-height: 100%;
}

#section-application .section-content {
    height: auto;
    min-height: 100%;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
}

.application-container {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(0, 212, 170, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(240, 192, 64, 0.03) 0%, transparent 50%),
        #0a0e1a;
}

.application-hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.application-hero .hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=military%20radar%20applications%20air%20sea%20space%20dark%20blue%20technology%20background%20futuristic&image_size=landscape_16_9') center center / cover no-repeat;
    z-index: 0;
    opacity: 0.12;
    filter: brightness(0.5);
}

.application-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(10, 14, 26, 0.6) 0%,
            rgba(10, 14, 26, 0.85) 60%,
            #0a0e1a 100%
        );
    z-index: 1;
}

.application-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.application-hero .hero-label {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #00d4aa;
    margin-bottom: 1.5rem;
}

.application-hero .hero-title {
    font-family: 'Jura', sans-serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.15;
    color: #e8ecf4;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.application-hero .hero-title-accent {
    display: block;
    font-weight: 500;
    background: linear-gradient(135deg, #00d4aa, #f0c040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.application-hero .hero-subtitle {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #7b8ba3;
    margin-bottom: 1.5rem;
}

.application-intro {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.application-intro p {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    line-height: 2;
    color: #7b8ba3;
    margin-bottom: 1.5rem;
}

.application-sections {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section-card {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2.5rem;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
}

.section-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-card:hover {
    border-color: #00d4aa;
    box-shadow: 0 0 40px rgba(0, 212, 170, 0.06), 0 20px 50px rgba(0, 0, 0, 0.3);
}

.section-card .section-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-card .section-header h2 {
    font-family: 'Jura', sans-serif;
    font-weight: 500;
    font-size: 1.6rem;
    color: #e8ecf4;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

.section-card .section-body p {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    line-height: 2;
    color: #7b8ba3;
    margin-bottom: 1.2rem;
}

.section-card .section-body p:last-child {
    margin-bottom: 0;
}

.application-summary {
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(0, 212, 170, 0.03));
}

.application-summary h2 {
    font-family: 'Jura', sans-serif;
    font-size: 1.8rem;
    color: #e8ecf4;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.application-summary p {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    line-height: 2;
    color: #7b8ba3;
    margin-bottom: 1rem;
}

.application-summary p:last-child {
    margin-bottom: 0;
}

.application-summary p strong {
    color: #00d4aa;
    font-weight: 600;
}

.application-footer {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, #0a0e1a, #0f1420);
    border-top: 1px solid #1e293b;
}

.application-footer .footer-content h2 {
    font-family: 'Jura', sans-serif;
    font-size: 2rem;
    color: #e8ecf4;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.application-footer .footer-content p {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    color: #7b8ba3;
    margin: 0;
}

@media (max-width: 768px) {
    .section-card {
        padding: 2rem 1.5rem;
    }
    
    .section-card .section-header h2 {
        font-size: 1.3rem;
    }
    
    .application-intro {
        padding: 2rem 1.5rem;
    }
    
    .application-summary {
        padding: 3rem 1.5rem;
    }
    
    .application-hero .hero-title {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
}

@media (max-width: 768px) {
    .principle-chapters .chapters-grid {
        grid-template-columns: 1fr;
    }
    
    .chapter-detail-modal .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .chapter-detail-modal .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .principle-hero .hero-title {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
}

/* =========================================================
   RadarKiosk · 科技感外壳 (Shell)
   统一导航 / 全局背景 / HUD 取景框 / 切换过渡
   —— 仅覆盖原始 shell 默认值，不改动嵌入式内容页样式
   ========================================================= */

:root {
    --nav-h: 64px;
    --accent: #00d4aa;
    --accent-2: #2dd4bf;
    --accent-gold: #f0c040;
    --ink: #e8ecf4;
    --muted: #7b8ba3;
    --shell-font: 'Rajdhani', 'Microsoft YaHei', sans-serif;
}

/* ---------- 全局动态背景 ---------- */
#bg-fx {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% -10%, #0c1530 0%, #070b16 55%, #04060d 100%);
}

#bg-fx .grid {
    position: absolute;
    inset: -60%;
    background-image:
        linear-gradient(rgba(0, 212, 170, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 170, 0.07) 1px, transparent 1px);
    background-size: 46px 46px;
    animation: gridDrift 18s linear infinite;
    opacity: 0.6;
    will-change: transform;
}

@keyframes gridDrift {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(0, 46px, 0); }
}

#bg-fx .sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130vmax;
    height: 130vmax;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg,
        rgba(0, 212, 170, 0.10),
        rgba(0, 212, 170, 0.02) 18%,
        transparent 30%);
    border-radius: 50%;
    animation: radarSweep 9s linear infinite;
    will-change: transform;
}

@keyframes radarSweep {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

#bg-fx .scan {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.025) 0px,
        rgba(255, 255, 255, 0.025) 1px,
        transparent 2px,
        transparent 4px);
    pointer-events: none;
}

#bg-fx::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 38%, rgba(4, 6, 13, 0.82) 100%);
}

/* ---------- 顶部状态栏 / 导航 ---------- */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(8, 12, 24, 0.98), rgba(8, 12, 24, 0.88));
    border-bottom: 1px solid rgba(0, 212, 170, 0.22);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 212, 170, 0.06);
}

.topbar::after {
    content: '';
    position: absolute;
    left: 0; bottom: -1px;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.85), transparent);
    background-size: 220% 100%;
    animation: navScan 5s linear infinite;
}

@keyframes navScan {
    0%   { background-position: 220% 0; }
    100% { background-position: -220% 0; }
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand .logo {
    position: relative;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    box-shadow: 0 0 12px rgba(0, 212, 170, 0.45), inset 0 0 8px rgba(0, 212, 170, 0.25);
    overflow: hidden;
}
.brand .logo::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 170, 0.5);
}
.brand .logo .logo-sweep {
    position: absolute;
    top: 50%; left: 50%;
    width: 200%; height: 200%;
    transform-origin: 0 0;
    background: conic-gradient(from 0deg, rgba(0, 212, 170, 0.55), transparent 25%);
    animation: radarSweep 3.2s linear infinite;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 17px;
    letter-spacing: 2px;
    color: var(--ink);
}
.brand-name b { color: var(--accent); text-shadow: 0 0 12px rgba(0, 212, 170, 0.6); }
.brand-sub {
    font-family: var(--shell-font);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--muted);
    text-transform: uppercase;
}

#nav {
    position: static;
    width: auto;
    background: transparent;
    padding: 0;
    z-index: auto;
}

#nav ul { gap: 4px; }

#nav ul li a {
    position: relative;
    color: #9fb3c8;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: var(--shell-font);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    transition: color .3s ease, background .3s ease, box-shadow .3s ease;
}

#nav ul li a:hover {
    color: #fff;
    background: rgba(0, 212, 170, 0.08);
}

#nav ul li a.active {
    color: #04121a;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 18px rgba(0, 212, 170, 0.5);
}

.topbar-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--shell-font);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--muted);
    text-transform: uppercase;
}
.topbar-status .status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.35;} }
.topbar-status .status-sep { color: rgba(123,139,163,0.4); }
.topbar-status .status-label { color: var(--muted); }
.topbar-status .status-module {
    color: var(--accent);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 212, 170, 0.4);
}
.topbar-status .status-clock {
    color: var(--ink);
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    letter-spacing: 1px;
}

/* ---------- 固定 HUD 取景框 ---------- */
.hud {
    position: fixed;
    inset: 0;
    z-index: 900;
    pointer-events: none;
}
.hud .corner {
    position: absolute;
    width: 26px; height: 26px;
    border: 2px solid rgba(0, 212, 170, 0.55);
}
.hud .corner.tl { top: calc(var(--nav-h) + 12px); left: 12px; border-right: none; border-bottom: none; }
.hud .corner.tr { top: calc(var(--nav-h) + 12px); right: 12px; border-left: none; border-bottom: none; }
.hud .corner.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.hud .corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.hud .hud-side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    font-family: var(--shell-font);
    font-size: 11px;
    letter-spacing: 6px;
    color: rgba(0, 212, 170, 0.5);
    text-transform: uppercase;
}
.hud .hud-side-l { left: 16px; }
.hud .hud-side-r { right: 16px; }

/* ---------- 启动动画 ---------- */
#boot {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background: radial-gradient(ellipse at center, #0a1020 0%, #05070e 100%);
    transition: opacity .8s ease;
}
#boot.hidden { opacity: 0; pointer-events: none; }

#boot .boot-radar {
    position: relative;
    width: 110px; height: 110px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 170, 0.5);
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.25), inset 0 0 24px rgba(0, 212, 170, 0.15);
    overflow: hidden;
}
#boot .boot-radar::before {
    content: '';
    position: absolute;
    inset: 26px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 170, 0.35);
}
#boot .boot-radar::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 200%; height: 200%;
    transform-origin: 0 0;
    background: conic-gradient(from 0deg, rgba(0, 212, 170, 0.6), transparent 25%);
    animation: radarSweep 1.4s linear infinite;
}
#boot .boot-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--accent);
    text-transform: uppercase;
}
#boot .boot-bar {
    width: 220px;
    height: 3px;
    border-radius: 3px;
    background: rgba(0, 212, 170, 0.15);
    overflow: hidden;
}
#boot .boot-bar i {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--accent));
    animation: bootLoad 1.3s ease-in-out infinite;
}
@keyframes bootLoad {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

/* ---------- 布局修正（覆盖原始 shell 偏移） ---------- */
main {
    top: var(--nav-h);
    min-height: calc(100vh - var(--nav-h));
}
section { padding: 0; }
#canvas-container { display: none; }

/* ---------- 内容页背景半透明化（露出全局网格，增强统一感） ---------- */
.principle-container,
.advantage-container,
.application-container {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(0, 212, 170, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(240, 192, 64, 0.035) 0%, transparent 50%),
        rgba(10, 14, 26, 0.9);
}

/* ---------- 首页 / 波干涉 的科技取景框 ---------- */
.section-content {
    background: rgba(7, 11, 22, 0.72);
    border: 1px solid rgba(0, 212, 170, 0.28);
    border-radius: 14px;
    box-shadow:
        inset 0 0 40px rgba(0, 212, 170, 0.05),
        0 0 30px rgba(0, 0, 0, 0.4);
}

/* ---------- 模块切换动画 ---------- */
section.active {
    animation: sectionIn .5s cubic-bezier(.2, .7, .2, 1);
}
@keyframes sectionIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- 加载转圈配色统一 ---------- */
#home-loading { border-color: rgba(0, 212, 170, 0.35); }
#home-loading .spinner,
#wave-loading .spinner {
    border-top-color: var(--accent);
}

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
    .brand-sub { display: none; }
    .topbar-status .status-text,
    .topbar-status .status-sep,
    .topbar-status .status-label { display: none; }
    #nav ul li a { padding: 7px 11px; font-size: 13px; }
    .hud .hud-side { display: none; }
}

/* =========================================================
   雷达技术的历史 · 横向时间轴
   ========================================================= */
html { scroll-behavior: smooth; }

.htimeline-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 0.5rem;
}

.htimeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 34px;
}

.htimeline-track {
    position: absolute;
    top: 51px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 212, 170, 0.15), rgba(0, 212, 170, 0.65), rgba(0, 212, 170, 0.15));
    box-shadow: 0 0 12px rgba(0, 212, 170, 0.3);
}

.htimeline-node {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-family: var(--shell-font);
    padding: 0 4px;
    transition: color .3s ease;
}

.htimeline-dot {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #0a0e1a;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 700; font-size: 14px;
    box-shadow: 0 0 14px rgba(0, 212, 170, 0.35);
    transition: transform .3s ease, box-shadow .3s ease;
    z-index: 1;
}

.htimeline-node:hover .htimeline-dot {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 0 22px rgba(0, 212, 170, 0.6);
}

.htimeline-year { font-size: 12px; letter-spacing: 1px; }
.htimeline-title { font-size: 13px; font-weight: 600; color: var(--ink); }

/* 第四阶段：红色五角星 */
.htimeline-node.star .htimeline-dot {
    border-color: #ef4444;
    color: #ef4444;
    background: #1a0a0a;
    font-size: 18px;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.6);
}
.htimeline-node.star .htimeline-title { color: #f87171; }
.htimeline-node.star:hover .htimeline-dot { box-shadow: 0 0 26px rgba(239, 68, 68, 0.85); }

/* 第五阶段：未来 */
.htimeline-node.future .htimeline-dot {
    border-style: dashed;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 18px rgba(240, 192, 64, 0.5);
    animation: futurePulse 2s ease-in-out infinite;
}
.htimeline-node.future .htimeline-title { color: var(--accent-gold); }

@keyframes futurePulse {
    0%, 100% { box-shadow: 0 0 14px rgba(240, 192, 64, 0.4); }
    50%      { box-shadow: 0 0 26px rgba(240, 192, 64, 0.8); }
}

.htimeline-hint {
    text-align: center;
    margin-top: 1.5rem;
    font-family: var(--shell-font);
    font-size: 13px;
    letter-spacing: 1px;
    color: rgba(0, 212, 170, 0.6);
}

.htimeline-note {
    max-width: 760px;
    margin: 0.75rem auto 0;
    text-align: center;
    font-family: var(--shell-font);
    font-size: 12.5px;
    line-height: 1.7;
    letter-spacing: 0.5px;
    color: var(--muted);
}
.htimeline-note .note-star {
    color: #ef4444;
    font-size: 14px;
    margin-right: 4px;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.advantage-hero { min-height: 44vh; }

.history-details {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 2rem 3rem;
}

.history-detail {
    opacity: 0;
    transform: translateY(40px);
    margin-bottom: 2.5rem;
    transition: opacity .6s ease, transform .6s ease;
}
.history-detail.visible { opacity: 1; transform: none; }

@media (max-width: 768px) {
    .htimeline { flex-wrap: wrap; padding-top: 20px; }
    .htimeline-track { display: none; }
    .htimeline-node { flex: 0 0 33.33%; margin-bottom: 14px; }
    .htimeline-title { font-size: 12px; }
}

/* Coze Chat SDK 悬浮窗高度限制 */
.coco-chat__wrap {
    max-height: 300px !important;
    height: 300px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

/* Coze Chat SDK 层级：确保聊天窗口在顶部导航栏之上 */
.coze-chat-sdk {
    z-index: 1001 !important;
}

@media (max-width: 480px) {
    .coco-chat__wrap {
        max-height: 100vh !important;
        height: 100vh !important;
        border-radius: 0 !important;
    }
}


