/* ==================== 1. 基础布局 (不变) ==================== */
html, body { height: 100%; margin: 0; overflow-x: hidden; }
.wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.content { flex: 1; padding: 20px; }

/* ==================== 2. 页脚样式 (修复：正确匹配 ID + 居中 + 沉底) ==================== */
#single-line-footer {
    /* 【沉底逻辑】取消 fixed，用 relative 让它自然排在内容后面 */
    position: relative; 
    z-index: 1;
    margin-top: auto; /* 自动推到最底部 */
    padding: 30px 0 20px 0; /* 给上面留点空隙，不贴着图标 */

    /* 【居中逻辑】 */
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center;     /* 垂直居中 */
    gap: 15px;               /* 元素间隔 */
    width: 100%;
    
    background: transparent !important;
    color: #ffffff;
    font-size: 14px;
    font-family: "Microsoft YaHei", sans-serif;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.footer-item {
    display: flex;
    align-items: center;
}

.footer-item a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,0.4);
    margin-left: 5px;
}

/* 分隔符 */
.separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 5px;
}

/* 手机端适配 */
@media (max-width: 800px) {
    #single-line-footer {
        flex-direction: column; /* 手机竖排 */
        padding-bottom: 40px;
        background: linear-gradient(to top, rgba(0,0,0,0.8), transparent) !important;
    }
    .separator { display: none; }
}

/* ==================== 3. 右侧悬浮控制台 (保持不变) ==================== */
#right-command-center {
    position: fixed;
    top: 100px; 
    right: 20px; 
    left: auto;
    width: 350px; 
    z-index: 999;
    display: flex; flex-direction: column; gap: 15px;
    font-family: "Consolas", sans-serif; pointer-events: none;
}

.sidebar-label {
    font-size: 14px; color: rgba(255,255,255,0.7);
    letter-spacing: 2px; font-weight: bold; margin-bottom: 5px;
    text-shadow: 0 2px 4px #000; text-align: right;
}

.latency-grid {
    display: grid; grid-template-columns: 1fr; gap: 8px; pointer-events: auto;
}

.latency-item {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 12px 20px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    transition: transform 0.2s;
}

.latency-item:hover { transform: translateX(-5px); border-color: #00e5ff; }
.l-name { font-weight: bold; color: #00e5ff; font-size: 16px; }
.l-val { font-weight: bold; color: #fff; font-size: 16px; font-family: monospace; }

/* --- 哪吒探针卡片 --- */
.nezha-card {
    width: 100%;
    height: 600px; 
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    overflow: hidden;
    position: relative;
    pointer-events: auto;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.nezha-card:hover { transform: scale(1.02); border-color: #00e5ff; }

.nezha-card iframe {
    width: 130%; height: 130%; border: none;
    transform: scale(0.76); transform-origin: 0 0;
    pointer-events: none;
    background-color: transparent !important;
    color-scheme: dark;
}

.nezha-mask {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    cursor: pointer; z-index: 10;
}

@media (max-width: 1200px) { #right-command-center { display: none; } }