.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.2em;
    border-radius: .6em;
    position: relative;
}

@media (max-width: 768px) {
    .tool-content {
        padding: .8em;
        box-shadow: unset;
        gap: 0.8em;
    }
}


/* ============================================================
   CPS 点击速度测试（追加样式 v3 · 宽屏双栏 + 评级区间）
   作用域：.cps-test 内部，不覆盖站点既有 .tool-content 等规则
   ============================================================ */

.cps-test {
    --brand: #5d4ff8;
    --brand-soft: rgba(93, 79, 248, .95);
    --brand-deep: #4436c9;
    --brand-tint: #f4f2ff;
    --brand-line: #e7e3ff;
    --ink: #141327;
    --ink2: #3b3a52;
    --muted: #8b89a2;
    --muted2: #a9a7ba;
    --line: #efedf7;
    --line2: #f4f2fb;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 2px 0 6px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.cps-test * {
    box-sizing: border-box
}

.cps-test button {
    font-family: inherit
}

/* ---------- 头部 ---------- */
.cps-test .cps-hero {
    text-align: center
}

.cps-test .cps-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--brand-deep);
    background: var(--brand-tint);
    border: 1px solid var(--brand-line);
    border-radius: 999px;
}

.cps-test .cps-eyebrow i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand-soft);
    display: block
}

.cps-test .cps-title {
    margin: 12px 0 0;
    padding: 0;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.6px;
    color: var(--ink);
}

/* ---------- 时长分段 ---------- */
.cps-test .cps-seg {
    display: inline-flex;
    gap: 3px;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(20, 19, 39, .03);
}

.cps-test .cps-seg-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    font-size: 12.5px;
    font-weight: 550;
    color: var(--muted);
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1.2;
    transition: color .18s, background .18s, box-shadow .18s;
}

.cps-test .cps-seg-btn:hover:not(:disabled):not(.is-on) {
    background: var(--line2);
    color: var(--ink2)
}

.cps-test .cps-seg-btn.is-on {
    background: var(--brand-tint);
    color: var(--brand-deep);
    box-shadow: inset 0 0 0 1px var(--brand-line);
}

.cps-test .cps-seg-btn:disabled {
    opacity: .42;
    cursor: not-allowed
}

/* ---------- 舞台 ---------- */
.cps-test .cps-stage {
    position: relative;
    margin-top: 1.2em;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.cps-test .cps-main-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.cps-test .cps-side {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center
}

.cps-test .cps-dial {
    position: relative;
    width: min(236px, 100%);
    aspect-ratio: 1/1;
    margin: 0 auto;
    flex: 0 0 auto;
}

.cps-test .cps-aura {
    position: absolute;
    inset: -13%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(93, 79, 248, .10), rgba(93, 79, 248, .02) 62%, transparent 72%);
    pointer-events: none;
}

.cps-test .cps-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%
}

.cps-test .cps-track {
    fill: none;
    stroke: #e8e4f6;
    stroke-width: 9
}

.cps-test .cps-prog {
    fill: none;
    stroke: url(#cpsGrad);
    stroke-width: 9;
    stroke-linecap: round;
    stroke-dasharray: 640.88;
    stroke-dashoffset: 640.88;
    filter: drop-shadow(0 3px 9px rgba(93, 79, 248, .22));
}

.cps-test .cps-knob {
    fill: #fff;
    stroke: var(--brand-soft);
    stroke-width: 2.5;
    opacity: 0;
    transition: opacity .2s;
}

.cps-test .cps-pad {
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    background: radial-gradient(circle at 50% 22%, #f7f5ff, #ffffff 70%);
    border: 1px solid #eae7f8;
    box-shadow: inset 0 1px 0 #fff, 0 14px 38px rgba(93, 79, 248, .13);
    transition: transform .1s ease, box-shadow .28s ease, border-color .28s ease;
    outline: none;
}

.cps-test .cps-pad:hover {
    border-color: #dcd6f7
}

.cps-test .cps-pad:focus-visible {
    box-shadow: inset 0 1px 0 #fff, 0 0 0 3px rgba(93, 79, 248, .22)
}

.cps-test .cps-pad.is-hot {
    border-color: rgba(93, 79, 248, .3);
    box-shadow: inset 0 1px 0 #fff, 0 0 0 8px rgba(93, 79, 248, .05), 0 16px 40px rgba(93, 79, 248, .2);
}

.cps-test .cps-pad.is-pop {
    transform: scale(.962)
}

.cps-test .cps-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand-deep);
    background: rgba(93, 79, 248, .07);
    border-radius: 999px;
    padding: 4px 10px;
    margin-bottom: 3px;
}

