/* Base styles */
html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%) fixed;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Heiti SC', 'Noto Sans SC', 'Source Han Sans SC', 'WenQuanYi Micro Hei', sans-serif;
    transform: none;
}

canvas {
    position: relative;
    margin: 0 auto;
}

/* Layout components */
.top-bar {
    padding: 20px 30px;
    background: transparent; /* 彻底透明 */
    border-bottom: none; /* 移除分割线 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative; /* 改为 relative，避免 sticky 带来的层级阴影 */
    z-index: 1000;
}

/* Serial Input Section */
.serial-input-container {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
    gap: 5px;
    transition: all 0.3s ease;
}

.serial-input-container:focus-within {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

#title_serial {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-left: 8px;
    white-space: nowrap;
}

#deviceInput {
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 15px;
    color: #1e293b;
    width: 200px;
    outline: none;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 600;
    border-radius: 8px;
}

/* 移除浏览器自动填充导致的方形背景 */
#deviceInput:-webkit-autofill,
#deviceInput:-webkit-autofill:hover,
#deviceInput:-webkit-autofill:focus {
    -webkit-text-fill-color: #1e293b;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    transition: background-color 5000s ease-in-out 0s;
    background-color: transparent !important;
}

#deviceInput::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-family: sans-serif;
    font-size: 13px;
}

.control-btn {
    padding: 8px 20px;
    border-radius: 25px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

#startWsBtn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    margin-left: 5px;
}

#startWsBtn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    filter: brightness(1.1);
}

#startWsBtn:active:not(:disabled) {
    transform: translateY(0);
}

#stopWsBtn {
    background: #ffffff;
    color: #ef4444;
    border: 1px solid #fee2e2;
    margin-left: 5px;
}

#stopWsBtn:hover:not(:disabled) {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

#stopWsBtn:disabled, #startWsBtn:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 10px 10px 10px; /* 移除顶部内边距 */
    gap: 10px;
}
#current-view-title{
    height: 30px;
    /* background-color: #ee0f0f; */
    text-align: center;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 1px;
}
.container {
    display: flex;
    /* grid-template-columns: 1fr 1fr 1fr; */
    gap: 80px; /* 增加两个区域之间的间隔 */
    align-items: center;
    justify-content: center;
}

.section {
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    background: rgba(216, 8, 8, 0);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(12px);
}

/* 移动端保持正方形 */
@media (max-width: 768px) {
    .section {
        aspect-ratio: 1/1;
        width: min(90vw, 90vh);
        height: min(90vw, 90vh);
    }
}

/* 电脑端使用4:3比例 */
@media (min-width: 769px) {
    .section {
        width: 30vw;
        aspect-ratio: 1/1;
    }
    .section-title{
        display: none; /* 隐藏标题 */
    }
}

/* 整合后的人员状态样式 */
.person-status-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 25px;
    border-left: 2px solid rgba(0,0,0,0.06);
    justify-content: center;
    align-items: center;
}

.person {
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    color: #2563eb;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* 移除旧的容器样式 - 仅在电脑端生效 */
@media (min-width: 769px) {
    .person-info-content, .person-info-title {
        display: none;
    }
}


/* Show COT section */
#show-cot {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.show-cot-right {
    display: flex;
    align-items: center;
    padding: 10px;
}
.ZNEN-btn {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}

.div-btn {
    min-width: 100px;
    padding: 0 15px;
    height: 38px;
    line-height: 38px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    position: relative;
    top: 0;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
}

