/* ==========================================================
   全国中师生名录 · 版式
   宣纸 / 墨 / 朱砂 —— 有年代感，不花哨
   ========================================================== */

:root {
  --paper: #f7f3ea;
  --paper-deep: #f1ebde;
  --card: #fffdf8;
  --ink: #1d1a16;
  --ink-soft: #4a443b;
  --ink-mute: #857c6d;
  --line: #ded4c0;
  --line-soft: #eae2d2;
  --cinnabar: #a6332b;
  --cinnabar-soft: #c25b4e;
  --gold: #a98b52;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow: 0 1px 2px rgba(60, 45, 20, .05), 0 8px 28px rgba(60, 45, 20, .07);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

/* 纸纹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(180, 160, 120, .07) 0, transparent 42%),
    radial-gradient(circle at 82% 74%, rgba(160, 140, 100, .06) 0, transparent 46%),
    repeating-linear-gradient(0deg, rgba(150, 130, 95, .022) 0 1px, transparent 1px 3px);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 234, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-in {
  max-width: 1080px; margin: 0 auto; padding: 0 28px;
  height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand b { font-size: 17px; font-weight: 600; letter-spacing: .14em; }
.brand span { font-size: 11px; color: var(--ink-mute); letter-spacing: .18em; font-family: var(--sans); }
.nav { display: flex; gap: 22px; font-size: 13.5px; color: var(--ink-soft); font-family: var(--sans); }
.nav a { padding: 4px 0; border-bottom: 1px solid transparent; transition: .2s; }
.nav a:hover, .nav a.on { color: var(--cinnabar); border-bottom-color: var(--cinnabar); }

/* ---------- 封面 ---------- */
.cover {
  min-height: min(calc(100vh - 62px), 720px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.cover::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.cover-kicker {
  font-family: var(--sans); font-size: 12px; letter-spacing: .5em;
  color: var(--ink-mute); margin-bottom: 26px;
}
.cover-title {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.22;
  letter-spacing: .16em;
  margin: 0 0 6px;
  font-weight: 600;
}
.cover-title em { font-style: normal; color: var(--cinnabar); }
.cover-years {
  font-family: var(--sans);
  font-size: clamp(13px, 2vw, 15px);
  letter-spacing: .42em; color: var(--gold);
  margin: 14px 0 30px;
}
.cover-lead {
  font-size: clamp(15px, 2.1vw, 18px);
  color: var(--ink-soft); line-height: 2.1;
  max-width: 34em;
  border-left: 2px solid var(--cinnabar);
  padding-left: 20px;
  margin: 0 0 42px;
}
.cover-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; font-size: 15px; letter-spacing: .12em;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: .22s; font-family: var(--serif);
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn.primary { background: var(--cinnabar); border-color: var(--cinnabar); color: var(--paper); }
.btn.primary:hover { background: #8e2a24; border-color: #8e2a24; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, .5); }
.btn.sm { padding: 8px 18px; font-size: 13px; }

/* 印章 */
.seal {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%) rotate(-4deg);
  width: 126px; height: 126px;
  opacity: .92;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.seal img { display: block; width: 100%; height: 100%; }
@media (max-width: 1000px) { .seal { width: 106px; height: 106px; top: 60%; right: 5%; } }
@media (max-width: 860px) { .seal { display: none; } }

/* ---------- 统计条 ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 0 0 70px;
}
.stats div {
  padding: 26px 8px; text-align: center; border-right: 1px solid var(--line-soft);
}
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: 30px; letter-spacing: .04em; color: var(--cinnabar); font-weight: 600; }
.stats span { font-family: var(--sans); font-size: 12px; color: var(--ink-mute); letter-spacing: .16em; }

/* ---------- 区块 ---------- */
.section { padding: 58px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.sec-title { font-size: 25px; letter-spacing: .14em; margin: 0; font-weight: 600; }
.sec-title small {
  display: block; font-family: var(--sans); font-size: 11.5px; letter-spacing: .3em;
  color: var(--ink-mute); margin-top: 8px; font-weight: 400;
}
.sec-link { font-family: var(--sans); font-size: 13px; color: var(--cinnabar); border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- 省份网格 ---------- */
.prov-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.prov-grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.prov {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px 18px; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; transition: .18s; background: rgba(255, 253, 248, .4);
}
.prov:hover { background: var(--card); box-shadow: var(--shadow); transform: translateY(-1px); position: relative; z-index: 2; }
.prov-name { font-size: 17px; letter-spacing: .1em; display: flex; align-items: center; gap: 10px; }
.prov-name i {
  font-style: normal; font-family: var(--sans); font-size: 11px; color: var(--ink-mute);
  border: 1px solid var(--line); width: 22px; height: 22px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 2px;
}
.prov-num { font-family: var(--sans); font-size: 11.5px; color: var(--ink-mute); letter-spacing: .05em; }
.prov-num b { color: var(--cinnabar); font-weight: 600; }

/* ---------- 学校列表 ---------- */
.city-block { margin-bottom: 38px; }
.city-name {
  font-size: 15px; color: var(--cinnabar); letter-spacing: .16em; font-weight: 600;
  padding-bottom: 10px; margin-bottom: 16px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 10px;
}
.city-name::before { content: ""; width: 3px; height: 14px; background: var(--cinnabar); display: inline-block; }
.city-name em { font-style: normal; font-family: var(--sans); font-size: 11px; color: var(--ink-mute); letter-spacing: .1em; font-weight: 400; }
.school-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.school {
  border: 1px solid var(--line-soft); background: rgba(255, 253, 248, .55);
  padding: 14px 16px; transition: .18s; display: flex; flex-direction: column; gap: 3px;
}
.school:hover { border-color: var(--cinnabar-soft); background: var(--card); box-shadow: var(--shadow); }
.school b { font-weight: 500; font-size: 15px; letter-spacing: .04em; }
.school span { font-family: var(--sans); font-size: 11px; color: var(--ink-mute); letter-spacing: .04em; }
.school .cnt { color: var(--cinnabar); }
.school .cnt.zero { color: var(--ink-mute); }

/* ---------- 面包屑 ---------- */
.crumb {
  font-family: var(--sans); font-size: 12.5px; color: var(--ink-mute);
  padding: 26px 0 0; letter-spacing: .06em; display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.crumb a:hover { color: var(--cinnabar); }
.crumb i { font-style: normal; opacity: .5; }

/* ---------- 页头 ---------- */
.page-head { padding: 22px 0 34px; border-bottom: 1px solid var(--line-soft); margin-bottom: 38px; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: .1em; margin: 8px 0 12px; font-weight: 600; }
.page-head p { margin: 0; color: var(--ink-soft); font-size: 14.5px; max-width: 44em; line-height: 1.9; }
.page-meta { font-family: var(--sans); font-size: 12px; color: var(--ink-mute); letter-spacing: .1em; display: flex; gap: 18px; flex-wrap: wrap; }
.page-meta b { color: var(--cinnabar); font-weight: 600; }

/* ---------- 年份 / 班级 ---------- */
.year-row { display: flex; gap: 0; align-items: flex-start; border-bottom: 1px dashed var(--line-soft); padding: 9px 0; }
.year-lab {
  width: 96px; flex: none; font-family: var(--sans); font-size: 12px;
  color: var(--ink-mute); letter-spacing: .06em; padding-top: 4px;
}
.year-lab b { color: var(--ink); font-weight: 600; font-size: 14.5px; letter-spacing: .05em; }
.year-lab span { display: block; font-size: 10px; color: var(--ink-mute); }

/* 双列年份网格 */
.year-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 46px; }
.year-cell {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 9px 0; border-bottom: 1px dashed var(--line-soft);
}
.year-lab-inline { width: 50px; flex: none; height: 39px; line-height: 39px; }
.year-lab-inline b {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: var(--ink); letter-spacing: .03em;
}
.class-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cls {
  min-width: 62px; padding: 7px 12px; text-align: center;
  border: 1px solid var(--line); font-family: var(--sans); font-size: 12.5px;
  color: var(--ink-soft); background: rgba(255, 253, 248, .5); transition: .16s; letter-spacing: .04em;
}
.cls:hover { border-color: var(--ink); color: var(--ink); }
.cls.has { border-color: var(--cinnabar-soft); color: var(--cinnabar); background: rgba(166, 51, 43, .045); }
.cls.empty { color: var(--ink-mute); opacity: .62; border-style: dashed; }
.cls.empty:hover { opacity: 1; border-color: var(--ink-mute); }
.cls.rel { display: inline-flex; align-items: center; gap: 5px; }

/* 每届超过 3 个班：其余折叠在「⋯」后面，点开原地铺开 */
.cls-extra { display: contents; }
.cls.more {
  min-width: 46px; padding: 7px 10px; border-style: dotted; background: transparent;
  cursor: pointer; color: var(--ink-mute); font-family: var(--sans); letter-spacing: .1em;
}
.cls.more:hover { color: var(--cinnabar); border-color: var(--cinnabar-soft); }
[hidden] { display: none !important; }

/* ---------- 书页（班级名录） ---------- */
.book {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(60, 45, 20, .05), 0 18px 46px rgba(60, 45, 20, .09);
  padding: 44px 46px 34px;
  position: relative;
  min-height: 420px;
}
.book::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--cinnabar), rgba(166, 51, 43, 0));
  opacity: .7;
}
.book-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 6px;
  font-family: var(--sans); font-size: 11.5px; color: var(--ink-mute); letter-spacing: .14em;
}
.book-body { padding: 6px 0; }

.entry {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 4px; border-bottom: 1px dotted var(--line-soft);
  transition: .16s;
}
.entry:last-child { border-bottom: 0; }
.entry:hover { background: rgba(166, 51, 43, .03); }
.entry-no {
  font-family: var(--sans); font-size: 11.5px; color: var(--ink-mute);
  width: 30px; flex: none; letter-spacing: .04em;
}
.entry-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--paper-deep); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--ink-mute); overflow: hidden;
}
.entry-avatar img { width: 100%; height: 100%; object-fit: cover; }
.entry-main { flex: 1; min-width: 0; }
.entry-main b { font-weight: 500; font-size: 16.5px; letter-spacing: .08em; }
.entry-main p {
  margin: 2px 0 0; font-family: var(--sans); font-size: 12px; color: var(--ink-mute);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.entry-code { font-family: var(--sans); font-size: 11px; color: var(--gold); letter-spacing: .06em; flex: none; }

.pager {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-family: var(--sans); font-size: 12.5px; color: var(--ink-mute);
}
.pager-btns { display: flex; gap: 8px; }
.pager button {
  border: 1px solid var(--line); background: transparent; padding: 7px 16px;
  font-size: 12.5px; color: var(--ink-soft); font-family: var(--sans); transition: .16s;
}
.pager button:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.pager button:disabled { opacity: .35; cursor: default; }

/* ---------- 一人一档 ---------- */
.dossier {
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(60, 45, 20, .05), 0 18px 46px rgba(60, 45, 20, .09);
  padding: 52px 56px;
  display: grid; grid-template-columns: 180px 1fr; gap: 44px;
  position: relative;
}
.dossier::after {
  content: ""; position: absolute; inset: 12px; border: 1px solid var(--line-soft); pointer-events: none;
}
.dossier-photo {
  width: 180px; height: 220px; border: 1px solid var(--line);
  background: var(--paper-deep); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute); font-family: var(--sans); font-size: 12px; text-align: center; padding: 10px;
  position: relative; z-index: 1;
}
.dossier-photo img { width: 100%; height: 100%; object-fit: cover; }
.dossier-main { position: relative; z-index: 1; }
.dossier-code {
  font-family: var(--sans); font-size: 12px; letter-spacing: .24em; color: var(--gold); margin-bottom: 6px;
}
.dossier-name { font-size: 38px; letter-spacing: .18em; margin: 0 0 14px; font-weight: 600; }
.dossier-meta {
  display: grid; grid-template-columns: 88px 1fr; gap: 6px 18px;
  font-size: 14.5px; padding: 18px 0 22px; border-top: 1px solid var(--line-soft);
}
.dossier-meta dt { font-family: var(--sans); font-size: 12.5px; color: var(--ink-mute); letter-spacing: .1em; }
.dossier-meta dd { margin: 0; letter-spacing: .04em; }
.dossier-bio { font-size: 15px; line-height: 2.05; color: var(--ink-soft); }
.dossier-bio.empty {
  color: var(--ink-mute); font-family: var(--sans); font-size: 13px;
  border: 1px dashed var(--line); padding: 20px; text-align: center; background: rgba(241, 235, 222, .4);
}

