/* ============================================================
   视觉专注训练台
   跟舒尔特、听力、百日静心同一套宣纸暖光：纸底 #FBF5E8 / 墨字 #2E2317 /
   赭金 #8F5F1C / 朱砂 #C0442C。颜色一律引用变量，换主题只改 .fc-vis 那一段。

   这个页面的取舍：四关各练一件不同的事，所以四个台子长得很不一样 ——
   划消是一整屏符号（要密），搜索是一块场地（要空），追踪是一张画布（要动），
   反向是一块暗场（要静）。共同的规矩只有一条：屏幕上不预告答案。
   ============================================================ */
body:has(.fc-vis) #main.layui-main {
    background: #F8EFDF;
}

.fc-vis {
    --night: #FBF5E8;
    --surface: #FFFDF7;
    --paper: #2E2317;
    --lead: #8F5F1C;
    --gold: #8F5F1C;
    --gold-lit: #D9A24B;
    --cinnabar: #C0442C;
    --body: #4C3D2A;
    --ice: #9A5B24;
    --sub: #6D5B44;
    --dim: #74624B;
    --rule: rgba(94, 66, 32, .16);
    --line-gold: rgba(143, 95, 28, .42);
    /* 两条「东西」的颜色：红条与绿条。红用朱砂压暗一点，
       免得跟「点错了」的提示红撞色 */
    --bar-red: #B23A26;
    --bar-green: #4E7C59;

    background:
        radial-gradient(1200px 720px at 76% -10%, #FFE9C4 0%, rgba(255, 233, 196, 0) 62%),
        linear-gradient(176deg, #FCF7EB 0%, #F9F0E0 58%, #F4E8D3 100%);
}

body:has(.fc-vis) #footer {
    background-color: #3A322A;
}

.fc-vis .fc-in {
    max-width: 1180px;
    position: relative;
}

/* ---------- 抬头 ---------- */
.vs-head {
    display: flex;
    align-items: baseline;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
}

.vs-h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: .12em;
    color: var(--paper);
}

.vs-seal {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--cinnabar);
    border-radius: 2px;
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1;
    color: var(--cinnabar);
    transform: rotate(-4deg);
    opacity: .82;
    user-select: none;
}

.vs-lead {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--sub);
    letter-spacing: .02em;
}

/* ---------- 三关入口（2026-11-16 撤掉「字母分辨」，四列改三列） ---------- */
.vs-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 30px;
}

