/* ===================================
   公开页 · 门户层 Portal
   ------------------------------------------------------------
   这一层只服务「家长/学生看得到的那几个静态页」：
   index、scholarship、apply、score、cca-planning、registration-guide…

   与 main.css 的分工：
     main.css   字体 @font-face、容器、语言切换、.pill-shine 这类底座
     portal.css 页头、章节、卡片、药丸、时间线、步骤 —— 也就是「版式」
   所以页面顺序是 tokens.css → main.css → portal.css，
   portal.css 永远最后加载，改版只需要动这一份。

   三条硬规矩（与管理端同源）：
     1. 不用 1px 描边分层。卡片靠白底 + 三层影 + 底下一档更深的页面底色。
     2. 颜色只从 tokens 取。浅底一律 color-mix(主色, 白)，不另存一套 -tint。
     3. 深底胶囊必须挂 .pill-shine（金色光带扫过），不要各页自己发明。

   版心：正文 710，卡片 1000，整页 1120。
   超过 48 个汉字的行要断开——长行是缺陷，不是默认。
   =================================== */

/* ===================================
   1. 页面骨架
   =================================== */

body {
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

.app-container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: var(--background);
}

/* 只保留给读屏的状态文本；不改变界面视觉，也不占布局。 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 页头以下的正文区：自上而下排，最后一块留出页脚前的呼吸。
   底色全站统一用 --background（Ryan 2026-10-30：整个静态对外站一个底色，
   白皮书等页是什么底这里就是什么底）——不再单开一个冷灰。 */
.scholarship-content {
    flex: 1;
    padding: clamp(28px, 4vw, 56px) clamp(18px, 4vw, 40px) clamp(48px, 6vw, 88px);
    background: var(--background);
}

.application-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

/* ===================================
   2. 页头
   ------------------------------------------------------------
   旧站是 123px 的 navy→slate 斜向渐变 + 40px 的宽 logo。
   问题不在渐变，在于「一块深色板，里面什么信息都没有」：
   标题只是浮在上面的一行字，深浅之间是一条没有理由的斜线。

   新页头把这条关系讲清楚：
     上层 48px：返回 + 校徽（导航）
     中层：kicker → 大标题（衬线 40）→ 一句导语
     底部：一条金线，0.5% 的宽度渐变收尾，替代硬切边
   =================================== */

.sub-header {
    position: relative;
    overflow: hidden;
    padding: clamp(16px, 2vw, 22px) clamp(18px, 4vw, 40px) clamp(20px, 2.4vw, 28px);
    color: var(--text-inverse);
    background:
        radial-gradient(120% 150% at 12% -20%, color-mix(in srgb, var(--harrow-gold) 22%, transparent) 0%, transparent 58%),
        var(--harrow-navy);
}

/* 底部金线：从中段往两边淡出，避免又变成一条硬边 */
.sub-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        color-mix(in srgb, var(--harrow-gold) 55%, transparent) 18%,
        var(--harrow-gold-light) 50%,
        color-mix(in srgb, var(--harrow-gold) 55%, transparent) 82%,
        transparent 100%);
    opacity: 0.85;
}

.sub-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1080px;
    margin: 0 auto clamp(14px, 2vw, 20px);
}

.sub-header-logo {
    height: 38px;
    width: auto;
    opacity: 0.92;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}

/* 返回：深底上的玻璃胶囊，不再画那一圈白描边 */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 12px;
    border: 0;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-inverse);
    font-family: var(--font-body);
    font-size: 12.5px;
    letter-spacing: 0.02em;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.17);
    transform: translateY(-1px);
}

.back-button :is(svg, .back-icon) {
    width: 15px;
    height: 15px;
}

.page-title {
    max-width: 1080px;
    margin: 0 auto;
    font-family: var(--font-serif);
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
}

/* ===================================
   3. 章节
   =================================== */

.app-block {
    margin-top: clamp(34px, 4.4vw, 56px);
}

.app-block:first-child {
    margin-top: 0;
}

.app-block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--foreground);
}

/* 章节号用一枚金点代替「一、」「01」：不做顺序暗示，只做分隔 */
.app-block-title::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: var(--harrow-gold);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--harrow-gold) 16%, transparent);
}

/* ===================================
   4. 页首 · 申请入口
   =================================== */

/* 右侧那四张「只能看」的奖项卡撤了，页头收成单列——
   它回答不了任何人的问题，却占着半屏；同样的问题现在由下面的选择器回答。 */
.app-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 3.4vw, 48px);
    align-items: start;
}

.app-kicker {
    display: inline-block;
    font-family: var(--font-en-sans);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--harrow-gold-dark);
}

.app-head h2 {
    margin: 8px 0 0;
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.4vw, 38px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.app-lead {
    max-width: 34em;
    margin: 12px 0 0;
    font-size: 14.5px;
    line-height: 1.78;
    color: var(--text-secondary);
}

/* 两个入口同级：同尺寸、同材质，只靠图标和文字区分 */
.app-head-entries {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(20px, 2.6vw, 28px);
}

/* 液态玻璃入口（旧站那枚）。
   两枚都真的进下一层，所以配玻璃——玻璃是「点得进去」的暗示，不是装饰。
   上一版把它改成了实心深蓝：镜面光、内高光、模糊底一起没了，
   按钮退化成一块色板（Ryan 2026-10-30「按钮的玻璃效果你给抹平了」）。
   材质照旧站，手感按 coss ui：抬起 2px、按下回 1px 并微缩，过渡分段给。 */
.app-entry {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* 箭头要能推到右端，得先有富余宽度；窄屏 stretch 时自动满宽 */
    min-width: 188px;
    height: var(--hn-h-lg);
    box-sizing: border-box;
    padding: 0 16px 0 16px;
    border: var(--glass-edge);
    border-radius: var(--radius-pill);
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
    backdrop-filter: blur(16px) saturate(170%);
    color: #fff;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.015em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--glass-lift);
    transition:
        transform 220ms cubic-bezier(0.2, 0, 0, 1),
        box-shadow 220ms cubic-bezier(0.2, 0, 0, 1),
        border-color 220ms cubic-bezier(0.2, 0, 0, 1);
}

.app-entry:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.44);
    box-shadow: var(--glass-lift-hover);
}

/* 按下：先回位再微缩，指尖上有个「按到底」的确认 */
.app-entry:active {
    transform: translateY(0) scale(0.985);
    box-shadow: var(--glass-lift);
    transition-duration: 90ms;
}

.app-entry:focus-visible {
    outline: 2px solid var(--harrow-gold);
    outline-offset: 3px;
}

/* 金图标落在深底上；金光铺满时它会融进底里，跟着提亮到白 */
.app-entry-ico {
    width: 19px;
    height: 19px;
    flex: none;
    color: #cdbf90;
    transition: color 300ms cubic-bezier(0.2, 0, 0, 1);
}

.app-entry:hover .app-entry-ico,
.app-entry:focus-visible .app-entry-ico {
    color: rgba(255, 255, 255, 0.92);
}

/* 箭头推到右端：两枚读起来是菜单项，不是两句说明 */
.app-entry-arrow {
    margin-left: auto;
    flex: none;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 220ms cubic-bezier(0.2, 0, 0, 1), color 220ms cubic-bezier(0.2, 0, 0, 1);
}

.app-entry:hover .app-entry-arrow {
    color: #fff;
    transform: translateX(2px);
}

