/* ========================================================================== */
/*  CELESTIAL ASTROLABE // "观 枢" 天象星盘 · 浑天古仪与深空奇点微动效          */
/*  以浑天仪同心星轨、玄金天象律动、星云旋涡呼吸重塑，彻底融于周天全科星象谱   */
/* ========================================================================== */

:root {
    --guanshu-size: 64px;
    --guanshu-gold: #f59e0b;
    --guanshu-gold-light: #fde68a;
    --guanshu-cyan: #38bdf8;
    --guanshu-glow-gold: rgba(245, 158, 11, 0.38);
    --guanshu-glow-cyan: rgba(56, 189, 248, 0.32);
    --guanshu-curve: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. 外层总容器：平滑接管全屏底部中央与左下角自适应位移 */
.gravitational-voice-container {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    user-select: none;
    transition: left 0.5s var(--guanshu-curve),
                bottom 0.5s var(--guanshu-curve),
                transform 0.5s var(--guanshu-curve);
}

/* 侧边大面板展开时，平滑游移至左下角（悬浮于光纤导轨上方） */
body.side-panel-active .gravitational-voice-container,
body:has(#spectral-stream.is-active) .gravitational-voice-container,
.gravitational-voice-container.docked-bottom-left {
    left: 34px !important;
    bottom: 84px !important;
    transform: translateX(0) !important;
}

/* 2. 悬浮全息古风字签提示 (Tooltip) */
.gravitational-voice-tooltip {
    position: absolute;
    bottom: calc(100% + 16px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(5, 10, 20, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(245, 158, 11, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fef3c7;
    font-size: 12px;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0.08em;
    white-space: nowrap;
    width: max-content;
    max-width: min(85vw, 440px);
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s var(--guanshu-curve);
    pointer-events: none;
}

.gravitational-voice-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 侧边大面板展开时，字幕靠左自然展开，防止被左边界裁切 */
body.side-panel-active .gravitational-voice-tooltip,
body.detail-mode-active .gravitational-voice-tooltip,
body:has(#spectral-stream.is-active) .gravitational-voice-tooltip,
.gravitational-voice-container.docked-bottom-left .gravitational-voice-tooltip {
    left: 0 !important;
    right: auto !important;
    transform-origin: bottom left !important;
}

/* 2.1 全息字幕自适应换行与优雅排版 (完全替代配音发声) */
.gravitational-voice-tooltip.is-subtitle {
    display: block !important;
    white-space: normal !important;
    width: max-content !important;
    max-width: min(85vw, 560px) !important;
    padding: 12px 20px !important;
    border-radius: 16px !important;
    line-height: 1.68 !important;
    font-size: 13.5px !important;
    text-align: left !important;
    letter-spacing: 0.04em !important;
    color: #fff8e7 !important;
    border-color: rgba(245, 158, 11, 0.6) !important;
    background: rgba(4, 9, 18, 0.94) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 28px rgba(245, 158, 11, 0.25) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    pointer-events: auto !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.gravitational-voice-tooltip .shortcut-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--guanshu-gold-light);
    font-size: 10px;
    font-family: monospace;
    font-weight: 600;
}

/* 3. 「观枢」星盘本体容器 */
.gravitational-voice-sphere {
    position: relative;
    width: var(--guanshu-size);
    height: var(--guanshu-size);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    transition: transform 0.35s var(--guanshu-curve);
}

.gravitational-voice-sphere:hover {
    transform: scale(1.12);
}

.gravitational-voice-sphere:active {
    transform: scale(0.94);
}

/* 4. 浑天星轨：三层同心对向旋转天象环 */
.guanshu-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* 4.1 外层天经地纬刻度环 (Outer Meridian Ring) */
.guanshu-ring--outer {
    inset: -10px;
    border: 1px dashed rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.12);
    animation: celestialSpinClockwise 28s linear infinite;
}

.guanshu-ring--outer::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fde68a;
    box-shadow: 0 0 8px #f59e0b, 0 0 14px #ffffff;
    transform: translateX(-50%);
}

/* 4.2 中层黄道星度环 (Middle Ecliptic Ring) */
.guanshu-ring--middle {
    inset: -4px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation: celestialSpinCounter 16s linear infinite;
}

/* 4.3 内层赤道浑天环 (Inner Equator Ring) */
.guanshu-ring--inner {
    inset: 1px;
    border: 1px dotted rgba(245, 158, 11, 0.5);
    animation: celestialSpinClockwise 10s linear infinite;
}

@keyframes celestialSpinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes celestialSpinCounter {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* 5. 星云旋涡与深空奇点背景 (Nebular Vortex Core) */
.guanshu-nebula-vortex {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, rgba(56, 189, 248, 0.08) 45%, transparent 72%);
    filter: blur(6px);
    pointer-events: none;
    animation: vortexBreathe 6s ease-in-out infinite alternate;
}

@keyframes vortexBreathe {
    0% { transform: scale(0.92); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 0.95; }
}

/* 6. 「观枢」核心玉盘印纽 (Core Astronomic Nexus) */
.sphere-core {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 34%, #1e1b18 0%, #0c111d 52%, #04070e 100%);
    border: 1px solid rgba(245, 158, 11, 0.6);
    box-shadow: 
        0 10px 28px rgba(0, 0, 0, 0.8),
        0 0 24px var(--guanshu-glow-gold),
        inset 0 1px 2px rgba(254, 243, 199, 0.4),
        inset 0 -4px 10px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
    transition: all 0.4s var(--guanshu-curve);
}

/* 7. 浑天古篆字「观 枢」铭文 */
.guanshu-seal-text {
    font-family: "STKaiti", "KaiTi", "Songti SC", "SimSun", serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.18em;
    padding-left: 0.18em; /* 视觉居中补尝 */
    color: #fde68a;
    text-shadow: 
        0 0 8px rgba(245, 158, 11, 0.85),
        0 0 16px rgba(245, 158, 11, 0.45);
    line-height: 1;
    z-index: 3;
    transition: all 0.3s ease;
}

/* 7.1 铭文下方灵动微光小星火 (Celestial Star Spark) */
.guanshu-star-spark {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    margin-top: 4px;
    background: #38bdf8;
    box-shadow: 0 0 6px #38bdf8, 0 0 12px rgba(56, 189, 248, 0.8);
    animation: sparkPulse 2.4s ease-in-out infinite alternate;
    z-index: 3;
}

@keyframes sparkPulse {
    0% { transform: scale(0.7); opacity: 0.4; }
    100% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px #f59e0b, 0 0 16px #38bdf8; }
}

/* 8. 扩散天象引力涟漪 (Celestial Ripples) */
.sphere-ripple {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--guanshu-gold);
    opacity: 0;
    pointer-events: none;
    transform: scale(1);
    z-index: 1;
}

/* ========================================================================== */
/*  多态微动效 (Celestial State Machine)                                      */
/* ========================================================================== */

/* A. 待机静默态 (IDLE) - 天象恒转，微弱灵息 */
.gravitational-voice-container.state-idle .sphere-core {
    animation: idleAstralBreathe 4.5s ease-in-out infinite;
}

@keyframes idleAstralBreathe {
    0%, 100% {
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8), 0 0 18px var(--guanshu-glow-gold), inset 0 1px 2px rgba(254, 243, 199, 0.3);
    }
    50% {
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8), 0 0 32px rgba(245, 158, 11, 0.6), inset 0 1px 4px rgba(254, 243, 199, 0.6);
    }
}

