/* 留学信息页（加州社区大学、CSU、UC）。设计说明见 docs/STUDY_CA_COLLEGES.md 第 7 节和 docs/STUDY_CA_UNIVERSITIES.md。
   这页不沿用站内的海军蓝 + 青色，而是用加州海岸的冷色调；全页唯一的强调元素是城市名的「公路指示牌」
   （绿底白边，Overpass 字体，Overpass 本身就是照美国公路标志字体 Highway Gothic 做的）。
   英文校名和数字用 Overpass，中文仍用系统字体。页头、页脚沿用 styles.css。 */

@font-face {
    font-family: "Overpass";
    src: url("/assets/fonts/overpass/overpass-latin-var.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.study-page {
    --sx-ink: #13324a;        /* 太平洋深蓝：标题和数字 */
    --sx-text: #2b4253;       /* 正文 */
    --sx-muted: #5b6e7b;      /* 次要文字 */
    --sx-fog: #edf2f1;        /* 海雾：分区底色 */
    --sx-paper: #ffffff;
    --sx-line: #d6dfdd;
    --sx-line-strong: #b4c3c1;
    --sx-sign: #0c6847;       /* 加州公路指示牌绿 */
    --sx-sign-dark: #085239;
    --sx-focus: #d9731a;      /* 加州罂粟橙，只用于键盘焦点 */
    --sx-warn-bg: #fbeedd;    /* 旧数据、学年未标明的标签：浅琥珀底 */
    --sx-warn-ink: #7a4310;
    --sx-latin: "Overpass", var(--font-sans);
    background: var(--sx-paper);
    color: var(--sx-text);
}

.study-root { overflow-x: clip; }
.study-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--page-gutter); }

.study-page a:focus-visible,
.study-page button:focus-visible,
.study-page select:focus-visible,
.study-table-wrap:focus-visible { outline: 2px solid var(--sx-focus); outline-offset: 2px; }

/* 正文里的链接：指示牌绿，下划线。 */
.study-prose a, .study-block a, .study-sources a, .study-credits a, .study-cover figcaption a, .study-links a, .study-section-head a {
    color: var(--sx-sign-dark);
    text-decoration: underline;
    text-decoration-color: rgba(12, 104, 71, 0.35);
    text-underline-offset: 4px;
}
.study-prose a:hover, .study-block a:hover, .study-sources a:hover, .study-credits a:hover, .study-cover figcaption a:hover, .study-links a:hover, .study-section-head a:hover {
    text-decoration-color: currentColor;
}

/* ---------- 页首 ---------- */
.study-hero { padding-top: 24px; background: var(--sx-fog); }
.study-breadcrumb { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 28px; color: var(--sx-muted); font-size: 13px; }
.study-breadcrumb a { color: var(--sx-muted); text-decoration: underline; text-decoration-color: var(--sx-line-strong); text-underline-offset: 3px; }
.study-breadcrumb a:hover { color: var(--sx-ink); }
.study-hero h1 { max-width: 15em; margin: 0; color: var(--sx-ink); font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; line-height: 1.18; letter-spacing: -0.01em; text-wrap: balance; }
.study-h1-line { display: block; }
.study-lead { max-width: 40em; margin: 16px 0 0; color: var(--sx-text); font-size: 17px; line-height: 1.8; }
.study-meta { margin: 20px 0 0; color: var(--sx-muted); font-size: 13px; }