.cps-test .cps-state i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand-soft);
    display: block
}

.cps-test .cps-pad.is-hot .cps-state i {
    animation: cpsBlink 1s infinite
}

@keyframes cpsBlink {
    0%, 100% {
        opacity: 1
    }
    50% {
        opacity: .25
    }
}

.cps-test .cps-main {
    font-size: 48px;
    font-weight: 780;
    letter-spacing: -1.6px;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    transition: color .2s;
}

.cps-test .cps-pad.is-idle .cps-main {
    color: #c9c6dc
}

.cps-test .cps-unit {
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--muted2)
}

.cps-test .cps-ripple {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 1.5px solid rgba(93, 79, 248, .35);
    animation: cpsRip .55s cubic-bezier(.22, .61, .36, 1) forwards;
    pointer-events: none;
}

@keyframes cpsRip {
    from {
        transform: translate(-50%, -50%) scale(.45);
        opacity: .85
    }
    to {
        transform: translate(-50%, -50%) scale(1.55);
        opacity: 0
    }
}

/* ---------- 读数 ---------- */
.cps-test .cps-readouts {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.cps-test .cps-ro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 12px 6px;
    border-radius: 7px;
    background: #f7f4ff;
    border: 1px solid var(--line2);
}

.cps-test .cps-ro-k {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted2);
}

.cps-test .cps-ro-v {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.cps-test .cps-ro-v b {
    font-weight: 700
}

.cps-test .cps-ro-v span {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted2);
    margin-left: 2px
}

/* ---------- 评级区间 ---------- */
.cps-test .cps-ladder {
    width: 100%
}

.cps-test .cps-ladder-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.cps-test .cps-ladder-title {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted2);
}

.cps-test .cps-ladder-hint {
    font-size: 11px;
    color: var(--branch-deep, #4436c9)
}

.cps-test .cps-ladder-track {
    display: grid;
    grid-template-columns:repeat(7, minmax(0, 1fr));
    gap: 4px
}

.cps-test .cps-seg-cell {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 9px 7px 8px;
    border-radius: 6px;
    background: #f7f4ff;
    border: 1px solid var(--line2);
    transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
}

.cps-test .cps-seg-cell .bar {
    width: 100%;
    height: 5px;
    border-radius: 99px;
    background: linear-gradient(90deg, #e9e6ff, #cfc9ff);
}

.cps-test .cps-seg-cell .nm {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--muted2);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cps-test .cps-seg-cell .rng {
    font-size: 9.5px;
    color: #b9b7c9;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cps-test .cps-seg-cell.is-me {
    background: linear-gradient(180deg, #f4f1ff, #ffffff);
    border-color: rgba(93, 79, 248, .35);
    box-shadow: 0 8px 20px rgba(93, 79, 248, .13);
    transform: translateY(-2px);
}

.cps-test .cps-seg-cell.is-me .bar {
    background: linear-gradient(90deg, #8b7dff, #5d4ff8)
}

.cps-test .cps-seg-cell.is-me .nm {
    color: var(--brand-deep)
}

.cps-test .cps-seg-cell.is-me .rng {
    color: #6f66c9
}

/* ---------- 结果 ---------- */
.cps-test .cps-result {
    display: none;
    margin-top: 16px;
    padding: 24px 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 20px 50px rgba(93, 79, 248, .08), 0 2px 8px rgba(20, 19, 39, .03);
}

.cps-test .cps-result.is-show {
    display: block;
    animation: cpsRise .42s cubic-bezier(.2, .8, .3, 1)
}

@keyframes cpsRise {
    from {
        opacity: 0;
        transform: translateY(10px)
    }
    to {
        opacity: 1;
        transform: none
    }
}

.cps-test .cps-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.cps-test .cps-rank-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap
}

.cps-test .cps-rank {
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -.2px;
    color: var(--brand-deep)
}

.cps-test .cps-new {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 3px 9px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(120deg, #5d4ff8, #8b7dff);
}

.cps-test .cps-rank-desc {
    font-size: 11.5px;
    color: var(--muted)
}

/* 百分位 */
.cps-test .cps-pct {
    margin-top: 14px
}

.cps-test .cps-pct-line {
    display: flex;
    align-items: baseline;
    gap: 7px
}

.cps-test .cps-pct-lead {
    font-size: 12.5px;
    color: var(--muted)
}

.cps-test .cps-pct-num {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1.1px;
    line-height: 1;
    color: var(--brand-deep);
    font-variant-numeric: tabular-nums;
}

.cps-test .cps-pct-track {
    position: relative;
    height: 8px;
    border-radius: 99px;
    background: #f3f1fc;
    margin-top: 12px;
}

.cps-test .cps-pct-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, #c8c2ff, #6a5cf9 70%, #5d4ff8);
    transition: width .7s cubic-bezier(.2, .8, .3, 1);
}

.cps-test .cps-pct-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--brand-soft);
    box-shadow: 0 2px 9px rgba(93, 79, 248, .32);
    transform: translate(-50%, -50%);
    transition: left .7s cubic-bezier(.2, .8, .3, 1);
}

.cps-test .cps-pct-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    color: var(--muted2);
}

