/* ============================================================
   视觉专注训练台
   跟舒尔特、听力、百日静心同一套宣纸暖光：纸底 #FBF5E8 / 墨字 #2E2317 /
   赭金 #8F5F1C / 朱砂 #C0442C。颜色一律引用变量，换主题只改 .fc-dist 那一段。

   这个页面的取舍：四关各练一件不同的事，所以四个台子长得很不一样 ——
   划消是一整屏符号（要密），搜索是一块场地（要空），追踪是一张画布（要动），
   反向是一块暗场（要静）。共同的规矩只有一条：屏幕上不预告答案。
   ============================================================ */
body:has(.fc-dist) #main.layui-main {
    background: #F8EFDF;
}

.fc-dist {
    --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-dist) #footer {
    background-color: #3A322A;
}

.fc-dist .fc-in {
    max-width: 1180px;
    position: relative;
}

/* ---------- 抬头 ---------- */
.dd-head {
    display: flex;
    align-items: baseline;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
}

.dd-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);
}

.dd-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;
}

.dd-lead {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--sub);
    letter-spacing: .02em;
}

/* ---------- 两关入口（2026-11-16 撤掉「侧翼挤压」「乱中找字」，四列改两列） ---------- */
.dd-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 30px;
}

.dd-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;
}

.dd-tab i {
    font-style: normal;
    font-size: 10.5px;
    letter-spacing: .16em;
    color: var(--dim);
}

.dd-tab b {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: .12em;
    color: var(--paper);
}

.dd-tab em {
    font-style: normal;
    font-size: 11.5px;
    letter-spacing: .02em;
    color: var(--sub);
}

.dd-tab:hover {
    border-color: var(--line-gold);
}

.dd-tab.is-on {
    background: var(--paper);
    border-color: var(--paper);
}

.dd-tab.is-on b {
    color: #FFF9EE;
}

.dd-tab.is-on i,
.dd-tab.is-on em {
    color: rgba(255, 249, 238, .58);
}

/* ---------- 规则卡 ----------
   四关的规则各不一样，写长了整页开头就是一大块字，人一眼扫过去就跳过了。
   所以收进 details 里默认合上：合着也能看见「整盘几颗 / 找全停表」这一行，
   真想看细则再点开。 */
.dd-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);
}

.dd-rule > summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 40px 12px 14px;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

/* 浏览器默认那个黑三角太难看成「能点」，换成右向箭头 */
.dd-rule > summary::-webkit-details-marker {
    display: none;
}

.dd-rule > summary::marker {
    content: '';
}

/* 朱砂小印：整页的「规矩」都从这个小方块认起 */
.dd-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;
}

.dd-rule-name {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: .14em;
    color: var(--paper);
}

.dd-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;
}

.dd-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;
}

.dd-rule[open] .dd-rule-ar {
    transform: rotate(-135deg);
}

.dd-rule-in {
    padding: 4px 20px 16px 22px;
    border-top: 1px dashed var(--rule);
    margin-top: 2px;
}

.dd-rule-list {
    counter-reset: vsr;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.dd-rule-list li {
    position: relative;
    padding-left: 27px;
    margin-bottom: 8px;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--body);
}

/* 序号做成小圆章，跟朱砂小印一套；纯数字排下来太像合同条款 */
.dd-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;
}

/* 「按小学算」这一小行是必要的：三档年龄并排写，家长不知道自己对哪一档 */
.dd-rule-scale {
    margin: 14px 0 -5px;
    font-size: 11.5px;
    letter-spacing: .05em;
    color: var(--sub);
}

.dd-rule-scale b {
    font-weight: 500;
    color: var(--lead);
}

/* 及格 / 优秀两条线单独拎出来：这是最常被问的一句，别埋在段落里 */
.dd-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);
}

.dd-rule-line li {
    display: flex;
    align-items: baseline;
    gap: 9px;
    font-size: 13px;
    color: var(--body);
}

.dd-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);
}

.dd-rule-line li:last-child b {
    background: rgba(192, 68, 44, .12);
    color: var(--cinnabar);
}

