/* ============================================================
   听力专注训练台
   跟舒尔特、百日静心同一套宣纸暖光：纸底 #FBF5E8 / 墨字 #2E2317 /
   赭金 #8F5F1C / 朱砂 #C0442C。这里的颜色一律引用变量，不写死 hex ——
   换主题时只要改 .fc-hear 那一段。

   这个页面刻意的取舍：屏幕上不给「这一串响了几声」的任何视觉提示。
   计数关连脉冲都不闪（一闪就等于帮着数了），只用一圈缓慢呼吸表示「正在听」。
   听见和听准之间，差的就是「不给拐棍」这件事。
   ============================================================ */
body:has(.fc-hear) #main.layui-main {
    background: #F8EFDF;
}

.fc-hear {
    --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);

    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-hear) #footer {
    background-color: #3A322A;
}

.fc-hear .fc-in {
    max-width: 1180px;
    position: relative;
}

/* ---------- 抬头 ---------- */
.hr-head {
    display: flex;
    align-items: baseline;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
}

.hr-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);
}

.hr-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;
}

.hr-lead {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--sub);
    letter-spacing: .02em;
}

/* ---------- 四关入口 ---------- */
.hr-tabs {
    display: grid;
    /* 2026-11-16：只留两关（停走 / 回声），四列改两列 —— 两块正好各占一半，
       比原来四列挤成两条窄带更像「入口」而不是「一排标签」 */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 30px;
}

.hr-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;
}

.hr-tab i {
    font-style: normal;
    font-size: 10.5px;
    letter-spacing: .16em;
    color: var(--dim);
}

.hr-tab b {
    font-size: 15.5px;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--paper);
}

.hr-tab em {
    font-style: normal;
    font-size: 11.5px;
    letter-spacing: .02em;
    color: var(--sub);
}

.hr-tab:hover {
    border-color: var(--line-gold);
}

.hr-tab.is-on {
    background: var(--paper);
    border-color: var(--paper);
}

.hr-tab.is-on b {
    color: #FFF9EE;
}

.hr-tab.is-on i,
.hr-tab.is-on em {
    /* 58% 在深底上只有 10.5px 的小字，缩到手机上就糊；两关之后这块面积变大，
       提到 .70 刚好「能读、又不抢标题」 */
    color: rgba(255, 249, 238, .7);
}

/* 本关说明：切成哪一关，这一行跟着换 */
.hr-brief {
    margin: 16px 0 0;
    max-width: 880px;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--body);
}

.hr-brief cite {
    margin-left: 10px;
    font-style: normal;
    font-size: 11.5px;
    letter-spacing: .04em;
    color: var(--dim);
    white-space: nowrap;
}

/* ---------- 主体两栏 ---------- */
.hr-stage {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    column-gap: 56px;
    row-gap: 34px;
    align-items: stretch;
    margin-top: 30px;
}

.hr-side {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.hr-diff {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.hr-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;
}

.hr-diff-btn b {
    font-weight: 500;
    letter-spacing: .02em;
}

.hr-diff-btn i {
    font-style: normal;
    font-size: 10.5px;
    letter-spacing: .04em;
    color: var(--dim);
    white-space: nowrap;
}

.hr-diff-btn:hover {
    border-color: var(--line-gold);
}

.hr-diff-btn.is-on {
    border-color: var(--paper);
    background: var(--paper);
    color: #FFF9EE;
}

.hr-diff-btn.is-on i {
    color: rgba(255, 249, 238, .62);
}

/* 主指标：整页最大的字。不是秒数，是各关自己的那个数 */
.hr-meter {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 30px 0 0;
    min-height: 68px;
}

.hr-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);
}

.hr-meter i {
    font-style: normal;
    font-size: 14px;
    color: var(--sub);
    letter-spacing: .08em;
}

.hr-verdict {
    margin: 12px 0 0;
    font-size: 14.5px;
    line-height: 1.6;
    letter-spacing: .02em;
    color: var(--dim);
    min-height: 23px;
}

.hr-verdict.is-a {
    color: var(--cinnabar);
}

.hr-verdict.is-b {
    color: var(--gold);
}

.hr-verdict.is-c {
    color: var(--sub);
}

.hr-verdict.is-d {
    color: var(--dim);
}

.hr-verdict.is-e {
    color: var(--dim);
}

.hr-meta {
    display: flex;
    gap: 22px;
    margin: 24px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
    font-size: 13px;
    color: var(--dim);
}

.hr-meta b {
    font-weight: 500;
    font-size: 15px;
    color: var(--body);
    font-variant-numeric: tabular-nums;
}

.hr-quiet {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 84px;
    padding: 18px 0;
}

.hr-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;
}

.hr-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;
}

.hr-start:hover {
    background: #3E3120;
}

.hr-start:active {
    transform: translateY(1px);
}

.hr-start[disabled] {
    opacity: .45;
    cursor: default;
}

.hr-tip {
    margin: 12px 0 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--dim);
    transition: color .18s ease;
}

.hr-tip.is-warn {
    color: var(--cinnabar);
}