.cps-test .cps-pct-note {
    margin: 7px 0 0;
    font-size: 10.5px;
    line-height: 1.6;
    color: var(--muted2)
}

/* 四宫格 */
.cps-test .cps-grid {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 10px;
    margin-top: 16px
}

.cps-test .cps-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 14px 4px;
    border-radius: 14px;
    background: #faf9ff;
    border: 1px solid var(--line2);
}

.cps-test .cps-cell-v {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.cps-test .cps-cell-k {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted2);
}

/* 图表 */
.cps-test .cps-chart-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 20px 0 9px
}

.cps-test .cps-chart-title {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted2);
}

.cps-test .cps-best {
    font-size: 11px;
    color: var(--brand-deep);
    font-variant-numeric: tabular-nums
}

.cps-test .cps-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 112px
}

.cps-test .cps-col {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
}

.cps-test .cps-val {
    font-size: 9.5px;
    line-height: 1;
    color: var(--muted2);
    font-variant-numeric: tabular-nums
}

.cps-test .cps-bar {
    width: 100%;
    max-width: 28px;
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, #7a6dfa, #c9c2ff);
}

/* 按钮 */
.cps-test .cps-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px
}

.cps-test .cps-btn {
    flex: 1;
    padding: 13px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 13.5px;
    font-weight: 650;
    letter-spacing: .04em;
    color: #fff;
    background: var(--brand-soft);
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(93, 79, 248, .26);
    transition: transform .12s, box-shadow .2s, background .2s;
}

.cps-test .cps-btn:hover {
    background: #5244ee;
    box-shadow: 0 12px 30px rgba(93, 79, 248, .32)
}

.cps-test .cps-btn:active {
    transform: scale(.985)
}

/* 页脚提示 */
.cps-test .cps-tip {
    margin: 14px auto 0;
    max-width: 620px;
    font-size: 11.5px;
    line-height: 1.85;
    color: var(--muted2);
    text-align: center;
}

/* ---------- 宽屏：左圆盘 / 右读数+评级 ---------- */
@media (min-width: 860px) {
    .cps-test .cps-stage {
        padding: 1.2em;
    }

    .cps-test .cps-main-area {
        gap: 36px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
    }

    .cps-test .cps-dial {
        width: 210px;
        margin: 0
    }

    .cps-test .cps-side {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none
    }

    .cps-test .cps-ro {
        padding: 22px 12px;
        min-height: 96px;
    }

    .cps-test .cps-ro-k {
        font-size: 10.5px;
        letter-spacing: .12em
    }

    .cps-test .cps-ro-v {
        font-size: 26px
    }

    .cps-test .cps-chart {
        height: 132px;
        gap: 7px
    }

    .cps-test .cps-bar {
        max-width: 34px
    }

    .cps-test .cps-title {
        font-size: 30px
    }
}

@media (max-width: 859px) {
    .cps-test .cps-stage {
        padding: 20px 16px
    }

    .cps-test .cps-result {
        padding: 20px 16px
    }
}

@media (max-width: 520px) {
    .cps-test .cps-title {
        font-size: 23px
    }

    .cps-test .cps-main {
        font-size: 42px
    }

    .cps-test .cps-stage {
        padding: 16px 12px
    }

    .cps-test .cps-result {
        padding: 16px 12px
    }

    .cps-test .cps-grid {
        grid-template-columns:repeat(2, 1fr)
    }

    .cps-test .cps-chart {
        height: 92px
    }

    .cps-test .cps-pct-num {
        font-size: 26px
    }

    .cps-test .cps-seg-cell .rng {
        display: none
    }

    .cps-test .cps-ro {
        padding: 11px 4px
    }

    .cps-test .cps-seg-cell {
        padding: 12px 4px 11px;
        padding: 8px 1px 7px
    }

    .cps-test .cps-seg-cell .nm {
        font-size: 9.5px
    }
}

/* 去掉顶部 CPS TEST 徽标后的标题间距 */
.cps-test .cps-title--bare {
    margin-top: 4px
}