.dd-rule-src {
    margin: 10px 0 0;
    font-size: 11.5px;
    letter-spacing: .04em;
    color: var(--dim);
}

/* ---------- 主体两栏 ---------- */
.dd-stage {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    column-gap: 56px;
    row-gap: 34px;
    align-items: stretch;
    margin-top: 30px;
}

.dd-side {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.dd-diff {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.dd-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;
}

.dd-diff-btn b {
    font-weight: 500;
    letter-spacing: .02em;
}

.dd-diff-btn i {
    font-style: normal;
    font-size: 10.5px;
    letter-spacing: .04em;
    color: var(--dim);
    white-space: nowrap;
}

.dd-diff-btn:hover {
    border-color: var(--line-gold);
}

.dd-diff-btn.is-on {
    border-color: var(--paper);
    background: var(--paper);
    color: #FFF9EE;
}

.dd-diff-btn.is-on i {
    color: rgba(255, 249, 238, .62);
}

/* 主指标：整页最大的字。不是秒数，是各关自己的那个数 */
.dd-meter {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 30px 0 0;
    min-height: 68px;
}

.dd-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);
}

.dd-meter i {
    font-style: normal;
    font-size: 14px;
    color: var(--sub);
    letter-spacing: .08em;
}

/* 还没成绩时那个「—」在 62px 下就是一条横线，会被当成分隔线 */
.dd-meter b.is-idle {
    font-size: 32px;
    letter-spacing: .12em;
    color: var(--sub);
}

.dd-verdict {
    margin: 12px 0 0;
    font-size: 14.5px;
    line-height: 1.6;
    letter-spacing: .02em;
    color: var(--dim);
    min-height: 23px;
}

.dd-verdict.is-a {
    color: var(--cinnabar);
}

.dd-verdict.is-b {
    color: var(--gold);
}

.dd-verdict.is-c {
    color: var(--sub);
}

.dd-verdict.is-d {
    color: var(--dim);
}

.dd-verdict.is-e {
    color: var(--dim);
}

.dd-meta {
    display: flex;
    gap: 22px;
    margin: 24px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
    font-size: 13px;
    color: var(--dim);
}

.dd-meta b {
    font-weight: 500;
    font-size: 15px;
    color: var(--body);
    font-variant-numeric: tabular-nums;
}

.dd-quiet {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 84px;
    padding: 18px 0;
}

.dd-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;
}

.dd-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;
}

.dd-start:hover {
    background: #3E3120;
}

.dd-start:active {
    transform: translateY(1px);
}

.dd-start[disabled] {
    opacity: .45;
    cursor: default;
}

.dd-tip {
    margin: 12px 0 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--dim);
    transition: color .18s ease;
}

.dd-tip.is-warn {
    color: var(--cinnabar);
}

/* ---------- 右栏：四个台子共用一张纸卡 ---------- */
.dd-panels {
    display: flex;
    min-height: 408px;
}

.dd-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);
}

.dd-panel.is-on {
    display: flex;
}

.dd-stage-tip {
    margin: 20px 0 0;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--dim);
}

/* 音效开关：跟舒尔特同一处语言，一行小字，靠右收着 */
.dd-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;
}

.dd-snd:hover {
    color: var(--body);
    border-bottom-color: var(--rule);
}

.dd-snd.is-off {
    color: var(--dim);
    border-bottom-style: dashed;
    border-bottom-color: var(--rule);
}


/* ---------- 右栏：四个台子共用一张纸卡 ---------- */
.dd-bay {
    display: flex;
    min-height: 408px;
}

.dd-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);
}

.dd-panel.is-on {
    display: flex;
}

.dd-stage-tip {
    margin: 16px 0 0;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--dim);
}

.dd-stage-tip.is-warn {
    color: var(--cinnabar);
}

/* ============================================================
   四关的场地

   这一页的四个台子长得不一样，但都在干同一件事：
   把「干扰」和「正事」摆在同一个屏幕上，看孩子能不能把正事做完。
   所以四块场地的共同要求只有一条 —— 干扰要真的显眼，目标要真的不显眼。
   ============================================================ */

