/* ========================================================================== */
/*  CELESTIAL FIGURE CARDS // EXHIBITION GALLERY & 3D HOLO STAGE STYLES       */
/*  全学科人物卡片展览馆与 3D 全息交互舞台样式表                              */
/* ========================================================================== */

/* -------------------------------------------------------------------------- */
/* 1. 学科标题旁入口图标按钮 (Entry Trigger Button)                           */
/* -------------------------------------------------------------------------- */
.header-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.figure-hall-trigger-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 138, 0.45);
    background: linear-gradient(135deg, rgba(255, 215, 138, 0.16) 0%, rgba(16, 28, 48, 0.88) 60%, rgba(6, 12, 22, 0.95) 100%);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.55),
        0 0 16px rgba(255, 215, 138, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #ffffff;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    outline: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.figure-hall-trigger-btn.is-hidden {
    display: none !important;
}

.figure-hall-trigger-btn:hover {
    transform: translateY(-2px) scale(1.03);
    border-color: rgba(255, 225, 160, 0.85);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.65),
        0 0 24px rgba(255, 215, 138, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.figure-hall-trigger-btn:active {
    transform: translateY(0) scale(0.98);
}

.figure-hall-trigger-btn .btn-icon {
    font-size: 15px;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(255, 215, 138, 0.6));
    transition: transform 0.25s ease;
}

.figure-hall-trigger-btn:hover .btn-icon {
    transform: scale(1.15) rotate(-6deg);
}

.figure-hall-trigger-btn .btn-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    background: linear-gradient(92deg, #ffffff 0%, #ffe4ad 60%, #ffd074 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.figure-hall-trigger-btn .btn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255, 215, 138, 0.25);
    border: 1px solid rgba(255, 215, 138, 0.6);
    color: #ffe6b0;
    font-size: 10px;
    font-weight: 700;
    font-family: monospace;
    line-height: 1;
}

/* -------------------------------------------------------------------------- */
/* 2. 全景人物卡片展览馆大厅 (Exhibition Gallery Modal)                      */
/* -------------------------------------------------------------------------- */
.figure-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.figure-gallery-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gallery-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(10, 22, 40, 0.92) 0%, rgba(2, 6, 14, 0.98) 100%);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

.gallery-container {
    position: relative;
    width: min(88vw, 1180px);
    height: min(84vh, 720px);
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 1px solid rgba(115, 216, 255, 0.22);
    background: linear-gradient(145deg, rgba(8, 16, 30, 0.9), rgba(4, 8, 16, 0.97));
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.8),
        0 0 28px rgba(115, 216, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    overflow: hidden;
    transform: scale(0.96) translateY(12px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.figure-gallery-modal.is-open .gallery-container {
    transform: scale(1) translateY(0);
}

/* 展馆头部 */
.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 24px 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 12, 24, 0.65);
}

.gallery-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-header-seal {
    font-size: 22px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 138, 0.6));
}

.gallery-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gallery-main-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: linear-gradient(92deg, #ffffff 0%, #b2e8ff 50%, #ffe19e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
}

.gallery-sub-title {
    margin: 0;
    font-size: 8.5px;
    letter-spacing: 0.16em;
    color: rgba(148, 163, 184, 0.7);
    text-transform: uppercase;
}

.gallery-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 搜索框 */
.gallery-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 220px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(115, 216, 255, 0.28);
    background: rgba(4, 9, 18, 0.75);
    padding: 0 12px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
}

.gallery-search-box:focus-within {
    border-color: rgba(115, 216, 255, 0.7);
    box-shadow: 0 0 14px rgba(115, 216, 255, 0.25), inset 0 2px 6px rgba(0, 0, 0, 0.4);
    width: 260px;
}

.gallery-search-box .search-icon {
    font-size: 11.5px;
    color: rgba(148, 163, 184, 0.7);
    margin-right: 6px;
}

.gallery-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 11px;
    letter-spacing: 0.03em;
}

.gallery-search-box input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.search-clear-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    padding: 0 3px;
}

.gallery-close-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s ease;
}

.gallery-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
    transform: rotate(90deg);
}

/* 分类标签导航栏 */
.gallery-filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 10, 20, 0.4);
    overflow-x: auto;
    scrollbar-width: none;
}

.gallery-filter-bar::-webkit-scrollbar {
    display: none;
}

