/* 宇宙探索页面特定样式 */
.space-exploration {
    padding: 2rem 0;
}

.universe-title {
    text-align: center;
    margin-bottom: 3rem;
}

.universe-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.7),
                 0 0 20px rgba(255, 105, 180, 0.5),
                 0 0 30px rgba(255, 105, 180, 0.3);
}

.universe-title p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2rem;
}

/* 星图容器样式 */
.starmap-container {
    position: relative;
    width: 90%;
    height: 70vh;
    margin: 0 auto;
    background: rgba(15, 15, 26, 0.7);
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.2);
    overflow: hidden;
}

#starmap {
    width: 100%;
    height: 100%;
    cursor: grab;
}

#starmap:active {
    cursor: grabbing;
}

/* 星图控制按钮 */
.starmap-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 15, 26, 0.8);
    border: 1px solid rgba(255, 105, 180, 0.6);
    color: #ff69b4;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 105, 180, 0.2);
    transform: scale(1.1);
}

#reset-view {
    width: auto;
    border-radius: 20px;
    padding: 0 15px;
    font-size: 0.8rem;
}

/* 猫爪指示器 */
.paw-cursor {
    position: absolute;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: drop-shadow(0 0 3px rgba(255, 105, 180, 0.8));
    animation: paw-wiggle 5s infinite;
}

@keyframes paw-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* 坐标轴指示器 */
.coordinates {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(15, 15, 26, 0.8);
    border: 1px solid rgba(255, 105, 180, 0.6);
    border-radius: 5px;
    padding: 10px;
    display: flex;
    gap: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #ff69b4;
    z-index: 10;
}

.coordinate {
    display: flex;
    align-items: center;
}

.coordinate span {
    margin-left: 5px;
    color: #ffffff;
}

/* 星球计数器 */
.planet-counter {
    position: relative;
    text-align: center;
    margin: 15px auto;
    font-family: 'Courier New', monospace;
    color: #ff69b4;
    font-size: 1.2rem;
    background: rgba(15, 15, 26, 0.8);
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: 20px;
    padding: 5px 15px;
    width: fit-content;
    transition: all 0.5s ease;
}

/* 全部探索完成的特效 */
.planet-counter.all-explored {
    background: rgba(255, 105, 180, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    padding: 5px 20px;
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); }
}

.completion-badge {
    display: inline-block;
    margin-left: 10px;
    background: rgba(255, 215, 0, 0.3);
    color: #ffdf00;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.9rem;
    animation: badge-blink 1s infinite;
}

@keyframes badge-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 雷达扫描效果 */
.radar-scan {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid rgba(255, 105, 180, 0.6);
    background: rgba(15, 15, 26, 0.5);
    overflow: hidden;
    z-index: 5;
}

.radar-scan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 105, 180, 0.4) 0%, transparent 50%, transparent 100%);
    transform-origin: center;
    animation: radar-sweep 4s infinite linear;
}

.radar-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: #ff69b4;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.8);
}

.radar-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.radar-rings::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    border: 1px solid rgba(255, 105, 180, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

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

/* 全息星球信息面板 */
.hologram-panel {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    background: rgba(15, 15, 26, 0.9);
    border: 2px solid rgba(255, 105, 180, 0.6);
    border-radius: 10px;
    padding: 0;
    z-index: 100;
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.4);
    overflow: hidden;
    animation: hologram-flicker 10s infinite;
}

.hologram-panel.active {
    display: block;
}

@keyframes hologram-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
    25%, 75% { opacity: 0.98; }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 105, 180, 0.2);
    border-bottom: 1px solid rgba(255, 105, 180, 0.6);
}

.header-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 105, 180, 0.3);
    border-radius: 50%;
}

.header-icon .material-symbols-outlined {
    color: #ff69b4;
    font-size: 22px;
}

.panel-header h3 {
    flex-grow: 1;
    color: #ff69b4;
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.7);
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.panel-content {
    padding: 20px;
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.planet-image {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: relative;
    border: 1px solid rgba(255, 105, 180, 0.6);
    border-radius: 5px;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 4px solid transparent;
    border-image: linear-gradient(45deg, #ff69b4, #8a2be2, #00bfff) 1;
    pointer-events: none;
    z-index: 1;
}

.planet-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.planet-description {
    grid-column: 2;
    grid-row: 1;
    background: rgba(255, 105, 180, 0.05);
    border: 1px solid rgba(255, 105, 180, 0.2);
    border-radius: 5px;
    padding: 15px;
}

.description-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 105, 180, 0.2);
    padding-bottom: 8px;
}

.description-header .material-symbols-outlined {
    color: #ff69b4;
    margin-right: 8px;
}

.description-header h4 {
    color: #ff69b4;
    margin: 0;
    font-size: 1.1rem;
}

.planet-description p {
    color: #ddd;
    line-height: 1.6;
    margin: 0;
}

.planet-stats {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.stat {
    flex: 1 1 30%;
    min-width: 180px;
    background: rgba(255, 105, 180, 0.1);
    padding: 12px;
    border-radius: 5px;
    border: 1px solid rgba(255, 105, 180, 0.3);
    display: flex;
    align-items: center;
}

.stat .material-symbols-outlined {
    color: #ff69b4;
    margin-right: 8px;
    font-size: 20px;
}

.stat-label {
    color: #ff69b4;
    font-size: 0.9rem;
    margin-right: 5px;
}

.stat-value {
    color: #fff;
    font-weight: bold;
    flex-grow: 1;
    text-align: right;
}

.panel-actions {
    grid-column: 1 / span 2;
    grid-row: 3;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.panel-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-footer {
    background: rgba(255, 105, 180, 0.1);
    border-top: 1px solid rgba(255, 105, 180, 0.3);
    padding: 10px;
    text-align: center;
}

.paw-prints {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.paw-print {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M30,40 C30,30 35,20 45,20 C55,20 55,30 55,40 M45,40 C45,30 50,20 60,20 C70,20 70,30 70,40 M60,40 C60,30 65,20 75,20 C85,20 85,30 85,40 M50,45 C40,45 30,55 30,70 C30,80 40,85 50,85 C60,85 70,80 70,70 C70,55 60,45 50,45' fill='%23ff69b4' stroke='none'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .universe-title h2 {
        font-size: 2rem;
    }
    
    .panel-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }
    
    .planet-image {
        grid-column: 1;
        grid-row: 1;
    }
    
    .planet-description {
        grid-column: 1;
        grid-row: 2;
    }
    
    .planet-stats {
        grid-column: 1;
        grid-row: 3;
    }
    
    .panel-actions {
        grid-column: 1;
        grid-row: 4;
    }
    
    .coordinates {
        flex-direction: column;
        gap: 5px;
    }
    
    .radar-scan {
        width: 100px;
        height: 100px;
    }
} 