/* ============================================================
   网速测试 speed-test · zhandu.cn
   科技蓝主题；适配 PC / 手机 / 平板
   ============================================================ */

.st-card {
    padding: 26px 22px 18px;
}

/* ---------- 阶段条 ---------- */
.st-phasebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.st-phase {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #8fa3ba;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f2f6fb;
    transition: all .2s;
}

.st-phase i {
    font-style: normal;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #cbd8e6;
    color: #fff;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.st-phase.on {
    color: #1d4ed8;
    background: #e3edff;
    font-weight: 600;
}

.st-phase.on i { background: #2563eb; }

.st-phase.done {
    color: #15803d;
    background: #e8f7ee;
}

.st-phase.done i { background: #16a34a; }
.st-phase.done i::before { content: '✓'; }
.st-phase.done i { font-size: 0; }
.st-phase.done i { font-size: 11px; }

.st-line {
    width: 26px;
    height: 2px;
    background: #dbe5f0;
    border-radius: 2px;
}

/* ---------- 表盘 ---------- */
.st-dialwrap {
    position: relative;
    max-width: 430px;
    margin: 0 auto;
}

.st-dial {
    width: 100%;
    height: auto;
    display: block;
}

#stArcFill {
    transition: stroke-dasharray .35s ease;
}

#stNeedle {
    transition: transform .45s cubic-bezier(.34, 1.2, .4, 1);
}

.st-reading {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
    text-align: center;
    pointer-events: none;
}

.st-num b {
    font-size: 40px;
    font-weight: 800;
    color: #14273f;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
}

.st-num span {
    font-size: 14px;
    color: #6b7f96;
    margin-left: 5px;
}

.st-state {
    margin-top: 2px;
    font-size: 12.5px;
    color: #8fa3ba;
}

/* ---------- 操作 ---------- */
.st-actions {
    text-align: center;
    margin: 14px 0 16px;
}

.st-btn {
    border: 0;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    padding: 12px 44px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .28);
    transition: transform .12s, box-shadow .15s, opacity .15s;
    min-width: 168px;
    white-space: nowrap;
}

.st-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(37, 99, 235, .34); }
.st-btn:active { transform: translateY(0); }

.st-status {
    display: block;
    margin-top: 10px;
    font-size: 12.5px;
    color: #8fa3ba;
}

/* ---------- 信息条 ---------- */
.st-metarow {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding-top: 12px;
    border-top: 1px dashed #e2eaf4;
}

.st-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #6b7f96;
}

.st-meta b {
    color: #2a3d55;
    font-weight: 600;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.st-meta i { font-style: normal; color: #9db0c5; }

.st-mico {
    display: inline-flex;
    width: 15px;
    height: 15px;
    color: #6b7f96;
}

.st-mico svg { width: 100%; height: 100%; }

/* ---------- 测速结论 ---------- */
.st-conclu {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 13px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3a8a, #3730a3);
    color: #fff;
}

.st-conclu-main {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex: 0 0 auto;
}

.st-conclu-main b {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.st-conclu-main span {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .75);
}

.st-conclu-sub {
    flex: 1 1 220px;
    min-width: 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .88);
}

/* ---------- 结果 ---------- */
.st-results { padding: 20px 22px; }

.st-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.st-metric {
    background: #f6f9fc;
    border: 1px solid #e8eff7;
    border-radius: 12px;
    padding: 13px 10px;
    text-align: center;
}

.st-metric span {
    display: block;
    font-size: 12px;
    color: #7d90a6;
}

.st-metric b {
    display: block;
    font-size: 25px;
    font-weight: 800;
    margin-top: 3px;
    font-variant-numeric: tabular-nums;
}

.st-metric i {
    font-style: normal;
    font-size: 11.5px;
    color: #9db0c5;
}

.st-down b { color: #2563eb; }
.st-up b { color: #ea7a2d; }
.st-ping b { color: #0e9f6e; }
.st-jit b { color: #7c3aed; }

/* ---------- 评级 ---------- */
.st-rate {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef4ff, #f3f0ff);
    border: 1px solid #dde6f8;
}

.st-rate-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.st-rate-head b {
    font-size: 16.5px;
    color: #1d4ed8;
}

.st-rate-head span {
    font-size: 13px;
    color: #64748b;
}

.st-usecases {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.st-usecases span {
    font-size: 12.5px;
    padding: 4px 11px;
    border-radius: 999px;
    white-space: nowrap;
}

.st-usecases .ok {
    background: #e5f6ec;
    color: #15803d;
}

.st-usecases .no {
    background: #f1f4f8;
    color: #9aa9bb;
}

.st-last {
    margin-top: 10px;
    font-size: 12.5px;
    color: #8fa3ba;
}

/* ---------- 说明 ---------- */
.st-notes h2 {
    font-size: 16px;
    color: #22374f;
    margin: 0 0 10px;
}

.st-notes ul {
    margin: 0;
    padding-left: 18px;
    color: #55677c;
    font-size: 13.5px;
    line-height: 1.85;
}

.st-notes b { color: #2a3d55; }

/* ---------- 响应式 ---------- */
@media (max-width: 560px) {
    .st-card { padding: 20px 12px 14px; }
    .st-num b { font-size: 36px; }
    .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .st-metric b { font-size: 21px; }
    .st-btn { width: 100%; }
    .st-meta b { max-width: 110px; }
    .st-phasebar { gap: 5px; }
    .st-phase { padding: 4px 8px; font-size: 12px; }
    .st-line { width: 12px; }
}