/* B. 倾听待诏态 (LISTENING) - 浑天仪共振，光环扩散 */
.gravitational-voice-container.state-listening .sphere-core {
    background: radial-gradient(circle at 38% 34%, #2e1a05 0%, #170d02 55%, #050300 100%);
    border-color: rgba(254, 240, 138, 0.9);
    box-shadow: 0 0 38px rgba(245, 158, 11, 0.85), inset 0 1px 4px rgba(255, 255, 255, 0.9);
}

.gravitational-voice-container.state-listening .guanshu-seal-text {
    color: #ffffff;
    text-shadow: 0 0 10px #f59e0b, 0 0 20px #fbbf24, 0 0 30px #ffffff;
    animation: sealListeningPulse 1.2s ease-in-out infinite alternate;
}

@keyframes sealListeningPulse {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

.gravitational-voice-container.state-listening .guanshu-ring--outer {
    border-color: rgba(254, 240, 138, 0.8);
    animation: celestialSpinClockwise 4s linear infinite;
}

.gravitational-voice-container.state-listening .guanshu-ring--middle {
    border-color: rgba(245, 158, 11, 0.9);
    animation: celestialSpinCounter 3s linear infinite;
}

.gravitational-voice-container.state-listening .ripple-1 {
    animation: astralRipple 1.8s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
    border-color: rgba(245, 158, 11, 0.8);
}

.gravitational-voice-container.state-listening .ripple-2 {
    animation: astralRipple 1.8s cubic-bezier(0.1, 0.8, 0.3, 1) infinite 0.6s;
    border-color: rgba(56, 189, 248, 0.65);
}

@keyframes astralRipple {
    0% { opacity: 0.95; transform: scale(1); }
    100% { opacity: 0; transform: scale(2.4); }
}

/* C. 演化推演态 (THINKING) - 奇点坍缩高速旋转 */
.gravitational-voice-container.state-thinking .sphere-core {
    background: radial-gradient(circle at 50% 50%, #2e1065 0%, #17072b 55%, #05010a 100%);
    border-color: rgba(192, 132, 252, 0.85);
    box-shadow: 0 0 34px rgba(192, 132, 252, 0.7);
}

.gravitational-voice-container.state-thinking .guanshu-ring--outer {
    border-color: rgba(192, 132, 252, 0.8);
    animation: celestialSpinClockwise 1.5s linear infinite;
}

.gravitational-voice-container.state-thinking .guanshu-ring--middle {
    animation: celestialSpinCounter 1s linear infinite;
}

/* D. 伴学布道态 (SPEAKING) - 玄金与蔚蓝引力波交织 */
.gravitational-voice-container.state-speaking .sphere-core {
    background: radial-gradient(circle at 38% 34%, #0c2b45 0%, #061624 55%, #02080d 100%);
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 32px rgba(56, 189, 248, 0.75);
}

.gravitational-voice-container.state-speaking .guanshu-seal-text {
    color: #e0f2fe;
    text-shadow: 0 0 8px #38bdf8, 0 0 16px rgba(56, 189, 248, 0.6);
    animation: sealSpeakingWave 1.1s ease-in-out infinite alternate;
}

@keyframes sealSpeakingWave {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.gravitational-voice-container.state-speaking .ripple-1 {
    animation: astralRipple 2.2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
    border-color: rgba(56, 189, 248, 0.7);
}

/* ========================================================================== */
/*  CINEMATIC TOUR HUD // 随堂贾维斯智能巡讲顶部微型紧凑标牌 (图三规范)            */
/* ========================================================================== */
.tour-cinematic-hud {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-16px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    user-select: none;
}

.tour-cinematic-hud.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.tour-hud-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 18px 7px;
    min-width: 180px;
    max-width: 320px;
    background: radial-gradient(ellipse at 50% 0%, rgba(15, 23, 42, 0.94) 0%, rgba(6, 11, 25, 0.97) 100%);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 12px;
    box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.75),
                0 0 20px rgba(56, 189, 248, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
}

.tour-hud-glow {
    position: absolute;
    inset: -1px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.35), rgba(168, 85, 247, 0.3), rgba(56, 189, 248, 0));
    border-radius: 13px;
    z-index: -1;
    filter: blur(6px);
    opacity: 0.65;
    animation: tourGlowBreath 3.5s ease-in-out infinite alternate;
}

@keyframes tourGlowBreath {
    from { opacity: 0.35; filter: blur(4px); }
    to { opacity: 0.75; filter: blur(8px); }
}

.tour-hud-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px;
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 9999px;
    font-size: 10.5px;
    letter-spacing: 0.03em;
    color: #38bdf8;
    margin-bottom: 0px;
}

.tour-hud-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 6px #38bdf8;
    animation: tourDotPulse 1.4s ease-in-out infinite;
}

