/* 科幻大屏样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    overflow: hidden;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

.sci-fi-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: 
        url('../images/BG.png'),
        linear-gradient(135deg, rgba(10, 14, 39, 0.9) 0%, rgba(26, 31, 58, 0.9) 25%, rgba(45, 53, 97, 0.9) 50%, rgba(26, 31, 58, 0.9) 75%, rgba(10, 14, 39, 0.9) 100%),
        url('../images/bg.jpg');
    background-size: cover, 100% auto, 100% auto;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    overflow: hidden;
}

/* 背景动效 */
.background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 中国地图容器 */
.china-map-container {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1200px;
    height: 80%;
    max-height: 800px;
    z-index: 3;
    pointer-events: auto;
    border-radius: 15px;
    overflow: visible; /* 改为visible，允许标注超出容器 */
}

.china-map-container #chinaMap {
    width: 100%;
    height: 100%;
}

/* 地图省份标注容器 */
.province-label-wrapper {
    position: absolute;
    pointer-events: none;
    z-index: 10;
}

/* 省份中央蓝点 */
.province-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(0, 255, 255, 1);
    border: 2px solid rgba(0, 200, 255, 1);
    border-radius: 50%;
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 5px rgba(255, 255, 255, 0.3);
    animation: dot-pulse 2s infinite ease-in-out;
    transform: translate(-50%, -50%);
}

@keyframes dot-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

/* 连接线 */
.province-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(
        to right,
        rgba(0, 255, 255, 0.8) 0%,
        rgba(0, 255, 255, 0.6) 50%,
        rgba(0, 255, 255, 0.3) 100%
    );
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    transform-origin: 0 50%;
}

/* 省份标注文字框 */
.province-label {
    position: absolute;
    padding: 4px 8px;
    background: rgba(0, 150, 255, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.6);
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 
        0 0 10px rgba(0, 150, 255, 0.5),
        inset 0 0 10px rgba(0, 255, 255, 0.2);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
    animation: label-pulse 2s infinite ease-in-out;
    transform: translate(-50%, -50%);
}

@keyframes label-pulse {
    0%, 100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* 地图数据提示框 */
.map-tooltip {
    position: fixed;
    background: rgba(0, 20, 40, 0.95);
    border: 2px solid rgba(0, 255, 255, 0.8);
    border-radius: 10px;
    padding: 15px 20px;
    color: #ffffff;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    min-width: 200px;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    left: 0;
    top: 0;
}

.map-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.map-tooltip-title {
    font-size: 16px;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 8px;
}

.map-tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-tooltip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.map-tooltip-item-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.map-tooltip-item-value {
    color: #00ffff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
}

/* 添加数字雨效果 */
.background-effects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(0, 255, 0, 0.2), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 150, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(0, 200, 200, 0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(100, 255, 100, 0.2), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(0, 255, 150, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: digital-rain 15s linear infinite;
    opacity: 0.3;
}

/* 添加光束扫描效果 */
.background-effects::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(0, 255, 255, 0.8) 30%,
        rgba(0, 200, 255, 1) 50%,
        rgba(0, 255, 255, 0.8) 70%,
        transparent 100%
    );
    animation: laser-scan 8s linear infinite;
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.6),
        0 0 40px rgba(0, 255, 255, 0.4);
}

/* 粒子效果 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 150, 255, 0.6);
    border-radius: 50%;
    animation: float 6s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10px) translateX(100px);
        opacity: 0;
    }
}

/* 网格线条 */
.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 150, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 150, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s infinite linear;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}