.vs-tab {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 13px 15px 12px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: rgba(255, 253, 247, .55);
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.vs-tab i {
    font-style: normal;
    font-size: 10.5px;
    letter-spacing: .16em;
    color: var(--dim);
}

.vs-tab b {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: .12em;
    color: var(--paper);
}

.vs-tab em {
    font-style: normal;
    font-size: 11.5px;
    letter-spacing: .02em;
    color: var(--sub);
}

.vs-tab:hover {
    border-color: var(--line-gold);
}

.vs-tab.is-on {
    background: var(--paper);
    border-color: var(--paper);
}

.vs-tab.is-on b {
    color: #FFF9EE;
}

.vs-tab.is-on i,
.vs-tab.is-on em {
    color: rgba(255, 249, 238, .58);
}

/* ---------- 规则卡 ----------
   四关的规则各不一样，写长了整页开头就是一大块字，人一眼扫过去就跳过了。
   所以收进 details 里默认合上：合着也能看见「整盘几颗 / 找全停表」这一行，
   真想看细则再点开。 */
.vs-rule {
    margin: 18px 0 0;
    border: 1px solid var(--rule);
    border-left: 3px solid var(--line-gold);
    border-radius: 2px;
    background: rgba(255, 253, 247, .6);
}

.vs-rule > summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 40px 12px 14px;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

/* 浏览器默认那个黑三角太难看成「能点」，换成右向箭头 */
.vs-rule > summary::-webkit-details-marker {
    display: none;
}

.vs-rule > summary::marker {
    content: '';
}

/* 朱砂小印：整页的「规矩」都从这个小方块认起 */
.vs-rule-tag {
    flex: none;
    padding: 3px 6px 4px;
    border-radius: 2px;
    background: var(--cinnabar);
    font-family: var(--serif);
    font-size: 11px;
    line-height: 1;
    letter-spacing: .16em;
    text-indent: .16em;
    color: #FFF6E6;
}

.vs-rule-name {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: .14em;
    color: var(--paper);
}

.vs-rule-live {
    margin-left: auto;
    font-style: normal;
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--sub);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.vs-rule-ar {
    position: absolute;
    right: 17px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -5px;
    border-right: 1.5px solid var(--lead);
    border-bottom: 1.5px solid var(--lead);
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.vs-rule[open] .vs-rule-ar {
    transform: rotate(-135deg);
}

.vs-rule-in {
    padding: 4px 20px 16px 22px;
    border-top: 1px dashed var(--rule);
    margin-top: 2px;
}

.vs-rule-list {
    counter-reset: vsr;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.vs-rule-list li {
    position: relative;
    padding-left: 27px;
    margin-bottom: 8px;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--body);
}

/* 序号做成小圆章，跟朱砂小印一套；纯数字排下来太像合同条款 */
.vs-rule-list li::before {
    counter-increment: vsr;
    content: counter(vsr);
    position: absolute;
    left: 0;
    top: .3em;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(192, 68, 44, .3);
    border-radius: 50%;
    background: rgba(192, 68, 44, .1);
    font-size: 10.5px;
    line-height: 15px;
    text-align: center;
    color: var(--cinnabar);
    font-variant-numeric: tabular-nums;
}

/* 「按小学算」这一小行是必要的：三档年龄并排写，家长不知道自己对哪一档 */
.vs-rule-scale {
    margin: 14px 0 -5px;
    font-size: 11.5px;
    letter-spacing: .05em;
    color: var(--sub);
}

.vs-rule-scale b {
    font-weight: 500;
    color: var(--lead);
}

/* 及格 / 优秀两条线单独拎出来：这是最常被问的一句，别埋在段落里 */
.vs-rule-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    margin: 9px 0 0;
    padding: 11px 14px;
    list-style: none;
    border-radius: 2px;
    background: rgba(143, 95, 28, .07);
}

.vs-rule-line li {
    display: flex;
    align-items: baseline;
    gap: 9px;
    font-size: 13px;
    color: var(--body);
}

.vs-rule-line b {
    flex: none;
    padding: 1px 7px 2px;
    border-radius: 2px;
    font-family: var(--serif);
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: .1em;
    text-indent: .1em;
    background: rgba(143, 95, 28, .14);
    color: var(--gold);
}

.vs-rule-line li:last-child b {
    background: rgba(192, 68, 44, .12);
    color: var(--cinnabar);
}

.vs-rule-src {
    margin: 10px 0 0;
    font-size: 11.5px;
    letter-spacing: .04em;
    color: var(--dim);
}

/* ---------- 主体两栏 ---------- */
.vs-stage {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    column-gap: 56px;
    row-gap: 34px;
    align-items: stretch;
    margin-top: 30px;
}

.vs-side {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.vs-diff {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.vs-diff-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 9px 4px 8px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: rgba(255, 253, 247, .6);
    color: var(--body);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.vs-diff-btn b {
    font-weight: 500;
    letter-spacing: .02em;
}

.vs-diff-btn i {
    font-style: normal;
    font-size: 10.5px;
    letter-spacing: .04em;
    color: var(--dim);
    white-space: nowrap;
}

.vs-diff-btn:hover {
    border-color: var(--line-gold);
}

.vs-diff-btn.is-on {
    border-color: var(--paper);
    background: var(--paper);
    color: #FFF9EE;
}

.vs-diff-btn.is-on i {
    color: rgba(255, 249, 238, .62);
}

/* 主指标：整页最大的字。不是秒数，是各关自己的那个数 */
.vs-meter {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 30px 0 0;
    min-height: 68px;
}

.vs-meter b {
    font-family: var(--sans);
    font-size: clamp(44px, 5.2vw, 62px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    color: var(--paper);
}

.vs-meter i {
    font-style: normal;
    font-size: 14px;
    color: var(--sub);
    letter-spacing: .08em;
}

/* 还没成绩时那个「—」在 62px 下就是一条横线，会被当成分隔线 */
.vs-meter b.is-idle {
    font-size: 32px;
    letter-spacing: .12em;
    color: var(--sub);
}

.vs-verdict {
    margin: 12px 0 0;
    font-size: 14.5px;
    line-height: 1.6;
    letter-spacing: .02em;
    color: var(--dim);
    min-height: 23px;
}

.vs-verdict.is-a {
    color: var(--cinnabar);
}

.vs-verdict.is-b {
    color: var(--gold);
}

.vs-verdict.is-c {
    color: var(--sub);
}

.vs-verdict.is-d {
    color: var(--dim);
}

.vs-verdict.is-e {
    color: var(--dim);
}

.vs-meta {
    display: flex;
    gap: 22px;
    margin: 24px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
    font-size: 13px;
    color: var(--dim);
}

.vs-meta b {
    font-weight: 500;
    font-size: 15px;
    color: var(--body);
    font-variant-numeric: tabular-nums;
}

.vs-quiet {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 84px;
    padding: 18px 0;
}

.vs-quiet span {
    writing-mode: vertical-rl;
    white-space: nowrap;
    padding-right: 12px;
    border-right: 1px solid var(--rule);
    font-family: var(--serif);
    font-size: 12.5px;
    line-height: 1;
    letter-spacing: .22em;
    color: var(--dim);
    user-select: none;
}

.vs-start {
    margin-top: auto;
    padding: 15px 20px;
    border: 1px solid var(--paper);
    border-radius: 3px;
    background: var(--paper);
    color: #FFF9EE;
    font-family: inherit;
    font-size: 15.5px;
    letter-spacing: .16em;
    cursor: pointer;
    transition: background .18s ease, transform .12s ease;
}

.vs-start:hover {
    background: #3E3120;
}

.vs-start:active {
    transform: translateY(1px);
}

.vs-start[disabled] {
    opacity: .45;
    cursor: default;
}

.vs-tip {
    margin: 12px 0 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--dim);
    transition: color .18s ease;
}

.vs-tip.is-warn {
    color: var(--cinnabar);
}

/* ---------- 右栏：四个台子共用一张纸卡 ---------- */
.vs-panels {
    display: flex;
    min-height: 408px;
}

.vs-panel {
    display: none;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding: 26px 26px 22px;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: rgba(255, 253, 247, .72);
}

.vs-panel.is-on {
    display: flex;
}

.vs-stage-tip {
    margin: 20px 0 0;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--dim);
}

/* 音效开关：跟舒尔特同一处语言，一行小字，靠右收着 */
.vs-snd {
    margin-left: auto;
    padding: 1px 0 2px;
    border: 0;
    border-bottom: 1px solid transparent;
    background: none;
    color: var(--sub);
    font-family: inherit;
    font-size: 13px;
    letter-spacing: .04em;
    cursor: pointer;
    transition: color .16s ease, border-color .16s ease;
}

.vs-snd:hover {
    color: var(--body);
    border-bottom-color: var(--rule);
}

.vs-snd.is-off {
    color: var(--dim);
    border-bottom-style: dashed;
    border-bottom-color: var(--rule);
}


/* ---------- 右栏：四个台子共用一张纸卡 ---------- */
.vs-bay {
    display: flex;
    min-height: 408px;
}

.vs-panel {
    display: none;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding: 20px 20px 16px;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: rgba(255, 253, 247, .72);
}

.vs-panel.is-on {
    display: flex;
}

.vs-stage-tip {
    margin: 16px 0 0;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--dim);
}

.vs-stage-tip.is-warn {
    color: var(--cinnabar);
}

/* ============================================================
   第一关：字母分辨
   一整屏 b / d / p，笔画一样、只差方向。格子放得比原来大两圈 ——
   分不清是眼睛的问题还是题目的问题，就没法判断练没练到。
   ============================================================ */
.vs-cancel-stage {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vs-cancel-bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 2px;
}

.vs-rest {
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    color: var(--paper);
    font-variant-numeric: tabular-nums;
}

.vs-rest::after {
    content: ' 秒';
    font-size: 11.5px;
    color: var(--sub);
    letter-spacing: .1em;
}

.vs-count {
    font-size: 12.5px;
    color: var(--dim);
}

.vs-count b {
    font-weight: 500;
    font-size: 14px;
    color: var(--body);
    font-variant-numeric: tabular-nums;
}

.vs-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 3px;
    width: 100%;
    user-select: none;
}