@keyframes tourDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
}

.tour-hud-type {
    font-weight: 600;
    color: #bae6fd;
}

.tour-hud-step {
    color: #e0f2fe;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    padding-left: 3px;
    border-left: 1px solid rgba(56, 189, 248, 0.3);
}

.tour-hud-title {
    font-size: 14px;
    font-weight: 600;
    color: #f8fafc;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 12px rgba(56, 189, 248, 0.25);
    line-height: 1.3;
}

.tour-hud-subtitle {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
    max-width: 280px;
}

.tour-hud-exit-btn {
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: 999px;
    color: #fca5a5;
    font-size: 10.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tour-hud-exit-btn:hover {
    background: rgba(239, 68, 68, 0.24);
    border-color: rgba(239, 68, 68, 0.6);
    color: #fee2e2;
    transform: scale(1.02);
}

.tour-hud-exit-btn:active {
    transform: scale(0.98);
}

/* 巡礼漫游时全面净化视界：强制隐藏抽屉并减弱周围干扰 */
body.tour-cinematic-active #spectral-stream,
body.tour-cinematic-active .spectral-stream {
    display: none !important;
    transform: translateX(100%) !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

body.tour-cinematic-active #fiber-rail {
    opacity: 0.12 !important;
    pointer-events: none !important;
    transition: opacity 0.4s ease;
}

/* ========================================================================== */
/*  SOCRATIC CELESTIAL QUIZ // 苏格拉底思辨挑战浮动悬浮舱 (避开左上标与侧栏)    */
/* ========================================================================== */
.celestial-quiz-card {
    position: fixed;
    top: 154px;
    left: 34px;
    width: 420px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
    z-index: 9995;
    padding: 18px 22px 22px;
    background: radial-gradient(135% 120% at 50% 0%, #0d172e 0%, #080f20 60%, #040814 100%);
    backdrop-filter: blur(32px) saturate(190%);
    -webkit-backdrop-filter: blur(32px) saturate(190%);
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 18px;
    box-shadow: 0 24px 64px -10px rgba(0, 0, 0, 0.92),
                0 0 40px -5px rgba(56, 189, 248, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                inset 0 0 24px rgba(56, 189, 248, 0.05);
    user-select: none;
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s ease;
}

/* 顶部星轨光晕高光线 */
.celestial-quiz-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.85) 30%, rgba(251, 191, 36, 0.9) 70%, transparent 100%);
    border-radius: 999px;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.7));
}

