/* 宁波高德技工学校 前台样式：移动端优先，无构建依赖，直接放 public/css。 */

:root {
    --brand: #097baa;
    --brand-dark: #075f83;
    --brand-soft: #eaf4f9;
    --ink: #1c2b33;
    --ink-2: #52666f;
    --line: #e2e8ec;
    --bg: #f6f8fa;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16, 40, 55, .06), 0 8px 24px rgba(16, 40, 55, .06);
    --wrap: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font: 16px/1.75 "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
    color: var(--ink);
    background: #fff;
    /* 后台录入的长串（网址、文件名、备案号）不许把页面撑出横向滚动条 */
    overflow-wrap: break-word;
}

/* 触屏：去掉双击缩放带来的 300ms 延迟，点击时给一层浅色高亮而不是整块灰。 */
a, button { -webkit-tap-highlight-color: rgba(9, 123, 170, .12); touch-action: manipulation; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
/* 很多容器同时带 .wrap 和自己的 padding（section.block、.page-head、.article…）。
   padding 简写会把左右一起写成 0 并在同源同权重下盖掉 .wrap 的 16px，窄屏就贴边了。
   所以这类容器只许用 padding-top/padding-bottom，左右留给 .wrap。 */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid var(--brand);
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.is-ghost { background: transparent; color: var(--brand); }
.btn.is-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn.is-invert { background: #fff; color: var(--brand); border-color: #fff; }
.btn.is-invert:hover { background: var(--brand-soft); color: var(--brand-dark); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 40px; width: auto; max-width: 130px; object-fit: contain; object-position: left center; }
/* flex 默认会压缩 logo 的宽度（图片被拉瘦变形），锁死不缩；配合上面的 max-width 兜住横版 logo。 */
.brand-logo, .brand-mark { flex: none; }
.brand-mark {
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 8px;
    background: linear-gradient(140deg, var(--brand), #12a2c9);
    color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 17px; }
.brand-text small { color: var(--ink-2); font-size: 12px; }

.nav-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 8px 12px; background: none; border: 1px solid var(--line); border-radius: 8px; }
.nav-toggle .bar { width: 20px; height: 2px; background: var(--ink); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
    /* top:100% 而不是写死 64px：校名在窄屏折行时头部会变高，写死数值会让面板压住头部 */
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 4px 16px 12px;
    /* 栏目多于十项时会超过一屏高度。头部是 sticky 的，页面滚动并不会把面板带上来，
       所以面板必须自己可滚，否则底部的「联系我们」在矮屏上永远点不到。 */
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.site-nav.is-open { display: flex; }
.site-nav a {
    display: flex; align-items: center; min-height: 46px;
    padding: 0 4px; border-bottom: 1px solid var(--line); font-size: 15px;
}
.site-nav a:last-child { border-bottom: 0; }
.site-nav a.is-active { color: var(--brand); font-weight: 600; }
.nav-search { color: var(--brand); }

.top-notice {
    margin: 0; padding: 10px 16px; background: var(--brand-soft);
    color: var(--brand-dark); font-size: 14px; border-radius: var(--radius);
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #0b6f97, #16a6cd 60%, #0d84ae); }
.hero-track { display: grid; }
.hero-slide { grid-area: 1 / 1; display: none; position: relative; min-height: 260px; align-items: center; }
.hero-slide.is-active { display: flex; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-text { position: relative; z-index: 1; color: #fff; padding-top: 36px; padding-bottom: 36px; }
.hero-text h2 { font-size: clamp(24px, 5vw, 40px); margin-bottom: .35em; text-shadow: 0 1px 12px rgba(4, 32, 46, .35); }
.hero-text p { font-size: clamp(15px, 2.6vw, 19px); opacity: .95; margin-bottom: 1.2em; }
.hero-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; z-index: 2; }
/* 可见圆点只有 9px，手指按不准；用透明按钮把热区撑到 26×26，圆点画在 ::after 上。 */
.dot { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border: 0; background: none; cursor: pointer; padding: 0; }
.dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.dot.is-active::after { background: #fff; }

/* ---------- blocks ---------- */
.block { padding-top: 40px; padding-bottom: 40px; }
.block + .block { border-top: 1px solid var(--line); }
.block-title { font-size: 22px; position: relative; padding-left: 12px; }
.block-title::before { content: ""; position: absolute; left: 0; top: .28em; bottom: .28em; width: 4px; border-radius: 2px; background: var(--brand); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.block-more { color: var(--brand); font-size: 14px; white-space: nowrap; }

.page-head { padding-top: 28px; padding-bottom: 6px; }
.page-head h1 { margin-bottom: .3em; }
/* 栏目头图：和首页轮播同款处理——100% 宽铺满、图片绝对定位 cover 裁切，
   高度由容器决定，所以栏目图比例再怎么不统一也不会把下面的标题顶得忽高忽低。 */
.page-banner { position: relative; margin: 0; overflow: hidden; height: clamp(150px, 20vw, 340px); background: linear-gradient(135deg, #0b6f97, #16a6cd 60%, #0d84ae); }
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-intro { color: var(--ink-2); }

.rich { overflow-wrap: anywhere; }
.rich :is(p, ul, ol, h2, h3, h4) { max-width: none; }
.rich img { margin: 1em auto; border-radius: var(--radius); }
/* 编辑器把对齐写在 <p style="text-align:…">，而全局 img 是 block，父级 text-align 管不到，只能换成水平 margin。 */
.rich p[style*="text-align: center"] img { margin-left: auto; margin-right: auto; }
.rich p[style*="text-align: right"] img { margin-left: auto; margin-right: 0; }
.rich :is(p[style*="text-align: left"], p[style*="text-align: start"]) img { margin-left: 0; margin-right: auto; }
.rich table { width: 100%; border-collapse: collapse; }
.rich th, .rich td { border: 1px solid var(--line); padding: 8px 10px; }
/* 招生计划、课程表这类宽表格在窄屏上改成横向滑动，而不是把整页撑出横向滚动条 */
@media (max-width: 899px) {
    .rich table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .rich table > * { min-width: 100%; }
}

/* ---------- cards ---------- */
.post-list { display: grid; gap: 18px; }
.post-card { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.post-card:hover { box-shadow: var(--shadow); }
.post-thumb { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--brand-soft); }
.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-thumb.is-empty { background: repeating-linear-gradient(135deg, var(--brand-soft), var(--brand-soft) 12px, #f3f8fb 12px, #f3f8fb 24px); }
.post-body { min-width: 0; }
.post-body h3 a { font-size: 17px; overflow-wrap: anywhere; }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 .5em; color: var(--ink-2); font-size: 13px; }
.post-summary { color: var(--ink-2); font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 快捷入口 / 资讯双栏 ---------- */
/* 入口卡不放图标文件，箭头用伪元素画，避免为了装饰再塞一堆二进制素材 */
.link-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 18px; }
.link-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.link-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.link-card strong { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 16px; }
.link-card strong::after { content: "→"; flex: none; color: var(--brand); font-size: 14px; }
.link-card small { color: var(--ink-2); font-size: 13px; line-height: 1.5; }

.news-grid { display: grid; gap: 26px; margin-top: 18px; }
.news-main, .news-side { min-width: 0; }
.news-side { padding: 6px 16px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
/* 首页资讯首条不给 .post-card 加特例：去掉左右内边距又只留左右两条细边框，缩略图会顶在线上像贴边，窄屏尤其明显 */
@media (min-width: 1024px) {
    .news-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
    /* 右栏那档栏目还没内容时，左栏铺满，别留一块空白 */
    .news-grid > :only-child { grid-column: 1 / -1; }
}
.text-list { list-style: none; margin: 0; padding: 0; }
.text-list li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.text-list li:last-child { border-bottom: 0; }
/* 标题长短不一会让行高跳动，列表统一单行截断，日期靠右 */
.text-list a { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-list time { flex: none; color: var(--ink-2); font-size: 13px; }

.major-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 18px; }
.major-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.major-card:hover { box-shadow: var(--shadow); }
/* 封面盒子的尺寸必须由 aspect-ratio 决定：图片一旦参与布局（height:100% 在百分比
   高度解析不出来时会退回原图高度），400×225 和 400×300 的图就会把卡片顶得高低不齐，
   所以把图绝对定位钉死在盒子里，并禁掉 flex 子项的自动最小高度。
   专业图比例从 1.33 到 2.8 都有，正图只能用 contain 才不裁画面，空白处由同图放大的
   虚化底图（.is-bg）填满，卡片高度仍然是固定的 3:2，两全。 */
.major-thumb { position: relative; flex: none; min-height: 0; overflow: hidden; display: grid; place-items: center; aspect-ratio: 3 / 2; background: linear-gradient(140deg, var(--brand), #17a8ce); color: #fff; font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.major-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.major-thumb .is-bg { object-fit: cover; filter: blur(16px) saturate(1.15) brightness(1.06); transform: scale(1.18); }
.major-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 14px 16px 18px; }
/* 标题占满两行、简介最多四行，同一行的卡片文字才不会被长短不一的文案推得忽高忽低 */
.major-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: 2.7em; }
.major-meta:empty { display: none; }
.major-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 .5em; font-size: 13px; color: var(--brand); }
.major-summary { color: var(--ink-2); font-size: 14px; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }

.teacher-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 18px; }
.teacher { text-align: center; padding: 18px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.teacher-photo { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden; background: var(--brand-soft); }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-photo.is-empty { background: linear-gradient(140deg, var(--brand), #17a8ce); color: #fff; font-size: 30px; font-weight: 700; }
.teacher-position, .teacher-subject { color: var(--brand); font-size: 13px; margin: 0 0 .3em; }
.teacher-bio { color: var(--ink-2); font-size: 13px; margin: 0; }

.stats { background: var(--bg); }
.stats-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 18px 0 0; }
.stat { text-align: center; padding: 18px 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat dd { margin: 0; font-size: 30px; font-weight: 700; color: var(--brand); }
.stat dd small { font-size: 14px; margin-left: 2px; }
.stat dt { color: var(--ink-2); font-size: 14px; margin-top: 6px; }

.steps-grid { display: grid; gap: 16px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps-grid li { position: relative; padding: 16px 16px 16px 56px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step-no { position: absolute; left: 14px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 14px; }
.steps-grid p { margin: .3em 0 0; color: var(--ink-2); font-size: 14px; }

.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); list-style: none; margin: 18px 0 0; padding: 0; }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }

.partner-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); list-style: none; margin: 18px 0 0; padding: 0; }
.partner-grid li { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; background: #fff; }
.partner-grid img { max-height: 46px; margin: 0 auto 8px; object-fit: contain; }

.cta { background: linear-gradient(135deg, var(--brand), #12a2c9); color: #fff; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta h2 { color: #fff; margin: 0 0 .3em; }
.cta p { margin: 0; opacity: .92; }

.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px auto 0; padding: 12px 14px; border: 1px dashed var(--brand); border-radius: var(--radius); background: var(--brand-soft); }
.notice p { margin: 0; flex: 1; min-width: 200px; }
.notice-label { font-weight: 700; color: var(--brand-dark); }
.notice-close { display: grid; place-items: center; min-width: 40px; min-height: 40px; margin-left: auto; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.notice[hidden] { display: none; }

.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0b1a22; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { margin-top: 12px; border-radius: var(--radius); }

.contact-grid { display: grid; gap: 14px 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 18px 0 0; }
.contact-grid dt { color: var(--ink-2); font-size: 13px; }
.contact-grid dd { margin: 2px 0 0; font-weight: 600; }
.contact-full { grid-column: 1 / -1; }

/* ---------- detail ---------- */
.list-page { padding-top: 18px; padding-bottom: 40px; }
.list-cta { text-align: center; margin-top: 28px; }
.result-title { margin: 28px 0 12px; font-size: 19px; }

.article { padding-top: 24px; padding-bottom: 48px; max-width: 860px; }
.article-head h1 { margin-bottom: .3em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ink-2); font-size: 13px; margin: 0 0 14px; }
.article-summary { padding: 14px 16px; background: var(--bg); border-left: 3px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2); }
.detail-cover img { border-radius: var(--radius); }
.article-body { font-size: 17px; }
.article-body img { margin: 1.2em auto; border-radius: var(--radius); }
.article-video { margin-top: 20px; }
.tag-row { margin-top: 24px; color: var(--ink-2); font-size: 14px; }
.tag-row a { display: inline-block; margin: 0 6px 6px 0; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; }
.related { margin-top: 40px; }

.detail { padding-top: 24px; padding-bottom: 48px; }
.spec { display: grid; gap: 12px 24px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 18px 0; padding: 16px; background: var(--bg); border-radius: var(--radius); }
.spec dt { font-size: 13px; color: var(--ink-2); }
.spec dd { margin: 2px 0 0; font-weight: 600; color: var(--brand-dark); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.detail-section { margin-top: 32px; }
.others { margin-top: 40px; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; font-size: 13px; color: var(--ink-2); }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- forms ---------- */
.form-page { padding-top: 18px; padding-bottom: 48px; }
.apply-form { display: grid; gap: 18px; grid-template-columns: 1fr; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.field label { display: block; font-size: 14px; margin-bottom: 6px; }
.field label b { color: #d4483f; font-weight: 400; }
.field input, .field select, .field textarea,
.search-form input {
    width: 100%; padding: 10px 12px; font: inherit; color: inherit;
    border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.field-error { margin: 6px 0 0; color: #d4483f; font-size: 13px; }
.form-actions { display: flex; align-items: center; gap: 14px; }
.form-note { color: var(--ink-2); font-size: 13px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.flash-success { padding: 12px 16px; margin-bottom: 16px; border-radius: var(--radius); background: #eaf7ee; color: #1f7a3d; }
.empty-tip { padding: 18px; color: var(--ink-2); background: var(--bg); border-radius: var(--radius); }

.search-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.search-form input { flex: 1 1 180px; min-width: 0; max-width: 420px; }

/* ---------- pager ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
/* 手指目标按 44px 起；原来的 38×31 在手机上很容易点到隔壁页码 */
.page { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; text-align: center; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.page.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.page.is-disabled, .page.is-gap { color: var(--ink-2); background: var(--bg); }

/* ---------- footer ---------- */
.site-footer { margin-top: 48px; background: #10232c; color: #c9d6dc; }
.footer-grid { display: grid; gap: 28px; padding: 36px 16px 24px; grid-template-columns: 1fr; }
.site-footer h2 { font-size: 16px; color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-about strong { color: #fff; font-size: 17px; }
.footer-slogan, .footer-desc { font-size: 14px; margin-top: 6px; }
.footer-tip { color: #8fa3ad; font-size: 13px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 14px 16px 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #9db0b9; }

.error-page { padding: 80px 16px; text-align: center; }
.error-code { font-size: 76px; font-weight: 800; color: var(--brand); margin: 0; line-height: 1; }
.error-links { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }

/* ---------- responsive ---------- */
@media (min-width: 720px) {
    .post-card { grid-template-columns: 240px 1fr; align-items: start; }
    .apply-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field-full { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
    .block { padding-top: 56px; padding-bottom: 56px; }
    /* 轮播图原图是 1600×720，260px 高的话在宽屏上被裁成一条，所以按屏宽逐级加高 */
    .hero-slide { min-height: 340px; }
    .hero-text { padding-top: 44px; padding-bottom: 44px; }
}

/* 横排导航要等多宽？实测：品牌区不换行 290px（logo 144 + 校名 136）+ 16px 间距 + 导航 776px
   + 两侧 32px 留白 ≈ 1114px，所以断点定 1140；再窄就用面板，否则会挤成两行（导航条目
   内部换行，头部从 64px 涨到 65px 以上）。 */
@media (min-width: 1140px) {
    .nav-toggle { display: none; }
    .brand { flex-shrink: 0; white-space: nowrap; }
    /* 副标题可能比校名更宽，横排段一律收起，留给导航腾地方 */
    .brand-text small { display: none; }
    .site-nav {
        position: static; display: flex; flex-direction: row; align-items: center;
        gap: 2px 0; padding: 0; border: 0; background: transparent; max-height: none; overflow: visible;
    }
    .site-nav a { min-height: 0; padding: 8px; border: 0; border-radius: 6px; white-space: nowrap; }
    .site-nav a:hover { background: var(--brand-soft); }
}

@media (min-width: 1024px) {
    .major-grid { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
    h1 { font-size: 34px; }
}

/* 1280/1366 是最常见的笔记本分辨率，原图 1900×718 在这里还有裁切，比平板再高一点 */
@media (min-width: 1140px) {
    .hero-slide { min-height: 400px; }
    .hero-text { padding-top: 52px; padding-bottom: 52px; }
}

@media (min-width: 1400px) {
    .hero-slide { min-height: 460px; }
    .hero-text { padding-top: 64px; padding-bottom: 64px; }
}

/* 320px 一档（老 iPhone SE、小屏安卓）把留白和字号收一点 */
@media (max-width: 359px) {
    .wrap { padding: 0 12px; }
    h1 { font-size: 26px; }
    .block { padding-top: 32px; padding-bottom: 32px; }
    .stat dd { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