.gallery-filter-pill {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 22, 38, 0.5);
    color: rgba(226, 232, 240, 0.75);
    font-size: 11px;
    cursor: pointer;
    outline: none;
    white-space: nowrap;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    touch-action: manipulation;
}

.gallery-filter-pill:hover {
    border-color: rgba(115, 216, 255, 0.45);
    color: #ffffff;
    background: rgba(115, 216, 255, 0.1);
    transform: translateY(-1px);
}

.gallery-filter-pill.is-active {
    border-color: rgba(255, 215, 138, 0.75);
    background: linear-gradient(135deg, rgba(255, 215, 138, 0.22) 0%, rgba(18, 36, 64, 0.8) 100%);
    color: #ffe8b5;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(255, 215, 138, 0.2);
}

/* 展馆卡片网格内容区 */
.gallery-content-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-content-body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.gallery-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    align-items: stretch;
}

/* -------------------------------------------------------------------------- */
/* 单张卡片典藏卡砖 (Graded Card Slab) - 所有卡片严格完全等大等高             */
/* -------------------------------------------------------------------------- */
.gallery-card-item {
    position: relative;
    cursor: pointer;
    perspective: 1200px;
    outline: none;
    height: 268px; /* 绝对统一卡片全高，确保所有卡片100%一样大！ */
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    touch-action: manipulation;
}

.card-item-inner {
    position: relative;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 138, 0.22);
    background: linear-gradient(168deg, rgba(14, 26, 48, 0.9) 0%, rgba(5, 12, 24, 0.98) 100%);
    padding: 6px;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

.gallery-card-item:hover .card-item-inner {
    transform: translateY(-5px) rotateX(3deg);
    border-color: rgba(255, 225, 160, 0.85);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.7),
        0 0 24px rgba(255, 215, 138, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.card-cover-box {
    position: relative;
    width: 100%;
    flex: 1; /* 自动撑满剩余空间，所有卡片封面严格等高等比例 */
    min-height: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #02060e;
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.75);
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

.card-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    pointer-events: none;
}

.gallery-card-item:hover .card-cover-img {
    transform: scale(1.05);
}

.card-inner-frame-border {
    position: absolute;
    inset: 3px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    pointer-events: none;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}

.card-placeholder-art {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: radial-gradient(circle at 50% 40%, rgba(255, 215, 138, 0.18) 0%, rgba(10, 20, 36, 0.95) 75%);
    border: 1px solid rgba(255, 215, 138, 0.25);
}

.placeholder-halo {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 215, 138, 0.4);
    animation: placeholderSpin 16s linear infinite;
}

.placeholder-initial {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #ffd78a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 215, 138, 0.6));
}

.placeholder-title {
    font-size: 9px;
    letter-spacing: 0.08em;
    color: rgba(226, 232, 240, 0.7);
}

@keyframes placeholderSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.card-edition-tag {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(3, 8, 16, 0.88);
    border: 1px solid rgba(255, 215, 138, 0.55);
    color: #ffe6ad;
    font-size: 8px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.06em;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.card-glare-effect {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.18) 0%, transparent 42%, transparent 68%, rgba(255, 215, 138, 0.18) 100%);
    pointer-events: none;
}

/* 卡片下方文字信息 - 绝对统一固定高度 52px */
.card-item-info {
    margin-top: 6px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2px;
}

.card-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    height: 16px;
    line-height: 16px;
    overflow: hidden;
}

.card-name-zh {
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap; /* 绝对强制单行，不换行！ */
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    line-height: 1;
}

.card-era-badge {
    font-size: 9px;
    font-weight: 600;
    color: #ffd78a;
    font-family: monospace;
    flex-shrink: 0;
    line-height: 1;
}

.card-title-en {
    font-size: 9.5px;
    color: rgba(148, 163, 184, 0.85);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    height: 12px;
}

/* 高级全息突破法则微型徽章（精微致密排版） */
.card-law-capsule {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 20px;
    flex-shrink: 0;
    padding: 0 6px;
    border-radius: 4px;
    background: linear-gradient(92deg, rgba(56, 189, 248, 0.12) 0%, rgba(14, 30, 56, 0.7) 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: all 0.22s ease;
}

.gallery-card-item:hover .card-law-capsule {
    border-color: rgba(56, 189, 248, 0.6);
    background: linear-gradient(92deg, rgba(56, 189, 248, 0.22) 0%, rgba(18, 40, 72, 0.85) 100%);
}

.card-law-capsule .law-dot {
    color: #38bdf8;
    font-size: 8px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.8));
}

