/* 极简线性进度条地图 */
.constellation-map {
    position: fixed;
    top: 120px;
    left: 30px;
    width: 220px;
    height: 40px;
    background: rgba(0, 0, 0, 0.15);
    z-index: 999;
    pointer-events: none;
    transition: all 0.3s ease;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.constellation-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 8px 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 线性进度条轨道 */
.progress-track {
    position: absolute;
    left: 16px;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    max-width: 130px;
}

/* 进度条填充 */
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(175, 205, 235, 0.8) 0%, 
        rgba(251, 191, 36, 0.8) 50%, 
        rgba(34, 197, 94, 0.8) 100%);
    border-radius: 2px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* 线性进度点 */
.constellation-node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: auto;
    transform: translateY(-50%);
    top: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
}

.constellation-node:hover {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* 线性布局 - 水平排列 */
.constellation-node[data-area="1"] { /* Clarity */
    left: 16px;
}

.constellation-node[data-area="2"] { /* Echo */
    left: 42px;
}

.constellation-node[data-area="3"] { /* Warm */
    left: 68px;
}

.constellation-node[data-area="4"] { /* Stillness */
    left: 94px;
}

.constellation-node[data-area="5"] { /* Yearning */
    left: 120px;
}

.constellation-node[data-area="6"] { /* Breath */
    left: 146px;
}

/* 线性进度点状态 */
.constellation-node.unlocked {
    background: rgba(251, 191, 36, 0.8);
    border-color: rgba(251, 191, 36, 1);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.constellation-node.locked {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.constellation-node.current {
    background: rgba(34, 197, 94, 0.9);
    border-color: rgba(34, 197, 94, 1);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
    animation: currentPulse 2s infinite ease-in-out;
}

.constellation-node:hover.unlocked {
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.8);
}

.constellation-node:hover.locked {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.constellation-node:hover.current {
    box-shadow: 0 0 20px rgba(34, 197, 94, 1);
}

/* 移除连接线样式（线性布局不需要） */

/* 简约工具提示 */
.constellation-tooltip {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 20;
    backdrop-filter: blur(4px);
}

.constellation-node:hover .constellation-tooltip {
    opacity: 1;
}

/* 简约脉动动画 */
@keyframes currentPulse {
    0%, 100% { 
        box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
        transform: translateY(-50%) scale(1);
    }
    50% { 
        box-shadow: 0 0 16px rgba(34, 197, 94, 1);
        transform: translateY(-50%) scale(1.1);
    }
}

/* 线性进度指示器 */
.constellation-progress {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    z-index: 20;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    min-width: 28px;
    text-align: center;
}

.progress-text {
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .constellation-map {
        width: 180px;
        height: 32px;
        top: 90px;
        left: 20px;
    }
    
    .constellation-node {
        width: 10px;
        height: 10px;
        border-width: 1px;
    }
    
    .constellation-node[data-area="1"] { left: 12px; }
    .constellation-node[data-area="2"] { left: 32px; }
    .constellation-node[data-area="3"] { left: 52px; }
    .constellation-node[data-area="4"] { left: 72px; }
    .constellation-node[data-area="5"] { left: 92px; }
    .constellation-node[data-area="6"] { left: 112px; }
    
    .progress-track {
        right: 50px;
        max-width: 100px;
    }
    
    .constellation-progress {
        font-size: 10px;
        right: 12px;
        min-width: 24px;
    }
}

@media (max-width: 480px) {
    .constellation-map {
        width: 160px;
        height: 28px;
        top: 80px;
        left: 15px;
    }
    
    .constellation-node {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }
    
    .constellation-node[data-area="1"] { left: 10px; }
    .constellation-node[data-area="2"] { left: 26px; }
    .constellation-node[data-area="3"] { left: 42px; }
    .constellation-node[data-area="4"] { left: 58px; }
    .constellation-node[data-area="5"] { left: 74px; }
    .constellation-node[data-area="6"] { left: 90px; }
    
    .progress-track {
        right: 45px;
        max-width: 80px;
    }
    
    .constellation-progress {
        font-size: 9px;
        right: 10px;
        min-width: 20px;
    }
}

/* 隐藏旧的地图样式 */
.theme-map.hidden {
    display: none;
}

.map-toggle-btn.hidden {
    display: none;
}