.app-cta-note {
    margin: 12px 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ===================================
   5. 四类奖学金
   ------------------------------------------------------------
   一张白卡装四行，每行一支奖项色：
   点 = 主色，名字 = 深字，减免 = 灰字。
   不用四个彩色页签——四块不同颜色的底会让「同级」读成「分级」。
   =================================== */

/* 只加深阴影：有响应，但不是「可点」暗示 */
/* ===================================
   6. 申请注意事项
   =================================== */

.app-note {
    --accent: var(--harrow-navy);
    position: relative;
    padding: clamp(18px, 2.2vw, 26px);
    border-radius: var(--hn-r-card);
    /* 6% 的混色算出来是 #F1F2F4，屏幕上和 #FFF 分不出——「卡片本来有颜色」说的就是这个。
       改回旧站那两档实色：深蓝走淡染渐变（直接混白会发灰），绿按 11% 算死。 */
    background: linear-gradient(180deg, #e9edf6 0%, #dfe5f1 100%);
    box-shadow:
        0 1px 2px rgba(21, 34, 66, 0.05),
        0 6px 14px rgba(21, 34, 66, 0.04),
        0 22px 44px -24px rgba(21, 34, 66, 0.28);
}

.app-note-art {
    width: 44px;
    height: 44px;
    flex: none;
    filter: drop-shadow(0 4px 8px rgba(21, 34, 66, 0.14));
}

/* 资格前置条件：一行，不做背板 */
/* 三条红线：一张卡一条判定，标签在上、图例居中、结论在下 */
/* 三条判定直接落在浅蓝卡上：浅色卡里再套三张白卡，就是大框套小框。
   分隔交给一条极淡的竖线——那是「分开」，不是「框住」。 */
.app-red-gauge,
/* 仪表盘：底轨浅、弧线用渐变、指针与数字上色 */
.app-red--hon .app-red-v,
/* 材料：六格，图在上、名在中、规格在下 */
/* 六类材料同样不再套白格：它们是一张清单，不是六张卡。
   图标 + 名称 + 规格靠列间距读，hover 也不抬起——这里点不了，动了反而像按钮。 */
.app-mat {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 8px 4px;
    text-align: center;
}

.app-mat img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.app-mats-due {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 12px 0 0;
    padding-top: 12px;
    font-size: 12.5px;
    color: var(--text-secondary);
    border-top: 0;
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 12%, transparent);
}

.app-mats-due b {
    font-weight: 700;
    color: var(--harrow-navy);
}

/* ===================================
   6.5 资格互动（108）
   ------------------------------------------------------------
   顺序就是申请的顺序，页面自上而下照着走一遍：
     选身份 → 立刻知道能报哪几类 → 身份触发优才时展开「一个板块一个人」
     → 过三条红线 → 才轮到材料。
   撤掉的那四张奖项卡只回答「有哪几类」，这里回答「我能报哪一类」。
   =================================== */

.app-block-sub {
    margin: -8px 0 16px;
    max-width: 52ch;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ---- 选择器 ---- */
.app-elig-picker {
    padding: clamp(18px, 2.2vw, 24px);
    border-radius: var(--hn-r-card);
    /* 不走 var(--card)：tokens 链路一旦没加载它就是透明的（2026-10-30 线上抓到），
       这张卡的面必须是实打实的白，和底色分开 */
    background: #fff;
    box-shadow:
        0 1px 2px rgba(21, 34, 66, 0.05),
        0 6px 14px rgba(21, 34, 66, 0.04),
        0 22px 44px -26px rgba(21, 34, 66, 0.28);
}

.elig-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.elig-line + .elig-line {
    margin-top: 12px;
}

.elig-line--chips {
    align-items: flex-start;
}

.elig-key {
    flex: none;
    min-width: 3.4em;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--text-muted);
}

/* 年级：一颗浅底药丸包住原生 select，箭头自己画（系统箭头跟着主题跑不动） */
.elig-select {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.elig-select select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 132px;
    padding: 8px 40px 8px 16px;
    border: 0;
    border-radius: var(--radius-pill);
    background: #eef0f4;
    color: var(--harrow-navy);
    font-family: var(--font-en-sans);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.elig-select select:hover {
    background: #e6e9ef;
}

.elig-select select:focus-visible {
    outline: 2px solid var(--harrow-gold);
    outline-offset: 2px;
}

.elig-select-ico {
    position: absolute;
    right: 14px;
    width: 14px;
    height: 14px;
    pointer-events: none;
    color: rgba(21, 34, 66, 0.5);
}

/* 身份情况：一枚药丸 = 一种完整身份，不是可多选的条件。
   年级选定后整排启用；hover / 聚焦 = 预览（is-live），click = 钉住（aria-pressed）。
   当主角的那颗 = 深蓝实底，金色光带按 house 规矩由 .pill-shine 扫；
   不用描边——这一屏的边界全部由底色承担。 */
.elig-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 这个年级不存在的身份整颗隐藏（Ryan 2026-10-30：不要灰度，直接不要显示）——
   [hidden] 在 flex 子项上会被 display:flex 盖掉，得显式压回来 */
.elig-pill[hidden] {
    display: none;
}

.elig-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: var(--hn-h-pill-control);
    padding: 0 14px 0 12px;
    border: 0;
    border-radius: var(--radius-pill);
    background: #eef0f4;
    color: rgba(21, 34, 66, 0.78);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    transition:
        background 180ms cubic-bezier(0.2, 0, 0, 1),
        color 180ms cubic-bezier(0.2, 0, 0, 1),
        transform 180ms cubic-bezier(0.2, 0, 0, 1);
}

.elig-pill :is(svg, img) {
    width: 15px;
    height: 15px;
    flex: none;
    opacity: 0.75;
    transition: opacity 180ms cubic-bezier(0.2, 0, 0, 1), color 180ms cubic-bezier(0.2, 0, 0, 1);
}

.elig-pill:hover:not(:disabled):not(.is-live) {
    background: #e6e9ef;
    transform: translateY(-1px);
}

.elig-pill:active:not(:disabled) {
    transform: translateY(0) scale(0.985);
}

.elig-pill:focus-visible {
    outline: 2px solid var(--harrow-gold);
    outline-offset: 2px;
}

/* 年级没选：身份情况还枚举不出来（每一条都要拿年级算结论） */
.elig-pill:disabled {
    cursor: default;
    opacity: 0.45;
    pointer-events: none;
}

/* 正在看的这种身份。悬停别的那颗时，钉住的那颗让出深蓝——
   一排里永远只有一颗主角，读起来才不会像多选 */
.elig-pill.is-live {
    background: var(--harrow-navy);
    color: #fff;
}

.elig-pill.is-live :is(svg, img) {
    opacity: 1;
    color: var(--harrow-gold-light);
}

/* 已点亮板块数：选择器旁边的即时读数，不参与布局挤压 */
.elig-board-note {
    font-size: 12px;
    color: var(--text-muted);
}

.elig-tip {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* ---- 能报：另一排奖项药丸，跟左边身份的 hover/点选联动 ---- */
.elig-awards {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 四类奖项各一颗：符合 = 自己的色铺在面上，不符合 = 一层灰。
   颜色的差异就是结论本身，不需要再写「符合/不符合」四个字。 */
.elig-award {
    --aw: var(--harrow-navy);
    --aw-tint: #eef0f4;
    --aw-ink: var(--harrow-navy);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    background: #f2f3f6;
    transition: background 300ms cubic-bezier(0.2, 0, 0, 1), box-shadow 300ms cubic-bezier(0.2, 0, 0, 1), transform 300ms cubic-bezier(0.2, 0, 0, 1);
}

.elig-award[data-award="john"] {
    --aw: var(--award-johnlyon);
    --aw-tint: var(--award-johnlyon-tint);
    --aw-ink: var(--award-johnlyon-text);
}

.elig-award[data-award="head"] {
    --aw: var(--award-head);
    --aw-tint: var(--award-head-tint);
    --aw-ink: var(--award-head-text);
}

.elig-award[data-award="talent"] {
    --aw: var(--award-talent);
    --aw-tint: var(--award-talent-tint);
    --aw-ink: var(--award-talent-text);
}

.elig-award[data-award="rising"] {
    --aw: var(--award-rising);
    --aw-tint: var(--award-rising-tint);
    --aw-ink: var(--award-rising-text);
}

.elig-award-mark {
    position: relative;
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(21, 34, 66, 0.1);
    transition: background 300ms cubic-bezier(0.2, 0, 0, 1);
}

.elig-award-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.elig-award-text b {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
    color: rgba(21, 34, 66, 0.52);
    transition: color 300ms cubic-bezier(0.2, 0, 0, 1);
}

.elig-award-text i {
    font-style: normal;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(21, 34, 66, 0.38);
    transition: color 300ms cubic-bezier(0.2, 0, 0, 1);
}

/* 符合：色铺在面上（不是描边），并给这四颗药丸自己的三层阴影 */
.elig-award[data-on="true"] {
    background: var(--aw-tint);
    box-shadow:
        0 1px 2px rgba(21, 34, 66, 0.05),
        0 6px 14px -8px rgba(21, 34, 66, 0.18),
        0 16px 30px -18px rgba(21, 34, 66, 0.32);
}

.elig-award[data-on="true"] .elig-award-mark {
    background: var(--aw);
}

/* 勾是拿两条边转出来的：不用字符 ✓，字体会换掉 */
.elig-award[data-on="true"] .elig-award-mark::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 4px;
    width: 5px;
    height: 9px;
    border-right: 1.9px solid #fff;
    border-bottom: 1.9px solid #fff;
    transform: rotate(40deg) scale(0.6);
    opacity: 0;
    animation: eligTick 260ms ease forwards;
}

@keyframes eligTick {
    to { transform: rotate(40deg) scale(1); opacity: 1; }
}

.elig-award[data-on="true"] .elig-award-text b {
    color: var(--aw-ink);
}

.elig-award[data-on="true"] .elig-award-text i {
    color: color-mix(in srgb, var(--aw-ink) 62%, transparent);
}

.elig-hint {
    margin: 12px 0 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-muted);
}

.elig-hint b {
    font-weight: 700;
    color: var(--harrow-navy);
}

/* 奖项药丸的列数跟着容器收：平板两列，手机一列 */
@media (max-width: 1080px) {
    .elig-awards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .elig-awards {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- 优才的产生方式 ---- */
.talent-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(20px, 2.6vw, 34px);
    align-items: center;
    padding: clamp(20px, 2.6vw, 30px);
    border-radius: var(--hn-r-card);
    background: #f6f4ec;
    box-shadow:
        0 1px 2px rgba(21, 34, 66, 0.05),
        0 6px 14px rgba(21, 34, 66, 0.04),
        0 22px 44px -26px rgba(21, 34, 66, 0.28);
}

.talent-pool-wrap {
    min-width: 0;
}

/* 获奖区：三个槽就是三个名额。空着是灰圈，填进去才亮——
   这一条让「名额」变成看得见的东西，而不是一句形容词。 */
.talent-quota {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 8px 12px 8px 16px;
    border-radius: var(--radius-pill);
    background: rgba(63, 143, 106, 0.13);
    width: fit-content;
}

.talent-quota-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #2c6b4e;
}

.talent-slots {
    display: inline-flex;
    gap: 4px;
}

.talent-slot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgba(63, 143, 106, 0.18);
    box-shadow: inset 0 0 0 1.5px rgba(63, 143, 106, 0.32);
    transition: background 300ms cubic-bezier(0.2, 0, 0, 1), box-shadow 300ms cubic-bezier(0.2, 0, 0, 1), transform 300ms cubic-bezier(0.2, 0, 0, 1);
}

.talent-slot.is-filled {
    background: radial-gradient(circle at 36% 30%, #6fd3a8 0%, #2f9c72 52%, #1d7a56 100%);
    box-shadow: 0 0 0 3px rgba(63, 143, 106, 0.18);
    transform: scale(1.1);
}

.talent-pool-stage {
    position: relative;
    /* 348：一颗球 ~52px。上一版 400（球 ~68px）被 Ryan 点名太大——
       「和站里其它的圆形元素保持一致」，站里的圆件都在 12–36px 一档，
       池子球再大也得收一收（2026-10-30）。 */
    max-width: 348px;
    margin: 36px auto 0;
}

/* 标注：指认第一排右侧那三颗蓝球——身份学生坐在这里。
   压在图上不占布局，箭头是一条竖线 + 三角尖。 */
.talent-note {
    position: absolute;
    left: 70%;
    top: -34px;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(78, 157, 216, 0.16);
    color: #24618f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.talent-note::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: 12px;
    background: rgba(78, 157, 216, 0.55);
    transform: translateX(-50%);
}

.talent-note::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + 12px);
    transform: translateX(-50%);
    border-left: 4.5px solid transparent;
    border-right: 4.5px solid transparent;
    border-top: 5.5px solid rgba(78, 157, 216, 0.55);
}