.study-facts { display: grid; grid-template-columns: repeat(3, max-content); margin: 28px 0 0; }
.study-facts > div { min-width: 0; padding: 0 32px; border-left: 1px solid var(--sx-line-strong); }
.study-facts > div:first-child { padding-left: 0; border-left: 0; }
.study-facts dt { color: var(--sx-muted); font-size: 13px; }
.study-facts dd { margin: 4px 0 0; color: var(--sx-ink); font-family: var(--sx-latin); font-size: 22px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.study-facts .study-facts-note { margin-top: 2px; color: var(--sx-muted); font-family: var(--font-sans); font-size: 12px; font-weight: 400; }
.study-facts--four { grid-template-columns: repeat(4, max-content); }

/* 列表页顶部的校园照片条，贴边铺满。 */
.study-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 40px; }
.study-strip-item { display: block; color: var(--sx-ink); text-decoration: none; }
.study-strip-item .study-photo { border-radius: 0; }
.study-strip-name { display: block; padding: 8px 12px 14px; font-size: 13px; color: var(--sx-muted); }
.study-strip-item:hover .study-strip-name { color: var(--sx-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 照片和指示牌 ---------- */
.study-photo { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #cdd8d6; border-radius: 6px; }
.study-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.study-photo picture { display: contents; }
.study-sign {
    position: absolute;
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 5px 10px 3px;
    color: #fff;
    background: var(--sx-sign);
    border-radius: 4px;
    /* 内圈白边：先留 1.5px 绿色，再画 1.5px 白线，和公路指示牌一样。 */
    box-shadow: inset 0 0 0 1.5px var(--sx-sign), inset 0 0 0 3px #fff, 0 1px 2px rgba(0, 0, 0, 0.25);
    font-family: var(--sx-latin);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.study-sign--lg { left: 16px; bottom: 16px; padding: 8px 14px 6px; font-size: 18px; box-shadow: inset 0 0 0 2px var(--sx-sign), inset 0 0 0 4px #fff, 0 1px 3px rgba(0, 0, 0, 0.3); }
.study-photo--empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px;
    background-color: var(--sx-ink);
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 14px);
}
.study-photo--empty .study-sign { position: static; }
.study-photo-note { color: rgba(255, 255, 255, 0.72); font-size: 12px; }

/* ---------- 学校列表 ---------- */
.study-section { padding-block: 56px; }
.study-section h2, .study-band h2 { margin: 0; color: var(--sx-ink); font-size: 26px; font-weight: 800; line-height: 1.3; }
.study-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 20px; }
.study-section-head p { max-width: 36em; margin: 0; color: var(--sx-muted); font-size: 14px; }

.study-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 24px; margin-bottom: 28px; padding: 14px 0; border-block: 1px solid var(--sx-line); }
.study-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.study-chip { min-height: 36px; padding: 0 14px; color: var(--sx-text); background: var(--sx-paper); border: 1px solid var(--sx-line-strong); border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; }
.study-chip:hover { border-color: var(--sx-ink); }
.study-chip[aria-pressed="true"] { color: #fff; background: var(--sx-ink); border-color: var(--sx-ink); }
.study-toolbar-side { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.study-sort { display: flex; align-items: center; gap: 8px; color: var(--sx-muted); font-size: 14px; }
.study-sort select { min-height: 36px; padding: 0 8px; color: var(--sx-ink); background: var(--sx-paper); border: 1px solid var(--sx-line-strong); border-radius: 6px; font: inherit; font-size: 14px; }
.study-switch { display: inline-flex; overflow: hidden; border: 1px solid var(--sx-line-strong); border-radius: 6px; }
.study-switch button { min-height: 34px; padding: 0 14px; color: var(--sx-text); background: var(--sx-paper); border: 0; font: inherit; font-size: 14px; cursor: pointer; }
.study-switch button + button { border-left: 1px solid var(--sx-line-strong); }
.study-switch button[aria-pressed="true"] { color: var(--sx-ink); background: var(--sx-fog); font-weight: 700; }
.study-count { grid-column: 1 / -1; margin: 0; color: var(--sx-muted); font-size: 13px; }

.study-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 44px 28px; }
.study-grid--compact { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 4px; }
.study-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.study-card-link { display: block; color: inherit; text-decoration: none; }
.study-card-title { margin: 14px 0 0; color: var(--sx-ink); font-size: 19px; font-weight: 700; line-height: 1.35; }
.study-card-title span { display: block; margin-top: 2px; color: var(--sx-muted); font-family: var(--sx-latin); font-size: 14px; font-weight: 600; }
.study-card-link:hover .study-card-title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
/* 标签（以网课为主、Peralta 学区统一招生）叠在照片左上角，不占正文高度，各卡片的数字行才能对齐。 */
.study-card > .study-flag { position: absolute; top: 10px; left: 10px; z-index: 1; max-width: calc(100% - 20px); margin: 0; background: rgba(255, 255, 255, 0.94); border-color: transparent; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); pointer-events: none; }
.study-card-facts { margin: 12px 0 0; }
.study-card-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--sx-line); }
.study-card-facts dt { flex: none; color: var(--sx-muted); font-size: 13px; }
.study-card-facts dd { min-width: 0; margin: 0; color: var(--sx-ink); font-family: var(--sx-latin); font-size: 15px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.study-card-facts dd small { display: block; color: var(--sx-muted); font-family: var(--font-sans); font-size: 12px; font-weight: 400; }
/* 「见学校官网」占位：次要文字色、常规字重，不和真实数字混淆。 */
.study-unlisted { color: var(--sx-muted); font-family: var(--font-sans); font-size: 0.93em; font-weight: 500; }
/* 占位和数字字体不同，行高交给所在行，避免占位行比有数字的行高几像素。 */
.study-card-facts .study-unlisted { line-height: 1; }
.study-card-meta { margin: 0; padding-top: 8px; color: var(--sx-muted); border-top: 1px solid var(--sx-line); font-size: 13px; }

/* ---------- 学校类别标签页（社区大学 / CSU / UC） ---------- */
.study-tabs { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 8px; border-bottom: 2px solid var(--sx-line); }
.study-tab { position: relative; display: inline-flex; text-decoration: none; align-items: baseline; gap: 8px; min-height: 48px; margin-bottom: -2px; padding: 0 20px; color: var(--sx-muted); background: transparent; border: 0; border-bottom: 3px solid transparent; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.study-tab:hover { color: var(--sx-ink); }
.study-tab[aria-selected="true"] { color: var(--sx-ink); border-bottom-color: var(--sx-sign); }
.study-tab-count { color: var(--sx-muted); font-family: var(--sx-latin); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.study-panel { padding-top: 28px; }
/* 地址栏 #study-csu 直接打开时，标题不被固定页头挡住。 */
#studyList, .study-tabs, .study-panel { scroll-margin-top: calc(var(--header-h) + 16px); }
.study-panel[hidden] { display: none; }
.study-panel-title { margin: 0; color: var(--sx-ink); font-size: 21px; font-weight: 800; line-height: 1.35; }

/* 本科 / 研究生：每格两组数字，按面板的 data-level 显示一组；没有脚本时只显示本科。 */
.study-panel[data-level="undergrad"] [data-level-only="grad"],
.study-panel[data-level="grad"] [data-level-only="undergrad"],
.study-detail ~ .study-band [data-level-only="grad"] { display: none; }
.study-level { display: contents; }
.study-switch--level button[aria-pressed="true"] { color: #fff; background: var(--sx-ink); }

/* 资金证明的标签：旧数据、学年未标明、学校预算估算。和真实的本学年数字区分开，但不用红色制造紧张感。 */
.study-tag { display: inline-block; margin-right: 4px; padding: 0 6px; color: var(--sx-warn-ink); background: var(--sx-warn-bg); border-radius: 3px; font-family: var(--font-sans); font-size: 11.5px; font-weight: 600; line-height: 1.7; white-space: nowrap; }
.study-tag--estimate { color: var(--sx-ink); background: var(--sx-fog); box-shadow: inset 0 0 0 1px var(--sx-line-strong); }
.study-callout { max-width: 40em; margin: 0 0 12px; padding: 10px 14px; color: var(--sx-warn-ink); background: var(--sx-warn-bg); border-radius: 6px; font-size: 14.5px; line-height: 1.75; }
.study-block .study-figure .study-tag { vertical-align: 1px; }

/* 表格视图：逐项对比用，宽度不够时在框内横向滚动。 */
.study-table-wrap { overflow-x: auto; border: 1px solid var(--sx-line); border-radius: 8px; }
.study-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; }
.study-table th, .study-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sx-line); }
.study-table thead th { color: var(--sx-muted); background: var(--sx-fog); font-size: 12px; font-weight: 600; white-space: nowrap; }
.study-table thead th[aria-sort] { color: var(--sx-ink); }
.study-table tbody tr:last-child > * { border-bottom: 0; }
.study-table tbody tr:hover { background: #f6f9f8; }
.study-table tbody th { font-weight: 700; }
.study-table tbody th a { color: var(--sx-ink); text-decoration: none; }
.study-table tbody th a:hover { text-decoration: underline; text-underline-offset: 3px; }
.study-table td { color: var(--sx-text); }
.study-table .is-num { text-align: right; font-family: var(--sx-latin); font-variant-numeric: tabular-nums; white-space: nowrap; }
.study-sub { display: block; margin-top: 2px; color: var(--sx-muted); font-family: var(--font-sans); font-size: 12px; font-weight: 400; }
.study-table .study-flag { display: flex; margin: 6px 0 0; }
.study-note { max-width: 60em; margin: 28px 0 0; color: var(--sx-muted); font-size: 13px; line-height: 1.8; }

/* 对外标注（以网课为主、学区统一招生等）：列表里是小标签，详情页是一段说明。 */
.study-flag { display: inline-flex; width: fit-content; padding: 1px 8px; color: var(--sx-ink); background: var(--sx-fog); border: 1px solid var(--sx-line-strong); border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.study-flag-note { max-width: 40em; margin: 16px 0 0; padding: 12px 16px; color: var(--sx-text); background: var(--sx-fog); border-left: 3px solid var(--sx-ink); font-size: 14px; line-height: 1.8; }
.study-flag-note strong { display: block; color: var(--sx-ink); font-weight: 700; }

/* ---------- 说明、步骤、咨询、来源 ---------- */
.study-band { padding-block: 56px; background: var(--sx-fog); }
.study-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 24px; }
.study-columns h3 { margin: 0 0 8px; color: var(--sx-ink); font-size: 17px; }
.study-columns p { margin: 0; font-size: 15px; line-height: 1.85; }

.study-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: study-step; }
.study-steps li { padding-top: 14px; border-top: 3px solid var(--sx-ink); counter-increment: study-step; }
.study-steps li::before { content: counter(study-step); display: block; margin-bottom: 10px; color: var(--sx-ink); font-family: var(--sx-latin); font-size: 32px; font-weight: 800; line-height: 1; }
.study-steps h3 { margin: 0 0 6px; color: var(--sx-ink); font-size: 17px; }
.study-steps p { margin: 0; font-size: 15px; line-height: 1.8; }
.study-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 15px; }
.study-subhead { margin-top: 56px !important; }
.study-prose { max-width: 44em; margin: 14px 0 0; font-size: 15.5px; line-height: 1.85; }