/* 数字雨动画 */
@keyframes digital-rain {
    0% { 
        transform: translateY(-100vh);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% { 
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* 激光扫描动画 */
@keyframes laser-scan {
    0% { 
        left: -100px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% { 
        left: calc(100% + 100px);
        opacity: 0;
    }
}


/* 政策圆环容器 */
.policy-bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* 文档圆环 */
.document-bubble {
    position: absolute;
    border-radius: 50%;
    background: url('../images/show_bg_circle.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid rgba(0, 150, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(5px);
    box-shadow: 
        0 0 20px rgba(0, 150, 255, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(0, 150, 255, 0.2),
        inset 0 0 40px rgba(0, 255, 255, 0.05);
    animation: bubble-float 6s infinite ease-in-out, 
               bubble-glow 3s infinite ease-in-out,
               bubble-pulse 4s infinite ease-in-out;
    overflow: hidden;
}

/* 添加伪元素创建旋转光环 */
.document-bubble::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: conic-gradient(
        transparent 0deg,
        rgba(0, 150, 255, 0.8) 90deg,
        transparent 180deg,
        rgba(0, 255, 200, 0.6) 270deg,
        transparent 360deg
    );
    animation: rotate-ring 8s linear infinite;
    z-index: -1;
}

/* 内部数据流效果 */
/* .document-bubble::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        transparent 30%,
        rgba(0, 255, 255, 0.1) 40%,
        transparent 50%,
        rgba(0, 150, 255, 0.1) 60%,
        transparent 70%
    );
    animation: data-flow 5s infinite ease-in-out;
    z-index: 1;
} */

.document-bubble:hover {
    transform: scale(1.15);
    box-shadow: 
        0 0 60px rgba(0, 150, 255, 0.9),
        inset 0 0 40px rgba(255, 255, 255, 0.4),
        0 0 100px rgba(0, 200, 255, 0.6),
        0 0 150px rgba(100, 255, 255, 0.3);
    border-color: rgba(0, 255, 255, 1);
    filter: brightness(1.3) saturate(1.5);
    animation: bubble-float 6s infinite ease-in-out, 
               hover-energy 1.5s infinite ease-in-out,
               hover-pulse 2s infinite ease-in-out;
}

.document-bubble:hover::before {
    animation: rotate-ring 3s linear infinite, 
               hover-ring-glow 1.8s infinite ease-in-out;
}

.document-bubble:hover::after {
    animation: data-flow 2s infinite ease-in-out,
               hover-data-boost 1.2s infinite ease-in-out;
}

.document-bubble.dragging {
    z-index: 1000;
    transform: scale(1.2);
    box-shadow: 
        0 0 40px rgba(0, 150, 255, 0.8),
        inset 0 0 40px rgba(255, 255, 255, 0.3);
}

.document-bubble.expanding {
    animation: expand-animation 0.8s ease-out forwards;
    z-index: 1001;
}

/* 子版块气泡样式 - 使用不同的颜色区分 */
.child-section-bubble {
    border-color: rgba(0, 255, 136, 0.8) !important;
    box-shadow: 
        0 0 20px rgba(0, 255, 136, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(0, 255, 136, 0.2),
        inset 0 0 40px rgba(0, 255, 200, 0.05) !important;
}

.child-section-bubble::before {
    background: conic-gradient(
        transparent 0deg,
        rgba(0, 255, 136, 0.8) 90deg,
        transparent 180deg,
        rgba(0, 255, 200, 0.6) 270deg,
        transparent 360deg
    ) !important;
}

.child-section-bubble:hover {
    border-color: rgba(0, 255, 136, 1) !important;
    box-shadow: 
        0 0 60px rgba(0, 255, 136, 0.9),
        inset 0 0 40px rgba(255, 255, 255, 0.4),
        0 0 100px rgba(0, 255, 200, 0.6),
        0 0 150px rgba(100, 255, 200, 0.3) !important;
}

.child-section-bubble .bubble-title {
    color: rgba(0, 255, 136, 0.95) !important;
}

.child-section-bubble .bubble-title i {
    color: rgba(0, 255, 200, 1) !important;
}

/* 展开状态下的样式 */
.document-bubble.is-expanded {
    cursor: default !important; /* 展开后不允许拖动 */
    user-select: text; /* 允许选择文本 */
    animation: none !important; /* 强制禁用所有动画 */
    border-radius: 15px !important; /* 改为圆角矩形 */
    background: url('../images/bg_card.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: none !important;
    box-shadow: none !important;
    width: 1294px !important;
    height: 704px !important;
    padding: 0;
    display: flex;
    position: fixed !important; /* 固定定位，不受物理引擎影响 */
    pointer-events: auto; /* 确保可以接收事件 */
    /* transform由JS控制，用于居中显示 */
}

/* 展开状态下的事件处理 */
.document-bubble.is-expanded {
    pointer-events: auto; /* 容器可以接收点击事件 */
}

.document-bubble.is-expanded .detail-media-section {
    pointer-events: auto; /* 媒体区域可以接收事件 */
}

.document-bubble.is-expanded .detail-content-right {
    pointer-events: auto; /* 内容区域可以接收事件 */
}

/* 展开状态下禁用before和after伪元素动画 */
.document-bubble.is-expanded::before {
    animation: none !important;
    opacity: 0 !important;
}

.document-bubble.is-expanded::after {
    animation: none !important;
    opacity: 0 !important;
}

/* 展开状态下禁用内部效果动画 */
.document-bubble.is-expanded .bubble-inner-effects {
    display: none !important;
}

.document-bubble.is-expanded:hover {
    cursor: grabbing;
}

.document-bubble.is-expanded.dragging {
    cursor: grabbing;
    z-index: 1002;
    animation: none !important; /* 拖动时也禁用动画 */
}

@keyframes bubble-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    50% { transform: translateY(5px) rotate(-1deg); }
    75% { transform: translateY(-5px) rotate(1deg); }
}

/* 旋转光环动画 */
@keyframes rotate-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 发光脉冲动画 */
@keyframes bubble-glow {
    0%, 100% { 
        filter: brightness(1) hue-rotate(0deg);
        box-shadow: 
            0 0 20px rgba(0, 150, 255, 0.4),
            inset 0 0 20px rgba(255, 255, 255, 0.1),
            0 0 40px rgba(0, 150, 255, 0.2);
    }
    50% { 
        filter: brightness(1.3) hue-rotate(30deg);
        box-shadow: 
            0 0 40px rgba(0, 200, 255, 0.8),
            inset 0 0 30px rgba(255, 255, 255, 0.3),
            0 0 80px rgba(0, 200, 255, 0.4);
    }
}

/* 能量脉冲动画 */
@keyframes bubble-pulse {
    0%, 100% { 
        border-width: 2px;
        border-color: rgba(0, 150, 255, 0.8);
    }
    25% { 
        border-width: 3px;
        border-color: rgba(0, 255, 200, 1);
    }
    50% { 
        border-width: 4px;
        border-color: rgba(100, 200, 255, 1);
    }
    75% { 
        border-width: 3px;
        border-color: rgba(0, 255, 150, 1);
    }
}

/* 数据流动画 */
@keyframes data-flow {
    0% { 
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: rotate(90deg) scale(1.1);
        opacity: 0.6;
    }
    50% { 
        transform: rotate(180deg) scale(0.9);
        opacity: 0.4;
    }
    75% { 
        transform: rotate(270deg) scale(1.05);
        opacity: 0.7;
    }
    100% { 
        transform: rotate(360deg) scale(1);
        opacity: 0.3;
    }
}

/* 国家级政策特效 */
@keyframes national-energy {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(255, 150, 0, 0.4),
            inset 0 0 20px rgba(255, 255, 255, 0.1),
            0 0 40px rgba(255, 150, 0, 0.2);
    }
    50% { 
        box-shadow: 
            0 0 60px rgba(255, 200, 0, 0.8),
            inset 0 0 40px rgba(255, 255, 200, 0.3),
            0 0 100px rgba(255, 180, 0, 0.5);
    }
}

@keyframes national-pulse {
    0%, 100% { 
        filter: brightness(1) saturate(1);
        border-width: 2px;
    }
    50% { 
        filter: brightness(1.4) saturate(1.3);
        border-width: 5px;
    }
}

/* 城市级政策特效 */
@keyframes city-wave {
    0% { 
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    50% { 
        background-position: 100% 50%;
        filter: hue-rotate(30deg);
    }
    100% { 
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
}

@keyframes city-glow {
    0%, 100% { 
        box-shadow: 
            0 0 25px rgba(0, 255, 150, 0.5),
            inset 0 0 25px rgba(200, 255, 255, 0.1),
            0 0 50px rgba(0, 255, 150, 0.3);
    }
    50% { 
        box-shadow: 
            0 0 50px rgba(100, 255, 200, 0.8),
            inset 0 0 35px rgba(200, 255, 255, 0.3),
            0 0 80px rgba(50, 255, 180, 0.5);
    }
}

/* 区级政策特效 */
@keyframes district-matrix {
    0% { 
        background: radial-gradient(circle at 30% 30%, 
            rgba(150, 0, 255, 0.4) 0%, 
            rgba(120, 0, 200, 0.3) 50%, 
            rgba(100, 0, 150, 0.6) 100%);
    }
    25% { 
        background: radial-gradient(circle at 70% 30%, 
            rgba(180, 50, 255, 0.5) 0%, 
            rgba(150, 30, 220, 0.4) 50%, 
            rgba(120, 0, 180, 0.7) 100%);
    }
    50% { 
        background: radial-gradient(circle at 70% 70%, 
            rgba(200, 100, 255, 0.6) 0%, 
            rgba(170, 50, 240, 0.5) 50%, 
            rgba(140, 20, 200, 0.8) 100%);
    }
    75% { 
        background: radial-gradient(circle at 30% 70%, 
            rgba(170, 30, 255, 0.5) 0%, 
            rgba(140, 10, 210, 0.4) 50%, 
            rgba(110, 0, 170, 0.7) 100%);
    }
    100% { 
        background: radial-gradient(circle at 30% 30%, 
            rgba(150, 0, 255, 0.4) 0%, 
            rgba(120, 0, 200, 0.3) 50%, 
            rgba(100, 0, 150, 0.6) 100%);
    }
}

@keyframes district-spark {
    0%, 100% { 
        box-shadow: 
            0 0 30px rgba(200, 0, 255, 0.6),
            inset 0 0 30px rgba(255, 200, 255, 0.1),
            0 0 60px rgba(180, 0, 255, 0.4);
    }
    25% { 
        box-shadow: 
            0 0 45px rgba(255, 100, 255, 0.8),
            inset 0 0 40px rgba(255, 200, 255, 0.3),
            0 0 90px rgba(220, 50, 255, 0.6);
    }
    50% { 
        box-shadow: 
            0 0 35px rgba(180, 50, 255, 0.7),
            inset 0 0 35px rgba(255, 180, 255, 0.2),
            0 0 75px rgba(200, 30, 255, 0.5);
    }
    75% { 
        box-shadow: 
            0 0 50px rgba(255, 150, 255, 0.9),
            inset 0 0 45px rgba(255, 220, 255, 0.4),
            0 0 100px rgba(240, 80, 255, 0.7);
    }
}

@keyframes expand-animation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* 气泡内部科幻效果 */
.bubble-inner-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
}

/* 内部旋转环 */
.inner-ring {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 50%;
    animation: inner-ring-rotate 12s linear infinite;
}

.inner-ring::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: rgba(0, 255, 255, 0.8);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
    animation: ring-dot-pulse 2s infinite ease-in-out;
}

/* 数据点 */
.data-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.data-dots::before,
.data-dots::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(0, 200, 255, 0.7);
    border-radius: 50%;
    animation: data-dot-orbit 8s linear infinite;
}

.data-dots::before {
    top: 30%;
    left: 30%;
    animation-delay: 0s;
}

.data-dots::after {
    top: 60%;
    left: 60%;
    animation-delay: -4s;
}

/* 能量线条 */
.energy-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
}

.energy-lines::before,
.energy-lines::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 200, 0.6) 50%, 
        transparent 100%);
    top: 50%;
    left: 0;
    transform-origin: center;
    animation: energy-line-rotate 6s linear infinite;
}

.energy-lines::before {
    animation-delay: 0s;
}

.energy-lines::after {
    animation-delay: -3s;
    transform: rotate(90deg);
}

/* 圆环内容 */
.bubble-content {
    text-align: center;
    color: #ffffff;
    padding: 10px;
    position: relative;
    z-index: 10;
}

.bubble-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 0 5px rgba(0, 150, 255, 0.8);
    line-height: 1.2;
}

/* 圆环详细信息展示 */
.bubble-detail-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    box-sizing: border-box;
    overflow: hidden;
}