.dd-panel {
    min-height: 420px;
}

/* ---------- 第一关：色词 ---------- */
.dd-stroop-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    min-height: 350px;
}

/* 「按颜色」这句话必须一直在，不然孩子做着做着就开始念字 */
.dd-ask {
    margin: 0;
    font-size: 12.5px;
    letter-spacing: .08em;
    color: var(--dim);
}

.dd-word {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(320px, 74%);
    height: 168px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: rgba(255, 253, 247, .7);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 96px;
    line-height: 1;
    letter-spacing: .04em;
    user-select: none;
}

/* 四个色键：靠色块分辨，不靠字 */
.dd-colors {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: min(420px, 100%);
}

.dd-colors button {
    height: 52px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 3px;
    font-family: var(--serif);
    font-size: 19px;
    letter-spacing: .16em;
    text-indent: .16em;
    color: #FFF6E6;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .12s ease;
}

.dd-colors button:active {
    transform: translateY(1px);
}

.dd-colors button:focus {
    outline: none;
}

.dd-colors button:focus-visible {
    outline: 2px solid var(--paper);
    outline-offset: 2px;
}

.dd-c-red { background: #C0442C; }
.dd-c-gold { background: #C08A2E; }
.dd-c-blue { background: #3A6EA5; }
.dd-c-green { background: #4E7C59; }

.dd-colors button.is-hit {
    box-shadow: 0 0 0 3px rgba(46, 35, 23, .22) inset;
}

.dd-colors button.is-miss {
    box-shadow: 0 0 0 3px rgba(46, 35, 23, .5) inset;
}

/* ---------- 第二关：侧翼 ---------- */
.dd-flank-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 44px;
    min-height: 350px;
}

/* 五个箭头必须一样大、一样粗。中间那个一旦加大，
   它就自己跳出来了，那就不叫 Flanker 了。 */
.dd-flank {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--paper);
    user-select: none;
}

.dd-ar {
    display: block;
    width: 52px;
    height: 34px;
}

.dd-ar svg {
    display: block;
    width: 100%;
    height: 100%;
}

.dd-ar.is-l svg {
    transform: scaleX(-1);
}

/* 没开始时场地是空的，空着像坏了 —— 给一句「点了才撒开」 */
.dd-field.is-idle::after {
    content: '点「开始」，这一片才会撒开';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    margin-top: -9px;
    text-align: center;
    font-size: 12.5px;
    letter-spacing: .08em;
    color: var(--dim);
}

/* ---------- 通用两键 ---------- */
.dd-keys {
    display: flex;
    gap: 14px;
}

.dd-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 130px;
    height: 56px;
    padding: 0 20px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: rgba(255, 253, 247, .8);
    font-family: var(--serif);
    font-size: 16px;
    letter-spacing: .1em;
    color: var(--paper);
    cursor: pointer;
    transition: background .1s ease, border-color .1s ease;
}

.dd-key em {
    font-style: normal;
    font-size: 20px;
    color: var(--lead);
}

.dd-key:hover {
    border-color: var(--line-gold);
    background: #FFF8E8;
}

.dd-key.is-hit {
    border-color: var(--lead);
    background: rgba(143, 95, 28, .1);
}

.dd-key.is-miss {
    border-color: var(--cinnabar);
    background: rgba(192, 68, 44, .1);
}

.dd-key:focus {
    outline: none;
}

.dd-key:focus-visible {
    outline: 2px solid var(--cinnabar);
    outline-offset: 2px;
}

/* ---------- 第三关：乱中找 ---------- */
.dd-cap-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.dd-field {
    position: relative;
    width: 100%;
    height: 360px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 60%),
        rgba(255, 253, 247, .5);
    overflow: hidden;
}

/* 干扰符号：颜色压得很淡，不然整屏都是「目标」 */
.dd-sym {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1;
    /* .5 实测在米底上几乎看不见，整片像糊了层灰。
       干扰符号要「看得见、但不起眼」—— 用 .62。 */
    color: rgba(116, 98, 75, .62);
    cursor: pointer;
    user-select: none;
}

