/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #0a0f1a;
    color: #fff;
    padding:0 15px 0 15px;
    height: 100%;
}

/* 标题与提示文本 */
.title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin: 20px 0;
    color: #00ff9d;
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.5);
}

.tip {
    text-align: center;
    font-size: 12px;
    color: #99ccff;
    margin-bottom: 15px;
}

/* 雷达容器样式（核心） */
#radar {
width: 90vw; height: 90vw;
    height: 0;
    padding-bottom: 100%; /* 正方形容器（宽高比1:1） */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 50%; /* 圆形雷达 */
    background: 
        linear-gradient(90deg, rgba(0, 255, 157, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(0, 255, 157, 0.1) 1px, transparent 1px),
        #0b1422; /* 方格背景+深色底 */
    background-size: 20px 20px; /* 方格大小（可调整） */
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.2); /* 外发光效果 */
}

/* 扫描线动画 */
.scan-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 255, 157, 0) 0%, rgba(0, 255, 157, 0.8) 50%, rgba(0, 255, 157, 0) 100%);
    transform-origin: center;
    animation: rotateScan 8s linear infinite; /* 扫描动画 */
    z-index: 1; /* 确保在标记下方 */
}

/* 扫描线旋转动画 */
@keyframes rotateScan {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 无数据提示 */
.empty-tip {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin: 20px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* 用户信息面板 */
#userInfo {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    padding: 15px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: none; /* 默认隐藏 */
    backdrop-filter: blur(5px); /* 毛玻璃效果 */
    border: 1px solid rgba(0, 255, 157, 0.2);
}

#userInfo.active {
    display: block; /* 激活时显示 */
}

/* 信息面板头部（头像+名称） */
.info-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.info-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00ff9d;
    margin-right: 12px;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

.info-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}

.info-meta {
    font-size: 12px;
    color: #99ccff;
}

/* 信息行（距离+方向） */
.info-row {
    display: flex;
    margin: 8px 0;
    font-size: 14px;
}

.info-label {
    color: #99ccff;
    width: 60px;
}

.info-value {
    color: #fff;
    flex: 1;
}

/* 查看资料按钮 */
.info-profile {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 0;
    margin-top: 12px;
    background: linear-gradient(90deg, #00a2ff, #00ff9d);
    color: #0a0f1a;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.info-profile:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

/* 隐藏 Leaflet 自带控件 */
.leaflet-control,
.leaflet-control a,
.leaflet-attribution,
.leaflet-control-attribution {
    display: none !important;
}