.div-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f0f7ff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.div-btn.highlight {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* 移动端按钮适配 */
@media (max-width: 768px) {
    body {
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) fixed !important;
    }

    .page-content {
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 24px;
        align-items: center;
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* 移动端标题样式 - 已去掉人物视图标签 */
    .section-title {
        display: none !important;
    }

    .person-info-title {
        display: none !important; /* 去掉人员状态标题 */
    }

    /* 骨骼区域卡片化 - 强化悬浮感 */
    .section {
        background: rgba(255, 255, 255, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.9) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06) !important;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 24px !important;
        width: 94vw !important;
        height: 94vw !important;
        margin: 0 auto !important;
        overflow: hidden;
    }

    /* 人员状态区域整合 - 去掉背景容器，直接显示标签 */
    .person-info-content {
        display: flex !important;
        flex-direction: column;
        width: 94vw;
        background: transparent !important; /* 去掉背景 */
        border: none !important; /* 去掉边框 */
        padding: 0;
        box-shadow: none !important; /* 去掉阴影 */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-sizing: border-box;
    }

    .person-wrap {
        background: transparent !important; /* 去掉背景 */
        border-radius: 0 !important;
        padding: 0 !important;
        margin-top: 0 !important;
        min-height: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        border: none !important; /* 去掉边框 */
    }

    .person {
        background: rgba(255, 255, 255, 0.9) !important; /* 标签本身保持半透明白 */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid rgba(59, 130, 246, 0.2) !important;
        padding: 5px 12px !important;
        font-size: 12px !important;
        border-radius: 20px !important; /* 改为圆角胶囊状 */
        color: #2563eb !important;
        font-weight: 700 !important;
    }

    /* 按钮组 - 使用 Grid 布局并限制宽度，使其向两边靠 */
    .ZNEN-btn {
        width: 100% !important;
        max-width: 90vw;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(100px, 140px)); /* 限制每列最大宽度为 140px */
        justify-content: space-between; /* 关键：使两列分别靠向两侧 */
        gap: 12px 0 !important; /* 纵向间距 12px，横向间距由 space-between 控制 */
        padding: 0 !important;
        margin: 0 auto;
    }

    .div-btn {
        width: 100% !important; /* 填满受限的 Grid 列宽 */
        min-width: unset !important;
        height: 38px !important;
        line-height: 38px !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        color: #475569 !important;
        font-weight: 600 !important;
        font-size: 13px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
        transition: all 0.2s ease !important;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .div-btn:active {
        transform: scale(0.98);
        background: #f8fafc !important;
    }

    .div-btn.highlight {
        background: #3b82f6 !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
    }

    #language-switch-btn {
        margin-left: 0 !important;
    }

    /* 人员状态按钮微调 */
    .person {
        padding: 6px 12px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }

    /* 时间戳 - 科技感设计 */
    .option-bar {
        margin-top: 4px;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }

    .time {
        font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
        font-size: 22px !important;
        font-weight: 600 !important;
        color: #475569 !important;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
        background: rgba(255, 255, 255, 0.4);
        padding: 4px 12px;
        border-radius: 10px;
    }
}

#model-switch-btn {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

#model-switch-btn:hover {
    border-style: solid;
    background: #f1f5f9;
}

.div-btn:active {
    background: #f5f5f5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Option and network sections */
.option-bar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1px;
    /* background: rgba(255, 0, 255, 0.95); */
    border-radius: 10px;
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); */
    /* border: 1px solid rgba(0, 0, 0, 0.04); */
    backdrop-filter: blur(12px);
    align-items: center;
}

.networkwrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    color: #f59e0b;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.12);
    opacity: 0;
}

/* Miscellaneous */
.time {
    z-index: 100;
    font-size: min(25px, 4vw);
    color: #333;
    font-weight: 500;
}

.warningwrap {
    display: block;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.98);
    width: 240px;
    height: 44px;
    font-size: 16px;
    text-align: center;
    font-weight: 500;
    color: #ef4444;
    line-height: 44px;
    z-index: 3001;
    border-radius: 12px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.12);
    backdrop-filter: blur(8px);
}

.warningwrap.show {
    opacity: 1;
    top: 20px;
}

.warning-img {
    width: 20px;
    height: 20px;
    position: relative;
    top: 2px;
    margin-right: 5px;
}




.network-status {
    position: fixed;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(8px);
    font-size: 13px;
    transition: all 0.3s ease;
    z-index: 1000;
    transform: translateX(calc(100% + 15px));
}