.celestial-quiz-card::-webkit-scrollbar {
    width: 4px;
}
.celestial-quiz-card::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.35);
    border-radius: 4px;
}

.celestial-quiz-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.celestial-quiz-card.is-dragging {
    box-shadow: 0 32px 76px -10px rgba(0, 0, 0, 0.96),
                0 0 48px rgba(56, 189, 248, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: scale(1.015);
    transition: none;
}

.celestial-quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
    padding-bottom: 11px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.16);
    cursor: grab;
}

.celestial-quiz-card.is-dragging .celestial-quiz-header {
    cursor: grabbing;
}

.celestial-quiz-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(56, 189, 248, 0.14) 100%);
    border: 1px solid rgba(245, 158, 11, 0.48);
    border-radius: 999px;
    color: #fef08a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.18);
}

.celestial-quiz-badge-icon {
    color: #f59e0b;
    font-size: 11.5px;
    animation: quizSparkle 2s ease-in-out infinite alternate;
}

@keyframes quizSparkle {
    0% { transform: scale(0.85) rotate(0deg); opacity: 0.75; }
    100% { transform: scale(1.2) rotate(15deg); opacity: 1; filter: drop-shadow(0 0 6px #f59e0b); }
}

/* 拖拽把手指示器 */
.celestial-quiz-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    cursor: grab;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.celestial-quiz-header:hover .celestial-quiz-drag-handle {
    opacity: 1;
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.celestial-quiz-drag-dot {
    width: 3.5px;
    height: 3.5px;
    border-radius: 50%;
    background: #7dd3fc;
}

.celestial-quiz-close {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.celestial-quiz-close:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.65);
    color: #fecaca;
    transform: scale(1.08);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}

.celestial-quiz-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 11px;
    flex-wrap: wrap;
}

.quiz-subject-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.quiz-title-main {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    background: linear-gradient(92deg, #ffffff 0%, #dbeafe 55%, #fed7aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.02em;
}

.celestial-quiz-question {
    margin: 8px 0 15px;
    padding: 12px 16px;
    background: rgba(10, 18, 36, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-left: 3.5px solid #38bdf8;
    border-radius: 4px 10px 10px 4px;
    font-size: 13.5px;
    line-height: 1.68;
    color: #f1f5f9;
    letter-spacing: 0.015em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.celestial-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.celestial-quiz-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%), rgba(8, 15, 30, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.52;
    text-align: left;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.celestial-quiz-option:hover:not(.is-disabled) {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.14) 0%, rgba(14, 165, 233, 0.05) 100%), rgba(14, 25, 50, 0.75);
    border-color: rgba(56, 189, 248, 0.55);
    color: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 16px rgba(56, 189, 248, 0.2);
}

.celestial-quiz-option .option-key {
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 7px;
    font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
    font-weight: 700;
    font-size: 11.5px;
    color: #38bdf8;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.celestial-quiz-option:hover:not(.is-disabled) .option-key {
    background: rgba(56, 189, 248, 0.26);
    border-color: rgba(56, 189, 248, 0.8);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

.celestial-quiz-option .option-text {
    flex: 1;
}

.celestial-quiz-option .option-badge-icon {
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.celestial-quiz-option.is-correct {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.08) 100%), rgba(4, 26, 19, 0.88) !important;
    border-color: rgba(52, 211, 153, 0.8) !important;
    color: #a7f3d0 !important;
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.32), inset 0 0 12px rgba(16, 185, 129, 0.12) !important;
}

.celestial-quiz-option.is-correct .option-key {
    background: rgba(16, 185, 129, 0.35);
    border-color: rgba(52, 211, 153, 0.9);
    color: #ecfdf5;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.celestial-quiz-option.is-correct .option-badge-icon {
    opacity: 1;
    transform: scale(1);
    color: #34d399;
}

.celestial-quiz-option.is-wrong {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.08) 100%), rgba(30, 8, 14, 0.88) !important;
    border-color: rgba(248, 113, 113, 0.8) !important;
    color: #fca5a5 !important;
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.32), inset 0 0 12px rgba(239, 68, 68, 0.12) !important;
}