.card-law-capsule .law-text {
    flex: 1;
    color: #bae6fd;
    font-size: 9.5px;
    font-family: "Georgia", "Times New Roman", serif;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}

.card-law-capsule .law-text sub,
.card-law-capsule .law-text sup {
    font-size: 8px;
    font-style: normal;
}

/* 空状态 - 默认严格隐藏，仅当真正无匹配卡牌时才显示 */
.gallery-empty-state {
    display: none !important;
    padding: 48px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(148, 163, 184, 0.75);
}

.gallery-empty-state.is-visible {
    display: flex !important;
}

.gallery-empty-state[hidden] {
    display: none !important;
}

.gallery-empty-state .empty-icon {
    font-size: 38px;
    filter: drop-shadow(0 0 14px rgba(115, 216, 255, 0.4));
}

/* 展馆底部 */
.gallery-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 9, 18, 0.8);
    font-size: 10.5px;
    z-index: 10;
}

.gallery-footer-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-indicator-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: statusPulse 2s infinite ease-in-out;
}

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

.gallery-count-info {
    color: #ffd78a;
    font-weight: 600;
}

.gallery-footer-guide {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(226, 232, 240, 0.7);
    font-size: 10px;
}

.guide-chip kbd,
.stage-gesture-hint kbd {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: monospace;
    font-size: 9px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.gallery-hint {
    color: rgba(148, 163, 184, 0.6);
    font-size: 10px;
    margin-left: 4px;
}

/* -------------------------------------------------------------------------- */
/* 3. 3D 全息交互深度赏卡舞台 (Spotlight Stage Modal)                         */
/* -------------------------------------------------------------------------- */
.figure-spotlight-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.figure-spotlight-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.spotlight-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 95% 85% at 50% 40%, rgba(8, 18, 38, 0.96) 0%, rgba(1, 4, 10, 0.99) 100%);
    backdrop-filter: blur(36px);
    -webkit-backdrop-filter: blur(36px);
}

.spotlight-container {
    position: relative;
    width: min(88vw, 1080px);
    height: min(86vh, 690px);
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    display: flex;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 138, 0.35);
    background: linear-gradient(150deg, rgba(8, 18, 36, 0.94) 0%, rgba(2, 6, 14, 0.98) 100%);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.85),
        0 0 32px rgba(255, 215, 138, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    contain: paint;
    isolation: isolate;
    transform: scale(0.96);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.figure-spotlight-modal.is-open .spotlight-container {
    transform: scale(1);
}

/* 顶部右上角关闭按钮 */
.spotlight-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 30;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.24s ease;
    backdrop-filter: blur(8px);
}

.spotlight-close-btn:hover {
    background: rgba(239, 68, 68, 0.35);
    border-color: rgba(239, 68, 68, 0.8);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
    transform: rotate(90deg);
}

.spotlight-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: 46% 54%;
}

/* -------------------------------------------------------------------------- */
/* 左侧：3D WebGL 全息交互舞台                                                */
/* -------------------------------------------------------------------------- */
.spotlight-stage-wrap {
    position: relative;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at 50% 50%, rgba(14, 28, 56, 0.35) 0%, transparent 75%);
    overflow: hidden;
}

.stage-ambient-glow {
    position: absolute;
    width: 380px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 215, 138, 0.16) 0%, rgba(56, 189, 248, 0.1) 45%, transparent 72%);
    filter: blur(40px);
    pointer-events: none;
}

/* 舞台顶部先贤排位提示芯片 */
.stage-rank-pill {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(4, 10, 22, 0.8);
    border: 1px solid rgba(255, 215, 138, 0.45);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

.stage-rank-pill .rank-dot {
    color: #ffd78a;
    font-size: 8px;
    filter: drop-shadow(0 0 5px #ffd78a);
}

.stage-rank-pill .rank-text {
    color: #ffe6b0;
    font-size: 9.5px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.08em;
}

/* 左右翻页按钮：微型晶体透镜造型，轻盈纤细 */
.spotlight-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    width: 28px;
    height: 46px;
    border-radius: 9px;
    border: 1px solid rgba(255, 215, 138, 0.35);
    background: rgba(6, 14, 30, 0.72);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(16px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-nav-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 138, 0.3) 0%, rgba(18, 40, 76, 0.95) 100%);
    border-color: rgba(255, 225, 160, 0.85);
    color: #fff0cf;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.7),
        0 0 16px rgba(255, 215, 138, 0.4);
}