.study-band--consult { color: #c9d7dd; background: var(--sx-ink); }
.study-consult-card { display: flex; align-items: center; gap: 28px; }
.study-consult-card .qr-image { flex: none; width: 136px; height: 136px; padding: 8px; background: #fff; border-radius: 8px; }
.study-consult-card h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.4; }
.study-consult-card p { max-width: 36em; margin: 0; font-size: 15px; line-height: 1.8; }
.study-band--consult .study-consult-card h2 { color: #fff; }
.study-disclaimer { margin: 20px 0 0; color: var(--sx-muted); font-size: 13px; line-height: 1.8; }
.study-band--consult .study-disclaimer { max-width: 60em; color: #9db1bb; }

.study-consult-open { margin-top: 16px; }
.study-consult-open[hidden], .study-consult-form[hidden] { display: none; }
.study-consult-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: clamp(16px, 4vw, 28px); border: 1px solid var(--sx-line); border-radius: 14px; background: var(--sx-paper); color: var(--sx-text); }
.study-consult-dialog::backdrop { background: rgb(9 26 42 / 58%); }
.study-consult-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.study-consult-heading h2, .study-consult-school { margin: 0; color: var(--sx-ink); }
.study-consult-dialog > p { line-height: 1.65; }
.study-consult-form, .study-consult-form label:not(.study-consult-consent) { display: grid; gap: 6px; min-width: 0; }
.study-consult-form { gap: 14px; }
.study-consult-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.study-consult-fields input, .study-consult-form select, .study-consult-form textarea { width: 100%; min-width: 0; min-height: 42px; padding: 8px; border: 1px solid var(--sx-line-strong); border-radius: 6px; background: var(--sx-paper); color: inherit; font: inherit; font-size: 16px; }
.study-consult-form details > summary { cursor: pointer; }
.study-consult-form details[open] > .study-consult-fields { margin-top: 10px; }
.study-consult-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.study-consult-consent input { margin-top: 4px; }
.study-consult-consent a { color: var(--sx-ink); text-decoration: underline; }
.study-consult-status:empty { margin: 0; }
.study-consult-status.is-error { color: #a12031; }

@media (max-width: 460px) {
    .study-consult-fields { grid-template-columns: 1fr; }
}

.study-sources ul { margin: 16px 0 0; padding-left: 20px; }
.study-sources li { font-size: 14px; line-height: 1.9; }
.study-sources h3 { margin: 32px 0 0; color: var(--sx-ink); font-size: 17px; }
.study-sources .study-credits { margin-top: 12px; padding-left: 0; list-style: none; columns: 2 340px; column-gap: 36px; color: var(--sx-muted); font-size: 12.5px; }
.study-sources .study-credits-title { margin: 20px 0 0; color: var(--sx-text); font-size: 14px; font-weight: 700; }
.study-credits li { margin-bottom: 6px; line-height: 1.7; break-inside: avoid; }
.study-credits strong { color: var(--sx-text); font-weight: 600; }

/* ---------- 学校详情页 ---------- */
.study-hero--detail { padding-bottom: 40px; }
.study-cover { margin: 0 0 32px; }
.study-cover .study-photo { max-height: 440px; aspect-ratio: 12 / 5; border-radius: 8px; }
/* 没有照片时不占一整张大图的高度，只留一条带指示牌的色块。 */
.study-cover--empty .study-photo { aspect-ratio: auto; min-height: 150px; }
.study-cover figcaption { margin-top: 8px; color: var(--sx-muted); font-size: 12.5px; line-height: 1.7; }
.study-hero--detail h1 { max-width: none; }
.study-hero--detail h1 span { display: block; margin-top: 6px; color: var(--sx-muted); font-family: var(--sx-latin); font-size: clamp(17px, 2vw, 22px); font-weight: 600; letter-spacing: 0; }

.study-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 56px; padding-block: 36px 64px; }
.study-detail-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.study-detail-aside .study-consult-card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; background: var(--sx-paper); border: 1px solid var(--sx-line); border-radius: 8px; }
.study-detail-aside .study-consult-card h2 { color: var(--sx-ink); font-size: 17px; }
.study-detail-aside .study-consult-card p { font-size: 14px; line-height: 1.75; }
.study-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-bottom: 14px; border-bottom: 1px solid var(--sx-line); font-size: 14px; }
.study-toc a { color: var(--sx-muted); text-decoration: none; }
.study-toc a:hover { color: var(--sx-ink); text-decoration: underline; text-underline-offset: 3px; }
.study-block { padding-top: 36px; scroll-margin-top: calc(var(--header-h) + 16px); }
.study-block h2 { margin: 0 0 14px; color: var(--sx-ink); font-size: 22px; font-weight: 800; }
.study-block h3 { margin: 20px 0 6px; color: var(--sx-ink); font-size: 16px; }
.study-block p, .study-block li { max-width: 40em; font-size: 15.5px; line-height: 1.85; }
.study-block ul { padding-left: 20px; }
.study-block .study-small { color: var(--sx-muted); font-size: 13.5px; }
.study-source-list li { font-size: 14.5px; }
.study-breakdown { max-width: 40em; margin: 0 0 12px; }
.study-breakdown > div { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--sx-line); }
.study-breakdown dt { color: var(--sx-muted); font-size: 14px; }
.study-breakdown dd { margin: 0; color: var(--sx-ink); font-family: var(--sx-latin); font-weight: 700; font-variant-numeric: tabular-nums; }
.study-breakdown dd small { display: block; margin-top: 2px; color: var(--sx-muted); font-family: var(--font-sans); font-size: 13px; font-weight: 400; line-height: 1.7; }
.study-breakdown .is-total { border-top: 2px solid var(--sx-ink); }
.study-block .study-figure { margin: 0 0 12px; color: var(--sx-ink); font-family: var(--sx-latin); font-size: 34px; font-weight: 800; line-height: 1.25; font-variant-numeric: tabular-nums; }
.study-block .study-figure small { display: block; color: var(--sx-muted); font-family: var(--font-sans); font-size: 14px; font-weight: 400; }