/* 格子尺寸按「一眼就分得清 d / p / b」来定，不按 d2 的密度来定。
   d、p、b 三者的笔画完全相同，只差一个方向 —— 字小了或者挤了，
   分不清是眼睛的问题还是题目的问题，练了也白练。 */
.vs-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    font-family: var(--serif);
    font-size: 32px;
    line-height: 1;
    color: var(--paper);
    cursor: pointer;
    transition: background .1s ease, border-color .1s ease;
    /* 划痕是斜的，不给裁剪会伸到隔壁格里，看着像划错了字 */
    overflow: hidden;
}

/* b / d / p 在小写里高度不齐（b、d 有升部，p 有降部），
   一起排会上下跳，看着像歪的 —— 统一给一个行盒高度压平。 */
.vs-cell b {
    display: block;
    font-weight: 400;
    line-height: 52px;
}

.vs-cell:hover {
    background: #FFF8E8;
    border-color: var(--rule);
}

/* 手指点完会留一圈焦点框，看着像「选中了这一格」，会误导人。
   只给键盘留焦点框：鼠标和触摸点过不留痕。 */
.vs-cell:focus {
    outline: none;
}

.vs-cell:focus-visible {
    outline: 2px solid var(--cinnabar);
    outline-offset: -2px;
}

/* 这一轮找哪个字母：写在计时旁边，字形跟格子里一模一样大，
   免得「页面上写着 b、格子里却是另一种字体」看走眼。 */