.dd-sym.is-t {
    font-size: 21px;
    color: var(--paper);
}

.dd-sym.is-hit {
    color: var(--lead);
}

/* 抢眼的橙点：会跳。跳到哪不重要，重要的是它一直在动 ——
   静止的干扰物看两眼就习惯了，跳动的才会反复把眼睛拽过去。 */
.dd-orb {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #E8730F;
    box-shadow: 0 0 0 5px rgba(232, 115, 15, .16);
    pointer-events: none;
    animation: dd-orb 1.05s ease-in-out infinite;
}

@keyframes dd-orb {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 5px rgba(232, 115, 15, .14); }
    50% { transform: scale(1.24); box-shadow: 0 0 0 9px rgba(232, 115, 15, .07); }
}

/* ---------- 第四关：旁边说话 ---------- */
.dd-noise-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    min-height: 350px;
}

.dd-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 168px;
    height: 168px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    background: rgba(255, 253, 247, .8);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 88px;
    line-height: 1;
    color: var(--paper);
    font-variant-numeric: tabular-nums;
    user-select: none;
}

/* 干扰声开关：这一关唯一一个「家长能调」的钮 */
.dd-noise {
    position: absolute;
    right: 6px;
    bottom: 0;
    padding: 4px 2px;
    border: 0;
    border-bottom: 1px dashed var(--rule);
    background: transparent;
    font-family: inherit;
    font-size: 11.5px;
    letter-spacing: .06em;
    color: var(--sub);
    cursor: pointer;
}

.dd-noise.is-off {
    color: var(--dim);
    border-bottom-style: dotted;
}

/* ---------- 手机 ---------- */
@media (max-width: 640px) {
    .dd-panel {
        min-height: 380px;
    }

    .dd-word {
        width: 78%;
        height: 128px;
        font-size: 72px;
    }

    .dd-colors button {
        height: 46px;
        font-size: 16px;
        letter-spacing: .1em;
        text-indent: .1em;
    }

    .dd-ar {
        width: 38px;
        height: 26px;
    }

    .dd-keys {
        gap: 10px;
        width: 100%;
    }

    .dd-key {
        flex: 1;
        min-width: 0;
        height: 52px;
        padding: 0 10px;
        font-size: 15px;
    }

    .dd-field {
        height: 280px;
    }

    .dd-sym {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }

    .dd-num {
        width: 132px;
        height: 132px;
        font-size: 68px;
    }
}

/* ---------- 三条规矩 ---------- */
.dd-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);
}

.dd-note h3 {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: .1em;
    color: var(--paper);
}

.dd-note h3::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 1px;
    margin-right: 9px;
    vertical-align: 5px;
    background: var(--gold);
}

.dd-note p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--body);
}

/* ---------- 评分标准 ---------- */
.dd-std {
    margin-top: 56px;
    padding-top: 30px;
    border-top: 1px solid var(--rule);
}

.dd-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);
}

.dd-std-head p {
    margin: 0;
    max-width: 820px;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--sub);
}

.dd-age {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.dd-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;
}

.dd-age-btn i {
    font-style: normal;
    font-size: 11px;
    color: var(--dim);
}

.dd-age-btn:hover {
    border-color: var(--line-gold);
}

.dd-age-btn.is-on {
    border-color: var(--paper);
    background: var(--paper);
    color: #FFF9EE;
}

.dd-age-btn.is-on i {
    color: rgba(255, 249, 238, .6);
}

/* 四行六列。单位放在行首，不放进格子 —— 四关单位不一样 */
.dd-table {
    width: 100%;
    margin-top: 24px;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.dd-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;
}

.dd-table thead th:first-child {
    text-align: left;
    padding-left: 0;
}

.dd-table thead th em {
    display: block;
    margin-top: 3px;
    font-style: normal;
    font-size: 10.5px;
    letter-spacing: .04em;
    opacity: .7;
}

.dd-table tbody th {
    padding: 12px 8px 12px 0;
    text-align: left;
    font-weight: 400;
    border-bottom: 1px solid var(--rule);
}

.dd-table tbody th b {
    display: block;
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: .06em;
    color: var(--paper);
}