.celestial-quiz-option.is-wrong .option-key {
    background: rgba(239, 68, 68, 0.35);
    border-color: rgba(248, 113, 113, 0.9);
    color: #fff1f2;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.celestial-quiz-option.is-wrong .option-badge-icon {
    opacity: 1;
    transform: scale(1);
    color: #f87171;
}

.celestial-quiz-option.is-disabled {
    cursor: default;
    opacity: 0.88;
}

.celestial-quiz-feedback {
    display: none;
    margin-top: 15px;
    padding: 13px 16px;
    border-radius: 12px;
    background: rgba(4, 9, 22, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), inset 0 0 15px rgba(245, 158, 11, 0.06);
    animation: quizFeedbackSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.celestial-quiz-feedback.is-visible {
    display: block;
}

.feedback-status {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: 0.03em;
}

.feedback-status.is-correct {
    color: #34d399;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}

.feedback-status.is-wrong {
    color: #f87171;
    text-shadow: 0 0 10px rgba(248, 113, 113, 0.4);
}

.feedback-explanation {
    font-size: 12.5px;
    line-height: 1.62;
    color: #cbd5e1;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.celestial-quiz-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.quiz-action-btn {
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(168, 85, 247, 0.24));
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-action-btn:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.38), rgba(168, 85, 247, 0.38));
    border-color: rgba(56, 189, 248, 0.85);
    color: #ffffff;
    transform: scale(1.04);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.quiz-action-btn:active {
    transform: scale(0.97);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .celestial-quiz-card {
        left: 16px !important;
        right: 16px !important;
        top: auto !important;
        bottom: 24px !important;
        width: auto !important;
        max-width: none !important;
        max-height: 70vh;
    }
}