/* 包裹层压在球下面；球所在的网格抬一层，透明底也不会被盖住 */
.talent-hull-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* 获奖区是**一整条药丸**，不是每颗球各自套一圈：
   同一行相邻的得奖会被并进同一条里（位置由脚本按球的实际几何算）。
   和「本板块优才名额」那枚药丸同一个语言：纯色铺底、圆角收口，不描边——
   上一版每颗球各套一圈细线，看着就是五个边框（Ryan 2026-10-30）。 */
.talent-hull {
    position: absolute;
    border-radius: 999px;
    background: rgba(63, 143, 106, 0.17);
    opacity: 0;
    transform: scale(0.96);
    transition:
        opacity 220ms cubic-bezier(0.2, 0, 0, 1),
        transform 220ms cubic-bezier(0.2, 0, 0, 1),
        left 220ms cubic-bezier(0.2, 0, 0, 1),
        top 220ms cubic-bezier(0.2, 0, 0, 1),
        width 220ms cubic-bezier(0.2, 0, 0, 1),
        height 220ms cubic-bezier(0.2, 0, 0, 1);
}

.talent-hull.is-on {
    opacity: 1;
    transform: none;
}

/* 顺位名额那条：同样是整条药丸、同样的内边距，只把边缘换成虚线——
   铺底那一条是「评审现场」，虚线这一条是「没占满、往下顺延」。 */
.talent-hull--alt {
    background: rgba(63, 143, 106, 0.08);
    border: 1.5px dashed rgba(63, 143, 106, 0.55);
}

.talent-pool {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    /* 行距 30 是给两片药丸留的缝：每片上下各探 8px，30 - 8 - 8 = 14px 空气。
       上一版 18 差点又贴在一起（Ryan 2026-10-30：实线药丸和虚线药丸不许重叠）。 */
    gap: 28px 8px;
}

/* 格子只负责留出包裹框的余量，不再自己上色；
   徽章（✓/✗ 泡泡）以它为定位锚点 */
.talent-cell {
    position: relative;
    padding: clamp(4px, 0.6vw, 6px);
}

/* 棋子：径向渐变 + 内阴影，看起来是立着的而不是贴纸 */
.talent-dot {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #f8dd90 0%, #ecba46 46%, #cf9a22 100%);
    box-shadow:
        inset 0 -2px 5px rgba(122, 82, 10, 0.24),
        inset 0 2px 3px rgba(255, 255, 255, 0.45),
        0 2px 5px rgba(122, 82, 10, 0.14);
    transition:
        transform 300ms cubic-bezier(0.2, 0, 0, 1),
        opacity 300ms cubic-bezier(0.2, 0, 0, 1),
        filter 300ms cubic-bezier(0.2, 0, 0, 1),
        box-shadow 300ms cubic-bezier(0.2, 0, 0, 1);
}