.spotlight-nav-prev {
    left: 12px;
}

.spotlight-nav-prev:hover {
    transform: translateY(-50%) translateX(-2px);
}

.spotlight-nav-next {
    right: 12px;
}

.spotlight-nav-next:hover {
    transform: translateY(-50%) translateX(2px);
}

.nav-arrow-icon {
    font-size: 20px;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(255, 215, 138, 0.5));
}

.spotlight-stage-canvas {
    position: relative;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    cursor: grab;
    outline: none;
    z-index: 10;
}

.spotlight-stage-canvas canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    outline: none;
    touch-action: none;
}

.spotlight-stage-canvas:active {
    cursor: grabbing;
}

/* 舞台 HUD 悬浮微调栏 */
.stage-hud-bar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 138, 0.4);
    background: rgba(5, 12, 26, 0.9);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.6),
        0 0 16px rgba(255, 215, 138, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(18px);
}

.hud-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.22s ease;
}

.hud-action-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
}

/* 自动赏卡激活态呼吸微光 */
.hud-action-btn.primary-pulse.is-active {
    border-color: rgba(56, 189, 248, 0.85);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(14, 36, 68, 0.95) 100%);
    color: #e0f2fe;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}

.hud-action-btn.primary-gold {
    border-color: rgba(255, 215, 138, 0.65);
    background: linear-gradient(135deg, rgba(255, 215, 138, 0.28) 0%, rgba(20, 42, 78, 0.92) 100%);
    color: #fff0cf;
    font-weight: 600;
}

.hud-action-btn.primary-gold:hover {
    border-color: rgba(255, 225, 160, 0.95);
    box-shadow: 0 0 14px rgba(255, 215, 138, 0.45);
}

.hud-view-indicator {
    padding-left: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 9px;
    font-weight: 700;
    color: #7dd3fc;
    font-family: monospace;
    letter-spacing: 0.08em;
}

.stage-gesture-hint {
    margin-top: 4px;
    flex-shrink: 0;
    font-size: 9px;
    color: rgba(148, 163, 184, 0.65);
    letter-spacing: 0.04em;
    text-align: center;
}

.stage-gesture-hint .gesture-hint-touch {
    display: none;
}

@media (hover: none) and (pointer: coarse) {
    .stage-gesture-hint .gesture-hint-desktop {
        display: none;
    }
    .stage-gesture-hint .gesture-hint-touch {
        display: inline;
    }
    .hud-action-btn {
        height: 28px;
        padding: 0 12px;
        font-size: 11px;
    }
}

/* -------------------------------------------------------------------------- */
/* 右侧：全息人物生平与知识图谱档案面板                                        */
/* -------------------------------------------------------------------------- */
.spotlight-dossier-wrap {
    position: relative;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    padding: 16px 22px 14px 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.spotlight-dossier-wrap::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.spotlight-dossier-wrap > * {
    flex-shrink: 0;
}

.dossier-header-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.dossier-edition-badge {
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 215, 138, 0.22);
    border: 1px solid rgba(255, 215, 138, 0.6);
    color: #fff0cf;
    font-size: 9.5px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.08em;
    box-shadow: 0 0 8px rgba(255, 215, 138, 0.25);
}

.dossier-category-badge {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #7dd3fc;
    font-size: 9.5px;
    font-weight: 500;
}