/* ---------- 右栏：四个台子共用一张纸卡 ---------- */
.hr-panels {
    display: flex;
    min-height: 408px;
}

.hr-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);
}

.hr-panel.is-on {
    display: flex;
}

.hr-stage-tip {
    margin: 20px 0 0;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--dim);
}

/* ---------- 第一关：听音计数 ---------- */
.hr-count-stage {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

/* 只表示「正在听」，不随每一响闪 —— 一闪就等于帮着数了 */
.hr-orb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 188px;
    height: 188px;
    border: 1px solid var(--line-gold);
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 17px;
    letter-spacing: .18em;
    color: var(--sub);
    transition: border-color .3s ease, color .3s ease;
}

.hr-orb.is-live {
    animation: hr-breathe 2.8s ease-in-out infinite;
    color: var(--gold);
}

@keyframes hr-breathe {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(143, 95, 28, .10);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(143, 95, 28, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hr-orb.is-live {
        animation: none;
    }
}

/* 数字键盘：1–15，三行五列 */
.hr-pad {
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: 430px;
}

.hr-pad[hidden] {
    display: none;
}

.hr-pad-num {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hr-pad button {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: #FFFDF7;
    color: var(--paper);
    font-family: inherit;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.hr-pad button:hover {
    border-color: var(--line-gold);
    background: #FFF8E8;
}

.hr-pad button:active {
    background: #F6EAD2;
}

/* 答完那一下：对的赭金，错的朱砂，1.2 秒后翻页 */
.hr-pad button.is-right,
.hr-opts button.is-right {
    border-color: var(--gold);
    background: rgba(217, 162, 75, .18);
    box-shadow: inset 0 0 0 1px rgba(143, 95, 28, .45);
    color: var(--paper);
}

.hr-pad button.is-wrong,
.hr-opts button.is-wrong {
    border-color: var(--cinnabar);
    background: rgba(192, 68, 44, .10);
    color: var(--cinnabar);
}

.hr-pad button[disabled],
.hr-opts button[disabled] {
    cursor: default;
}

/* ---------- 第二关：听音停走 ---------- */
.hr-go-stage {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
}

.hr-go-btn {
    width: 208px;
    height: 208px;
    border: 1px solid var(--line-gold);
    border-radius: 50%;
    background: #FFFDF7;
    color: var(--paper);
    font-family: var(--serif);
    font-size: 22px;
    letter-spacing: .18em;
    cursor: pointer;
    user-select: none;
    transition: border-color .12s ease, background .12s ease, transform .06s ease;
}

.hr-go-btn[disabled] {
    opacity: .45;
    cursor: default;
}

.hr-go-btn:not([disabled]):active {
    transform: scale(.985);
    background: #FFF6E4;
}

/* 误按那一下才给红 —— 平时按对了不留痕，跟舒尔特同一个道理 */
.hr-go-btn.is-bad {
    border-color: var(--cinnabar);
    background: rgba(192, 68, 44, .07);
}

.hr-go-bar {
    width: 100%;
    max-width: 430px;
    height: 3px;
    background: var(--rule);
    overflow: hidden;
}

.hr-go-bar i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--gold);
    transition: width .28s linear;
}

/* ---------- 第三关：数字回声 ---------- */
.hr-digit-stage {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.hr-echo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 0 8px;
    font-family: var(--sans);
    font-size: clamp(38px, 4.6vw, 54px);
    font-weight: 300;
    letter-spacing: .26em;
    font-variant-numeric: tabular-nums;
    color: var(--paper);
    text-indent: .26em;
}

/* 还没敲的时候只放一个「听」字，别把长度提前写在屏幕上 */
.hr-echo i {
    font-style: normal;
    font-family: var(--serif);
    font-size: 28px;
    letter-spacing: .3em;
    color: var(--sub);
}

.hr-echo.is-live i {
    color: var(--gold);
}

.hr-pad-digit {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hr-pad-digit button.hr-pad-alt {
    grid-column: 1 / -1;
    aspect-ratio: auto;
    height: 46px;
    font-size: 13px;
    letter-spacing: .1em;
    color: var(--sub);
    background: rgba(255, 253, 247, .5);
}

/* ---------- 第四关：抗干扰抓词 ---------- */
.hr-noise-stage {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.hr-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid var(--line-gold);
    border-radius: 40px;
    background: #FFFDF7;
    color: var(--paper);
    font-family: inherit;
    font-size: 14px;
    letter-spacing: .08em;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.hr-play:hover {
    background: #FFF8E8;
}

.hr-play[disabled] {
    opacity: .45;
    cursor: default;
}

.hr-play i {
    width: 0;
    height: 0;
    border-left: 9px solid var(--gold);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.hr-play.is-live i {
    width: 8px;
    height: 12px;
    border: none;
    border-left: 3px solid var(--cinnabar);
    border-right: 3px solid var(--cinnabar);
}

.hr-opts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 520px;
}

.hr-opts button {
    padding: 18px 12px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: #FFFDF7;
    color: var(--paper);
    font-family: var(--serif);
    font-size: 17px;
    letter-spacing: .1em;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.hr-opts button:hover {
    border-color: var(--line-gold);
    background: #FFF8E8;
}

.hr-opts button[disabled] {
    cursor: default;
}

/* ---------- 三条规矩 ---------- */
.hr-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);
}

.hr-note h3 {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: .1em;
    color: var(--paper);
}

.hr-note h3::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 1px;
    margin-right: 9px;
    vertical-align: 5px;
    background: var(--gold);
}

.hr-note p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--body);
}