/* 候选人：另一个颜色，一眼数得出来「这一池里有几个」 */
.talent-dot.is-cand {
    background: radial-gradient(circle at 34% 28%, #93c8ee 0%, #4e9dd8 46%, #2f7cb8 100%);
    box-shadow:
        inset 0 -2px 5px rgba(16, 60, 96, 0.26),
        inset 0 2px 3px rgba(255, 255, 255, 0.42),
        0 2px 5px rgba(16, 60, 96, 0.16);
}

/* 逐位比对时的那一下呼吸 */
.talent-dot.is-live {
    transform: scale(1.14);
    box-shadow:
        inset 0 -2px 5px rgba(16, 60, 96, 0.26),
        0 0 0 4px rgba(78, 157, 216, 0.28),
        0 8px 18px -8px rgba(16, 60, 96, 0.4);
}

/* 得奖 = 球里插一面白旗（Ryan 画板图：得奖的圆圈是旗子）。
   球保持自己的颜色——金球还是金球，蓝球还是蓝球。 */
.talent-dot.is-flag svg {
    width: 58%;
    height: 58%;
    color: #fff;
    filter: drop-shadow(0 1px 1.5px rgba(21, 34, 66, 0.35));
    animation: talentFlagIn 300ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@keyframes talentFlagIn {
    from { transform: scale(0.4) rotate(-14deg); opacity: 0; }
    to { transform: scale(1) rotate(0); opacity: 1; }
}

/* ✓ / ✗：小圆泡叠在球右上角，一票一票看得见。
   挂在 cell 上（球是圆的，泡要骑在球肩上）。 */
.talent-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    z-index: 2;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(21, 34, 66, 0.3);
    animation: talentBadgeIn 260ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.talent-badge.is-yes {
    background: #1d8a5f;
}

.talent-badge.is-no {
    background: #ab3126;
}

/* 勾：两条边转出来；叉：两条渐变线。都不用字符，字体换不动它 */
.talent-badge.is-yes::after {
    content: "";
    position: absolute;
    left: 4.5px;
    top: 2.5px;
    width: 4px;
    height: 7px;
    border-right: 1.8px solid #fff;
    border-bottom: 1.8px solid #fff;
    transform: rotate(40deg);
}

.talent-badge.is-no::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    transform: translate(-50%, -50%);
    background:
        linear-gradient(45deg, transparent 44%, #fff 44%, #fff 56%, transparent 56%),
        linear-gradient(-45deg, transparent 44%, #fff 44%, #fff 56%, transparent 56%);
}

@keyframes talentBadgeIn {
    from { transform: scale(0.3); opacity: 0; }
    60% { transform: scale(1.18); }
    to { transform: scale(1); opacity: 1; }
}

.talent-caption {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* 图例：黄/蓝是什么人、旗子与徽章各说什么——
   动画里不写字，字都收在这里 */
.talent-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    margin: 8px 0 0;
}

.talent-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.lg-dot {
    flex: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.lg-dot--gold {
    background: radial-gradient(circle at 34% 28%, #f8dd90 0%, #ecba46 46%, #cf9a22 100%);
}

.lg-dot--blue {
    background: radial-gradient(circle at 34% 28%, #93c8ee 0%, #4e9dd8 46%, #2f7cb8 100%);
}

.lg-flag {
    flex: none;
    width: 14px;
    height: 14px;
    color: #5a6a8c;
}

.lg-flag svg {
    display: block;
    width: 100%;
    height: 100%;
}

.lg-badge {
    position: relative;
    flex: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
}

.lg-badge--yes {
    background: #1d8a5f;
}

.lg-badge--no {
    background: #ab3126;
}

.lg-badge--yes::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 2.5px;
    width: 3.4px;
    height: 6px;
    border-right: 1.6px solid #fff;
    border-bottom: 1.6px solid #fff;
    transform: rotate(40deg);
}

.lg-badge--no::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    transform: translate(-50%, -50%);
    background:
        linear-gradient(45deg, transparent 44%, #fff 44%, #fff 56%, transparent 56%),
        linear-gradient(-45deg, transparent 44%, #fff 44%, #fff 56%, transparent 56%);
}

.talent-copy {
    display: grid;
    gap: 12px;
}

.talent-step {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.talent-n {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(21, 34, 66, .09);
    color: rgba(21, 34, 66, 0.62);
    font-family: var(--font-en-sans);
    font-size: 12px;
    font-weight: 700;
}

/* 最后一条是结论：换金，压住整段 */
.talent-step--key {
    padding: 12px 12px;
    border-radius: 12px;
    background: rgba(166, 152, 103, 0.14);
    color: var(--harrow-navy);
    font-weight: 700;
}

.talent-step--key .talent-n {
    background: var(--harrow-gold);
    color: #fff;
}

/* 第 4 条是同一层结论（名额往下走），底色比第 3 条淡一档：
   两条都压满金会连成一块，看不出「限制」和「补偿」是两件事。 */
.talent-step--key2 {
    background: rgba(166, 152, 103, 0.08);
}

/* 金棋子上的勾用深绿：白色压在金色上，远看是一片糊 */
.talent-dot.is-win:not(.is-cand)::after {
    border-right-color: #14664a;
    border-bottom-color: #14664a;
}

/* ---- 资格筛查 + 材料：一张卡、一条路 ----
   人 → 三条支路各过一关 → 合流 → 通过 → 右手边就是材料准备。
   两段接在同一条横线上，箭头替那句话说话。

   几何全部由 --gate-h / --gate-gap / --gate-arm 算出来：
   竖脊的端点、支线的中线都用 calc(… / 2 - 1px)，不写死 45px 这种「看着差不多」的值。 */
.gate-flow {
    padding: clamp(20px, 2.4vw, 28px);
    border-radius: var(--hn-r-card);
    background: linear-gradient(180deg, #e9edf6 0%, #dfe5f1 100%);
    box-shadow:
        0 1px 2px rgba(21, 34, 66, 0.05),
        0 6px 14px rgba(21, 34, 66, 0.04),
        0 22px 44px -24px rgba(21, 34, 66, 0.28);
}

.gate-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.gate-headtext {
    min-width: 0;
}

.gate-headline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.gate-headline h4 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: 0.015em;
}

.gate-tag {
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: #efe0e0;
    color: var(--destructive-foreground);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* 解释性文字挂在标题下面：先说清「这是一条路」，再让图去证明它 */
.gate-sub {
    margin: 4px 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ---- 主链：左 → 右 ---- */
.gate-chain {
    --gate-h: 84px;
    --gate-gap: 8px;
    --gate-arm: 26px;
    --gate-line: rgba(21, 34, 66, 0.24);
    display: flex;
    align-items: center;
    margin-top: clamp(18px, 2.2vw, 26px);
}

/* 人：横着的一颗药丸，整颗的中线就是连线的位置 */
.gate-person {
    position: relative;
    flex: none;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    margin-right: 16px;
    padding: 4px 12px 4px 8px;
    border-radius: var(--radius-pill);
    background: #fff;
    box-shadow:
        0 1px 2px rgba(21, 34, 66, 0.06),
        0 6px 14px -8px rgba(21, 34, 66, 0.34);
}

.gate-person::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    width: 18px;
    height: 2px;
    margin-top: -0px;
    background: var(--gate-line);
}

.gate-avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef0f4;
    color: var(--harrow-navy);
}

.gate-avatar svg {
    width: 20px;
    height: 20px;
}

.gate-person-text {
    display: grid;
    gap: 0px;
}

.gate-person-text b {
    font-size: 12px;
    font-weight: 700;
    color: var(--harrow-navy);
}

.gate-person-text i {
    font-style: normal;
    font-size: 12px;
    color: var(--text-muted);
}

/* 三条支路：左边一条竖脊分三路，右边再合回一条竖脊 */
.gate-branch {
    position: relative;
    flex: none;
    display: grid;
    gap: var(--gate-gap);
    margin: 0;
    padding: 0 var(--gate-arm);
    list-style: none;
}

.gate-branch::before,
.gate-branch::after {
    content: "";
    position: absolute;
    /* 行高自适应后由 JS 量出 --spine-*；量不到（JS 未跑）时退回固定 calc */
    top: calc(var(--spine-top, calc(var(--gate-h) / 2)) - 1px);
    bottom: calc(var(--spine-bottom, calc(var(--gate-h) / 2)) - 1px);
    width: 2px;
    background: var(--gate-line);
}

.gate-branch::before { left: 0; }
.gate-branch::after { right: 0; }

.gate-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    /* 198 = 84 牌 + 12 + 文字列 62 + 12 + 20 勾。上一版 232，中文标签只占一半，
       文字和绿勾之间空出 78px 的大豁口（Ryan 2026-10-30）；
       收到 198 后中文一行放得下，英文长词（Attendance）也放得下，
       更长的（Academic integrity）照旧折两行——竖脊由 JS 按行心量，不受宽度影响。 */
    width: 198px;
    min-height: var(--gate-h);
}

.gate-item::before,
.gate-item::after {
    content: "";
    position: absolute;
    top: 50%;
    width: var(--gate-arm);
    height: 2px;
    margin-top: -0px;
    background: var(--gate-line);
}

.gate-item::before { left: calc(var(--gate-arm) * -1); }
.gate-item::after { right: calc(var(--gate-arm) * -1); }

/* 关卡：正八边形。八个角按 100/(2+√2)≈29.3 切，路径本身就是八边形，
   不再靠 stroke-width 8 的描边撑——那会把八个角磨圆、整枚糊成一团。 */
.gate-node {
    position: relative;
    flex: none;
    width: var(--gate-h);
    height: var(--gate-h);
    display: grid;
    place-items: center;
}

.gate-sign {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 7px rgba(122, 28, 24, 0.26));
}

/* 图形直接画在红牌上：白线，不垫白圆片。
   上一版那圈白底在 84px 的牌子上占掉 54px，红牌只剩一圈边。 */
.gate-art {
    position: relative;
    display: block;
}

/* 成绩那枚白纸：36×44 的纸要落在 84 的红牌里，别糊满整枚。
   09:40 的现场是 47×58（占牌子 69% 高），白纸压掉了内圈白线、四个角顶到
   斜边上，读起来是「贴了一张纸」而不是「红牌上画着一枚记号」。
   框与 viewBox 1:1（38×46），纸本身落在 36×44 —— 和盾牌 30×36、天平 44×39
   同一档视觉重量，上下左右都留出红边（Ryan 2026-11-18）。 */
.gate-art--sheet {
    width: 38px;
    height: 46px;
}

.gate-art--gauge {
    width: 60px;
    height: 40px;
}

.gate-art--shield {
    width: 48px;
    height: 48px;
}

.gate-art--scale {
    width: 52px;
    height: 52px;
}

.gate-text {
    display: grid;
    gap: 2px;
    /* 在「牌 ↔ 勾」之间居中：标签列只有三四个字，靠左会剩 40px 豁口，
       全堆在文字和绿勾之间（Ryan 2026-10-30）；居中后两段空隙均分，
       读起来是「一枚关卡」而不是「字 + 一段空白 + 一个勾」。 */
    flex: 1 1 auto;
    justify-items: center;
    text-align: center;
    min-width: 0;
}

.gate-text b {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--harrow-navy);
}

.gate-text i {
    font-style: normal;
    font-size: 12px;
    color: rgba(21, 34, 66, 0.56);
}

.gate-tick {
    position: relative;
    flex: none;
    width: 20px;
    height: 20px;
    margin-left: auto;
    border-radius: 50%;
    background: #2e9e6b;
    box-shadow: 0 3px 8px -3px rgba(46, 158, 107, 0.6);
}

.gate-tick::after {
    content: "";
    position: absolute;
    left: 6.6px;
    top: 3.8px;
    width: 5px;
    height: 9px;
    border-right: 1.9px solid #fff;
    border-bottom: 1.9px solid #fff;
    transform: rotate(40deg);
}

/* 结论：横着的一颗药丸，中线与三关的中线同高。
   下面那句「任一不通过，即失去资格」是它的说明，不是整张卡的脚注。 */
.gate-pass {
    position: relative;
    flex: none;
    /* 引线 26px = 从合流竖脊到药丸正好一段（Ryan 2026-10-30：
       上一版 margin 10 + 引线 22，引线往回吃进支路 12px，
       和中路的臂线叠成一条粗线；左边过紧、右边箭头前又空一截）。
       引线长度与间距相等，线从脊上长出来，一段到底。 */
    margin-left: 24px;
}

.gate-pass-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 8px;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, #38ab77 0%, #248a5c 100%);
    color: #fff;
    box-shadow:
        0 1px 2px rgba(24, 92, 66, 0.2),
        0 10px 18px -10px rgba(24, 92, 66, 0.6);
}

.gate-pass::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    width: 26px;
    height: 2px;
    margin-top: -0px;
    background: var(--gate-line);
}

.gate-thumb {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.gate-thumb :is(svg, img) {
    width: 16px;
    height: 16px;
}

.gate-pass-pill b {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* 说明：挂在药丸下方，绝对定位，不参与主链的行高（否则整条链会被它顶歪） */
.gate-pass-note {
    position: absolute;
    left: 50%;
    top: 100%;
    /* 以药丸左缘为锚，只往右铺：合流竖线就在药丸左边 18px，
       居中排版一定会压到线上（2026-10-30 线上抓到的重叠）。
       右边到材料列表之间留 158px，中文一行、英文折两行都放得下。 */
    left: 2px;
    width: max-content;
    max-width: 158px;
    margin-top: 8px;
    transform: none;
    text-align: left;
    font-style: normal;
    font-size: 12px;
    line-height: 1.5;
    color: var(--harrow-red);
}

/* 通过 → 材料：同一条横线上的下一段 */
.gate-hop {
    flex: none;
    display: flex;
    align-items: center;
    /* 56 + 10 = 66：这 10px 原来是 margin-left，在药丸和箭头之间留出一段
       看得见的空档（Ryan 2026-10-30：通过按钮没接上线）。空隙改成线，
       总占位不变，材料栏不会挪；再往左压 2px 藏进药丸，接缝不留白。 */
    width: 68px;
    margin-left: -2px;
    color: var(--gate-line);
}

.gate-hop-line {
    flex: 1;
    height: 2px;
    background: currentColor;
}

.gate-hop-tip {
    flex: none;
    width: 9px;
    height: 11px;
    margin-left: -0px;
}

/* 材料：六颗药丸。裸放在卡面上，字和蓝底贴在一起，10px 的规格读不清。
   2026-10-30 再放大一档（Ryan：药丸和图标可以放大一点点）：
   38px 行高 + 28px 图标，把右栏撑起来，不再留大片竖向空白。 */
.gate-mats {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 12px;
}

.gate-mats-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gate-mats-head img {
    flex: none;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.gate-mats-headtext h5 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--harrow-navy);
}

.gate-mats-headtext span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.gate-mat-list {
    display: grid;
    gap: 8px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

/* 一行 = 一件事：图标 + 名称 + 规格，紧挨着排。
   2026-11-19 Ryan：「资格卡内部有一些割裂」—— 截图里每行的名称在左、规格被推到
   最右端，中间两百多像素全空，读起来是**两列**而不是一行（红色方框圈的就是这两列）。
   现在四件挨着站，右侧留白归整张卡，行内不再断开；放不下时规格整段折到第二行，
   仍然从内容左缘起笔，不会被甩到另一头。
   半径 19px = 单行高（min-height 38px）的一半，**不是** `--radius-pill`（50px）：
   Ryan 2026-11-19「全站的圆头标签如果出现断行，需要切成圆角矩形显示」——
   规格折到第二行时这一行会变成 60px 高，50px 半径会左右各鼓一个半圆把字挤瘦；
   钉死成单行半高之后，折行只是中间直线段变长，圆弧一个像素都不拉伸。
   单行时 19px 恰好等于半高，浏览器画出来仍然是圆头药丸。 */
.gate-mat {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    min-height: 38px;
    padding: 4px 12px;
    border-radius: 19px;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(21, 34, 66, 0.05),
        0 4px 9px -6px rgba(21, 34, 66, 0.3);
}

.gate-mat img {
    flex: none;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.gate-mat b {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--harrow-navy);
}

.gate-mat span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    font-size: 12px;
    color: var(--text-muted);
}

/* 截止日一行是「几号前交」的硬信息，不是脚注——加大加深（2026-10-30 太细看不清） */
.gate-mats .app-mats-due {
    margin: 8px 0 0;
    padding-top: 8px;
    padding-left: 4px;
    font-size: 12.5px;
    color: var(--text-secondary);
    box-shadow: inset 0 1px 0 rgba(21, 34, 66, 0.1);
}

/* ============================================================
   窄屏：四枚 stop sign 并排。
   竖着一列排下来，右边会空掉大半张卡；三枚一行、尺寸跟着屏宽缩，
   上下用两根横杆分四路、再合回一路，和宽屏是同一张图的缩小版。
   ============================================================ */
@media (max-width: 1080px) {
    .gate-chain {
        flex-direction: column;
        align-items: center;
    }

    .gate-person {
        margin: 0 0 12px;
    }

    .gate-person::after {
        left: 50%;
        top: 100%;
        width: 2px;
        height: 14px;
        margin: 0 0 0 -0px;
    }

    .gate-branch {
        width: min(100%, 420px);
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        padding: 0;
    }

    /* 上下两根横杆：从第一枚的中心拉到第四枚的中心 */
    .gate-branch::before,
    .gate-branch::after {
        top: 0;
        bottom: auto;
        left: calc(100% / 8);
        right: calc(100% / 8);
        width: auto;
        height: 2px;
    }

    .gate-branch::after {
        top: auto;
        bottom: 0;
    }

    .gate-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 8px;
        width: auto;
        height: auto;
        padding: 12px 0;
    }

    /* 每一枚自己往上、往下接一竖，接到横杆 */
    .gate-item::before,
    .gate-item::after {
        left: 50%;
        right: auto;
        top: 0;
        width: 2px;
        height: 14px;
        margin: 0 0 0 -0px;
    }

    .gate-item::after {
        top: auto;
        bottom: 0;
    }

    .gate-node {
        --gate-h: clamp(56px, 15vw, 76px);
        width: var(--gate-h);
        height: var(--gate-h);
    }

    .gate-art--sheet {
        width: 45%;
        height: auto;
    }

    .gate-art--gauge {
        width: 68%;
        height: auto;
    }

    .gate-art--shield {
        width: 55%;
        height: auto;
    }

    .gate-art--scale {
        width: 60%;
        height: auto;
    }

    .gate-text {
        justify-items: center;
        text-align: center;
    }

    .gate-text b {
        font-size: 12px;
    }

    .gate-text i {
        font-size: 12px;
    }

    /* 勾做成牌角上的小徽章，不另占一行 */
    .gate-tick {
        position: absolute;
        left: calc(50% + var(--gate-h) / 2 - 17px);
        top: calc(14px + var(--gate-h) - 17px);
        width: 19px;
        height: 19px;
        margin: 0;
        box-shadow:
            0 0 0 3px #e3e8f3,
            0 4px 8px -3px rgba(46, 158, 107, 0.55);
    }

    .gate-tick::after {
        left: 6.2px;
        top: 3.4px;
        width: 4.6px;
        height: 8.4px;
    }

    .gate-pass {
        display: grid;
        justify-items: center;
        gap: 8px;
        /* 桌面那条 24px 的左移在竖排里必须归零（2026-11-19）：
           竖排是 align-items:center 的列，24px 会把整块（药丸 + 说明 + 箭头）
           推到中线右边 12px，于是药丸偏右、下面的箭头留在正中 —— 断成两截。 */
        margin: 12px 0 0;
    }

    .gate-pass::before {
        right: auto;
        left: 50%;
        /* 从横杆上方 8px 起笔、穿到药丸底下 2px（2026-11-19）：只写 12px 那一段，
           线太短又淡，看着像横杆和药丸之间空了一截（Ryan 圈出来的那处）。
           穿过横杆 8px 才读成「杆上挂下来」的一根线。 */
        top: -20px;
        width: 2px;
        height: 22px;
        margin: 0 0 0 -1px;
    }

    /* 这一版说明回到流里：在药丸下面、箭头上面 */
    .gate-pass-note {
        position: static;
        width: auto;
        max-width: 16em;
        margin: 0;
        transform: none;
    }

    .gate-hop {
        flex-direction: column;
        align-items: center;
        width: 2px;
        height: 30px;
        margin: 8px 0 0;
    }

    .gate-hop-line {
        width: 2px;
    }

    .gate-hop-tip {
        margin: -0px 0 0;
        transform: rotate(90deg);
    }

    .gate-mats {
        width: 100%;
        /* 460 与上面那排红牌的宽度（min(100%, 420px)）同一档（2026-11-19）：
           原来 560，在 900px 屏上每行右侧空出 180px，又变回「一条长条、内容缩在左头」。
           行宽跟着内容走，留白交给整张卡。 */
        max-width: 460px;
        margin: 8px 0 0;
    }

    .gate-mat-list {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    /* 材料行在窄屏只缩图标与左内距，不改排法（2026-11-19）：
       以前这里换成两列网格、把规格甩到第二行右端，等于在窄屏又分了一次家。 */
    .gate-mat {
        padding: 4px 12px 4px 8px;
    }

    .gate-mat img {
        width: 22px;
        height: 22px;
    }

    .gate-branch {
        width: 100%;
    }
}

/* ---- 响应式：这一段的列数按容器宽收，别等它挤成四条竖排 ---- */
@media (max-width: 980px) {
    .elig-awards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .talent-stage {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .talent-pool {
        max-width: 288px;
    }
}

@media (max-width: 720px) {
    .check-flow {
        grid-template-columns: minmax(0, 1fr);
    }

    /* 箭头在单列里要掉头向下，否则它指着一片空白 */
    .check-link-tip {
        transform: rotate(90deg);
    }
}

@media (max-width: 560px) {
    .app-elig-picker {
        padding: 16px;
    }

    /* 一行一个：四列在 390px 上每列只剩 85px，中文会被压成一根竖条 */
    .elig-awards {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .elig-award {
        padding: 12px 12px;
    }

    .elig-line {
        align-items: flex-start;
    }

    .elig-key {
        width: 2.9em;
        padding-top: 8px;
    }

    .elig-select select {
        min-width: 118px;
    }
}

/* ===================================
   7. 时间线
   =================================== */

.app-timeline {
    margin-top: 16px;
    padding: clamp(18px, 2.2vw, 26px);
    border-radius: var(--hn-r-card);
    background: #fff;
    box-shadow:
        0 1px 2px rgba(21, 34, 66, 0.05),
        0 6px 14px rgba(21, 34, 66, 0.04),
        0 22px 44px -24px rgba(21, 34, 66, 0.26);
}

.app-tl-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-tl-headtext h4 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 16.5px;
    font-weight: 700;
}

.app-tl-sub {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: var(--text-muted);
}

.app-tl-track {
    /* 轴线的高度必须由布局算出来，不能写死一个「看着差不多」的像素值。
       日期行字号一改、日期一换行，圆点就整体下沉，而写死的 30px 还停在原处，
       线就从圆点上方擦过去——2026-10-30 宽屏那次坏的就是这个。
       下面几个变量同时喂给轴线与圆点，改任何一个两边一起动。 */
    --tl-date-h: 20px;
    --tl-row-gap: 4px;
    --tl-dot: 13px;
    --tl-dot-top: 8px;
    --tl-axis: calc(var(--tl-date-h) + var(--tl-row-gap) + var(--tl-dot-top) + var(--tl-dot) / 2);
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--tl-row-gap);
    margin: clamp(20px, 2.6vw, 30px) 0 0;
    padding: 0;
    list-style: none;
}

/* 一条贯穿的浅轨，节点压在上面 */
.app-tl-track::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    /* 2px 的线要压在轴心上：上沿退半个线宽 */
    top: calc(var(--tl-axis) - 1px);
    height: 2px;
    border-radius: 2px;
    /* 9% 深蓝算出来是 #EAEBEE，投影到白卡上就是一条看不见的灰。
       旧站用的是金轴（浅金 → 深金 → 浅金），五个节点才像串在一根线上。 */
    background: linear-gradient(90deg, #e4dfd0 0%, #ccc2a2 50%, #e4dfd0 100%);
}

.app-tl-node {
    --node: var(--harrow-navy);
    position: relative;
    display: grid;
    justify-items: center;
    gap: var(--tl-row-gap);
    text-align: center;
}

.app-tl-date {
    /* 定高 + 不换行：日期行一旦被撑高，轴线与圆点就错开（见 .app-tl-track 的注释） */
    display: block;
    height: var(--tl-date-h);
    line-height: var(--tl-date-h);
    white-space: nowrap;
    font-family: var(--font-en-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--foreground);
}

/* 年份前缀与日期同一行读：「2026」是信息不是水印——
   上一版 10px/500/浅灰，200% 缩放下糊成一团（Ryan 2026-10-30 太细了）。 */
.app-tl-y {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* 实心点 + 一圈白环：白环把金轴在节点处切断，读起来是「节点串在轴上」。
   原来是「白心套淡色环」，12px 里只有 6px 有色，远看是一排灰点。 */
.app-tl-dot {
    display: block;
    width: var(--tl-dot);
    height: var(--tl-dot);
    margin: var(--tl-dot-top) 0 12px;
    border-radius: 50%;
    background: var(--node);
    box-shadow: 0 0 0 4px var(--card);
    position: relative;
    transition: transform 220ms cubic-bezier(0.2, 0, 0, 1);
}

.app-tl-node:hover .app-tl-dot {
    transform: scale(1.05);
}

/* 五个里程碑各一个主色：金（基线）→ 绿（开放）→ 红（关闭）→ 紫（提交）→ 深蓝（落定）。
   色值取旧站那套，比分类用的亮色更沉，投影到白卡上也不刺眼。 */
.app-tl-data { --node: var(--harrow-gold); }
.app-tl-open { --node: var(--harrow-green); }
.app-tl-close { --node: var(--harrow-red); }
.app-tl-submit { --node: var(--harrow-purple); }
.app-tl-result { --node: var(--harrow-navy); }

.app-tl-label {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--foreground);
}

.app-tl-note {
    max-width: 15em;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ===================================
   8. 五步流程
   ------------------------------------------------------------
   不做「圆圈 + 箭头」那种流水线：箭头在窄屏会断、在宽屏又拉得很长。
   改成五张等高卡，顶部一条同色进度线，序号退到右上角当小字。
   =================================== */

/* 五步流程（2026-10-30 改回旧站形态）
   —— 五个独立卡片读起来像五块并列的功能块，看不出「先做这个、再做那个」；
   一条金轴 + 编号才是一条路。窄屏收进一张卡里竖着走。
   颜色全部写实色：微信内置浏览器大约停在 Chrome 90，color-mix 会让整条声明作废，
   卡片直接变白板 —— Ryan 2026-10-30 报的「卡片颜色没有了」就是这一条。 */
.app-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 横穿五步的金轴：两头各留 10%，不顶到边上 */
.app-flow::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 10%;
    right: 10%;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #e0d9c4 0%, #bcae86 100%);
}

.app-flow-step {
    position: relative;
    padding: 4px 12px 0;
    text-align: center;
}

/* 段间箭头：落在两列交界处，压在轴线上 */
.app-flow-step::after {
    content: "";
    position: absolute;
    top: 15px;
    right: -3.5px;
    width: 8px;
    height: 8px;
    border-top: 1.9px solid #b3a47a;
    border-right: 1.9px solid #b3a47a;
    transform: rotate(45deg);
}

.app-flow-step:last-child::after {
    display: none;
}

.app-flow-n {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b9ac7f 0%, var(--harrow-gold) 60%, #96874f 100%);
    color: #fff;
    font-family: var(--font-en-sans);
    font-size: 12.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    /* 圆点四周那圈「隔断」要跟页面底色同色，否则轴线会从数字里穿过去 */
    box-shadow: 0 0 0 4px var(--background), 0 3px 8px rgba(166, 152, 103, 0.35);
    transition: transform 220ms cubic-bezier(0.2, 0, 0, 1), box-shadow 220ms cubic-bezier(0.2, 0, 0, 1);
}

.app-flow-step:hover .app-flow-n {
    transform: translateY(-1px);
    box-shadow: 0 0 0 4px var(--background), 0 6px 14px rgba(166, 152, 103, 0.45);
}

/* 终点：深蓝实心，一眼看到流程结束 */
.app-flow-end .app-flow-n {
    background: linear-gradient(135deg, #2a4070 0%, var(--harrow-navy) 100%);
    box-shadow: 0 0 0 4px var(--background), 0 3px 10px rgba(21, 34, 66, 0.32);
}

.app-flow-step h4 {
    margin: 12px 0 4px;
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--harrow-navy);
}

.app-flow-step p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.68;
    color: var(--text-muted);
}

/* 窄屏：五步收进**一张**白卡，编号成一列、逐段连线。
   每步一张卡在手机上就是五块并列的白砖，读不出先后。 */
@media (max-width: 860px) {
    .app-flow {
        grid-template-columns: 1fr;
        padding: 16px 16px 20px;
        background: var(--card);
        border-radius: var(--hn-r-card);
        box-shadow:
            0 1px 2px rgba(21, 34, 66, 0.06),
            0 4px 10px rgba(21, 34, 66, 0.045),
            0 14px 26px -14px rgba(21, 34, 66, 0.28);
    }

    .app-flow::before {
        display: none;
    }

    .app-flow-step {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr);
        column-gap: 12px;
        align-items: start;
        text-align: left;
        padding: 0 0 20px;
    }

    .app-flow-step::after {
        display: none;
    }

    .app-flow-step::before {
        content: "";
        position: absolute;
        left: 14px;
        top: 32px;
        bottom: 2px;
        width: 2px;
        background: #e0d9c4;
    }

    .app-flow-step:last-child {
        padding-bottom: 2px;
    }

    .app-flow-step:last-child::before {
        display: none;
    }

    .app-flow-n {
        grid-row: span 2;
        margin-top: 0;
    }

    .app-flow-step h4 {
        margin: 2px 0 4px;
    }
}

/* ===================================
   9. 响应式
   ------------------------------------------------------------
   断点按「内容挤不挤」定，不按设备型号：
     980 两栏并排开始压字
     720 一栏到底，时间线转纵向
   =================================== */

@media (max-width: 980px) {
    .app-head,
    .app-notes {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-flow-end {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    .app-head-entries {
        flex-direction: column;
        align-items: stretch;
    }

    .app-entry {
        justify-content: flex-start;
    }

    .app-red-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    .app-mats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* 时间线：横排放不下，改成竖排。
       线必须压在圆点中心上——原来线在 6px、点在 12px，一条轴歪着从五个点旁边擦过去
       （Ryan 2026-10-30 一眼看出来的就是这个）。列宽 26 + 点居中 → 中心 13px，
       线宽 2 所以 left 12px。 */
    .app-tl-track {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        margin-top: 16px;
    }

    .app-tl-track::before {
        left: 12px;
        right: auto;
        top: 12px;
        bottom: 34px;
        width: 2px;
        height: auto;
        /* 横轴那条渐变是左右方向的，竖过来得重写，否则一条轴上浅-深-浅的分段会变斜 */
        background: linear-gradient(180deg, #e4dfd0 0%, #ccc2a2 50%, #e4dfd0 100%);
    }

    /* 一行装完：日期在上，粗字（节点名）和细字（说明）并列。
       手机右边本来就空着，说明没必要挤到第三行去。 */
    .app-tl-node {
        /* 第二列给死宽度：粗字长度不一（五个字到八个字），用 auto 的话
           右边的说明会跟着每次错开，读起来像五条参差的尾巴。 */
        grid-template-columns: 26px 118px minmax(0, 1fr);
        grid-template-areas:
            "dot date date"
            "dot label note";
        justify-items: start;
        column-gap: 12px;
        row-gap: 4px;
        padding: 0 0 20px;
        text-align: left;
    }

    .app-tl-date {
        grid-area: date;
        align-self: center;
        /* 竖排不用对齐轴线，日期回到自然行高（这里允许换行） */
        height: auto;
        line-height: 1.35;
        white-space: normal;
        font-size: 15.5px;
    }

    .app-tl-y {
        font-size: 12px;
        font-weight: 700;
        color: var(--text-secondary);
    }

    .app-tl-dot {
        grid-area: dot;
        justify-self: center;
        align-self: start;
        margin: 4px 0 0;
    }

    .app-tl-label {
        grid-area: label;
        margin: 0;
        font-size: 13px;
        white-space: nowrap;
    }

    .app-tl-note {
        grid-area: note;
        align-self: baseline;
        margin: 0;
        max-width: none;
        font-size: 12.5px;
    }

    .app-flow {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-flow-end {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-entry,
    .app-mat,
    .app-flow-step {
        transition: none;
    }
}

/* ===================================
   10. 首页 · 导航
   =================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--harrow-navy);
    box-shadow: 0 1px 0 color-mix(in srgb, var(--harrow-gold) 22%, transparent),
                0 12px 28px -20px rgba(21, 34, 66, 0.7);
}

.navbar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px clamp(18px, 4vw, 40px);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-inverse);
}

.nav-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
}

.nav-brand-text {
    display: grid;
    gap: 0px;
}

.nav-brand-name {
    font-family: var(--font-serif);
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-inverse);
}

.nav-brand-sub {
    font-size: 12px;
    letter-spacing: 0.02em;
    color: color-mix(in srgb, var(--harrow-gold-light) 88%, white);
}

/* 语言切换：玻璃胶囊，与返回键同一材质。
   两个位置要用两种定位：首页在 .navbar 内顺排，子页是 body 的直接子元素、要浮在页头右上角。 */
.language-toggle {
    position: fixed;
    top: 16px;
    right: clamp(16px, 4vw, 32px);
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: 0;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-inverse);
    font-size: 12.5px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.navbar .language-toggle {
    position: static;
    margin-left: auto;
}

.flag-separator {
    opacity: 0.45;
}

/* ===================================
   11. 首页 · 英雄区
   ------------------------------------------------------------
   旧的英雄区是一块 300px 高的空地，帽子浮在中间。
   现在给它一个理由：一层极淡的金色光晕压在上半部，
   帽子当作「徽章」处理（120px、轻投影），下面接校训与四个价值观。
   =================================== */

.hero-section {
    position: relative;
    padding: clamp(36px, 5vw, 64px) clamp(18px, 4vw, 40px) clamp(28px, 3.6vw, 44px);
    background:
        radial-gradient(72% 120% at 50% -30%, color-mix(in srgb, var(--harrow-gold) 20%, transparent) 0%, transparent 62%),
        var(--warm-white);
    text-align: center;
}

.hero-content {
    display: grid;
    justify-items: center;
    gap: clamp(12px, 1.6vw, 18px);
    max-width: 760px;
    margin: 0 auto;
}

.hero-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(26px, 3.6vw, 42px);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--harrow-navy);
}

.harrow-hat {
    width: clamp(88px, 9vw, 116px);
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(21, 34, 66, 0.22));
}

.hero-subtitle {
    margin: 0;
    font-family: var(--font-en-serif);
    font-size: clamp(13px, 1.3vw, 15.5px);
    letter-spacing: 0.02em;
    color: var(--text-secondary);
}

.motto-bold {
    font-weight: 700;
    color: var(--harrow-navy);
}

.motto-italic {
    font-style: italic;
    opacity: 0.7;
}

/* 四个价值观：金点分隔，不用四块色底 */
.hero-values {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 4px;
}

.value-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-serif);
    font-size: 14px;
    letter-spacing: 0.02em;
    color: var(--harrow-navy);
}

.value-badge + .value-badge::before {
    content: "";
    width: 4px;
    height: 4px;
    margin: 0 16px;
    border-radius: 50%;
    background: var(--harrow-gold);
}

/* ===================================
   12. 首页 · 两个入口
   =================================== */

.main-content {
    flex: 1;
    padding: clamp(28px, 3.6vw, 48px) clamp(18px, 4vw, 40px) clamp(48px, 6vw, 80px);
    background: var(--background);
}

.nav-cards-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.2vw, 26px);
    max-width: 1000px;
    margin: 0 auto;
}