.dossier-title-zh {
    margin: 3px 0 1px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(92deg, #ffffff 0%, #ffe4ad 60%, #ffd074 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 18px rgba(255, 215, 138, 0.3);
}

.dossier-title-en {
    font-size: 11px;
    color: rgba(148, 163, 184, 0.85);
    letter-spacing: 0.04em;
    font-family: inherit;
}

.dossier-role {
    margin-top: 3px;
    font-size: 11.5px;
    font-weight: 600;
    color: #ffe6ad;
    line-height: 1.4;
}

/* -------------------------------------------------------------------------- */
/* 核心突破方程高能光刻舱 (The Core Equation Vault)                           */
/* -------------------------------------------------------------------------- */
.dossier-formula-plate {
    position: relative;
    margin: 9px 0 8px;
    padding: 8px 12px;
    border-radius: 9px;
    border: 1px solid rgba(255, 215, 138, 0.45);
    background:
        linear-gradient(135deg, rgba(255, 215, 138, 0.12) 0%, rgba(12, 26, 52, 0.85) 60%, rgba(4, 10, 22, 0.95) 100%);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.45),
        0 0 16px rgba(255, 215, 138, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.formula-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3px;
}

.formula-hud-tag {
    font-size: 8.5px;
    font-weight: 700;
    color: rgba(255, 215, 138, 0.85);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: monospace;
}

.formula-grid-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 6px #38bdf8;
}

/* 公式排版：专业数学与物理字形，精致克制 */
.formula-content {
    font-size: 16px;
    font-weight: 700;
    font-family: "KaTeX_Math", "Cambria Math", "Georgia", "Times New Roman", Times, serif;
    font-style: italic;
    color: #ffffff;
    text-shadow:
        0 0 14px rgba(255, 215, 138, 0.45),
        0 0 24px rgba(56, 189, 248, 0.2);
    letter-spacing: 0.04em;
    line-height: 1.35;
    word-break: break-word;
}

.formula-content sub,
.formula-content .formula-sub {
    font-size: 10px;
    font-style: normal;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif;
    color: #ffd78a;
    vertical-align: sub;
    margin-left: 1px;
}

.formula-content sup,
.formula-content .formula-sup {
    font-size: 10px;
    font-style: normal;
    color: #bae6fd;
    vertical-align: super;
    margin-left: 1px;
}

.formula-content .formula-eq {
    font-style: normal;
    color: #ffd78a;
    margin: 0 3px;
}

.formula-content .formula-arrow {
    font-style: normal;
    color: #38bdf8;
    margin: 0 4px;
}

.formula-content .formula-symbol {
    font-style: normal;
    color: #ffe6ad;
    filter: drop-shadow(0 0 6px rgba(255, 215, 138, 0.5));
}

.formula-content .formula-sigma {
    font-size: 18px;
    font-weight: 400;
    margin-right: 2px;
}

.formula-content .formula-dot {
    font-style: normal;
    color: rgba(255, 215, 138, 0.7);
    margin: 0 2px;
}

.formula-tagline {
    margin-top: 3px;
    font-size: 10px;
    color: rgba(226, 232, 240, 0.8);
    letter-spacing: 0.01em;
}

/* -------------------------------------------------------------------------- */
/* 先贤名言星辰箴言板 (Philosophical Motto Plaque)                             */
/* -------------------------------------------------------------------------- */
.dossier-quote-box {
    position: relative;
    margin: 6px 0 10px;
    padding: 6px 12px 6px 14px;
    border-left: 2px solid rgba(255, 215, 138, 0.85);
    background: linear-gradient(92deg, rgba(255, 215, 138, 0.08) 0%, rgba(10, 20, 40, 0.5) 100%);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.quote-watermark {
    position: absolute;
    top: -8px;
    right: 10px;
    font-size: 36px;
    font-family: Georgia, serif;
    color: rgba(255, 215, 138, 0.1);
    line-height: 1;
    pointer-events: none;
}

.quote-content {
    margin: 0;
    font-size: 11px;
    font-style: italic;
    line-height: 1.5;
    color: rgba(241, 245, 249, 0.95);
    letter-spacing: 0.02em;
}

/* 段落小标题 */
.dossier-section-title {
    margin: 10px 0 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffd78a;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dossier-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 215, 138, 0.3) 0%, transparent 100%);
}

/* -------------------------------------------------------------------------- */
/* 生平大事件发光纪元史时间轴 (Holo-Chronicle Timeline)                        */
/* -------------------------------------------------------------------------- */
.dossier-milestones-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.milestone-timeline-item {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.timeline-track {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 10px;
    flex-shrink: 0;
}

.timeline-pulse-node {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    border: 1.5px solid #030814;
    box-shadow: 0 0 8px #38bdf8;
    margin-top: 5px;
    z-index: 2;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.milestone-timeline-item:hover .timeline-pulse-node {
    transform: scale(1.3);
    background: #ffd78a;
    box-shadow: 0 0 10px #ffd78a;
}

.timeline-line-glow {
    flex: 1;
    width: 1.5px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.45) 0%, rgba(56, 189, 248, 0.1) 100%);
    margin-top: 2px;
}