.bubble-detail-content.show {
    opacity: 1;
    transform: scale(1); /* 展开状态下使用正常大小 */
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    display: block;
    z-index: 10;
}

.detail-title {
    font-size: 18px; /* 展开状态下使用正常大小 */
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(0, 150, 255, 0.8);
    line-height: 1.2;
}

.detail-meta {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.detail-meta-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.detail-meta-item i {
    color: #00d4ff;
    font-size: 14px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}

.detail-tag {
    padding: 4px 8px;
    background: rgba(0, 150, 255, 0.3);
    color: #00d4ff;
    border: 1px solid rgba(0, 150, 255, 0.5);
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.detail-description {
    font-size: 14px; /* 展开状态下使用正常大小 */
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin-bottom: 0;
    max-height: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-clamp: 4;
}

/* 悬停效果动画 */
@keyframes hover-energy {
    0%, 100% { 
        filter: brightness(1.3) saturate(1.5) hue-rotate(0deg);
    }
    50% { 
        filter: brightness(1.6) saturate(2) hue-rotate(20deg);
    }
}

@keyframes hover-pulse {
    0%, 100% { 
        border-width: 2px;
        transform: scale(1.15);
    }
    50% { 
        border-width: 6px;
        transform: scale(1.25);
    }
}

@keyframes hover-ring-glow {
    0%, 100% { 
        opacity: 1;
        filter: brightness(1) blur(0px);
    }
    50% { 
        opacity: 1.5;
        filter: brightness(1.8) blur(1px);
    }
}

@keyframes hover-data-boost {
    0%, 100% { 
        opacity: 0.3;
        transform: rotate(0deg) scale(1);
    }
    50% { 
        opacity: 0.9;
        transform: rotate(180deg) scale(1.3);
    }
}

/* 点击能量波动画 */
@keyframes click-energy-wave {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.8);
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
        box-shadow: 0 0 0 30px rgba(0, 255, 255, 0.4);
    }
    100% {
        transform: scale(2);
        opacity: 0;
        box-shadow: 0 0 0 60px rgba(0, 255, 255, 0);
    }
}

/* 拖拽尾迹效果 */
@keyframes drag-trail {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

/* 内部效果动画 */
@keyframes inner-ring-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ring-dot-pulse {
    0%, 100% { 
        opacity: 0.8;
        transform: translateX(-50%) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translateX(-50%) scale(1.5);
    }
}

@keyframes data-dot-orbit {
    0% { 
        transform: rotate(0deg) translateX(20px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% { 
        transform: rotate(360deg) translateX(20px) rotate(-360deg);
        opacity: 0.7;
    }
}

@keyframes energy-line-rotate {
    0% { 
        transform: rotate(0deg);
        opacity: 0.3;
    }
    25% {
        opacity: 0.8;
    }
    50% { 
        transform: rotate(180deg);
        opacity: 0.5;
    }
    75% {
        opacity: 0.9;
    }
    100% { 
        transform: rotate(360deg);
        opacity: 0.3;
    }
}

/* 页面切换按钮 */
.page-switch-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    color: rgba(0, 255, 255, 0.9);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: switch-btn-pulse 3s infinite ease-in-out;
}

.page-switch-btn:hover {
    background: rgba(0, 50, 100, 0.95);
    border-color: rgba(0, 255, 255, 1);
    color: #00ffff;
    transform: scale(1.05);
    box-shadow: 
        0 0 30px rgba(0, 200, 255, 0.8),
        inset 0 0 30px rgba(0, 255, 255, 0.2),
        0 0 50px rgba(0, 150, 255, 0.6);
    animation: switch-btn-hover 1.5s infinite ease-in-out;
}

.page-switch-btn:active {
    transform: scale(0.95);
}

.page-switch-btn i {
    font-size: 12px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.page-switch-btn span {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    text-shadow: 0 0 5px rgba(0, 200, 255, 0.6);
}

@keyframes switch-btn-pulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0, 150, 255, 0.4),
            inset 0 0 20px rgba(0, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(0, 200, 255, 0.6),
            inset 0 0 25px rgba(0, 255, 255, 0.2);
    }
}

@keyframes switch-btn-hover {
    0%, 100% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
    50% {
        transform: scale(1.08);
        filter: brightness(1.4);
    }
}

/* 问数平台标识 */
.platform-logo {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;
    width: 3818px;
    height: 107px;
    background-image: url('../images/bg_top.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 底部数据信息行 */
.bottom-data-info {
    position: fixed;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    pointer-events: none;
}

.data-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    border-radius: 15px;
    transition: all 0.3s ease;
    animation: data-item-glow 3s infinite ease-in-out;
}

/* .data-item:hover {
    background: rgba(0, 30, 60, 0.6);
    border-color: rgba(0, 150, 255, 0.8);
    box-shadow: 
        0 0 30px rgba(0, 150, 255, 0.5),
        inset 0 0 25px rgba(50, 180, 255, 0.15);
    transform: translateY(-3px);
} */

.data-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.3), rgba(50, 180, 255, 0.2));
    border: 2px solid rgba(0, 150, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 
        0 0 15px rgba(0, 150, 255, 0.4),
        inset 0 0 10px rgba(50, 180, 255, 0.2);
}

.data-icon-circle i {
    font-size: 22px;
    color: rgba(50, 180, 255, 0.9);
    text-shadow: 0 0 10px rgba(0, 150, 255, 0.8);
}

.data-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.data-title {
    font-size: 13px;
    color: rgba(150, 200, 255, 0.8);
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0, 150, 255, 0.4);
    white-space: nowrap;
}

.data-value {
    font-size: 24px;
    font-weight: bold;
    color: rgba(50, 180, 255, 1);
    text-shadow: 
        0 0 10px rgba(0, 150, 255, 0.8),
        0 0 20px rgba(0, 150, 255, 0.4);
    letter-spacing: 1px;
    font-family: 'Arial', sans-serif;
}

/* 底部背景（可点击整齐排列，拖拽到底部删除） */
.bottom-logo {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: auto;
    cursor: pointer;
    width: 3818px;
    height: 107px;
    background-image: url('../images/bg_bottom.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-logo:hover {
    opacity: 1;
    filter: brightness(1.3) 
            drop-shadow(0 0 30px rgba(0, 150, 255, 0.9))
            drop-shadow(0 0 60px rgba(50, 180, 255, 0.7))
            drop-shadow(0 0 90px rgba(0, 150, 255, 0.5))
            drop-shadow(0 0 120px rgba(0, 150, 255, 0.3));
}

.bottom-logo:active {
    opacity: 0.8;
    transform: translateX(-50%) scale(0.98);
}

/* 底部logo删除激活状态（红色发光） */
.bottom-logo.delete-active {
    filter: brightness(1.4) hue-rotate(180deg) saturate(1.8)
            drop-shadow(0 0 40px rgba(255, 50, 50, 1))
            drop-shadow(0 0 80px rgba(255, 100, 100, 0.9))
            drop-shadow(0 0 120px rgba(255, 150, 150, 0.7))
            drop-shadow(0 0 160px rgba(255, 200, 200, 0.5));
    animation: bottom-logo-delete-pulse 1s infinite ease-in-out;
}

@keyframes bottom-logo-delete-pulse {
    0%, 100% {
        filter: brightness(1.4) hue-rotate(180deg) saturate(1.8)
                drop-shadow(0 0 40px rgba(255, 50, 50, 1))
                drop-shadow(0 0 80px rgba(255, 100, 100, 0.9))
                drop-shadow(0 0 120px rgba(255, 150, 150, 0.7))
                drop-shadow(0 0 160px rgba(255, 200, 200, 0.5));
    }
    50% {
        filter: brightness(1.6) hue-rotate(180deg) saturate(2.2)
                drop-shadow(0 0 60px rgba(255, 100, 100, 1))
                drop-shadow(0 0 120px rgba(255, 150, 150, 1))
                drop-shadow(0 0 180px rgba(255, 200, 200, 0.9))
                drop-shadow(0 0 240px rgba(255, 250, 250, 0.7));
    }
}

/* 底部logo中的倒计时显示 */
.bottom-logo .delete-countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #ff4444;
    text-shadow: 
        0 0 10px rgba(255, 100, 100, 1),
        0 0 20px rgba(255, 150, 150, 0.8),
        0 0 30px rgba(255, 200, 200, 0.6);
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: countdown-pulse 0.5s infinite ease-in-out;
    z-index: 1001;
}