.nav-card {
    --accent: var(--harrow-navy);
    position: relative;
    display: grid;
    align-content: start;
    gap: 0;
    padding: clamp(22px, 2.6vw, 30px);
    border: 0;
    border-radius: var(--radius-2xl);
    background: var(--card);
    cursor: pointer;
    box-shadow:
        0 1px 2px rgba(21, 34, 66, 0.06),
        0 6px 14px rgba(21, 34, 66, 0.05),
        0 26px 48px -26px rgba(21, 34, 66, 0.32);
    transition: transform var(--motion-row) var(--ease-out-3),
                box-shadow var(--motion-row) var(--ease-out-3);
}

.nav-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 2px 4px rgba(21, 34, 66, 0.07),
        0 10px 22px rgba(21, 34, 66, 0.07),
        0 38px 64px -28px rgba(21, 34, 66, 0.4);
}

.cca-card {
    --accent: var(--destructive);
}

.scholarship-card {
    --accent: var(--harrow-gold);
}

/* 图标直接落在卡片上。
   之前给它垫了一块 9% 的圆角色块 + 内阴影，等于在别人画好的插画外面又套一个壳：
   插画自己已经有渐变、高光、投影，再套一层就是「大肠包小肠」。现在只剩间距。 */
.card-icon {
    display: block;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 64px;
    height: 64px;
    display: block;
    overflow: visible;
}