.timeline-card {
    flex: 1;
    padding: 5px 9px;
    border-radius: 7px;
    background: rgba(14, 28, 52, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.milestone-timeline-item:hover .timeline-card {
    background: rgba(20, 40, 72, 0.75);
    border-color: rgba(115, 216, 255, 0.35);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.45),
        0 0 12px rgba(115, 216, 255, 0.2);
    transform: translateX(3px);
}

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

.milestone-year-chip {
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #7dd3fc;
    font-size: 9px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.04em;
}

.milestone-title-text {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
}

.milestone-desc-text {
    font-size: 10px;
    line-height: 1.4;
    color: rgba(148, 163, 184, 0.85);
}

/* -------------------------------------------------------------------------- */
/* 知识图谱曲率跃迁芯片 (Nebula Warp Chips)                                   */
/* -------------------------------------------------------------------------- */
.dossier-related-nodes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.knowledge-leap-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.4);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.14) 0%, rgba(10, 28, 56, 0.8) 100%);
    color: #e0f2fe;
    font-size: 10.5px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.knowledge-leap-chip:hover {
    border-color: rgba(56, 189, 248, 0.9);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.32) 0%, rgba(14, 40, 78, 0.95) 100%);
    color: #ffffff;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.4),
        0 0 14px rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

.knowledge-leap-chip .chip-dot {
    color: #38bdf8;
    font-size: 9px;
    filter: drop-shadow(0 0 6px #38bdf8);
}

.knowledge-leap-chip .chip-text {
    line-height: 1;
}

.knowledge-leap-chip .chip-arrow {
    color: rgba(148, 163, 184, 0.75);
    font-size: 9.5px;
    transition: transform 0.2s ease;
}

.knowledge-leap-chip:hover .chip-arrow {
    transform: translate(2px, -2px);
    color: #ffd78a;
}

/* -------------------------------------------------------------------------- */
/* 4. 响应式与全景适配 (Responsive Breakpoints)                               */
/* -------------------------------------------------------------------------- */

/* 平板横屏与宽屏设备：保留双栏，优雅呈现卡片与档案 */
@media (min-width: 961px) and (orientation: landscape) {
    .gallery-container {
        width: min(92vw, 1200px);
        height: min(88vh, 780px);
    }
    .spotlight-container {
        width: min(92vw, 1200px);
        height: min(88vh, 780px);
    }
    .spotlight-inner {
        grid-template-columns: 45% 55%;
        grid-template-rows: 1fr;
    }
}

/* 竖屏平板与窄屏设备：上下分段式自然排布 */
@media (max-width: 960px), (orientation: portrait) {
    .gallery-container {
        width: min(94vw, 760px);
        height: min(92vh, 920px);
    }
    .spotlight-container {
        width: min(94vw, 760px);
        height: min(92vh, 920px);
    }
    .spotlight-inner {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(320px, 52%) minmax(0, 48%);
    }
    .spotlight-stage-wrap {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 12px 14px 10px;
    }
    .spotlight-stage-canvas {
        flex: 1 1 auto;
        height: auto;
        max-height: none;
    }
    .spotlight-dossier-wrap {
        overflow-x: hidden;
        overflow-y: auto;
    }
    .gallery-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-title-row {
        gap: 10px;
    }
    .figure-hall-trigger-btn {
        height: 30px;
        padding: 0 12px 0 9px;
    }
    .figure-hall-trigger-btn .btn-label {
        font-size: 11.5px;
    }
    .figure-hall-trigger-btn .btn-badge {
        min-width: 17px;
        height: 17px;
        font-size: 9.5px;
    }
    .gallery-header {
        padding: 16px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .gallery-header-right {
        justify-content: space-between;
    }
    .gallery-search-box {
        width: 100% !important;
    }
    .gallery-content-body {
        padding: 16px 20px;
    }
    .gallery-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }
    .spotlight-nav-btn {
        width: 38px;
        height: 56px;
    }
    .nav-arrow-icon {
        font-size: 24px;
    }
}