.platform-text {
    font-family: 'Microsoft YaHei', 'Arial', sans-serif;
    font-size: 35px;
    font-weight: 700;
    color: rgba(0, 200, 255, 0.8);
    text-shadow: 
        0 0 10px rgba(0, 200, 255, 0.6),
        0 0 20px rgba(0, 150, 255, 0.4),
        0 0 30px rgba(0, 100, 255, 0.3);
    letter-spacing: 2px;
    background: transparent;
    padding: 8px 16px;
    border: none;
    animation: platform-glow 4s infinite ease-in-out;
    position: relative;
    z-index: 1001;
    white-space: nowrap;
    margin: 0;
    margin-bottom: 30px;
}

/* 添加科幻扫描线效果 */
.platform-text::before {
    content: '';
    position: absolute;
    top: 25%;
    left: -100%;
    width: 100%;
    height: 50%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 255, 255, 0.2) 50%,
        transparent 100%);
    animation: platform-scan 3s infinite ease-in-out;
    pointer-events: none;
    z-index: -1;
}

/* 添加数据流点效果 */
.platform-text::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 4px;
    height: 4px;
    background: rgba(0, 255, 255, 0.8);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: platform-dot-pulse 2s infinite ease-in-out;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    pointer-events: none;
    z-index: -1;
}

/* 发光脉冲动画 */
@keyframes platform-glow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(0, 200, 255, 0.6),
            0 0 20px rgba(0, 150, 255, 0.4),
            0 0 30px rgba(0, 100, 255, 0.3);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(0, 255, 255, 0.8),
            0 0 30px rgba(0, 200, 255, 0.6),
            0 0 45px rgba(0, 150, 255, 0.4);
    }
}

/* 呼吸脉冲动画 */
@keyframes platform-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.02);
        opacity: 1;
    }
}

/* 扫描线动画 */
@keyframes platform-scan {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* 数据点脉冲动画 */
@keyframes platform-dot-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.3);
    }
}

/* 一键整齐排列按钮样式 */
.arrange-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(0, 150, 255, 0.3) 0%,
        rgba(0, 100, 200, 0.2) 50%,
        rgba(0, 50, 150, 0.4) 100%);
    border: 3px solid rgba(0, 200, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 30px rgba(0, 150, 255, 0.4),
        inset 0 0 20px rgba(0, 200, 255, 0.1),
        0 0 60px rgba(0, 150, 255, 0.2);
    animation: arrange-button-pulse 3s infinite ease-in-out;
    transition: all 0.3s ease;
    overflow: hidden;
    gap: 8px;
}

.arrange-button:hover {
    transform: scale(1.1);
    border-color: rgba(0, 255, 255, 0.9);
    box-shadow: 
        0 0 50px rgba(0, 200, 255, 0.8),
        inset 0 0 30px rgba(0, 255, 255, 0.2),
        0 0 100px rgba(0, 200, 255, 0.4);
    animation: arrange-button-hover 1.5s infinite ease-in-out;
}

.arrange-button:active {
    transform: scale(0.95);
}

.arrange-button-icon {
    font-size: 28px;
    color: rgba(0, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.8);
    animation: arrange-icon-pulse 2s infinite ease-in-out;
}

.arrange-button-text {
    font-size: 12px;
    font-weight: bold;
    color: rgba(0, 255, 255, 0.9);
    text-shadow: 0 0 5px rgba(0, 200, 255, 0.6);
    line-height: 1.2;
    text-align: center;
}

@keyframes arrange-button-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 30px rgba(0, 150, 255, 0.4),
            inset 0 0 20px rgba(0, 200, 255, 0.1),
            0 0 60px rgba(0, 150, 255, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 0 40px rgba(0, 200, 255, 0.6),
            inset 0 0 25px rgba(0, 255, 255, 0.2),
            0 0 80px rgba(0, 200, 255, 0.3);
    }
}

@keyframes arrange-button-hover {
    0%, 100% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
    50% {
        transform: scale(1.15);
        filter: brightness(1.4);
    }
}

@keyframes arrange-icon-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* 气泡排列动画效果 */
.document-bubble.arranging {
    animation: arrange-bubble-effect 0.6s ease-out;
}

@keyframes arrange-bubble-effect {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


@keyframes countdown-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* 气泡进入删除区域时的样式 */
.document-bubble.in-delete-zone {
    border-color: rgba(255, 100, 100, 1) !important;
    box-shadow: 
        0 0 40px rgba(255, 100, 100, 0.8),
        inset 0 0 30px rgba(255, 150, 150, 0.3),
        0 0 80px rgba(255, 100, 100, 0.6) !important;
    animation: bubble-delete-warning 1s infinite ease-in-out !important;
}

@keyframes bubble-delete-warning {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1) hue-rotate(0deg);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.3) hue-rotate(20deg);
    }
}

/* 气泡创建完成动画 */
@keyframes bubble-creation-complete {
    0% {
        transform: scale(1);
        box-shadow: 
            0 0 20px rgba(0, 150, 255, 0.4),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 
            0 0 40px rgba(0, 200, 255, 0.8),
            inset 0 0 30px rgba(255, 255, 255, 0.3),
            0 0 60px rgba(0, 255, 255, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 
            0 0 20px rgba(0, 150, 255, 0.4),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
}

/* 临时气泡样式 */
.temp-bubble {
    pointer-events: none !important;
    animation: none !important;
}

.temp-bubble .bubble-content {
    font-size: 8px;
    padding: 2px;
}

.temp-bubble .bubble-title {
    font-size: 6px;
    line-height: 1;
    margin-bottom: 1px;
}

/* 关闭按钮样式 */
.detail-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 80, 80, 0.8);
    border: 2px solid rgba(255, 120, 120, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 80, 80, 0.5);
}

.detail-close-btn:hover {
    background: rgba(255, 100, 100, 1);
    border-color: rgba(255, 150, 150, 1);
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 100, 100, 0.8);
}

.detail-close-btn:active {
    transform: scale(0.95);
}

.detail-close-btn i {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
}

/* 展开状态下的媒体内容样式 - 左右分栏布局 */
.document-bubble.is-expanded .detail-media-section {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    z-index: 1;
    min-height: 300px;
}

/* 左侧多媒体区域 - 62%宽度 */
.document-bubble.is-expanded .detail-media-container {
    position: relative;
    width: 62%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-right: 2px solid rgba(0, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
    min-width: 300px;
    box-sizing: border-box;
}

.document-bubble.is-expanded .detail-media-main {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.document-bubble.is-expanded .detail-media-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.document-bubble.is-expanded .detail-media-item.active {
    opacity: 1;
}

.document-bubble.is-expanded .detail-media-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.1);
}

.document-bubble.is-expanded .detail-media-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    z-index: 1000; /* 确保视频控制层级高于气泡拖拽 */
    pointer-events: auto; /* 确保视频可以接收事件 */
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    /* 优化视频播放性能 */
    will-change: auto;
    transform: translateZ(0); /* 启用硬件加速 */
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* 优化视频缓冲 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.document-bubble.is-expanded .detail-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* 确保不阻挡视频控制 */
}

.document-bubble.is-expanded .detail-media-item:hover .detail-media-overlay {
    opacity: 1;
}

.document-bubble.is-expanded .detail-media-overlay i {
    color: #00ffff;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* 轮播点导航 - 调整到左侧多媒体区域 */
.document-bubble.is-expanded .detail-media-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.document-bubble.is-expanded .detail-media-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001; /* 确保轮播点层级最高 */
    pointer-events: auto; /* 确保可以接收点击事件 */
}