.card-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(19px, 2vw, 22px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: var(--foreground);
}

.card-title-en {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-muted);
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 16px 0 0;
}

/* 类别标签：11px、24px 高、18% 色底 + 同色深字。颜色是有含义的，不是装饰 */
.feature-tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border: 0;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--harrow-navy) 7%, var(--card));
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.cca-card .feature-tag:nth-child(1) { background: color-mix(in srgb, var(--cat-sports) 24%, var(--card)); color: var(--cat-sports-text); }
.cca-card .feature-tag:nth-child(2) { background: color-mix(in srgb, var(--cat-arts) 22%, var(--card)); color: var(--cat-arts-text); }
.cca-card .feature-tag:nth-child(3) { background: color-mix(in srgb, var(--cat-academic) 22%, var(--card)); color: var(--cat-academic-text); }
.cca-card .feature-tag:nth-child(4) { background: color-mix(in srgb, var(--cat-leadership) 20%, var(--card)); color: var(--cat-leadership-text); }
.cca-card .feature-tag:nth-child(5) { background: color-mix(in srgb, var(--mod-ugc) 22%, var(--card)); color: var(--cat-arts-text); }
.cca-card .feature-tag:nth-child(6) { background: color-mix(in srgb, var(--mod-logistics) 20%, var(--card)); color: var(--harrow-navy); }