/* ---------- 表单 ---------- */
.form-card {
  background: var(--card); border: 1px solid var(--line); padding: 44px 46px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 26px; }
.field label {
  display: block; font-family: var(--sans); font-size: 12.5px; color: var(--ink-soft);
  letter-spacing: .14em; margin-bottom: 9px;
}
.field label em { color: var(--cinnabar); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: var(--serif); font-size: 15px;
  border: 1px solid var(--line); background: rgba(247, 243, 234, .55);
  color: var(--ink); outline: none; transition: .18s; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-mute) 50%), linear-gradient(135deg, var(--ink-mute) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.9; }
.field .hint { font-family: var(--sans); font-size: 11.5px; color: var(--ink-mute); margin-top: 7px; letter-spacing: .04em; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }

.notice {
  border-left: 3px solid var(--gold); background: rgba(169, 139, 82, .07);
  padding: 16px 20px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.9; margin-bottom: 32px;
}
.notice b { color: var(--ink); }

/* ---------- 空态 ---------- */
.empty-state {
  text-align: center; padding: 80px 20px; color: var(--ink-mute);
  font-family: var(--sans); font-size: 13.5px; letter-spacing: .08em;
}
.empty-state .big { font-family: var(--serif); font-size: 20px; color: var(--ink-soft); letter-spacing: .16em; margin-bottom: 12px; }

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line); margin-top: 80px; padding: 46px 0 60px;
  font-family: var(--sans); font-size: 12px; color: var(--ink-mute); line-height: 2;
}
.foot-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot b { color: var(--ink-soft); font-weight: 600; letter-spacing: .1em; }
.foot a { border-bottom: 1px solid var(--line); }