.document-bubble.is-expanded .detail-media-dot:hover {
    background: rgba(0, 255, 255, 0.6);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.document-bubble.is-expanded .detail-media-dot.active {
    background: rgba(0, 255, 255, 0.9);
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

.document-bubble.is-expanded .detail-media-dot.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* 右侧内容区域 - 38%宽度 */
.document-bubble.is-expanded .detail-content-right {
    position: relative;
    width: 38%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* y方向上居中 */
    align-items: flex-start; /* x方向上左对齐 */
    padding: 15px 5% 15px 15px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.5) transparent;
    z-index: 1000; /* 确保内容区域层级高于拖拽 */
    pointer-events: auto; /* 确保可以接收事件 */
    min-width: 200px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* 无媒体时的内容居中样式 */
.document-bubble.is-expanded .detail-content-right[style*="width: 100%"] {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.document-bubble.is-expanded .detail-content-right[style*="width: 100%"] .detail-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(0, 150, 255, 0.8);
    line-height: 1.2;
}

.document-bubble.is-expanded .detail-content-right[style*="width: 100%"] .detail-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 20px auto; /* 添加底部边距 */
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    word-wrap: break-word;
    word-break: break-word;
}

.document-bubble.is-expanded .detail-content-right::-webkit-scrollbar {
    width: 4px;
}

.document-bubble.is-expanded .detail-content-right::-webkit-scrollbar-track {
    background: transparent;
}

.document-bubble.is-expanded .detail-content-right::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
    border-radius: 2px;
}

.document-bubble.is-expanded .detail-content-right::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.7);
}

/* 右侧内容样式 */
.document-bubble.is-expanded .detail-content-right .detail-title {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(0, 150, 255, 0.8);
    line-height: 1.2;
}

.document-bubble.is-expanded .detail-content-right .detail-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-align: left;
    /* 展开状态下显示完整内容，但限制在容器内 */
    overflow-y: auto;
    max-height: none;
    /* text-overflow: clip; */
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    line-clamp: unset;
    /* 确保文字不会超出父容器 */
    word-wrap: break-word;
    word-break: break-word;
}

/* 浮动标签样式已移除，标签现在在右侧内容区域中显示 */

/* 书页翻开动画效果 */
.book-page-left,
.book-page-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    z-index: 1000;
}

.book-page-left {
    left: 0;
    transform-origin: right center;
    animation: book-page-flip-left 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    border-right: 2px solid rgba(0, 255, 255, 0.6);
    box-shadow: 
        2px 0 20px rgba(0, 255, 255, 0.4),
        inset -5px 0 15px rgba(0, 255, 255, 0.2);
}

.book-page-right {
    right: 0;
    transform-origin: left center;
    animation: book-page-flip-right 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    border-left: 2px solid rgba(0, 255, 255, 0.6);
    box-shadow: 
        -2px 0 20px rgba(0, 255, 255, 0.4),
        inset 5px 0 15px rgba(0, 255, 255, 0.2);
}

/* 书脊光效 */
.book-spine {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(0, 255, 255, 0.8) 10%,
        rgba(0, 255, 255, 1) 50%,
        rgba(0, 255, 255, 0.8) 90%,
        transparent 100%
    );
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.8),
        0 0 40px rgba(0, 255, 255, 0.6),
        0 0 60px rgba(0, 255, 255, 0.4);
    animation: book-spine-glow 1.2s ease-out forwards;
    z-index: 1001;
}

/* 书页翻开动画 - 左页 */
@keyframes book-page-flip-left {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
        box-shadow: 
            2px 0 20px rgba(0, 255, 255, 0.4),
            inset -5px 0 15px rgba(0, 255, 255, 0.2);
    }
    30% {
        transform: rotateY(-15deg);
        box-shadow: 
            10px 0 40px rgba(0, 255, 255, 0.6),
            inset -10px 0 25px rgba(0, 255, 255, 0.3);
    }
    60% {
        transform: rotateY(-75deg);
        box-shadow: 
            30px 0 60px rgba(0, 255, 255, 0.8),
            inset -20px 0 35px rgba(0, 255, 255, 0.4);
    }
    100% {
        transform: rotateY(-180deg);
        opacity: 0;
        box-shadow: 
            50px 0 80px rgba(0, 255, 255, 0.2),
            inset -30px 0 45px rgba(0, 255, 255, 0.1);
    }
}

/* 书页翻开动画 - 右页 */
@keyframes book-page-flip-right {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
        box-shadow: 
            -2px 0 20px rgba(0, 255, 255, 0.4),
            inset 5px 0 15px rgba(0, 255, 255, 0.2);
    }
    30% {
        transform: rotateY(15deg);
        box-shadow: 
            -10px 0 40px rgba(0, 255, 255, 0.6),
            inset 10px 0 25px rgba(0, 255, 255, 0.3);
    }
    60% {
        transform: rotateY(75deg);
        box-shadow: 
            -30px 0 60px rgba(0, 255, 255, 0.8),
            inset 20px 0 35px rgba(0, 255, 255, 0.4);
    }
    100% {
        transform: rotateY(180deg);
        opacity: 0;
        box-shadow: 
            -50px 0 80px rgba(0, 255, 255, 0.2),
            inset 30px 0 45px rgba(0, 255, 255, 0.1);
    }
}

/* 书脊光效动画 */
@keyframes book-spine-glow {
    0% {
        opacity: 0;
        transform: translateX(-50%) scaleY(0);
        box-shadow: 
            0 0 10px rgba(0, 255, 255, 0.4);
    }
    20% {
        opacity: 1;
        transform: translateX(-50%) scaleY(0.5);
    }
    40% {
        transform: translateX(-50%) scaleY(1);
        box-shadow: 
            0 0 40px rgba(0, 255, 255, 1),
            0 0 80px rgba(0, 255, 255, 0.8),
            0 0 120px rgba(0, 255, 255, 0.6);
    }
    70% {
        opacity: 1;
        box-shadow: 
            0 0 30px rgba(0, 255, 255, 0.8),
            0 0 60px rgba(0, 255, 255, 0.6);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scaleY(1);
        box-shadow: 
            0 0 10px rgba(0, 255, 255, 0.2);
    }
}

/* 内容渐显动画 */
@keyframes content-reveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* 应用内容渐显到展开的气泡 */
.document-bubble.is-expanded .bubble-detail-content.show {
    animation: content-reveal 0.6s ease-out 0.6s both;
}

/* 粒子爆发动画 */
/* 加载转圈动画 */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-top: 2px solid #00ffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

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

@keyframes particle-burst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* 图表容器样式 */
.charts-container {
    position: fixed;
    top: 60px;
    width: 350px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.charts-left {
    left: 20px;
}

.charts-right {
    right: 20px;
}

.chart-panel {
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.chart-panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(0, 150, 255, 0.1) 0%,
        transparent 25%,
        transparent 75%,
        rgba(0, 150, 255, 0.1) 100%);
    border-radius: 12px;
    z-index: -1;
    animation: chart-border-scan 4s linear infinite;
}

.chart-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, 
        rgba(50, 180, 255, 0.05) 0%, 
        transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.chart-title {
    font-size: 14px;
    font-weight: bold;
    color: rgba(50, 180, 255, 0.9);
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 150, 255, 0.6);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 150, 255, 0.2);
}

.chart-panel canvas {
    position: relative;
    z-index: 1;
    max-height: 150px;
}

/* 环形图容器样式（用于在中间显示图标） */
.chart-panel.doughnut-container {
    position: relative;
}

.chart-panel.doughnut-container .doughnut-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-size: 32px;
    color: rgba(50, 180, 255, 0.9);
    text-shadow: 0 0 10px rgba(0, 150, 255, 0.8);
    pointer-events: none;
}

/* 环形图图例样式优化 */
.chart-panel {
    overflow: visible;
}

/* Chart.js 图例容器样式 */
.chart-panel > div:not(.doughnut-icon) {
    margin-top: 8px;
}

.chart-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    align-items: center;
}

.chart-panel ul li {
    display: flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(0, 20, 40, 0.7);
    border: 1px solid rgba(0, 150, 255, 0.4);
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 11px;
    color: #ffffff;
    text-shadow: 
        0 0 8px rgba(0, 150, 255, 0.8),
        0 0 12px rgba(0, 150, 255, 0.6),
        0 1px 2px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    font-weight: 500;
}