/* ---------- 评分标准 ---------- */
.hr-std {
    margin-top: 56px;
    padding-top: 30px;
    border-top: 1px solid var(--rule);
}

.hr-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);
}

.hr-std-head p {
    margin: 0;
    max-width: 820px;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--sub);
}

.hr-age {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.hr-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;
}

.hr-age-btn i {
    font-style: normal;
    font-size: 11px;
    color: var(--dim);
}

.hr-age-btn:hover {
    border-color: var(--line-gold);
}

.hr-age-btn.is-on {
    border-color: var(--paper);
    background: var(--paper);
    color: #FFF9EE;
}

.hr-age-btn.is-on i {
    color: rgba(255, 249, 238, .6);
}

/* 四行六列。单位放在行首，不放进格子 —— 四关单位不一样 */
.hr-table {
    width: 100%;
    margin-top: 24px;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.hr-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;
}

.hr-table thead th:first-child {
    text-align: left;
    padding-left: 0;
}

.hr-table thead th em {
    display: block;
    margin-top: 3px;
    font-style: normal;
    font-size: 10.5px;
    letter-spacing: .04em;
    opacity: .7;
}

.hr-table tbody th {
    padding: 12px 8px 12px 0;
    text-align: left;
    font-weight: 400;
    border-bottom: 1px solid var(--rule);
}

.hr-table tbody th b {
    display: block;
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: .06em;
    color: var(--paper);
}

.hr-table tbody th i {
    font-style: normal;
    font-size: 11px;
    color: var(--dim);
}

.hr-table tbody td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--rule);
    text-align: center;
    font-size: 14px;
    color: var(--body);
}

.hr-table tbody td:nth-child(2) {
    color: var(--cinnabar);
}

.hr-table tbody td:nth-child(3) {
    color: var(--gold);
}

.hr-table tbody td:nth-child(4) {
    color: var(--body);
}

.hr-table tbody td:nth-child(5) {
    color: var(--sub);
}

.hr-table tbody td:nth-child(6) {
    color: var(--dim);
}

.hr-table tbody[hidden] {
    display: none;
}

.hr-foot {
    margin: 22px 0 0;
    max-width: 900px;
    font-size: 12.5px;
    line-height: 1.9;
    color: var(--dim);
}

/* ---------- 窄屏 ---------- */
@media (max-width: 1080px) {
    .hr-stage {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 26px;
    }

    .hr-side {
        display: grid;
        grid-template-columns: 232px minmax(0, 1fr);
        column-gap: 28px;
        row-gap: 0;
        align-items: start;
    }

    .hr-diff {
        grid-row: span 2;
    }

    .hr-meter {
        margin-top: 0;
        min-height: 52px;
    }

    .hr-quiet {
        display: none;
    }

    .hr-meta {
        margin-top: 14px;
        padding-top: 12px;
    }

    .hr-start {
        grid-column: 2;
        margin-top: 16px;
    }

    .hr-tip {
        grid-column: 2;
    }
}

@media (max-width: 820px) {
    /* 两关之后不再折行：竖屏手机两关并排各一半也太窄，直接竖排两块 */
    .hr-tabs {
        grid-template-columns: minmax(0, 1fr);
    }

    .hr-guide {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
}

@media (max-width: 640px) {
    .fc-hear .fc-in {
        padding: 0 18px 60px;
    }

    .hr-head {
        gap: 12px;
    }

    .hr-tab {
        padding: 11px 12px 10px;
    }

    .hr-tab b {
        font-size: 14.5px;
    }

    .hr-side {
        display: flex;
        flex-direction: column;
    }

    .hr-meter {
        margin-top: 22px;
        min-height: 0;
    }

    .hr-meta {
        margin-top: 16px;
    }

    .hr-panels {
        min-height: 392px;
    }

    .hr-panel {
        padding: 20px 16px 14px;
    }

    .hr-orb {
        width: 148px;
        height: 148px;
        font-size: 15px;
    }

    .hr-go-btn {
        width: 168px;
        height: 168px;
        font-size: 19px;
    }

    .hr-echo {
        font-size: 34px;
        letter-spacing: .18em;
        text-indent: .18em;
    }

    .hr-opts button {
        padding: 15px 8px;
        font-size: 15.5px;
    }

    .hr-table thead th,
    .hr-table tbody td {
        padding: 9px 4px;
        font-size: 12.5px;
    }

    .hr-table tbody th b {
        font-size: 13.5px;
    }

    .hr-std {
        margin-top: 40px;
    }
}