.vs-find {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin-left: auto;
    margin-right: 18px;
    font-size: 12.5px;
    color: var(--dim);
    letter-spacing: .06em;
}

.vs-find b {
    font-family: var(--serif);
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
    color: var(--cinnabar);
}

/* 划掉：一条朱砂斜线。这里必须留痕 ——
   不留痕就分不清「划过」和「没划过」，只会反复点同一格。 */
.vs-cell.is-done::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: var(--cinnabar);
    opacity: .85;
    transform: rotate(-8deg);
    pointer-events: none;
}

.vs-cell.is-done {
    background: rgba(192, 68, 44, .07);
}

/* 误划：朱砂框抖一下，0.3 秒收回 */
.vs-cell.is-wrong {
    border-color: var(--cinnabar);
    background: rgba(192, 68, 44, .10);
    animation: vs-shake .3s ease;
}

/* 点错的格子：底色改成灰，线也压深一点。
   原来跟划对只差线的颜色，手机上 2px 的线几乎看不出 —— 底色一变，一眼就分开。 */
.vs-cell.is-miss {
    background: rgba(116, 98, 75, .07);
}

.vs-cell.is-miss::after {
    background: var(--dim);
    opacity: .62;
}

@keyframes vs-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.vs-grid.is-frozen .vs-cell {
    cursor: default;
}

.vs-grid.is-frozen .vs-cell:hover {
    background: transparent;
    border-color: transparent;
}

/* ============================================================
   第二关：结合搜索（Treisman）
   场地要空 —— 项与项之间必须隔开，挤在一起就成了「视觉拥挤」，
   测的就不是搜索效率了。
   ============================================================ */
.vs-search-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.vs-goal {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 12.5px;
    letter-spacing: .04em;
    color: var(--dim);
}

.vs-sample {
    display: inline-block;
    width: 6px;
    height: 26px;
    border-radius: 1px;
    background: var(--bar-red);
}

.vs-field {
    position: relative;
    width: 100%;
    height: 296px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: #FFFDF7;
    overflow: hidden;
}

.vs-item {
    position: absolute;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.vs-item i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 1px;
}

.vs-item.is-v {
    width: 6px;
    height: 32px;
}

.vs-item.is-h {
    width: 32px;
    height: 6px;
}

.vs-item.is-red i {
    background: var(--bar-red);
}

.vs-item.is-green i {
    background: var(--bar-green);
}

.vs-item:hover i {
    outline: 1px solid rgba(143, 95, 28, .35);
    outline-offset: 3px;
}