.chart-panel ul li:hover {
    background: rgba(0, 50, 100, 0.9);
    border-color: rgba(0, 200, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(0, 150, 255, 0.4);
    color: #ffffff;
    text-shadow: 
        0 0 12px rgba(0, 255, 255, 1),
        0 0 18px rgba(0, 200, 255, 0.8),
        0 1px 3px rgba(0, 0, 0, 0.9);
}

.chart-panel ul li span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 5px rgba(0, 150, 255, 0.5);
}

/* 数字人气泡样式 */
.digital-human-bubble {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 100, 200, 0.3), rgba(0, 200, 255, 0.3));
    border: 3px solid rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4),
                inset 0 0 30px rgba(0, 150, 255, 0.2);
    cursor: move;
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.digital-human-bubble::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    animation: human-bubble-rotate 20s linear infinite;
    pointer-events: none;
}

.digital-human-bubble::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    animation: human-bubble-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

.digital-human-bubble:hover {
    border-color: rgba(0, 255, 136, 0.8);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.6),
                inset 0 0 40px rgba(0, 255, 136, 0.3);
    transform: scale(1.05);
}

.digital-human-bubble.dragging {
    cursor: grabbing;
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.8),
                inset 0 0 50px rgba(0, 255, 255, 0.4);
    z-index: 10000;
}

/* 橙色边框样式（用于"小道小道"唤醒词） */
.digital-human-bubble.orange-border {
    border: 3px solid rgba(255, 165, 0, 0.9) !important;
    box-shadow: 0 0 40px rgba(255, 165, 0, 0.8),
                inset 0 0 30px rgba(255, 165, 0, 0.3) !important;
    animation: orange-border-pulse 2s ease-in-out infinite;
}

.digital-human-bubble.orange-border::after {
    border-color: rgba(255, 165, 0, 0.6) !important;
}

.digital-human-bubble.orange-border::before {
    background: radial-gradient(circle, rgba(255, 165, 0, 0.2) 0%, transparent 70%) !important;
}

@keyframes orange-border-pulse {
    0%, 100% {
        box-shadow: 0 0 40px rgba(255, 165, 0, 0.8),
                    inset 0 0 30px rgba(255, 165, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 60px rgba(255, 165, 0, 1),
                    inset 0 0 40px rgba(255, 165, 0, 0.5);
    }
}

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

@keyframes human-bubble-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.human-bubble-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.human-video-container {
    position: relative;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.human-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.human-connection-status {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 20, 40, 0.9);
    padding: 4px 10px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    font-size: 11px;
    color: rgba(200, 220, 255, 0.9);
    z-index: 10;
    pointer-events: none;
}

.human-connection-status.connected {
    border-color: rgba(0, 255, 136, 0.6);
    background: rgba(0, 50, 30, 0.9);
}

.connection-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 100, 100, 0.8);
    box-shadow: 0 0 8px rgba(255, 100, 100, 0.6);
    animation: connection-dot-pulse 2s ease-in-out infinite;
}

.connection-dot.connected {
    background: rgba(0, 255, 136, 0.8);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.human-voice-subtitle {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: #e8f9ff;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
    display: none;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    pointer-events: none;
    z-index: 15;
}

.human-voice-subtitle.show {
    display: block;
}

@keyframes connection-dot-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.human-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.human-control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 50, 100, 0.9);
    border: 2px solid rgba(0, 255, 255, 0.6);
    color: rgba(0, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.human-control-btn:hover {
    background: rgba(0, 100, 200, 0.9);
    border-color: rgba(0, 255, 136, 0.8);
    color: rgba(0, 255, 136, 1);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.human-control-btn:active {
    transform: scale(0.95);
}

.human-control-btn.recording {
    background: rgba(255, 50, 50, 0.9);
    border-color: rgba(255, 100, 100, 0.8);
    color: #ffffff;
    animation: recording-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 25px rgba(255, 100, 100, 0.6);
}

@keyframes recording-pulse {
    0%, 100% {
        box-shadow: 0 0 25px rgba(255, 100, 100, 0.6);
    }
    50% {
        box-shadow: 0 0 35px rgba(255, 100, 100, 0.9);
    }
}

/* 响应式设计 - 数字人 */
@media (max-width: 768px) {
    .digital-human-bubble {
        width: 250px;
        height: 250px;
    }
    
    .human-control-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .human-connection-status {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@keyframes chart-border-scan {
    0% {
        background-position: -100% -100%;
    }
    100% {
        background-position: 200% 200%;
    }
}

/* ========== 新增科幻动效样式 ========== */

/* 星星轨道拖尾效果（飞船驾驶舱感觉） */
.star-trail {
    position: fixed;
    height: var(--trail-thickness, 1px);
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.9) 5%,
        rgba(0, 255, 255, 0.8) 15%,
        rgba(0, 255, 255, 0.5) 40%,
        rgba(0, 255, 255, 0.2) 70%,
        rgba(0, 255, 255, 0.05) 90%,
        transparent 100%
    );
    box-shadow: 
        0 0 6px rgba(255, 255, 255, 1),
        0 0 12px rgba(0, 255, 255, 0.9),
        0 0 20px rgba(0, 255, 255, 0.7),
        0 0 35px rgba(0, 255, 255, 0.5);
    pointer-events: none;
    z-index: 1; /* 确保在地图容器（z-index: 3）下方 */
    animation: star-trail-fly 1s ease-out forwards;
    transform-origin: 0 50%;
    opacity: 0;
}

@keyframes star-trail-fly {
    0% {
        opacity: 0;
        transform: rotate(var(--trail-angle, 0deg)) scaleX(0);
        filter: blur(0px);
    }
    10% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
        filter: blur(0.5px);
    }
    90% {
        opacity: 0.6;
        filter: blur(1px);
    }
    100% {
        opacity: 0;
        transform: rotate(var(--trail-angle, 0deg)) scaleX(1);
        filter: blur(2px);
    }
}

/* 保留旧类名以兼容（如果需要） */
.hologram-scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 255, 255, 0.6) 20%,
        rgba(0, 255, 255, 1) 50%,
        rgba(0, 255, 255, 0.6) 80%,
        transparent 100%
    );
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.6),
        0 0 30px rgba(0, 255, 255, 0.4);
    animation: hologram-scan 4s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes hologram-scan {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh);
    }
}

/* 能量波纹效果 */
.energy-ripple {
    position: absolute;
    width: 0;
    height: 0;
    border: 3px solid rgba(0, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: energy-ripple-expand 2s ease-out forwards;
    pointer-events: none;
    z-index: 2;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.6),
        0 0 40px rgba(0, 255, 255, 0.4),
        0 0 60px rgba(0, 255, 255, 0.2);
}

@keyframes energy-ripple-expand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

/* 数据流效果 */
.data-stream {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 255, 255, 0.8) 20%,
        rgba(0, 255, 255, 1) 50%,
        rgba(0, 255, 255, 0.8) 80%,
        transparent 100%
    );
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.6);
    animation: data-stream-fall linear forwards;
    pointer-events: none;
    z-index: 2;
}

@keyframes data-stream-fall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px));
        opacity: 0;
    }
}

/* 浮动几何图形 */
.floating-geometry {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    opacity: 0.4;
    filter: blur(1px);
}

.floating-geometry.triangle {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid rgba(0, 255, 255, 0.6);
    animation: geometry-float linear infinite;
}

.floating-geometry.square {
    width: 20px;
    height: 20px;
    background: rgba(0, 255, 255, 0.6);
    transform: rotate(45deg);
    animation: geometry-float linear infinite;
}

.floating-geometry.hexagon {
    width: 20px;
    height: 20px;
    background: rgba(0, 255, 255, 0.6);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: geometry-float linear infinite;
}