/* ---------- 二维码弹层 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(29, 26, 22, .5); backdrop-filter: blur(3px);
}
.modal.on { display: flex; }
.modal-box {
  background: var(--card); padding: 40px; text-align: center; max-width: 360px; width: 100%;
  border: 1px solid var(--line);
}
.modal-box h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: .14em; font-weight: 600; }
.modal-box p { font-family: var(--sans); font-size: 12px; color: var(--ink-mute); margin: 0 0 22px; letter-spacing: .06em; }
.qr-holder { display: flex; justify-content: center; margin-bottom: 18px; }
.qr-holder canvas, .qr-holder img { display: block; }
#miniImg { border: 1px solid var(--line); background: #fff; }
.modal-url {
  font-family: var(--sans); font-size: 10.5px; color: var(--ink-mute);
  word-break: break-all; border-top: 1px solid var(--line-soft); padding-top: 14px; margin-bottom: 16px;
}

/* ---------- 索引进度 ---------- */
.progress-bar { height: 3px; background: var(--line-soft); overflow: hidden; margin-top: 10px; }
.progress-bar i { display: block; height: 100%; background: var(--cinnabar); transition: width .6s; }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.tag {
  font-family: var(--sans); font-size: 11px; letter-spacing: .08em;
  border: 1px solid var(--line); padding: 3px 9px; color: var(--ink-mute);
}
.tag.red { border-color: var(--cinnabar-soft); color: var(--cinnabar); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .school-grid { grid-template-columns: repeat(2, 1fr); }
  .prov-grid { grid-template-columns: repeat(2, 1fr); }
  .prov-grid.cols3 { grid-template-columns: 1fr; }
  .year-grid { grid-template-columns: 1fr; }
  .dossier { grid-template-columns: 1fr; gap: 26px; padding: 36px 28px; }
  .dossier-photo { width: 130px; height: 160px; }
  .book { padding: 30px 24px; }
  .form-card { padding: 30px 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(1), .stats div:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .row2, .row3 { grid-template-columns: 1fr; }
  .wrap, .topbar-in { padding: 0 18px; }
  .nav { gap: 14px; font-size: 12.5px; }
  .brand span { display: none; }
}
@media (max-width: 560px) {
  .school-grid { grid-template-columns: 1fr; }
  .prov { padding: 15px 13px; }
  .prov-name { font-size: 15px; }
  .year-lab { width: 74px; }
  .cover-title { letter-spacing: .08em; }
  .dossier-name { font-size: 28px; }
}

/* ---------------- 班级合影位 ---------------- */
.class-photo { margin: 34px 0 34px; }

/* 有照片：相纸感——白底、细边、下方一行说明 */
.class-photo .ph {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 10px 10px 0;
  box-shadow: 0 1px 2px rgba(60, 45, 20, .05);
}
.class-photo .ph img {
  display: block; width: 100%; height: auto;
  max-height: 380px; object-fit: cover;
  filter: saturate(.94) contrast(.98);
  background: var(--paper-deep);
}
.class-photo .cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 9px 2px 11px;
  font-size: 12.5px; color: var(--ink-mute); letter-spacing: .03em;
  line-height: 1.6;
}
.class-photo .cap i { font-style: normal; flex: none; opacity: .78; }