.scholarship-card .feature-tag:nth-child(1) { background: color-mix(in srgb, var(--award-johnlyon) 12%, var(--card)); color: var(--award-johnlyon-text); }
.scholarship-card .feature-tag:nth-child(2) { background: color-mix(in srgb, var(--award-head) 24%, var(--card)); color: var(--award-head-text); }
.scholarship-card .feature-tag:nth-child(3) { background: color-mix(in srgb, var(--award-talent) 22%, var(--card)); color: var(--award-talent-text); }

/* 入口按钮：深底胶囊 + 金色光带（.pill-shine 在 main.css，这里只管尺寸与留白） */
.card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: clamp(20px, 2.4vw, 26px);
    padding: 12px 20px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--harrow-navy);
    color: var(--text-inverse);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 12px 26px -14px rgba(21, 34, 66, 0.7);
    transition: transform var(--motion-lift) var(--ease-out-3),
                box-shadow var(--motion-lift) var(--ease-out-3),
                background var(--motion-lift);
}

.card-button:hover {
    background: var(--harrow-navy-light);
    transform: translateY(-1px);
    box-shadow: 0 18px 34px -16px rgba(21, 34, 66, 0.75);
}

/* ===================================
   13. 页脚
   =================================== */

.main-footer {
    padding: clamp(26px, 3.2vw, 40px) clamp(18px, 4vw, 40px);
    background: var(--harrow-navy);
    color: color-mix(in srgb, white 74%, var(--harrow-navy));
    text-align: center;
}

.footer-motto {
    margin: 0;
    font-family: var(--font-en-serif);
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--harrow-gold-light);
}

.footer-department {
    margin: 4px 0 0;
    font-size: 12.5px;
    letter-spacing: 0.02em;
    opacity: 0.75;
}

.footer-copyright {
    margin: 12px 0 0;
    font-size: 12px;
    opacity: 0.6;
}

.footer-icp {
    margin: 4px 0 0;
    font-size: 12px;
    opacity: 0.45;
}

.footer-icp a {
    color: inherit;
    text-decoration: none;
}

.footer-icp a:hover {
    text-decoration: underline;
}

/* ===================================
   14. 首页响应式
   =================================== */

@media (max-width: 860px) {
    .nav-cards-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-title {
        letter-spacing: 0.02em;
    }

    .value-badge + .value-badge::before {
        margin: 0 12px;
    }
}

@media (max-width: 520px) {
    .nav-brand-sub {
        display: none;
    }

    .value-badge {
        font-size: 13px;
        letter-spacing: 0.02em;
    }
}

/* ===================================
   15. 表单页 · 申请 / 查分（ap-* / sc-*）
   ------------------------------------------------------------
   这两页是「家长独立完成一件事」的页面：登录 → 绑定 → 填表 → 看结果。
   版式只服务一个目标：一列到底，不需要横向扫视。
   所以保留单列 620px，把力气花在输入框与层级上：
     输入框去描边、给实心底 + 聚焦光环；卡片去描边、给三层影；
     深底说明卡（sc-card--navy）当页内标题用，不再是一块装饰色块。
   =================================== */

.sc-content,
.sc-content {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 24px) clamp(48px, 6vw, 80px);
}

.sc-card {
    padding: clamp(18px, 2.4vw, 26px);
    border: 0;
    border-radius: var(--hn-r-card);
    background: var(--card);
    box-shadow:
        0 1px 2px rgba(21, 34, 66, 0.06),
        0 6px 14px rgba(21, 34, 66, 0.05),
        0 22px 44px -24px rgba(21, 34, 66, 0.3);
}

.sc-card + .sc-card {
    margin-top: 12px;
}

/* 深底说明卡：页内小标题，不是装饰 */
.sc-card--navy {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 140% at 10% -40%, color-mix(in srgb, var(--harrow-gold) 26%, transparent) 0%, transparent 60%),
        var(--harrow-navy);
    color: var(--text-inverse);
    box-shadow: 0 18px 40px -26px rgba(21, 34, 66, 0.7);
}

.sc-card--navy::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--harrow-gold-light), transparent);
    opacity: 0.7;
}

.sc-eyebrow {
    display: inline-block;
    font-family: var(--font-en-sans);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--harrow-gold-light);
}

.sc-h2 {
    margin: 4px 0 0;
    font-family: var(--font-serif);
    font-size: clamp(21px, 2.2vw, 26px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: var(--text-inverse);
}

/* 页签：灰底槽 + 白色滑块，与核台的分段控件同一语言 */
/* 输入框：实心底，不用描边分层；聚焦时用一圈金色光环代替变粗的边 */
/* 按钮族：一律胶囊，深底给投影，浅底给实心灰 */
.sc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    /* 与 apply.css 的 `.sc-btn` 同名不同用：这份是门户里的次要按钮。
       高度也走 hn.css 的档位（36），两处同名规则不再各写一个数。 */
    height: var(--hn-h-md);
    box-sizing: border-box;
    padding: 0 16px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--secondary);
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 400;
    cursor: pointer;
    transition: transform var(--motion-lift) var(--ease-out-3),
                box-shadow var(--motion-lift) var(--ease-out-3),
                background var(--motion-lift);
}

.sc-btn:hover {
    transform: translateY(-1px);
}

.sc-btn--primary {
    background: var(--harrow-navy);
    color: var(--text-inverse);
    box-shadow: 0 10px 22px -14px rgba(21, 34, 66, 0.75);
}

.sc-btn--primary:hover {
    background: var(--harrow-navy-light);
    box-shadow: 0 16px 30px -16px rgba(21, 34, 66, 0.8);
}

/* 板块条与状态签：沿用类别色，不做渐变 */
/* 查分页的登录前空态：给一块卡，别让一句话浮在空白里 */
.sc-state {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-top: clamp(24px, 6vw, 64px);
    padding: clamp(28px, 4vw, 40px);
    border-radius: var(--hn-r-card);
    background: var(--card);
    text-align: center;
    box-shadow:
        0 1px 2px rgba(21, 34, 66, 0.05),
        0 6px 14px rgba(21, 34, 66, 0.04),
        0 22px 44px -24px rgba(21, 34, 66, 0.26);
}

.sc-state-text {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* 查分页的分数与门槛：只调字重与间距，不动它的栅格 */
.sc-hero {
    border-radius: var(--hn-r-card);
    background: var(--card);
    box-shadow:
        0 1px 2px rgba(21, 34, 66, 0.05),
        0 6px 14px rgba(21, 34, 66, 0.04),
        0 22px 44px -24px rgba(21, 34, 66, 0.26);
}

.sc-block {
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow:
        0 1px 2px rgba(21, 34, 66, 0.05),
        0 8px 18px -12px rgba(21, 34, 66, 0.26);
}

.sc-gates {
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--harrow-navy) 4%, var(--card));
}

.sc-sim-form,
.sc-sim-grid input,
.sc-sim-grid select {
    border-radius: var(--radius-md);
}

.sc-tabs {
    border-radius: var(--radius-pill);
    background: var(--secondary);
}

.sc-ghost-btn {
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--secondary);
    color: var(--text-secondary);
    font-size: 12.5px;
    cursor: pointer;
}

/* ===================================
   16. 选课页 · CCA 规划（cca-* / elite-* / planner-*）
   ------------------------------------------------------------
   这页是五步向导：选年级 → 精英项目 → CCA 课程 → 确认 → 报名指引。
   旧版把「步骤」画成一排带描边的圆圈和细连线，页面重心全在那排圆点上。
   现在步骤条只做定位：已完成实心、当前一圈金环、未开始浅灰，连线降到 2px 浅轨。
   表单、项目卡、课表格子统一去描边，改用底色差与阴影分层。
   =================================== */

.cca-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(22px, 3vw, 36px) clamp(18px, 4vw, 32px) clamp(48px, 6vw, 80px);
}

/* 步骤条
   结构是「圆点 — 连线 — 圆点 — 连线」，.progress-line 本身是一段连线，不是行容器。
   所以这里只做两件事：把整行改成顶部对齐，再让连线落在圆心的水平线上。
   一旦把它当成 flex 行容器去写，就会出现「浅轨 + 原有破折」两条线并存的怪象。 */
.progress-container,
.registration-steps-preview {
    margin: 0 auto clamp(18px, 2.4vw, 28px);
}