@keyframes geometry-float {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(1);
        opacity: 0.6;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* 星空背景 */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 
        0 0 4px rgba(255, 255, 255, 0.8),
        0 0 8px rgba(0, 255, 255, 0.6);
    animation: star-twinkle ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes star-twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* 能量脉冲波 */
.energy-pulse {
    position: absolute;
    width: 0;
    height: 0;
    border: 2px solid rgba(0, 255, 136, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: energy-pulse-expand 3s ease-out forwards;
    pointer-events: none;
    z-index: 2;
    box-shadow: 
        0 0 30px rgba(0, 255, 136, 0.8),
        0 0 60px rgba(0, 255, 136, 0.6),
        0 0 90px rgba(0, 255, 136, 0.4);
}

@keyframes energy-pulse-expand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        border-width: 3px;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        width: 600px;
        height: 600px;
        opacity: 0;
        border-width: 1px;
    }
}

/* 科幻UI边框扫描效果 - 增强现有图表面板 */
/* 注意：.chart-panel::before 已在前面定义，这里只添加动画增强 */

/* 全息文字效果 - 应用到平台标识 */
.platform-text {
    position: relative;
    background: linear-gradient(90deg,
        rgba(0, 200, 255, 0.1) 0%,
        rgba(0, 255, 255, 0.3) 50%,
        rgba(0, 200, 255, 0.1) 100%
    );
    background-size: 200% 100%;
    animation: hologram-text-shimmer 3s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes hologram-text-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 科幻光晕呼吸效果 - 应用到数据项 */
.data-item {
    position: relative;
}

.data-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border-radius: 15px;
    background: radial-gradient(circle,
        rgba(0, 255, 255, 0.1) 0%,
        transparent 70%
    );
    animation: data-item-breathe 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes data-item-breathe {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* 粒子轨迹效果 - 增强现有粒子 */
.particle {
    position: relative;
}

.particle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: rgba(0, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 
        0 0 8px rgba(0, 255, 255, 0.8),
        0 0 16px rgba(0, 255, 255, 0.6);
    animation: particle-trail 0.5s ease-out forwards;
}

@keyframes particle-trail {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
}

/* 3D旋转立方体效果 - 应用到数字人气泡 */
.digital-human-bubble::before {
    animation: human-bubble-rotate 20s linear infinite,
               hologram-scan-overlay 5s linear infinite;
}

@keyframes hologram-scan-overlay {
    0% {
        opacity: 0.1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.3;
        filter: brightness(1.5);
    }
    100% {
        opacity: 0.1;
        filter: brightness(1);
    }
}

/* 能量网格效果 - 增强网格线条 */
.grid-lines::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: grid-energy-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes grid-energy-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* 科幻按钮悬停效果增强 */
.page-switch-btn,
.human-control-btn,
.control-btn {
    position: relative;
    overflow: hidden;
}

.page-switch-btn::before,
.human-control-btn::before,
.control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(0, 255, 255, 0.4) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.page-switch-btn:hover::before,
.human-control-btn:hover::before,
.control-btn:hover::before {
    width: 200%;
    height: 200%;
}

/* 响应式优化 - 减少移动端动效 */
@media (max-width: 768px) {
    .hologram-scan-line,
    .star-trail {
        display: none;
    }
    
    .floating-geometry {
        display: none;
    }
    
    .data-stream {
        display: none;
    }
    
    .star {
        opacity: 0.5;
    }
}

/* ========== 新增科幻动效样式 ========== */

/* 鼠标跟随的能量轨迹 */
.mouse-energy-trail {
    position: fixed;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(0, 255, 255, 1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.6),
        0 0 30px rgba(0, 255, 255, 0.4);
    animation: mouse-trail-fade 1s ease-out forwards;
    transform: translate(-50%, -50%);
}

@keyframes mouse-trail-fade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
}

/* 页面启动扫描线 */
.startup-scan {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 255, 255, 0.8) 20%,
        rgba(0, 255, 255, 1) 50%,
        rgba(0, 255, 255, 0.8) 80%,
        transparent 100%
    );
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 1),
        0 0 40px rgba(0, 255, 255, 0.8),
        0 0 60px rgba(0, 255, 255, 0.6);
    z-index: 10000;
    animation: startup-scan-down 2s ease-out forwards;
    pointer-events: none;
}

@keyframes startup-scan-down {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* 启动能量波 */
.startup-wave {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border: 2px solid rgba(0, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: startup-wave-expand 1.5s ease-out forwards;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.8),
        0 0 60px rgba(0, 255, 255, 0.6),
        0 0 90px rgba(0, 255, 255, 0.4);
}

@keyframes startup-wave-expand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 2000px;
        height: 2000px;
        opacity: 0;
    }
}

/* 数字人气泡能量环 */
.human-energy-ring {
    position: fixed;
    width: 0;
    height: 0;
    border: 2px solid rgba(0, 255, 136, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: human-energy-ring-expand 2s ease-out forwards;
    pointer-events: none;
    z-index: 999;
    box-shadow: 
        0 0 20px rgba(0, 255, 136, 0.8),
        0 0 40px rgba(0, 255, 136, 0.6);
}

@keyframes human-energy-ring-expand {
    0% {
        width: 300px;
        height: 300px;
        opacity: 1;
        border-width: 3px;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
        border-width: 1px;
    }
}

/* 图表扫描边框效果 */
.chart-panel.scan-border-active::before {
    animation: chart-border-scan 2s ease-out forwards,
               chart-border-glow 2s ease-in-out infinite;
}

@keyframes chart-border-glow {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(0, 255, 255, 0.4),
            inset 0 0 10px rgba(0, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(0, 255, 255, 0.8),
            inset 0 0 20px rgba(0, 255, 255, 0.4);
    }
}

/* 数据值跳动效果 */
.data-value.value-pulse {
    animation: value-pulse 0.6s ease-in-out;
}

@keyframes value-pulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 
            0 0 10px rgba(0, 150, 255, 0.8),
            0 0 20px rgba(0, 150, 255, 0.4);
    }
    50% {
        transform: scale(1.15);
        text-shadow: 
            0 0 20px rgba(0, 255, 255, 1),
            0 0 40px rgba(0, 255, 255, 0.8),
            0 0 60px rgba(0, 255, 255, 0.6);
    }
}

/* 气泡3D悬停效果 */
.document-bubble.bubble-3d-hover {
    animation: bubble-3d-rotate 3s ease-in-out infinite,
               bubble-float 6s infinite ease-in-out;
    transform-style: preserve-3d;
    perspective: 1000px;
}

@keyframes bubble-3d-rotate {
    0%, 100% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: rotateY(5deg) rotateX(-3deg);
    }
    50% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    75% {
        transform: rotateY(-5deg) rotateX(3deg);
    }
}

/* 地图脉冲效果 */
.china-map-container.map-pulse {
    animation: map-pulse 1s ease-in-out;
}

@keyframes map-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.02);
        filter: brightness(1.2);
    }
}

/* 全息文字扫描效果 */
.platform-text.hologram-scan {
    position: relative;
    overflow: hidden;
}

.platform-text.hologram-scan::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: hologram-text-scan 1s ease-out forwards;
    z-index: 1;
}

@keyframes hologram-text-scan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 按钮能量粒子 */
.button-energy-particle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(0, 255, 255, 1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 
        0 0 8px rgba(0, 255, 255, 0.8),
        0 0 16px rgba(0, 255, 255, 0.6);
}

/* 增强粒子轨迹效果 */
.particle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: rgba(0, 255, 255, 0.4);
    border-radius: 50%;
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.6),
        0 0 20px rgba(0, 255, 255, 0.4);
    animation: particle-trail-glow 0.8s ease-out forwards;
}

@keyframes particle-trail-glow {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* 增强网格能量效果 */
.grid-lines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-energy-flow 10s linear infinite;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes grid-energy-flow {
    0% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translate(50px, 50px);
        opacity: 0.3;
    }
}

/* 增强气泡内部能量流 */
.document-bubble:not(.is-expanded)::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    right: 20%;
    bottom: 20%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        rgba(0, 255, 255, 0.2) 0%,
        transparent 50%
    );
    animation: bubble-inner-energy 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes bubble-inner-energy {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.6;
    }
}

/* 增强底部logo的科幻效果 */
.bottom-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: bottom-logo-scan 5s linear infinite;
    pointer-events: none;
}