/* 空态：虚线留位，不显得残缺 */
.class-photo .void {
  border: 1px dashed #d8cdb6;
  background: rgba(255, 253, 248, .55);
  padding: 34px 24px 30px;
  text-align: center;
}
.class-photo .void-mark {
  font-size: 13px; letter-spacing: .5em; text-indent: .5em;
  color: var(--ink-mute); margin-bottom: 14px;
}
.class-photo .void-txt {
  margin: 0 auto 18px; max-width: 32em;
  font-size: 13.5px; line-height: 1.95; color: var(--ink-soft);
  text-wrap: balance;
}
.class-photo .void-btn {
  display: inline-block; padding: 7px 22px;
  border: 1px solid var(--line);
  background: var(--card); color: var(--cinnabar);
  font-size: 13px; letter-spacing: .08em;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.class-photo .void-btn:hover { border-color: var(--cinnabar-soft); background: #fff; }

@media (max-width: 640px) {
  .class-photo { margin: 18px 0 24px; }
  .class-photo .ph { padding: 7px 7px 0; }
  .class-photo .ph img { max-height: 220px; }
  .class-photo .void { padding: 26px 16px 24px; }
  .class-photo .void-txt { font-size: 13px; }
}

/* ---------------- 检索 ---------------- */
.sbar { display: flex; gap: 10px; margin: 0 0 30px; }
.sbar input {
  flex: 1; min-width: 0; padding: 15px 18px;
  font-family: var(--serif); font-size: 17px; letter-spacing: .08em;
  border: 1px solid var(--line); background: rgba(247, 243, 234, .6);
  color: var(--ink); outline: none; border-radius: 0;
  -webkit-appearance: none; appearance: none; transition: .18s;
}
.sbar input::placeholder { color: var(--ink-mute); letter-spacing: .05em; font-size: 15px; }
.sbar input:focus { border-color: var(--cinnabar); background: #fff; }
.sbar input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sbar button {
  flex: none; padding: 0 26px; cursor: pointer;
  font-family: var(--serif); font-size: 15px; letter-spacing: .16em;
  background: var(--cinnabar); color: var(--paper);
  border: 1px solid var(--cinnabar); transition: .2s;
}
.sbar button:hover { background: #8e2a24; border-color: #8e2a24; }

/* 封面里的检索条：压低一档，不与两个主按钮抢视线 */
.sbar.compact { margin: 32px 0 0; max-width: 440px; }
.sbar.compact input { padding: 11px 15px; font-size: 14.5px; background: rgba(255, 255, 255, .55); }
.sbar.compact input::placeholder { font-size: 13.5px; }
.sbar.compact button { font-size: 13.5px; padding: 0 20px; letter-spacing: .12em; }

.sres-head {
  font-family: var(--sans); font-size: 12px; color: var(--ink-mute);
  letter-spacing: .12em; margin: 0 0 14px;
}
.sres-head b { color: var(--cinnabar); font-weight: 600; font-size: 13.5px; }
.sres-note {
  font-family: var(--sans); font-size: 12.5px; color: var(--ink-mute);
  line-height: 2.1; letter-spacing: .03em;
}
.sres-note b { color: var(--ink-soft); font-weight: 500; }
.schips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.schip {
  padding: 6px 14px; cursor: pointer; background: transparent;
  border: 1px solid var(--line); color: var(--ink-soft);
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .06em; transition: .18s;
}
.schip:hover { border-color: var(--cinnabar); color: var(--cinnabar); background: rgba(166, 51, 43, .04); }
.hl { background: none; color: var(--cinnabar); font-weight: 600; }

/* 顶栏在窄屏：品牌只留主名，导航 5 项仍能一行放下 */
@media (max-width: 640px) {
  .topbar-in { padding: 0 16px; gap: 10px; }
  .brand span { display: none; }
  .brand b { font-size: 14.5px; letter-spacing: .06em; }
  .nav { gap: 13px; font-size: 12.5px; }
  .sbar.compact { max-width: none; }
  .sbar input { font-size: 16px; }
  .sbar button { padding: 0 18px; }
}

/* 检索结果：不用班级书页那 420px 的固定高度，有几条就多高 */
.book.flat { min-height: 0; }

/* 检索结果里「省 · 校 · 届别」是答案本身，窄屏也让它换行显示，不省略 */
#searchRes .entry-main p { white-space: normal; line-height: 1.65; overflow: visible; }

/* ---------------- 公司产品入口 ---------------- */
.products-sec { padding-top: 4px; }
.prod-intro {
  font-family: var(--sans); font-size: 13px; color: var(--ink-mute);
  line-height: 2; letter-spacing: .03em; max-width: 760px; margin: -12px 0 28px;
}
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prod {
  display: flex; flex-direction: column; min-height: 216px;
  padding: 24px 24px 20px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); background: rgba(255, 253, 248, .5);
  transition: .18s;
}
.prod:hover {
  background: var(--card); border-color: var(--cinnabar-soft);
  box-shadow: var(--shadow); transform: translateY(-2px);
}
.prod-grid .prod:first-child { border-color: rgba(166, 51, 43, .32); background: rgba(166, 51, 43, .035); }
.prod-tag {
  align-self: flex-start; font-family: var(--sans); font-size: 11px;
  letter-spacing: .08em; color: var(--ink-mute);
  border: 1px solid var(--line); padding: 3px 9px; margin-bottom: 18px;
}
.prod-grid .prod:first-child .prod-tag { border-color: var(--cinnabar-soft); color: var(--cinnabar); }
.prod-name { font-size: 21px; letter-spacing: .1em; font-weight: 600; margin: 0 0 12px; }
.prod-desc {
  flex: 1; font-family: var(--sans); font-size: 12.5px;
  color: var(--ink-soft); line-height: 1.95; margin: 0 0 18px;
}
.prod-act {
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .08em;
  color: var(--cinnabar); border-top: 1px solid var(--line-soft); padding-top: 14px;
}
.prod-soon { cursor: default; opacity: .78; }
.prod-soon:hover { transform: none; box-shadow: none; background: rgba(255, 253, 248, .5); border-color: var(--line); }
.prod-soon .prod-act { color: var(--ink-mute); }

/* 小程序卡：卡内直接放官方小程序码，点开可放大；手机端长按图片即可识别 */
.prod-app { cursor: default; }
.prod-note {
  font-family: var(--sans); font-size: 11px; color: var(--ink-mute);
  letter-spacing: .04em; line-height: 1.9; margin-top: 8px;
}
.prod-qr {
  margin-top: auto; padding-top: 16px; text-align: center;
  border-top: 1px solid var(--line-soft);
}
.prod-qr button {
  display: inline-block; padding: 0; border: 0; background: none; cursor: zoom-in;
}
.prod-qr img {
  display: block; width: 112px; height: 112px; margin: 0 auto 10px;
  padding: 5px; background: #fff; border: 1px solid var(--line);
  transition: .18s;
}
.prod-qr button:hover img {
  border-color: var(--cinnabar-soft); transform: translateY(-2px); box-shadow: var(--shadow);
}
.prod-qr-canvas { display: flex; justify-content: center; margin-bottom: 10px; }
.prod-qr-canvas canvas {
  display: block; padding: 5px; background: #fff; border: 1px solid var(--line);
}
.prod-qr span {
  display: block; font-family: var(--sans); font-size: 11px;
  letter-spacing: .06em; color: var(--ink-mute);
}
@media (max-width: 900px) {
  .prod-grid { grid-template-columns: 1fr; }
  .prod { min-height: 0; }
  .prod-qr img { width: 132px; height: 132px; }
  .prod-qr { padding-top: 18px; margin-top: 18px; }
}

/* ---------------- 全班名单页 ---------------- */
.roster-count {
  font-family: var(--sans); font-size: 12.5px; color: var(--cinnabar);
  letter-spacing: .04em; margin-top: 10px;
}
.roster-preview { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.roster-preview span {
  font-family: var(--sans); font-size: 12px; color: var(--ink-soft);
  border: 1px solid var(--line); padding: 2px 8px; background: rgba(255, 253, 248, .75);
}
.roster-preview span.more { border-style: dashed; color: var(--ink-mute); }
.roster-agree {
  display: flex; gap: 9px; align-items: flex-start; cursor: pointer;
  font-family: var(--sans); font-size: 12.5px; color: var(--ink-soft);
  line-height: 1.85; margin-top: 20px;
}
.roster-agree input { margin: 4px 0 0; accent-color: var(--cinnabar); }