/* 移动端适配 */
@media (max-width: 768px) {
    .network-status {
        transform: none; /* 移除位移效果 */
        top: 15px; /* 恢复顶部定位 */
        right: 15px;
        padding: 4px 10px;
        font-size: 12px;
        border-radius: 16px;
    }
    
    .network-status .icon {
        width: 6px;
        height: 6px;
    }

    /* 移动端下不需要悬停展开效果 */
    .network-status:hover {
        transform: none;
    }
}

.network-status .icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    transition: all 0.3s ease;
}

.network-status .text {
    color: #1a1f36;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.9;
}

/* 绿色正常状态 */
.network-status.normal .icon {
    background: #4CAF50;
}

.network-status.normal .text {
    color: #1a1f36;
}

/* 黄色警告状态 */
.network-status.warning-medium .icon {
    background: #ffc107;
}

.network-status.warning-medium .text {
    color: #996b00;
}

/* 红色警告状态 */
.network-status.warning-high .icon {
    background: #ff4444;
    animation: pulse 2s infinite;
}

.network-status.warning-high .text {
    color: #cc0000;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* 添加悬停时的动画效果 */
.network-status {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 播放进度条样式 */
.play-progress-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* background: rgba(255, 0, 255, 0.95); */
    backdrop-filter: blur(8px);
    z-index: 3000;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);

}

/* 时间提示框样式 */
.time-tooltip {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 3001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.time-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.time-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.85);
}

.play-progress-bar {
    margin-bottom: 8px;
    margin-left: 20px;
    margin-right: 20px;
}

.play-progress-track {
    position: relative;
    height: 20px !important; /* 强制加粗进度条，确保样式生效 */
    background: rgba(0, 0, 0, 0.13);
    border-radius: 16px;
    cursor: pointer;
    /* 性能优化 */
    contain: layout style;
}

/* 移除悬停高度变化效果 */

.play-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 3px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

.play-progress-thumb {
    position: absolute;
    top: 50%;
    left: 0;
    width: 28px !important;
    height: 28px !important;
    background: #4CAF50;
    border: 3px solid #fff;
    border-radius: 50%;
    transform: translateX(0px) translateX(-50%) translateY(-50%);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    opacity: 0;
    will-change: transform;
}

.play-progress-track:hover .play-progress-thumb {
    opacity: 1;
}

.play-progress-thumb:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.play-progress-thumb.dragging {
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.play-progress-time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .play-progress-container {
        padding: 10px 15px;
        height: 80px;
        /* background-color: rgba(255, 255, 0, 0.95); */
    }
    
    .play-progress-track {
        height: 10px;
    }
    
    /* 移除移动端悬停高度变化效果 */
    
    .play-progress-thumb {
        width: 20px;
        height: 20px;
        opacity: 1; /* 移动端始终显示拖拽点 */
    }
    
    .play-progress-time {
        font-size: 11px;
    }
    
    /* 移动端时间提示框样式调整 */
    .time-tooltip {
        top: -70px;
        padding: 10px 15px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .time-tooltip::after {
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid rgba(0, 0, 0, 0.85);
    }
}

/* 进度条激活状态 */
.play-progress-container.active .play-progress-track {
    height: 18px;
}

.play-progress-container.active .play-progress-thumb {
    opacity: 1;
}

/* 自定义弹窗样式 */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.custom-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 0;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.custom-modal-header {
    padding: 20px 20px 10px 20px;
    border-bottom: 1px solid #eee;
}

.custom-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.custom-modal-body {
    padding: 20px;
}

.custom-modal-body p {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.custom-modal-footer {
    padding: 10px 20px 20px 20px;
    text-align: right;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-btn-primary {
    background-color: #007bff;
    color: white;
}

.modal-btn-primary:hover {
    background-color: #0056b3;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .custom-modal-content {
        width: 90%;
        margin: 20% auto;
    }
    
    .custom-modal-header h3 {
        font-size: 16px;
    }
    
    .custom-modal-body p {
        font-size: 14px;
    }
}

/* Speed selection modal */
#speedOptionsContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.speed-option-btn {
    width: 100%;
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
    transition: background-color 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent; /* 移除默认的触摸高亮 */
}

.speed-option-btn:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

/* .speed-option-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
} */

/* Information Bar Styles - 与上方区域卡片风格统一 */
.info-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.02); /* 匹配上方卡片的极淡透明背景 */
    border-radius: 10px; /* 统一为 10px 圆角 */
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08); /* 统一阴影风格 */
    border: 1px solid rgba(0, 0, 0, 0.04); /* 统一边框风格 */
    backdrop-filter: blur(12px); /* 统一磨砂程度 */
    -webkit-backdrop-filter: blur(12px);
    margin: 20px auto;
    width: 66.6%; /* 限制宽度为屏幕的 2/3 */
    max-width: 1200px;
    position: relative; /* 为定位拉手做准备 */
    padding-bottom: 25px; /* 为拉手留出空间 */
    transition: all 0.3s ease;
}

