/* ============================================================
   长虹中学招生 · 一屏版
   首页：一屏、两个按钮、底部 QQ 群
   子页：apply.html 网上签约 / query.html 录取查询 / about.html 学校介绍
   ============================================================ */

:root {
  /* 主色取自校园照：看台蓝 / 楼体橙 */
  --brand: #1F6FB2;
  --brand-dark: #155C96;
  --brand-light: #2E86C8;
  --accent: #DE7B37;
  --accent-dark: #C16526;
  --ink: #12243A;
  --body: #43536A;
  --muted: #5E6C82;   /* 原 #8794A6 对白底仅 3.08:1，压在浅色照片上更糊；加深到 5.33:1 */
  --line: #DDE5EF;
  --bg: #FFFFFF;
  --bg-soft: #F4F8FC;
  --hero-img: url('/img/campus-hero.jpg?v=3');
  --font-serif: "HeroSerif", "Songti SC", "STSong", "SimSun", serif;
  --shadow: 0 2px 10px rgba(18, 46, 78, .07);
  --shadow-lg: 0 8px 30px rgba(18, 46, 78, .11);
}

/* 首页标语字体：思源宋体子集（仅"招生代码 064 欢迎二批一志愿填报长虹中学"等 29 字形，13KB）
   只用于首页大标题，正文仍用系统黑体，保证小字清晰 */
@font-face {
  font-family: "HeroSerif";
  src: url("/fonts/hero-serif.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg-soft);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 全站背景：校园实景照 + 白色蒙层（保证文字可读，同时透出画面）
   注意：后台 admin.html 不引本文件，不受影响 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
  /* 模糊已预烘焙进图片，运行时不再用滤镜，滚动更省电 */
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, .36) 0%,
      rgba(255, 255, 255, .24) 34%,
      rgba(248, 251, 254, .42) 68%,
      rgba(242, 247, 252, .58) 100%),
    radial-gradient(1000px 560px at 50% -6%, rgba(31, 111, 178, .08), transparent 72%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 700; }
em { font-style: normal; }
input, select, textarea, button { font: inherit; color: inherit; }

.m-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.m-narrow { max-width: 760px; }

/* ============================================================
   首页：一屏
   ============================================================ */
/* 首页背景更透：标题区自带白纱衬底，照片可以透出来
   表单页不放宽 —— 输入框要压在照片上，淡了会影响填写
   注：子页背景已在 .home 段之后定义，此处用 data-page 精准限定首页 */
body[data-page="home"]::after {
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, .04) 0%,
      rgba(255, 255, 255, .02) 34%,
      rgba(248, 251, 254, .09) 68%,
      rgba(242, 247, 252, .24) 100%),
    radial-gradient(1000px 560px at 50% -6%, rgba(31, 111, 178, .03), transparent 72%);
}

.home {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(30px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
  background: transparent;
  overflow: hidden;
}

.home-top {
  position: relative;
  width: 100%;
  max-width: 660px;
  padding: 8px 0 2px;
  text-align: center;
}
/* 标题后一层极淡的白纱，保证照片上文字清晰但不显得糊 */
.home-top::before {
  content: "";
  position: absolute;
  inset: -8px -22px -4px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .97), rgba(255, 255, 255, .35) 62%, rgba(255, 255, 255, 0));
  filter: blur(16px);
  pointer-events: none;
}
.home-logo {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 0 14px;
  object-fit: contain;
  opacity: 1;
}

.home-slogan { margin-top: 4px; }

/* 招生代码：小字宽字距，064 用橙色衬线放大 —— 一眼记住的钩子 */
.hs-code {
  position: relative;
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .3em;
  text-indent: .3em;
  color: #5C6B80;
  padding-bottom: 16px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 1), 0 0 14px rgba(255, 255, 255, .85);
}
.hs-code b {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.62em;
  letter-spacing: .04em;
  color: var(--accent-dark);
  margin-left: .06em;
}
/* 代码与主标题之间一条极细短分隔，收住视线 */
.hs-code::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 34px; height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #B9C4D2 35%, #B9C4D2 65%, transparent);
}