.dd-table tbody th i {
    font-style: normal;
    font-size: 11px;
    color: var(--dim);
}

.dd-table tbody td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--rule);
    text-align: center;
    font-size: 14px;
    color: var(--body);
}

.dd-table tbody td:nth-child(2) {
    color: var(--cinnabar);
}

.dd-table tbody td:nth-child(3) {
    color: var(--gold);
}

.dd-table tbody td:nth-child(4) {
    color: var(--body);
}

.dd-table tbody td:nth-child(5) {
    color: var(--sub);
}

.dd-table tbody td:nth-child(6) {
    color: var(--dim);
}

.dd-table tbody[hidden] {
    display: none;
}

.dd-foot {
    margin: 22px 0 0;
    max-width: 900px;
    font-size: 12.5px;
    line-height: 1.9;
    color: var(--dim);
}

/* ---------- 窄屏 ---------- */
@media (max-width: 1080px) {
    .dd-stage {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 26px;
    }

    .dd-side {
        display: grid;
        grid-template-columns: 232px minmax(0, 1fr);
        column-gap: 28px;
        row-gap: 0;
        align-items: start;
    }

    .dd-diff {
        grid-row: span 2;
    }

    .dd-meter {
        margin-top: 0;
        min-height: 52px;
    }

    .dd-quiet {
        display: none;
    }

    .dd-meta {
        margin-top: 14px;
        padding-top: 12px;
    }

    .dd-start {
        grid-column: 2;
        margin-top: 16px;
    }

    .dd-tip {
        grid-column: 2;
    }
}

@media (max-width: 820px) {
    .dd-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dd-guide {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .dd-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .fc-dist .fc-in {
        padding: 0 16px 60px;
    }

    /* 手机上两关各占一行，别挤成两列 */
    .dd-tabs {
        grid-template-columns: minmax(0, 1fr);
    }

    .dd-head {
        gap: 12px;
    }

    .dd-tab {
        padding: 11px 12px 10px;
    }

    .dd-tab b {
        font-size: 14.5px;
    }

    .dd-side {
        display: flex;
        flex-direction: column;
    }

    .dd-meter {
        margin-top: 20px;
        min-height: 0;
    }

    .dd-meta {
        margin-top: 14px;
        gap: 14px;
    }

    .dd-snd {
        margin-left: 0;
    }

    .dd-bay {
        min-height: 0;
    }

    .dd-panel {
        padding: 14px 10px 12px;
    }

    /* 手机上格子按 42px 一档算，8 列正好；再挤下去 d/p/b 就分不清了 */
    .dd-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 3px;
    }

    /* 字跟着格子缩，但不能小于 26px —— 再小就回到「看不清」的老问题 */
    .dd-cell {
        height: 44px;
        font-size: 26px;
    }

    .dd-cell b {
        line-height: 44px;
    }

    .dd-find b {
        font-size: 28px;
    }

    .dd-rule > summary {
        flex-wrap: wrap;
        row-gap: 6px;
        padding: 11px 36px 11px 12px;
    }

    .dd-rule-name {
        font-size: 16px;
    }

    .dd-rule-live {
        flex-basis: 100%;
        margin-left: 0;
    }

    .dd-rule-in {
        padding: 4px 14px 14px 16px;
    }

    .dd-rule-list li {
        font-size: 13px;
        padding-left: 25px;
    }

    .dd-field,
    #ddCanvas {
        height: 250px;
    }

    .dd-cuebox {
        height: 170px;
    }

    .dd-cue {
        width: 36px;
        height: 36px;
    }

    .dd-cue.is-left {
        left: 16%;
    }

    .dd-cue.is-right {
        left: 84%;
    }

    .dd-table thead th,
    .dd-table tbody td {
        padding: 9px 4px;
        font-size: 12.5px;
    }
}

/* 少动一点：抖动是纯装饰，关掉后颜色仍然分得清 */
@media (prefers-reduced-motion: reduce) {
    .dd-cell.is-wrong,
    .dd-item.is-wrong {
        animation: none;
    }
}
