/* Ping统计卡片样式 */
.ping-stats-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 0;
    overflow: hidden;
}

.ping-progress-top {
    position: absolute;
    top: 12px;
    right: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #909399;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 14px;
    z-index: 100;
    /* box-shadow: 0 1px 3px rgba(0,0,0,0.08); */
    /* border: 1px solid rgba(0,0,0,0.05); */
}

.ping-progress-top .badge {
    background-color: #409eff;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.ping-progress-top .progress {
    width: 96px;
    height: 12px;
    background-color: #ebeef5;
    border-radius: 3px;
    overflow: hidden;
    margin: 0;
}

.ping-progress-top .progress-bar {
    background-color: #67c23a;
    transition: width 0.3s ease;
}

/* Tab导航样式 */
.ping-tabs {
    position: relative;
    display: flex;
    border-bottom: 1px solid #e4e7ed;
    padding: 0 20px;
    background: #fff;
}

.ping-tab {
    padding: 16px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #606266;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    min-width: 60px;
    text-align: center;
}

.ping-tab:hover {
    color: #409eff;
}

.ping-tab.active {
    color: #409eff;
    font-weight: 600;
}

.tab-indicator {
    position: absolute;
    bottom: -1px;
    height: 2px;
    background: #409eff;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* 进度条区域 */
.ping-progress-container {
    padding: 0 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* 统计摘要卡片 */
.stats-summary {
    display: flex;
    gap: 15px;
    padding: 20px;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
}

.stat-value {
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.2;
}

/* 延迟颜色分类 */
.stat-value.super-fast { color: #24aa1d; }      /* <50ms */
.stat-value.fast { color: #42dd3f; }           /* 51-100ms */
.stat-value.medium { color: #bef663; }         /* 101-200ms */
.stat-value.yellow { color: #f6dc63; }         /* 201-250ms */
.stat-value.slow { color: #f69833; }           /* >250ms */

/* 全局最快和最慢的特殊样式 */
.global-fastest.super-fast { color: #24aa1d; }
.global-fastest.fast { color: #42dd3f; }
.global-fastest.medium { color: #bef663; }
.global-fastest.yellow { color: #f6dc63; }
.global-fastest.slow { color: #f69833; }

.global-slowest.super-fast { color: #24aa1d; }
.global-slowest.fast { color: #42dd3f; }
.global-slowest.medium { color: #bef663; }
.global-slowest.yellow { color: #f6dc63; }
.global-slowest.slow { color: #f69833; }

.stat-label {
    font-size: 11px;
    color: #909399;
    line-height: 1.4;
}

/* 表格样式 */
.ping-table-container {
    padding: 0 18px;
    margin: 1px 0;
    max-height: 350px;
    overflow-y: auto;
}

.ping-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ping-table thead {
    background: #f5f7fa;
}

.ping-table th {
    font-weight: 600;
    color: #303133;
    padding: 12px 16px;
    text-align: center;
    border-bottom: 2px solid #ebeef5;
    font-size: 15px;
}

.ping-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #ebeef5;
}

.ping-table tbody tr:hover {
    background-color: #f5f7fa;
}

/* 单元格内部分组样式 */
.table-cell-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 0 5px;*/
}

.city-name {
    flex: 1;
    text-align: center;
    padding-right: 10px;
    color: #000000;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.delay-value {
    font-weight: 500;
    min-width: 60px;
    text-align: right;
}

/* 延迟值颜色分类 */
.delay-value.super-fast { color: #24aa1d; }    /* <50ms */
.delay-value.fast { color: #42dd3f; }         /* 51-100ms */
.delay-value.medium { color: #bef663; }       /* 101-200ms */
.delay-value.yellow { color: #f6dc63; }       /* 201-250ms */
.delay-value.slow { color: #f69833; }         /* >250ms */

/* 平均响应样式 */
.avg-delay {
    font-weight: 500;
}

.avg-delay.super-fast { color: #24aa1d; }
.avg-delay.fast { color: #42dd3f; }
.avg-delay.medium { color: #bef663; }
.avg-delay.yellow { color: #f6dc63; }
.avg-delay.slow { color: #f69833; }

/* 测速链接样式 */
.speed-link-container {
    padding: 26px 20px 20px;
}

.speed-link-label {
    display: block;
    font-size: 14px;
    color: #303133;
    margin-bottom: 8px;
    font-weight: 500;
}

.speed-link-input {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 0;
    overflow: hidden;
}

.speed-link-input input {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 13px;
    color: #606266;
    background: transparent;
    outline: none;
}

.speed-link-input input:focus {
    background: #f5f7fa;
}

.copy-btn {
    background: #409eff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #66b1ff;
}

/* Tab内容区域 */
.ping-tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.ping-tab-content.active {
    display: block;
}

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

/* 运营商详情页面的统计卡片 */
.operator-fastest.super-fast { color: #24aa1d; }
.operator-fastest.fast { color: #42dd3f; }
.operator-fastest.medium { color: #bef663; }
.operator-fastest.yellow { color: #f6dc63; }
.operator-fastest.slow { color: #f69833; }

.operator-slowest.super-fast { color: #24aa1d; }
.operator-slowest.fast { color: #42dd3f; }
.operator-slowest.medium { color: #bef663; }
.operator-slowest.yellow { color: #f6dc63; }
.operator-slowest.slow { color: #f69833; }

.operator-avg.super-fast { color: #24aa1d; }
.operator-avg.fast { color: #42dd3f; }
.operator-avg.medium { color: #bef663; }
.operator-avg.yellow { color: #f6dc63; }
.operator-avg.slow { color: #f69833; }

.operator-count {
    color: #409eff;
    font-weight: 600;
}

/* 排名样式 */
.rank-cell {
    text-align: center;
    font-weight: 500;
}

.rank-1 {
    color: #f56c6c;
    font-weight: bold;
}

.rank-2 {
    color: #e6a23c;
    font-weight: bold;
}

.rank-3 {
    color: #67c23a;
    font-weight: bold;
}

.rank-other {
    color: #909399;
}

/* 状态标签 */
.status-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.status-excellent {
    background-color: rgba(102, 204, 58, 0.1);
    color: #67c23a;
}

.status-good {
    background-color: rgba(230, 162, 60, 0.1);
    color: #e6a23c;
}

.status-normal {
    background-color: rgba(144, 147, 153, 0.1);
    color: #909399;
}

.status-poor {
    background-color: rgba(245, 108, 108, 0.1);
    color: #f56c6c;
}

/* 移除按钮焦点时的黑框 */
.ping-tab:focus {
    outline: none;
    box-shadow: none;
}