/* 主标题：宋体 + 大字距，稳重而不呆板 */
.hs-main {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.94rem;
  line-height: 1.46;
  letter-spacing: .1em;
  text-indent: .1em;
  color: #17324F;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 1), 0 0 22px rgba(255, 255, 255, .92), 0 0 44px rgba(255, 255, 255, .55);
}
.hs-line { display: block; }
/* 第二行用品牌蓝，和照片里的看台呼应 */
.hs-line-2 { color: var(--brand); }



/* 两个按钮：撑满剩余高度、垂直居中 */
.home-actions {
  flex: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: 26px 0;
}

.big-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .5px;
  transition: transform .12s, box-shadow .2s, filter .2s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.big-btn .bb-left { display: flex; align-items: center; gap: 11px; }
.big-btn svg { width: 21px; height: 21px; flex-shrink: 0; }
.big-btn .bb-arrow { width: 18px; height: 18px; opacity: .55; }

.big-btn.primary {
  color: #fff;
  background: linear-gradient(180deg, var(--brand-light), var(--brand));
  box-shadow: 0 6px 20px rgba(31, 111, 178, .30);
}
.big-btn.primary:active { transform: translateY(1px); filter: brightness(.97); }

.big-btn.ghost {
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
}
.big-btn.ghost:active { transform: translateY(1px); background: var(--bg-soft); }

/* 底部 QQ 群 */
.home-bottom {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* QQ 群：与上面两个按钮同一版式（同高、同圆角、同内距、同箭头），
   只用浅蓝底区分层级 —— 不做第三种形态 */
.big-btn.qq {
  color: var(--brand);
  background: #fff;
  border: 1.5px solid rgba(31, 111, 178, .26);
  box-shadow: var(--shadow);
}
.big-btn.qq:active {
  transform: translateY(1px);
  background: var(--bg-soft);
}

.home-foot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 15px;
  font-size: 12.5px;
  font-weight: 500;
  color: #46586E;
  letter-spacing: .02em;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 6px rgba(18, 46, 78, .07);
}

/* ============================================================
   子页通用（网上签约 / 录取查询 / 学校介绍）
   ============================================================ */
.page {
  min-height: 100vh;
  background: transparent;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.p-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  height: 56px;
  padding: 0 16px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.p-back {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px;
  font-size: 14px; color: var(--body);
  padding: 8px 12px 8px 6px; margin-left: -6px;
  border-radius: 8px;
}
.p-back:active { background: var(--bg-soft); }
.p-back svg { width: 17px; height: 17px; }
.p-title { font-size: 15.5px; font-weight: 700; }

.p-body { max-width: 620px; margin: 0 auto; padding: 22px 16px 0; }

/* 这段标题直接压在照片上，没有衬底时灰字实测只有 3.09:1（照片是浅蓝底）
   加一层柔和白纱把字托起来，保留照片可见，文字对比度回到 5:1 以上 */
.p-lead {
  margin-bottom: 16px;
  padding: 12px 15px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  box-shadow: 0 1px 3px rgba(18, 46, 78, .05);
}
.p-lead h1 { font-size: 1.32rem; font-weight: 800; letter-spacing: -.3px; }
.p-lead p { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.55; }

/* ============ 表单 ============ */
.m-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}

/* 用 flex + gap 排版：绝不用相邻兄弟选择器加 margin，
   否则同一行内的第二列也会被推下去（就是之前的错位） */
.m-form { display: flex; flex-direction: column; gap: 13px; }
.m-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.m-row:has(.m-field-sm) { grid-template-columns: 1.55fr 1fr; }
.m-row.two-narrow { grid-template-columns: 1fr 1fr; }
.m-row > .m-field { margin: 0; }