.info-time {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
    padding: 0 15px;
    min-width: 280px;
    text-align: center;
}

.info-group {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 0 25px;
    border-left: 2px solid rgba(0,0,0,0.06);
    border-right: 2px solid rgba(0,0,0,0.06);
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
}

.info-label {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-value {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 24px;
    font-weight: 600;
    color: #34495e;
}

/* Radar Parameters Grid */
/* Others Section - 初始隐藏 */
.others-container {
    display: none; 
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0;
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.others-container.show {
    display: flex;
}

/* 底部拉手按钮样式 */
.info-bar-handle {
    position: absolute;
    bottom: -15px; /* 向下偏移，使其横跨边界 */
    left: 50%;
    transform: translateX(-50%);
    width: 200px; /* 极宽的感应区域 */
    height: 30px; /* 宽大的触击高度 */
    background: transparent; /* 背景透明，不产生视觉负担 */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.info-bar-handle .handle-icon {
    width: 80px; /* 初始长度 */
    height: 4px; /* 加粗线条，使其更明显 */
    background: #94a3b8; /* 使用更深的颜色提升对比度 */
    border-radius: 4px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 在横线中间添加一个小尖角 */
.info-bar-handle .handle-icon::after {
    content: '';
    position: absolute;
    top: 4px; /* 适配加粗后的线条 */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent; /* 稍微放大箭头 */
    border-right: 7px solid transparent;
    border-top: 6px solid #94a3b8; /* 同步加深颜色 */
    transition: all 0.3s ease;
}

.info-bar-handle.active .handle-icon {
    background: #3b82f6;
    width: 60px;
}

.info-bar-handle.active .handle-icon::after {
    border-top-color: #3b82f6;
    transform: translateX(-50%) rotate(180deg);
    top: -8px; /* 旋转后调整到线上方 */
}

/* Hover 状态放在最后，确保优先级最高 */
.info-bar-handle:hover .handle-icon {
    width: 110px; /* 悬停时总是拉长 */
    background: #64748b;
}

.info-bar-handle.active:hover .handle-icon {
    width: 110px; /* 展开状态悬停也保持拉长 */
    background: #2563eb;
}

.info-bar-handle:hover .handle-icon::after {
    border-top-color: #64748b;
}

.info-bar-handle.active:hover .handle-icon::after {
    border-top-color: #2563eb;
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; transform: translateY(-10px); }
    to { opacity: 1; max-height: 1000px; transform: translateY(0); }
}

.radar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 24px;
    width: 100%;
    font-size: 16px;
    color: #555;
}

.radar-item {
    display: flex;
    justify-content: space-between;
    white-space: nowrap;
    background: rgba(248, 249, 250, 0.6);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.03);
}

.radar-label {
    color: #7f8c8d;
    margin-right: 8px;
}

.radar-value {
    font-family: 'Monaco', 'Menlo', monospace;
    font-weight: 700;
    color: #2c3e50;
    font-size: 18px;
}

@media (max-width: 1024px) {
    .radar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .radar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        font-size: 12px;
    }
}