.vs-item.is-right i {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.vs-item.is-wrong i {
    outline: 2px solid var(--cinnabar);
    outline-offset: 3px;
}

.vs-item.is-wrong {
    animation: vs-shake .3s ease;
}

/* ============================================================
   第三关：动向追踪（MOT）
   画布宽高由 JS 按容器算，CSS 只给一块白纸。
   ============================================================ */
.vs-track-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

#vtCanvas {
    display: block;
    width: 100%;
    height: 300px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: #FFFDF7;
    cursor: pointer;
    touch-action: manipulation;
}

#vtCanvas.is-live {
    cursor: default;
}

.vs-hud {
    margin: 0;
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--sub);
}

/* ============================================================
   第四关：反向反应（反眼跳的按键版）
   一块安静的白场，中间一个十字，线索在左或在右闪一下就没。
   ============================================================ */
.vs-inhi-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.vs-cuebox {
    position: relative;
    width: 100%;
    height: 196px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: #FFFDF7;
    overflow: hidden;
}

.vs-cross {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
}

.vs-cross::before,
.vs-cross::after {
    content: '';
    position: absolute;
    background: rgba(94, 66, 32, .5);
}

.vs-cross::before {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
}

.vs-cross::after {
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
}

.vs-cue {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    border-radius: 2px;
    background: var(--paper);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.vs-cue[hidden] {
    display: none;
}

.vs-cue.is-left {
    left: 13%;
}

.vs-cue.is-right {
    left: 87%;
}

.vs-keys {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 340px;
}

.vs-key {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 0;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: #FFFDF7;
    color: var(--body);
    font-family: inherit;
    font-size: 15px;
    letter-spacing: .08em;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease;
}

.vs-key em {
    font-style: normal;
    font-size: 15px;
    color: var(--dim);
}

.vs-key:hover {
    border-color: var(--line-gold);
}

.vs-key.is-hit {
    border-color: var(--gold);
    background: rgba(217, 162, 75, .18);
}

.vs-key.is-miss {
    border-color: var(--cinnabar);
    background: rgba(192, 68, 44, .10);
}

/* ---------- 三条规矩 ---------- */
.vs-guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 52px;
    padding-top: 28px;
    border-top: 1px solid var(--rule);
}

.vs-note h3 {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: .1em;
    color: var(--paper);
}

.vs-note h3::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 1px;
    margin-right: 9px;
    vertical-align: 5px;
    background: var(--gold);
}

.vs-note p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--body);
}

/* ---------- 评分标准 ---------- */
.vs-std {
    margin-top: 56px;
    padding-top: 30px;
    border-top: 1px solid var(--rule);
}

.vs-std-head h2 {
    margin: 0 0 10px;
    font-family: var(--serif);
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 400;
    letter-spacing: .1em;
    color: var(--paper);
}

.vs-std-head p {
    margin: 0;
    max-width: 820px;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--sub);
}