/* 任何带 hidden 的元素都必须真的隐藏：.m-field 的 display:flex 会盖掉浏览器默认的 [hidden]{display:none} */
[hidden] { display: none !important; }
.m-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.m-field > span {
  font-size: 13px; font-weight: 600; color: var(--body);
  display: flex; align-items: center; gap: 2px;
}
.m-field > span em { color: var(--brand); }

.m-field input,
.m-field select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .15s, background .15s, box-shadow .15s;
  appearance: none;
}
.m-field select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A9099' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.m-field input:focus,
.m-field select:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 111, 178, .1);
}
/* 原 #B4B9C0 对白底仅 1.97:1，几乎白字；加深到 3.51:1，仍明显弱于正文 */
.m-field input::placeholder { color: #7E8A99; }

.m-field input[type="file"] {
  height: auto;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--body);
  cursor: pointer;
}
.m-field input[type="file"]::file-selector-button {
  font: inherit; font-size: 13px;
  padding: 5px 12px; margin-right: 10px;
  border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--ink); cursor: pointer;
}

.m-hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* 填写说明折叠块 */
.m-note {
  margin-bottom: 13px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 12.5px;
  color: var(--body);
}
.m-note > summary {
  cursor: pointer; list-style: none; user-select: none;
  font-weight: 600; color: var(--body);
  display: flex; align-items: center; gap: 6px;
  min-height: 24px;
}
.m-note > summary::-webkit-details-marker { display: none; }
.m-note > summary::before { content: "+"; font-weight: 700; color: var(--muted); }
.m-note[open] > summary::before { content: "−"; }
.m-note[open] > summary { margin-bottom: 8px; }
.m-note ol { margin: 0; padding-left: 17px; display: grid; gap: 5px; line-height: 1.6; }

/* 标签右侧的小字提示 */
.m-tip {
  margin-left: 6px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

/* 分段单选：班型三选一 */
.m-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.m-seg label { position: relative; display: block; cursor: pointer; }
.m-seg input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.m-seg span {
  display: flex; align-items: center; justify-content: center;
  height: 46px;
  font-size: 14.5px; font-weight: 600;
  color: var(--body);
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: 9px;
  transition: all .15s;
}
.m-seg input:checked + span {
  color: var(--brand);
  background: rgba(31, 111, 178, .06);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 111, 178, .08);
}
.m-seg label:active span { transform: scale(.985); }

.m-more { border-top: 1px dashed var(--line); padding-top: 12px; }
.m-more > summary {
  font-size: 13.5px; color: var(--muted); cursor: pointer;
  list-style: none; user-select: none;
  display: flex; align-items: center; gap: 6px;
}
.m-more > summary::-webkit-details-marker { display: none; }
.m-more > summary::before { content: "+"; font-size: 15px; font-weight: 700; }
.m-more[open] > summary::before { content: "−"; }
.m-more-body { padding-top: 12px; }

.m-agree {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12.5px; color: var(--muted); line-height: 1.55;
  cursor: pointer;
}
.m-agree input {
  width: 18px; height: 18px; margin-top: 1px;
  flex-shrink: 0; accent-color: var(--brand); cursor: pointer;
}

.m-submit {
  width: 100%; height: 52px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16.5px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, var(--brand-light), var(--brand));
  border: none; border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(31, 111, 178, .28);
  transition: transform .12s, box-shadow .2s, filter .2s;
}
.m-submit:active { transform: translateY(1px); }
.m-submit:disabled { opacity: .62; cursor: not-allowed; box-shadow: none; }
.m-submit svg { width: 18px; height: 18px; }