/* ---------- 窄屏 ---------- */
@media (max-width: 1000px) {
    .study-columns { grid-template-columns: 1fr; gap: 20px; }
    .study-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .study-detail { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .study-detail-aside { position: static; }
    .study-facts--four { grid-template-columns: repeat(2, max-content); row-gap: 20px; }
    .study-facts--four > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 700px) {
    .study-hero h1 { font-size: 30px; }
    .study-lead { font-size: 16px; }
    .study-facts, .study-facts--four { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .study-facts > div, .study-facts > div:first-child, .study-facts--four > div:nth-child(3) { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 12px; padding: 10px 0; border-left: 0; border-top: 1px solid var(--sx-line-strong); }
    .study-facts dd { font-size: 17px; text-align: right; }
    .study-facts .study-facts-note { flex-basis: 100%; text-align: right; }
    /* 照片条在手机上横向滑动，页面本身不横向滚动。 */
    .study-strip { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; gap: 8px; padding-inline: var(--page-gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .study-strip::-webkit-scrollbar { display: none; }
    .study-strip-item { scroll-snap-align: start; }
    .study-strip-item .study-photo { border-radius: 6px; }
    .study-strip-name { padding-inline: 2px; }
    .study-section, .study-band { padding-block: 40px; }
    .study-section h2, .study-band h2 { font-size: 22px; }
    .study-toolbar { grid-template-columns: minmax(0, 1fr); }
    .study-toolbar-side { width: 100%; }
    .study-sort { flex: 1 1 100%; min-width: 0; }
    .study-sort select { flex: 1; min-width: 0; }
    .study-chip { min-height: 40px; }
    .study-tabs { flex-wrap: nowrap; }
    .study-tab { flex: 1 1 0; min-width: 0; justify-content: center; gap: 4px; padding: 0 2px; font-size: 14px; white-space: nowrap; }
    .study-tab-count { font-size: 11px; }
    .study-panel-title { font-size: 19px; }
    .study-grid { gap: 36px; }
    .study-steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .study-consult-card { flex-direction: column; align-items: flex-start; gap: 16px; }
    .study-cover .study-photo { aspect-ratio: 16 / 10; }
    .study-cover--empty .study-photo { aspect-ratio: auto; min-height: 120px; }
    .study-sign--lg { left: 12px; bottom: 12px; font-size: 15px; }
    .study-breakdown > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .study-block .study-figure { font-size: 28px; }
}