.progress-container {
    align-items: flex-start;
    /* 规划器是 fixed 的 320px 侧栏。步骤条收在 640 以内，
       五个圆点就不会跑到它底下；与其给正文让一条通道，不如让这一步自己站稳。 */
    max-width: 640px;
}

.progress-line {
    flex: 1 1 auto;
    height: 2px;
    margin: 16px 12px 0;
    top: 0;
    border-radius: 2px;
    background: color-mix(in srgb, var(--harrow-navy) 10%, var(--card));
}

.progress-step {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.step-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--card);
    color: var(--text-muted);
    font-family: var(--font-en-sans);
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(21, 34, 66, 0.08), 0 4px 10px -6px rgba(21, 34, 66, 0.3);
    transition: background var(--transition-fast), color var(--transition-fast),
                box-shadow var(--transition-fast);
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: var(--harrow-navy);
    color: var(--text-inverse);
}

.progress-step.active .step-number {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--harrow-gold) 34%, transparent),
                0 6px 14px -8px rgba(21, 34, 66, 0.6);
}

.progress-step.completed .step-number {
    background: color-mix(in srgb, var(--harrow-gold) 88%, var(--harrow-navy));
}

.step-label {
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    text-align: center;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--harrow-navy);
    font-weight: 700;
}

/* 表单卡 */
.form-container {
    padding: clamp(20px, 2.6vw, 30px);
    border: 0;
    border-radius: var(--hn-r-card);
    background: var(--card);
    box-shadow:
        0 1px 2px rgba(21, 34, 66, 0.05),
        0 6px 14px rgba(21, 34, 66, 0.04),
        0 24px 48px -26px rgba(21, 34, 66, 0.28);
}

.step-section {
    margin-top: 20px;
}

.step-section:first-child {
    margin-top: 0;
}

.section-title {
    margin: 0 0 4px;
    font-family: var(--font-serif);
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
}

.section-description {
    margin: 0 0 16px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-muted);
    text-align: center;
}

.form-group label,
.step-section label {
    display: block;
    margin-bottom: 4px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-secondary);
}

.step-section select,
.step-section input[type="text"],
.step-section input[type="number"],
.step-section textarea {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--secondary);
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.step-section select:focus,
.step-section input:focus,
.step-section textarea:focus {
    background: var(--card);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--harrow-gold) 70%, transparent);
}

/* 按钮 */
.primary-button,
.secondary-button,
.success-button {
    height: 40px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 400;
    cursor: pointer;
    transition: transform var(--motion-lift) var(--ease-out-3),
                box-shadow var(--motion-lift) var(--ease-out-3),
                background var(--motion-lift);
}

.primary-button {
    background: var(--harrow-navy);
    color: var(--text-inverse);
    box-shadow: 0 12px 26px -14px rgba(21, 34, 66, 0.75);
}

.primary-button:hover {
    background: var(--harrow-navy-light);
    transform: translateY(-1px);
}

.secondary-button {
    background: var(--secondary);
    color: var(--foreground);
}

.secondary-button:hover {
    background: color-mix(in srgb, var(--harrow-navy) 11%, var(--card));
}

.success-button {
    background: color-mix(in srgb, var(--award-talent) 92%, var(--harrow-navy));
    color: var(--text-inverse);
    box-shadow: 0 12px 26px -16px color-mix(in srgb, var(--award-talent) 80%, transparent);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

/* 精英项目卡 */
.elite-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.elite-card {
    padding: 16px;
    border: 0;
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--harrow-navy) 4%, var(--card));
    box-shadow: 0 1px 2px rgba(21, 34, 66, 0.05), 0 8px 18px -12px rgba(21, 34, 66, 0.24);
    transition: transform var(--motion-lift) var(--ease-out-3), box-shadow var(--motion-lift) var(--ease-out-3);
}

.elite-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(21, 34, 66, 0.06), 0 16px 30px -16px rgba(21, 34, 66, 0.3);
}

.elite-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.elite-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--harrow-gold) 16%, var(--card));
}

/* 课表 */
.schedule-preview {
    margin-top: 16px;
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: 0 1px 2px rgba(21, 34, 66, 0.05), 0 10px 22px -16px rgba(21, 34, 66, 0.26);
    overflow: hidden;
}

.weekly-schedule {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
}

.day-column {
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--harrow-navy) 3.5%, var(--card));
    overflow: hidden;
}

.day-header {
    padding: 8px 8px;
    background: color-mix(in srgb, var(--harrow-navy) 7%, var(--card));
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    color: var(--harrow-navy);
}

.cca-slots {
    padding: 4px;
    display: grid;
    gap: 4px;
}

/* 勾选卡 */
.checkbox-card {
    display: flex;
    gap: 8px;
    padding: 12px 12px;
    border: 0;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--harrow-navy) 4%, var(--card));
    cursor: pointer;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.checkbox-card:hover {
    background: color-mix(in srgb, var(--harrow-navy) 7%, var(--card));
}

.checkbox-card.is-selected,
.checkbox-card.selected {
    background: color-mix(in srgb, var(--harrow-gold) 14%, var(--card));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--harrow-gold) 34%, transparent);
}

.checkbox-content {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* 价格与小结 */
.price-summary,
.summary-container {
    padding: 16px 16px;
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--harrow-navy) 4%, var(--card));
}

.price-details {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.schedule-notice,
.selection-notice {
    padding: 12px 12px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--harrow-gold) 12%, var(--card));
    color: var(--harrow-navy);
    font-size: 12.5px;
    line-height: 1.7;
}

/* 右侧规划器：内容由脚本注入，这里只统一外壳 */
.floating-planner {
    border: 0;
    border-radius: var(--hn-r-card);
    background: var(--card);
    box-shadow:
        0 2px 4px rgba(21, 34, 66, 0.06),
        0 10px 22px rgba(21, 34, 66, 0.06),
        0 34px 60px -30px rgba(21, 34, 66, 0.42);
}

.planner-header {
    border-radius: var(--hn-r-card) var(--hn-r-card) 0 0;
    background: var(--harrow-navy);
    color: var(--text-inverse);
}

.planner-day-item,
.planner-activity {
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--harrow-navy) 4%, var(--card));
}

.planner-progress {
    border-radius: var(--radius-pill);
    background: var(--secondary);
}

@media (max-width: 900px) {
    .weekly-schedule {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===================================
   兼容层 · color-mix 的实色退路
   ------------------------------------------------------------
   color-mix() 要到 Chrome 111 / Safari 16.2 才有。微信内置浏览器
   （X5 内核）和一堆安卓机还停在 Chrome 90 上下，浏览器遇到不认识的
   值会把**整条声明**作废——不是变淡，是直接没有：卡片背景没了、
   时间线断了、标签变成白片。Ryan 2026-10-30 用手机打开奖学金页，
   看到的就是这个白板。

   这里只覆盖「作废之后页面会散架」的那几条：背景、文字色、刻度线。
   box-shadow 和渐变里也混了几处，它们没了只是少点光，不影响结构，
   先不重复一遍——真要逐条抄，这份文件会长出第二套色板。

   顺序上它在最后，只在 @supports not 成立时才生效，
   支持的浏览器一行都不会走到。
   =================================== */

@supports not (background: color-mix(in srgb, #000 50%, #fff)) {
    /* 页头 / 首屏 / 深底卡片：这三处是「金雾 + 实色」的多重背景，
       一旦有一层解析不了，整条 background 作废 —— 深蓝页头会变成白底白字。
       老浏览器里把金雾去掉，只留实色，读起来和设计稿一致，只是少了点光。 */
    .sub-header {
        background: var(--harrow-navy);
    }

    .sub-header::after {
        background: linear-gradient(
            90deg,
            transparent 0%,
            var(--harrow-gold) 18%,
            var(--harrow-gold-light) 50%,
            var(--harrow-gold) 82%,
            transparent 100%
        );
    }

    .hero-section {
        background: var(--warm-white);
    }

    .sc-card--navy {
        background: var(--harrow-navy);
    }

    /* 奖学金四档 / 注意事项 / 时间轴已经不在这里兜底了：
       2026-10-30 起它们的底色全部改成实色 hex（白卡、#e9edf6、#e6efec、金轴渐变），
       老内核本来就读得懂。留一份反而会跟主规则打架——老浏览器看到的是另一套颜色。 */

    /* 通用浅底（选课、日历、报名页共用这几档灰度） */
    .feature-tag {
        background: #eff0f2;
    }

    .sc-gates {
        background: #f6f6f7;
    }

    .progress-line {
        background: #e8e9ec;
    }

    .progress-step.completed .step-number {
        background: #958a63;
    }

    .secondary-button:hover {
        background: #e5e7ea;
    }

    .success-button {
        background: #3a8763;
    }

    .elite-card {
        background: #f6f6f7;
    }

    .elite-icon {
        background: #f1efe7;
    }

    .day-column {
        background: #f7f7f8;
    }

    .day-header {
        background: #eff0f2;
    }

    .checkbox-card {
        background: #f6f6f7;
    }

    .checkbox-card:hover {
        background: #eff0f2;
    }

    .checkbox-card.selected {
        background: #f3f1ea;
    }

    .summary-container {
        background: #f6f6f7;
    }

    .selection-notice {
        background: #f4f3ed;
    }

    .planner-activity {
        background: #f6f6f7;
    }

    /* 正文里混了文字色/刻度线的几处 */
    .sc-btn--ghost {
        background: #ecedf0;
    }

    .sc-btn--danger {
        background: #efe0e0;
    }

    .app-red-gauge .g-track {
        stroke: #e8e9ec;
    }

    .main-footer {
        color: #c2c6ce;
    }

    .nav-brand-sub {
        color: #cbbe97;
    }
}

/* 粗指针设备：只抬命中高度，不改桌面密度与已验收的可见形态。 */
@media (pointer: coarse) {
    .language-toggle,
    .navbar .language-toggle,
    .back-button,
    .elig-select select,
    .elig-pill,
    .sc-btn,
    .sc-ghost-btn,
    .games-tab,
    .primary-button,
    .secondary-button {
        min-height: 40px;
    }
}