@keyframes bottom-logo-scan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 增强数据项的科幻边框 */
.data-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 15px;
    background: linear-gradient(45deg,
        rgba(0, 255, 255, 0.3) 0%,
        transparent 25%,
        transparent 75%,
        rgba(0, 255, 255, 0.3) 100%
    );
    background-size: 200% 200%;
    animation: data-item-border-scan 3s linear infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.data-item:hover::before {
    opacity: 1;
}

@keyframes data-item-border-scan {
    0% {
        background-position: -200% -200%;
    }
    100% {
        background-position: 200% 200%;
    }
}

/* 响应式优化 - 新动效 */
@media (max-width: 768px) {
    .mouse-energy-trail {
        display: none;
    }
    
    .startup-scan,
    .startup-wave {
        display: none;
    }
    
    .human-energy-ring {
        display: none;
    }
    
    .button-energy-particle {
        display: none;
    }
}

/* ========== 公司集团树状列表样式 ========== */

/* 公司树容器 */
.company-tree-container {
    position: fixed;
    top: 100px;
    left: 20px;
    width: 280px;
    max-height: calc(100vh - 250px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(5, 15, 35, 0.85);
    border: 1px solid rgba(0, 150, 255, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 0 30px rgba(0, 100, 200, 0.2),
        inset 0 0 20px rgba(0, 100, 200, 0.05);
}

/* 公司树头部 */
.company-tree-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(0, 100, 200, 0.6) 0%, rgba(0, 80, 160, 0.5) 100%);
    border-bottom: 1px solid rgba(0, 150, 255, 0.4);
    min-height: 50px;
}

/* 当前公司显示 */
.company-tree-current {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.company-tree-current i {
    color: rgba(0, 200, 255, 1);
    font-size: 16px;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.8);
    flex-shrink: 0;
}

#currentCompanyName {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
}

/* 展开/收起按钮 */
.company-tree-toggle {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(0, 80, 160, 0.5);
    border: 1px solid rgba(0, 150, 255, 0.4);
    color: rgba(0, 200, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.company-tree-toggle:hover {
    background: rgba(0, 100, 200, 0.6);
    border-color: rgba(0, 200, 255, 0.6);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.4);
}

.company-tree-toggle i {
    font-size: 14px;
}

/* 公司树内容区域 */
.company-tree-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 150, 255, 0.4) transparent;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.company-tree-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
    overflow: hidden;
}

.company-tree-content::-webkit-scrollbar {
    width: 4px;
}

.company-tree-content::-webkit-scrollbar-track {
    background: transparent;
}

.company-tree-content::-webkit-scrollbar-thumb {
    background: rgba(0, 150, 255, 0.4);
    border-radius: 2px;
}

.company-tree-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 200, 255, 0.6);
}

/* 公司树列表 */
.company-tree-list {
    padding: 0 8px;
}

/* 树空状态 */
.company-tree-empty {
    text-align: center;
    color: rgba(150, 180, 220, 0.6);
    font-size: 13px;
    padding: 20px;
}

/* 树节点包装器 */
.tree-node-wrapper {
    width: 100%;
}

/* 树节点行 */
.tree-node-row {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin: 2px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: transparent;
    border: 1px solid transparent;
}

.tree-node-row:hover {
    background: rgba(0, 80, 160, 0.3);
    border-color: rgba(0, 150, 255, 0.3);
}

/* 高亮当前版本对应的公司 */
.tree-node-row.active {
    background: linear-gradient(135deg, rgba(0, 100, 200, 0.7) 0%, rgba(0, 80, 180, 0.6) 100%);
    border-color: rgba(0, 200, 255, 0.6);
    box-shadow: 
        0 0 15px rgba(0, 150, 255, 0.3),
        inset 0 0 10px rgba(0, 200, 255, 0.1);
}

.tree-node-row.active .tree-label {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.8);
}

.tree-node-row.active .tree-icon i {
    color: rgba(0, 255, 255, 1);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* 树缩进 */
.tree-indent {
    display: flex;
    align-items: center;
    height: 100%;
}

/* 树垂直线 */
.tree-line.vertical {
    width: 20px;
    height: 100%;
    position: relative;
}

.tree-line.vertical::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, 
        rgba(0, 150, 255, 0.3) 0%,
        rgba(0, 150, 255, 0.5) 50%,
        rgba(0, 150, 255, 0.3) 100%);
}

/* 树连接线 */
.tree-connector {
    width: 20px;
    height: 100%;
    position: relative;
}

.tree-connector::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 15px;
    height: 1px;
    background: linear-gradient(to right, 
        rgba(0, 150, 255, 0.5) 0%,
        rgba(0, 200, 255, 0.8) 100%);
}

.tree-connector::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 50%;
    width: 1px;
    background: linear-gradient(to bottom, 
        rgba(0, 150, 255, 0.3) 0%,
        rgba(0, 150, 255, 0.5) 100%);
}

/* 展开/折叠图标 */
.tree-toggle {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    flex-shrink: 0;
    cursor: pointer;
    color: rgba(0, 180, 255, 0.7);
    transition: all 0.2s ease;
}

.tree-toggle:hover {
    color: rgba(0, 255, 255, 1);
    transform: scale(1.1);
}

.tree-toggle i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

/* 文件夹/文件图标 */
.tree-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.tree-icon i {
    font-size: 14px;
    color: rgba(0, 180, 255, 0.8);
    transition: all 0.2s ease;
}

/* 集团/母公司 - 建筑图标 */
.tree-icon i.fa-building {
    color: rgba(0, 200, 255, 1);
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.6);
    font-size: 15px;
}

.tree-icon i.fa-folder {
    color: rgba(100, 180, 255, 0.9);
}

.tree-icon i.fa-file-alt {
    color: rgba(150, 200, 255, 0.8);
}

/* 公司名称标签 */
.tree-label {
    flex: 1;
    font-size: 13px;
    color: rgba(200, 220, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

/* 有关联版本的公司名称 - 添加下划线提示可点击 */
.tree-label.has-version {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(0, 200, 255, 0.4);
    text-underline-offset: 3px;
}

.tree-label.has-version:hover {
    text-decoration-color: rgba(0, 255, 255, 0.8);
}

.tree-node-row:hover .tree-label {
    color: #ffffff;
}

/* 子节点容器 */
.tree-children {
    margin-left: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.tree-children.collapsed {
    max-height: 0;
    opacity: 0;
}

/* 公司树动画效果 */
.company-tree-container {
    animation: tree-container-fade-in 0.5s ease-out;
}

@keyframes tree-container-fade-in {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 树节点悬停发光效果 */
.tree-node-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    border-radius: 0 2px 2px 0;
    transition: all 0.2s ease;
}

.tree-node-row:hover::before {
    background: linear-gradient(to bottom, 
        rgba(0, 200, 255, 0.8) 0%,
        rgba(0, 150, 255, 0.6) 100%);
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

.tree-node-row.active::before {
    background: linear-gradient(to bottom, 
        rgba(0, 255, 255, 1) 0%,
        rgba(0, 200, 255, 0.8) 100%);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

/* 公司树容器边框发光效果 */
.company-tree-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 12px;
    background: linear-gradient(135deg, 
        rgba(0, 150, 255, 0.3) 0%,
        transparent 25%,
        transparent 75%,
        rgba(0, 150, 255, 0.3) 100%);
    z-index: -1;
    animation: tree-border-glow 4s linear infinite;
}

@keyframes tree-border-glow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 200%;
    }
}

/* 响应式设计 - 公司树 */
@media (max-width: 1200px) {
    .company-tree-container {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .company-tree-container {
        width: 220px;
        top: 80px;
        left: 10px;
    }
    
    .tree-label {
        font-size: 12px;
    }
    
    #currentCompanyName {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .company-tree-container {
        position: fixed;
        top: auto;
        bottom: 120px;
        left: 10px;
        width: 200px;
        max-height: 300px;
    }
    
    .company-tree-header {
        padding: 10px 12px;
        min-height: 42px;
    }
    
    .company-tree-current i {
        font-size: 14px;
    }
    
    #currentCompanyName {
        font-size: 12px;
    }
    
    .tree-node-row {
        padding: 6px 8px;
    }
    
    .tree-label {
        font-size: 11px;
    }
    
    .tree-icon i {
        font-size: 12px;
    }
}