.m-foot { font-size: 12px; color: #A8AEB6; text-align: center; margin: -4px 0 0; }

/* ============ 查询 ============ */
.m-query {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 22px;
  box-shadow: var(--shadow);
  /* 每项单独成行后，字段之间要有间距，否则上一个输入框会贴住下一个标签 */
  display: flex; flex-direction: column; gap: 13px;
}
.m-btn-line {
  width: 100%; height: 48px; margin-top: 16px;
  flex: none;
  font-size: 15.5px; font-weight: 600; color: var(--ink);
  background: #fff; border: 1.5px solid var(--ink);
  border-radius: 10px; cursor: pointer;
  transition: background .15s, color .15s;
}
.m-btn-line:active { background: var(--ink); color: #fff; }
.m-btn-line:disabled { opacity: .55; cursor: not-allowed; }

/* ============ 结果卡片 ============ */
.query-result { margin-top: 16px; }

.qr-card {
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.qr-card + .qr-card { margin-top: 12px; }
.qr-card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.qr-card.success { border-color: #BFE3CB; background: #F5FBF7; }
.qr-card.success h3 { color: #1B7A3E; }
.qr-card.info { border-color: #CFE0F0; background: #F6FAFE; }
.qr-card.info h3 { color: #1F5C93; }
.qr-card.warn { border-color: #F0D9B5; background: #FFFBF3; }
.qr-card.warn h3 { color: #8A6D3B; }
/* 不通过：左侧红边 + 浅红底，和「待审核(蓝)」「已签约(绿)」一眼分得开 */
.qr-card.rejected {
  border-color: #F2C6C6;
  border-left: 4px solid #C62828;
  background: #FFF7F7;
}
.qr-card.rejected h3 { color: #A31F1F; }
.qr-card.rejected .qr-status { color: #A31F1F; font-weight: 600; }

.qr-status { font-size: 14px; color: var(--body); margin-bottom: 14px; }
.qr-status b { color: var(--ink); }

/* 不通过原因：家长最需要看的一段，给足视觉权重 */
.qr-reason {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #FDECEC;
  border: 1px solid #F5D0D0;
}
.qr-reason-k {
  display: block;
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
  color: #A31F1F; margin-bottom: 5px;
}
.qr-reason p {
  font-size: 13.5px; line-height: 1.6;
  color: #6B2B2B;
  word-break: break-word;
}

.qr-meta { display: grid; gap: 8px; }
.qr-meta > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 13.5px; color: var(--muted);
  padding-bottom: 8px; border-bottom: 1px dashed var(--line);
}
.qr-meta > div:last-child { border-bottom: none; padding-bottom: 0; }
.qr-meta b { color: var(--ink); font-weight: 600; text-align: right; }

.qr-signs { margin-top: 14px; display: grid; gap: 8px; }
.qr-sign {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13.5px; padding: 9px 12px;
  background: var(--bg-soft); border-radius: 7px;
}
.qr-sign span { color: var(--muted); }
.qr-sign b { color: var(--ink); }

.qr-foot { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ============ 分数测算 ============ */
.m-calc {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px;
  align-items: center;
  margin-top: 22px; padding: 14px 16px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px;
}
.m-calc > span { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.m-calc input {
  height: 42px; padding: 0 12px; font-size: 16px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 7px; min-width: 0;
}
.m-calc input:focus { outline: none; border-color: var(--brand); }
.m-calc .m-btn-line {
  width: auto; margin: 0; padding: 0 18px; height: 42px;
  font-size: 14px; white-space: nowrap;
}

.calc-result { margin-top: 12px; padding: 14px 16px; border-radius: 10px; font-size: 14px; line-height: 1.7; }
.calc-result.good { background: #F5FBF7; border: 1px solid #BFE3CB; color: #1B7A3E; }
.calc-result.mid { background: #FFFBF3; border: 1px solid #F0D9B5; color: #8A6D3B; }
.calc-result.warn { background: #FFF5F5; border: 1px solid #F3C9C9; color: #A83232; }
.calc-result b { font-weight: 700; }

/* ============ 事实列表 ============ */
.m-facts { display: grid; gap: 0; }
.m-facts > div {
  display: grid; grid-template-columns: 100px 1fr; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.m-facts > div:last-child { border-bottom: none; }
.m-facts dt { color: var(--muted); font-size: 13.5px; }
.m-facts dd { color: var(--ink); font-weight: 500; }
.m-facts dd b { color: var(--brand); font-weight: 700; }
.m-facts dd a { color: var(--brand); }

.m-warn {
  margin-top: 16px; padding: 12px 14px;
  font-size: 12.5px; color: #8A6D3B; line-height: 1.6;
  background: #FFFBF0; border: 1px solid #F5E3BC; border-radius: 8px;
}

.m-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.m-links a { font-size: 14px; font-weight: 600; color: var(--brand); padding: 4px 0; }

.p-sec {
  margin-top: 16px;
  padding: 14px 16px 16px;
  border-radius: 12px;
  /* 同 .p-lead：这些段落也直接压在照片上，白纱托底保证灰字可读 */
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  box-shadow: 0 1px 3px rgba(18, 46, 78, .05);
}
.p-sec > h2 {
  font-size: 1.05rem; font-weight: 800;
  margin-bottom: 10px; letter-spacing: -.2px;
}

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 90px;
  transform: translate(-50%, 14px);
  z-index: 200;
  max-width: min(88vw, 380px);
  padding: 11px 18px;
  font-size: 14px; font-weight: 500;
  color: #fff; background: rgba(26, 29, 33, .93);
  border-radius: 9px;
  opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
  text-align: center;
  backdrop-filter: blur(8px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #B3261E; }

/* ============================================================
   大屏适配
   ============================================================ */
@media (min-width: 700px) {
  .hs-main { font-size: 2.46rem; }
  .home-top { max-width: 880px; padding-top: 6px; }
  .home-logo { max-width: 540px; margin-bottom: 18px; }
  .hs-code { font-size: 15px; }
  .big-btn { min-height: 70px; font-size: 19px; }
  .home-actions { gap: 15px; padding: 32px 0; }

}

@media (max-width: 380px) {
  .home { padding-left: 16px; padding-right: 16px; }
  .hs-main { font-size: 1.66rem; }
  .hs-code { font-size: 12.5px; letter-spacing: .22em; text-indent: .22em; }
  .big-btn { min-height: 58px; font-size: 17px; }
  .p-body { padding-left: 13px; padding-right: 13px; }
  .m-form, .m-query { padding: 16px; }
  .m-row { gap: 9px; }
}

/* 极矮屏：压缩留白，保证两个按钮同屏 */
@media (max-height: 640px) {
  .home { padding-top: calc(16px + env(safe-area-inset-top)); }
  .home-logo { max-width: 310px; margin-bottom: 8px; }
  .hs-code { font-size: 12px; padding-bottom: 13px; }
  .hs-main { font-size: 1.54rem; line-height: 1.4; }
  .home-actions { padding: 14px 0; gap: 10px; }
  .big-btn { min-height: 54px; font-size: 16.5px; }

}

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

/* ============================================================
   签约系统入口（sign.html）
   首页「网上签约」→ 本页 →「网上填报」/「结果查询」
   ============================================================ */
.hub {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 18px calc(24px + env(safe-area-inset-bottom));
  background: transparent;
}

.hub-head {
  width: 100%; max-width: 520px;
  display: flex; align-items: center; gap: 10px;
  height: 56px;
  flex-shrink: 0;
}
.hub-back {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; font-size: 14px; color: var(--body);
  padding: 8px 12px 8px 6px; margin-left: -6px;
  border-radius: 8px;
}
.hub-back:active { background: rgba(0, 0, 0, .045); }
.hub-back svg { width: 17px; height: 17px; }
.hub-logo { height: 26px; width: auto; margin-left: auto; opacity: .92; }

.hub-card {
  width: 100%; max-width: 520px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 26px 20px 20px;
  margin-top: 6px;
}

.hub-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--brand); text-align: center;
}
.hub-title {
  margin-top: 6px;
  font-size: 1.28rem; font-weight: 800;
  letter-spacing: -.3px; text-align: center;
}
.hub-sub {
  margin-top: 7px;
  font-size: 12.5px; color: var(--muted);
  text-align: center; line-height: 1.65;
}

.hub-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.hub-tile {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  padding: 19px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  min-height: 132px;
  justify-content: center;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.hub-tile:active {
  transform: translateY(1px);
  border-color: rgba(31, 111, 178, .3);
  box-shadow: var(--shadow);
}
.hub-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.hub-icon svg { width: 26px; height: 26px; }
.hub-icon--red { background: linear-gradient(160deg, var(--accent), var(--accent-dark)); }
.hub-icon--blue { background: linear-gradient(160deg, var(--brand-light), var(--brand)); }
.hub-label { font-size: 15px; font-weight: 700; letter-spacing: -.1px; }
.hub-desc { font-size: 11.5px; color: var(--muted); }

.hub-note {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.hub-note h2 {
  font-size: 13px; font-weight: 800;
  color: var(--brand); margin-bottom: 9px;
}
.hub-note ul { list-style: none; display: grid; gap: 9px; }
.hub-note li {
  position: relative;
  padding-left: 13px;
  font-size: 12.5px; line-height: 1.75;
  color: var(--body);
}
.hub-note li::before {
  content: ""; position: absolute;
  left: 0; top: .63em;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--muted);
}
.hub-note a { color: var(--brand); font-weight: 600; }
/* 时间段整体换行，避免被拆成「8:30-11:30 / 14:00-17:00」两截 */
.hub-time { color: var(--muted); white-space: nowrap; }

/* 联系方式单独一段，与上面的注意事项拉开距离 */
.hub-note-contact {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--body);
}

.hub-foot {
  margin-top: auto;
  padding-top: 22px;
  text-align: center;
  font-size: 11.5px; line-height: 1.9;
  color: var(--muted);
}

@media (max-width: 360px) {
  .hub { padding-left: 14px; padding-right: 14px; }
  .hub-card { padding: 22px 16px 17px; border-radius: 16px; }
  .hub-title { font-size: 1.16rem; }
  .hub-tile { min-height: 124px; padding: 16px 6px 14px; }
  .hub-icon { width: 46px; height: 46px; border-radius: 12px; }
  .hub-icon svg { width: 23px; height: 23px; }
  .hub-label { font-size: 14px; }
  .hub-tiles { gap: 10px; }
}

/* ============================================================
   录取查询占位页（admission.html）
   录取结果属后续流程，与签约互不影响
   ============================================================ */
.soon {
  max-width: 460px;
  margin: 8vh auto 0;
  text-align: center;
  padding: 0 4px;
}
.soon-icon {
  width: 66px; height: 66px; margin: 0 auto 20px;
  border-radius: 20px;
  display: grid; place-items: center;
  background: var(--bg-soft);
  color: var(--muted);
}
.soon-icon svg { width: 31px; height: 31px; }
.soon h1 {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -.3px;
}
.soon > p {
  margin-top: 9px;
  font-size: 13.5px; line-height: 1.75;
  color: var(--muted);
}
.soon-note {
  margin-top: 22px;
  padding: 13px 15px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12.5px; line-height: 1.7;
  color: var(--body);
}
.soon-note strong { color: var(--ink); }
.soon-actions {
  display: flex; gap: 10px;
  margin-top: 24px;
}
.soon-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14.5px; font-weight: 700;
  color: var(--body);
}
.soon-btn:active { transform: translateY(1px); }
.soon-btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.soon-foot {
  margin-top: 26px;
  font-size: 12.5px; color: var(--muted);
}
.soon-foot a { color: var(--brand); font-weight: 600; }