.vs-age {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.vs-age-btn {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 7px 13px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: rgba(255, 253, 247, .6);
    font-family: inherit;
    font-size: 13.5px;
    color: var(--body);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.vs-age-btn i {
    font-style: normal;
    font-size: 11px;
    color: var(--dim);
}

.vs-age-btn:hover {
    border-color: var(--line-gold);
}

.vs-age-btn.is-on {
    border-color: var(--paper);
    background: var(--paper);
    color: #FFF9EE;
}

.vs-age-btn.is-on i {
    color: rgba(255, 249, 238, .6);
}

/* 四行六列。单位放在行首，不放进格子 —— 四关单位不一样 */
.vs-table {
    width: 100%;
    margin-top: 24px;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.vs-table thead th {
    padding: 0 8px 10px;
    border-bottom: 1px solid var(--rule);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .1em;
    color: var(--dim);
    text-align: center;
}

.vs-table thead th:first-child {
    text-align: left;
    padding-left: 0;
}

.vs-table thead th em {
    display: block;
    margin-top: 3px;
    font-style: normal;
    font-size: 10.5px;
    letter-spacing: .04em;
    opacity: .7;
}

.vs-table tbody th {
    padding: 12px 8px 12px 0;
    text-align: left;
    font-weight: 400;
    border-bottom: 1px solid var(--rule);
}

.vs-table tbody th b {
    display: block;
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: .06em;
    color: var(--paper);
}

.vs-table tbody th i {
    font-style: normal;
    font-size: 11px;
    color: var(--dim);
}

.vs-table tbody td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--rule);
    text-align: center;
    font-size: 14px;
    color: var(--body);
}

.vs-table tbody td:nth-child(2) {
    color: var(--cinnabar);
}

.vs-table tbody td:nth-child(3) {
    color: var(--gold);
}

.vs-table tbody td:nth-child(4) {
    color: var(--body);
}

.vs-table tbody td:nth-child(5) {
    color: var(--sub);
}

.vs-table tbody td:nth-child(6) {
    color: var(--dim);
}

.vs-table tbody[hidden] {
    display: none;
}

.vs-foot {
    margin: 22px 0 0;
    max-width: 900px;
    font-size: 12.5px;
    line-height: 1.9;
    color: var(--dim);
}

/* ---------- 窄屏 ---------- */
@media (max-width: 1080px) {
    .vs-stage {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 26px;
    }

    .vs-side {
        display: grid;
        grid-template-columns: 232px minmax(0, 1fr);
        column-gap: 28px;
        row-gap: 0;
        align-items: start;
    }

    .vs-diff {
        grid-row: span 2;
    }

    .vs-meter {
        margin-top: 0;
        min-height: 52px;
    }

    .vs-quiet {
        display: none;
    }

    .vs-meta {
        margin-top: 14px;
        padding-top: 12px;
    }

    .vs-start {
        grid-column: 2;
        margin-top: 16px;
    }

    .vs-tip {
        grid-column: 2;
    }
}

@media (max-width: 820px) {
    /* 三关：两列排，第三关独占一行铺满 —— 两行一比两行空半格好看 */
    .vs-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vs-tabs .vs-tab:nth-child(3) {
        grid-column: span 2;
    }

    .vs-guide {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .vs-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .fc-vis .fc-in {
        padding: 0 16px 60px;
    }

    /* 手机上三关各占一行，别挤成两列 */
    .vs-tabs {
        grid-template-columns: minmax(0, 1fr);
    }

    .vs-tabs .vs-tab:nth-child(3) {
        grid-column: auto;
    }

    .vs-head {
        gap: 12px;
    }

    .vs-tab {
        padding: 11px 12px 10px;
    }

    .vs-tab b {
        font-size: 14.5px;
    }

    .vs-side {
        display: flex;
        flex-direction: column;
    }

    .vs-meter {
        margin-top: 20px;
        min-height: 0;
    }

    .vs-meta {
        margin-top: 14px;
        gap: 14px;
    }

    .vs-snd {
        margin-left: 0;
    }

    .vs-bay {
        min-height: 0;
    }

    .vs-panel {
        padding: 14px 10px 12px;
    }

    /* 手机上格子按 42px 一档算，8 列正好；再挤下去 d/p/b 就分不清了 */
    .vs-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 3px;
    }

    /* 字跟着格子缩，但不能小于 26px —— 再小就回到「看不清」的老问题 */
    .vs-cell {
        height: 44px;
        font-size: 26px;
    }

    .vs-cell b {
        line-height: 44px;
    }

    .vs-find b {
        font-size: 28px;
    }

    .vs-rule > summary {
        flex-wrap: wrap;
        row-gap: 6px;
        padding: 11px 36px 11px 12px;
    }

    .vs-rule-name {
        font-size: 16px;
    }

    .vs-rule-live {
        flex-basis: 100%;
        margin-left: 0;
    }

    .vs-rule-in {
        padding: 4px 14px 14px 16px;
    }

    .vs-rule-list li {
        font-size: 13px;
        padding-left: 25px;
    }

    .vs-field,
    #vtCanvas {
        height: 250px;
    }

    .vs-cuebox {
        height: 170px;
    }

    .vs-cue {
        width: 36px;
        height: 36px;
    }

    .vs-cue.is-left {
        left: 16%;
    }

    .vs-cue.is-right {
        left: 84%;
    }

    .vs-table thead th,
    .vs-table tbody td {
        padding: 9px 4px;
        font-size: 12.5px;
    }
}

/* 少动一点：抖动是纯装饰，关掉后颜色仍然分得清 */
@media (prefers-reduced-motion: reduce) {
    .vs-cell.is-wrong,
    .vs-item.is-wrong {
        animation: none;
    }
}
