/* ==========================================================
   电气自动化学院学习部 · 样式表
   ----------------------------------------------------------
   设计方向：书卷式。墨绿主色 + 米白纸底 + 金铜点缀，
   衬线标题（大标题 / 分区标题 / 序号 / 引文）+ 无衬线正文，
   分区居中、短横分隔的「编辑式」排版。
   想换品牌色，只改下面 :root 里的 --brand / --gold 两行就够了。
   ========================================================== */

:root {
  /* 品牌色：墨绿。用在顶部条、首页大屏、页脚、按钮 */
  --brand:        #14532d;
  --brand-deep:   #0f3d22;
  --brand-deeper: #0a2c18;
  --brand-mid:    #1c6b3a;
  --brand-soft:   #e9efe4;
  --brand-line:   #cddbc6;

  /* 强调色：金铜。按对比度红线，只做短横 / 序号 / 大数字 / 描边，
     不在金色底上放白字（正文链接与按钮一律用 --brand） */
  --gold:         #c8922e;
  --gold-deep:    #9a6f1f;
  --gold-light:   #e0b066;
  --gold-soft:    #f8f0dc;
  --gold-line:    #e7d7b4;

  /* 墨色与中性：偏绿的暖灰，跟米白底同族 */
  --ink:    #1a1f1a;
  --ink-2:  #4a4f47;
  --muted:  #7c8078;

  --bg:        #f5f0e6;
  --surface:   #fffdf7;
  --surface-2: #efe8d9;
  --line:      #e3dccb;
  --line-2:    #cfc6b0;

  --danger:  #a23b2e;

  --radius:      10px;
  --radius-sm:   8px;
  --radius-lg:   18px;
  --radius-pill: 999px;
  --maxw:        1140px;

  --shadow-sm: 0 1px 2px rgba(10,44,24,.05);
  --shadow:    0 4px 16px -6px rgba(10,44,24,.14);
  --shadow-lg: 0 22px 48px -22px rgba(10,44,24,.30);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  /* 衬线只给标题/序号/引文用，正文仍用 --sans，保证手机上照样好读 */
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "STSong", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;

  /* 标题字号阶梯：三档统一全站 h1 / h2 / h3 */
  --fs-h1: clamp(34px, 4.9vw, 52px);
  --fs-h2: clamp(25px, 3.1vw, 33px);
  --fs-h3: 19px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 表格里的数字等宽，看起来更整齐 */
  font-variant-numeric: tabular-nums;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--brand); color: #fff; padding: 10px 18px;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------------- 排版基调 ---------------- */

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
/* 大标题用衬线（书卷气）；卡片标题、正文保持无衬线，手机上更好读 */
h1, h2 { font-family: var(--serif); }

/* 小标签：居中排布，上方一条金色短横——「编辑式」分区标记 */
.kicker {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 12px; text-align: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: .26em;
  color: var(--brand);
  margin: 0;
}
.kicker::before {
  content: ""; width: 30px; height: 3px; border-radius: 2px;
  background: var(--gold); flex: none;
}
/* 深色背景上文字转金铜色（短横本来就是金的，不用改） */
.hero .kicker { color: var(--gold-light); }

/* ---------------- 顶栏 ---------------- */

.topbar {
  background: var(--brand-deeper);
  color: rgba(245,240,230,.74);
  font-size: 13px;
  letter-spacing: .03em;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 26px; flex-wrap: wrap;
  min-height: 40px;
}
.topbar .tb-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar .tb-item b { color: var(--gold-light); font-weight: 600; }

/* ---------------- 主菜单 ---------------- */

.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,253,247,.94);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-head.is-scrolled { box-shadow: 0 6px 24px -18px rgba(10,44,24,.5); }

/* 阅读进度：贴在菜单底边的一条金线，随滚动增长。整页范围的状态提示 */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.site-head.is-scrolled .scroll-progress { opacity: 1; }

/* 品牌居中竖排，导航收在下面一行做成胶囊 */
.head-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding-top: 14px; padding-bottom: 14px;
  min-height: 78px;
  transition: min-height .3s var(--ease);
}
.site-head.is-scrolled .head-inner { min-height: 66px; }

.brand {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px; color: inherit;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 44px; height: 44px; flex: none;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 22px; font-weight: 600; line-height: 1;
  box-shadow: 0 6px 16px -8px rgba(10,44,24,.7);
  transition: background .3s var(--ease);
}
.brand:hover .brand-mark { background: var(--brand-deep); }

/* 后台传了 Logo 就用图片，没传还是那个字 */
.brand-mark.is-logo { background: none; box-shadow: none; padding: 0; overflow: hidden; }
.brand-mark.is-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.foot-brand .brand-mark.is-logo { background: none; }

.brand-text { display: flex; flex-direction: column; align-items: center; line-height: 1.32; min-width: 0; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 17.5px; color: var(--ink); }
.brand-sub { font-size: 11.5px; color: var(--muted); letter-spacing: .1em; }

/* 导航做成一行胶囊，居中 */
.nav {
  margin-left: 0; display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px;
}

.nav a {
  position: relative;
  padding: 9px 18px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.nav a:hover { color: var(--brand); background: var(--brand-soft); border-color: var(--brand-line); text-decoration: none; }
.nav a.is-active { color: #fff; background: var(--brand); border-color: var(--brand); }

/* 导航有 9 项。在"还没收进汉堡菜单、但宽度也不算宽"的这一段把胶囊收紧，
   免得几项挤在一起 */
@media (min-width: 1001px) and (max-width: 1240px) {
  .nav a { padding: 8px 13px; font-size: 14px; }
}

.nav-toggle {
  display: none; align-self: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2); background: var(--surface);
  border-radius: var(--radius-pill); cursor: pointer;
  color: var(--ink); font-size: 18px; line-height: 1;
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: inherit; font-size: 15.5px; font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease),
              box-shadow .22s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -14px rgba(10,44,24,.9); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; box-shadow: 0 14px 30px -14px rgba(10,44,24,.95); }

/* 强调按钮：墨绿底 + 金铜描边。金色底上不放白字——达不到 AA 对比度 */
.btn-accent { background: var(--brand); color: #fff; border-color: var(--gold); box-shadow: 0 10px 24px -14px rgba(10,44,24,.9); }
.btn-accent:hover { background: var(--brand-deep); color: #fff; border-color: var(--gold-light); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: transparent; }

/* 深色背景上的浅色描边按钮 */
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.btn-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.7); }

.btn-lg { padding: 16px 36px; font-size: 16.5px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------------- 首页大屏（扉页） ---------------- */

.hero {
  position: relative;
  background: linear-gradient(155deg, var(--brand-deeper) 0%, var(--brand-deep) 44%, var(--brand-mid) 100%);
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* 背景细网格：持续缓慢斜向漂移，让整块大屏一直是"活的" */
.hero::before {
  content: "";
  position: absolute; inset: -80px;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 30% 0%, #000 0%, transparent 72%);
  animation: gridDrift 56s linear infinite;
  pointer-events: none;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 62px 62px, 62px 62px; }
}

/* 金色光晕：一边缓慢呼吸，一边跟着鼠标走。
   位移由 JS 逐帧平滑（所以这里不加 transition，否则会重一层、变迟钝）；
   呼吸只改透明度，跟位移的 transform 不冲突。 */
.hero::after {
  content: "";
  position: absolute; top: -240px; right: -160px;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,146,46,.26) 0%, rgba(200,146,46,0) 66%);
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  animation: glowPulse 9s ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
}
@keyframes glowPulse {
  0%, 100% { opacity: .72; }
  50%      { opacity: 1; }
}

.hero-inner { position: relative; z-index: 1; padding: 88px 26px 84px; }

/* 扉页单列居中：大标题、副标题、双按钮都居中排 */
.hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 34px; max-width: 720px; margin: 0 auto; text-align: center;
}

/* 居中之后不再用文字视差：会跟下面紧贴的纸笺带打架 */
.hero-copy { transform: none; opacity: 1; }

.hero h1 {
  color: #fff;
  font-family: var(--serif);
  font-size: var(--fs-h1);
  line-height: 1.28;
  letter-spacing: -.01em;
  font-weight: 600;
  margin: 26px auto 22px;
}
.hero h1 em { font-style: normal; color: var(--gold-light); }

.hero p.lead {
  font-size: 17px; line-height: 1.95;
  color: rgba(245,240,230,.82); margin: 0 auto 38px; max-width: 34em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------------- 纸笺带（值班信息 + 数字） ----------------
   扉页下面紧贴的一条米白"纸条"，跟紧随其后的 .statsband 同底同宽，
   视觉上连成一条。三项值班信息居中排，中间用金铜细线分隔。 */
.deskband {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
/* 顶部一条金铜细线，把纸条与扉页分开 */
.deskband::before {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
}
.deskband-inner {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.desk-item {
  padding: 26px;
  border-left: 1px solid var(--gold-line);
  text-align: center;
}
.desk-item:first-child { border-left: 0; }
.desk-item .dk {
  display: block; margin-bottom: 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .18em; color: var(--muted);
}
.desk-item .dv {
  display: block; font-size: 15.5px; line-height: 1.6;
  color: var(--brand-deep); font-weight: 600;
}

/* ---------------- 数据带（接在纸笺带下面，同一条纸） ---------------- */

.statsband {
  background: var(--surface);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--line);
}
/* 紧跟在纸笺带下面时，是同一张纸：不要再多一条分界线 */
.deskband + .statsband { border-top: 0; }
.statsband-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.statsband .stat {
  padding: 28px 16px;
  border-left: 1px solid var(--gold-line);
  text-align: center;
}
.statsband .stat:first-child { border-left: 0; }
.statsband .stat b {
  display: block;
  font-family: var(--serif);
  font-size: 32px; font-weight: 600; line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--gold-deep);
  margin-bottom: 6px;
}
.statsband .stat span { font-size: 13.5px; color: var(--muted); letter-spacing: .03em; }

/* ---------------- 区块 ---------------- */

.sec { padding: 84px 0; }
.sec + .sec { border-top: 1px solid var(--line); }

/* 分区标题居中：标题下面一条金色短横，是「编辑式」排版的分隔记号 */
.sec-head { margin: 0 auto 44px; max-width: 42em; text-align: center; }
.sec-head h2 {
  position: relative;
  font-family: var(--serif);
  font-size: var(--fs-h2);
  line-height: 1.34; font-weight: 600; letter-spacing: -.01em;
  margin: 16px 0 18px; padding-bottom: 18px;
}
.sec-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 54px; height: 3px; border-radius: 2px; background: var(--gold);
}
.sec-head p { margin: 0 auto; color: var(--ink-2); font-size: 16px; max-width: 40em; }

.sec-foot { margin-top: 38px; text-align: center; }

/* ---------------- 卡片 ---------------- */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 纸卡：左侧一道金铜细线当书签，去掉 3D 倾斜和顶部粗色条 */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .28s var(--ease), box-shadow .28s var(--ease),
              transform .28s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card h3 { font-size: 18px; margin: 0 0 11px; font-weight: 600; line-height: 1.5; }
.card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.85; }

a.card:hover {
  text-decoration: none;
  border-color: var(--brand-line);
  border-left-color: var(--gold);
  box-shadow: var(--shadow-lg);
}

/* 序号：衬线金色数字，不再是圆徽 */
.card-num {
  font-family: var(--serif);
  font-size: 26px; font-weight: 600; line-height: 1;
  color: var(--gold);
  align-self: flex-start;
  margin-bottom: 16px;
}

/* ---------------- 内容卡（活动/学习园地） ---------------- */

.item-card { padding: 0; }
.item-cover { aspect-ratio: 3 / 2; overflow: hidden; background: var(--brand-soft); }
.item-cover img {
  width: 100%; height: 100%; object-fit: cover;
}

.item-body { padding: 26px 28px 24px; display: flex; flex-direction: column; flex: 1; }

.item-top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.item-no {
  font-family: var(--serif); font-size: 15px; font-weight: 600;
  letter-spacing: .04em; color: var(--gold);
}
.cover-type {
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  color: var(--muted);
}
.cover-type::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 14px; height: 1px; background: var(--line-2); margin-right: 10px;
}
.item-body h3 {
  font-family: var(--serif);
  font-size: 19.5px; line-height: 1.5; font-weight: 600;
  margin: 0 0 11px;
  transition: color .25s var(--ease);
}
.item-card:hover .item-body h3 { color: var(--brand); }
.item-body .sum { color: var(--ink-2); font-size: 14.5px; margin: 0 0 20px; flex: 1; }

.item-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-top: 15px; border-top: 1px solid var(--line);
}
.item-body .meta {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--muted); letter-spacing: .04em;
}

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 12px; font-weight: 500; color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 11px; border-radius: var(--radius-pill);
  letter-spacing: .02em;
}
.tag.accent { color: var(--gold-deep); background: var(--gold-soft); }

/* 工作原则：左边一道暖色细线 */
.principle-card { border-left: 3px solid var(--gold); }
.principle-card h3 { font-size: 18px; }

/* ---------------- 信息表 ---------------- */

.ledger {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ledger-row {
  display: flex; gap: 24px; align-items: baseline;
  padding: 17px 24px;
  border-bottom: 1px solid var(--line);
  transition: background .22s var(--ease);
}
.ledger-row:last-child { border-bottom: 0; }
.ledger-row:hover { background: var(--surface-2); }
.ledger-row .k {
  flex: none; width: 168px;
  font-size: 13.5px; font-weight: 500; color: var(--muted); letter-spacing: .05em;
}
.ledger-row .v { flex: 1; font-size: 15.5px; color: var(--ink-2); }
.ledger-row.is-hot { background: var(--brand-soft); }
.ledger-row.is-hot .v { color: var(--brand); font-weight: 600; }
.ledger-row.is-urgent { background: #f8ece6; }
.ledger-row.is-urgent .v { color: var(--danger); font-weight: 600; }

/* ---------------- 「职责边界：我们做不了什么」 ---------------- */

.boundary {
  margin-top: 44px; padding: 30px 34px;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.boundary h2 { font-size: 21px; font-weight: 600; margin: 0 0 14px; color: var(--brand-deep); }
.boundary p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.boundary p:last-child { margin-bottom: 0; }
.boundary strong { color: var(--brand-deep); font-weight: 600; }

/* ---------------- 常见问题 ---------------- */

.faq-group { margin-bottom: 50px; }
.faq-group:last-of-type { margin-bottom: 0; }
.faq-group h2 {
  font-size: 21px; font-weight: 600;
  margin: 0 0 4px; padding-bottom: 15px;
  border-bottom: 1px solid var(--gold-line);
}

.faq-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.faq-group .faq-item:last-child,
.faq-list .faq-item:last-child { border-bottom: 0; }

.faq-q {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 17.5px; font-weight: 600; line-height: 1.55;
  margin: 0 0 12px; color: var(--ink);
}
/* 金色引号当题首标记，不要色块徽章 */
.faq-q::before {
  content: "“"; flex: none;
  font-family: var(--serif);
  font-size: 27px; line-height: 1; font-weight: 600;
  color: var(--gold);
  transform: translateY(3px);
}
.faq-a { margin: 0; padding-left: 30px; color: var(--ink-2); font-size: 15px; }
.faq-a strong { color: var(--ink); font-weight: 600; }

/* ---------------- 部门公告 ---------------- */

/* 公告做成「公告栏」：一整块面板 + 一条条公告，比一堆卡片更像正式通知。
   左边一栏是日期（大号「09.18」+ 小号年份，官方文件那种排法），
   右边是标题和正文；条目之间用一条细线分开。 */
.notice-board {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.notice-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0 22px;
  padding: 24px 28px;
  border-top: 1px solid var(--line);
  transition: background .2s var(--ease);
}
.notice-row:first-child { border-top: 0; }
a.notice-row { text-decoration: none; }
a.notice-row:hover { background: var(--surface-2); text-decoration: none; }

/* 置顶那条：左边压一条金线 + 淡淡的金色底，一眼能认出来 */
.notice-row.is-pinned {
  box-shadow: inset 3px 0 0 var(--gold);
  background: linear-gradient(90deg, rgba(200, 146, 46, .06), rgba(200, 146, 46, 0) 44%);
}
a.notice-row.is-pinned:hover {
  background: linear-gradient(90deg, rgba(200, 146, 46, .1), rgba(200, 146, 46, 0) 48%);
}

/* 日期块：一张米色纸笺，左边一道金线 */
.notice-when {
  align-self: start;
  background: var(--surface-2);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
}
.notice-when b {
  display: block; font-family: var(--serif);
  font-size: 19px; font-weight: 600; line-height: 1.2;
  color: var(--brand); font-variant-numeric: tabular-nums;
}
.notice-when span {
  display: block; margin-top: 3px;
  font-size: 11.5px; color: var(--muted);
  font-family: var(--mono); letter-spacing: .1em;
}

.notice-main { min-width: 0; }
.notice-main h3 {
  font-size: 17.5px; font-weight: 600; line-height: 1.55;
  margin: 0; color: var(--ink);
}
.notice-main h3 strong { font-weight: 600; color: var(--ink); }

.notice-pin {
  display: inline-block; vertical-align: 2px; margin-right: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  color: var(--gold-deep); background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 3px; padding: 2px 6px; line-height: 1.4;
}

/* 首页那一栏：同一块公告栏，只是排得更紧凑 */
.notice-board.is-compact .notice-row {
  grid-template-columns: 74px 1fr; gap: 0 18px; padding: 16px 22px;
}
.notice-board.is-compact .notice-when b { font-size: 16px; }
.notice-board.is-compact .notice-main h3 { font-size: 16.5px; }
.notice-board.is-compact .notice-more { margin-top: 5px; font-size: 13.5px; }

.notice-body { margin-top: 12px; max-width: 46em; }
.notice-body p { margin: 0 0 10px; font-size: 15px; color: var(--ink-2); }
.notice-body p:last-child { margin-bottom: 0; }
.notice-body strong, .notice-more strong { color: var(--ink); font-weight: 600; }

.notice-more { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* 正文里的图片（公告、活动详情共用）：沿用照片库那套「点开看大图」
   （class="shot" 就是开关），但要按原比例完整显示，不能像缩略图那样裁成 4:3 */
.inline-fig { margin: 18px 0 20px; }
.inline-fig .shot {
  aspect-ratio: auto;
  border-radius: var(--radius);
  background: var(--brand-soft);
}
.inline-fig .shot img {
  width: 100%; height: auto; max-height: 640px;
  object-fit: contain;
}
.inline-fig .shot:hover img { transform: none; }
.inline-fig figcaption { margin-top: 9px; font-size: 13px; color: var(--muted); }
/* 正文里的视频：宽跟随正文、圆角、深色底，点一下就播 */
.inline-video {
  width: 100%; max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--brand-deeper);
  display: block; margin: 4px 0 4px;
}

/* ---------------- 照片 ---------------- */

.photo { margin: 44px 0 0; }
.photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-cap { font-size: 12.5px; color: var(--muted); margin-top: 12px; letter-spacing: .05em; }
.group-photo img { max-height: 450px; object-fit: cover; }

/* ---------------- 提示条 ---------------- */

.alert {
  border-radius: var(--radius-sm); padding: 15px 20px; font-size: 14.5px;
  margin-bottom: 22px; border: 1px solid; border-left-width: 3px;
}
.alert-error { background: #f8ece6; border-color: #edd9cf; border-left-color: var(--danger); color: var(--danger); }
.alert-ok    { background: var(--brand-soft); border-color: var(--brand-line); border-left-color: var(--brand); color: var(--brand-deep); }
.alert-warn  { background: var(--gold-soft); border-color: var(--gold-line); border-left-color: var(--gold); color: var(--gold-deep); }

.callout {
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px; font-size: 15px; color: #6b4d18; line-height: 1.85;
}
.callout strong { color: var(--gold-deep); font-weight: 600; }

/* ---------------- 正文 ---------------- */

.prose { max-width: 40em; }
.prose h1 {
  font-size: clamp(27px, 3.6vw, 38px); line-height: 1.3;
  letter-spacing: -.02em; font-weight: 700; margin: 0 0 18px;
}
.prose h2 { font-size: 22px; margin: 40px 0 12px; font-weight: 600; }
.prose p  { margin: 0 0 18px; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }

.article-head { padding-bottom: 26px; margin-bottom: 34px; border-bottom: 1px solid var(--line-2); }

/* 内容详情：正文配图
   （.article-cover 是"封面大图放在详情页最上面"那版的样式，2026-09-20 起
    封面只当列表卡片的缩略图、不再进文章，这条暂时没用上——样式留着，
    哪天想再把封面放到文章开头，加回去就行） */
.article-cover { margin: 0 0 32px; max-width: 900px; }
.article-photos { margin-top: 38px; }
.article-head .meta {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  margin-top: 12px; letter-spacing: .04em;
}

.crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; letter-spacing: .04em; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filters a {
  font-size: 14px; font-weight: 500; letter-spacing: .04em;
  padding: 9px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  transition: all .22s var(--ease);
}
.filters a:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.filters a.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

.empty {
  text-align: center; padding: 64px 24px; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15px; background: var(--surface);
}

/* ---------------- 部门人员 ---------------- */

/* ---------------- 部门人员：团队卡片 ----------------
   企业官网的"团队名录"式样：整幅照片压在卡片上半部，
   名字和职务压在下面，悬停时照片轻轻放大、卡片抬起。 */

.team-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.member-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  /* 抬起走 --lift（跟 .card 一套），入场动画占用的 translate 不受影响 */
  transform: translateY(var(--lift, 0px));
  transition: border-color .28s var(--ease), box-shadow .28s var(--ease),
              transform .32s var(--ease);
}
.member-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform .38s var(--ease);
  z-index: 1;
}
.member-card:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-lg);
  --lift: -4px;
}
.member-card:hover::before { transform: scaleX(1); }

.member-face {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-soft), var(--surface-2));
}
.member-face img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease);
}
.member-card:hover .member-face img { transform: scale(1.06); }
/* 悬停时照片下缘压一层很淡的品牌色，跟卡片上半部连成一体 */
.member-face::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,83,45,0) 58%, rgba(20,83,45,.16));
  opacity: 0; transition: opacity .4s var(--ease);
}
.member-card:hover .member-face::after { opacity: 1; }

/* 没传照片：品牌色渐变底上浮一个圆底的姓氏首字 */
.member-initial {
  position: absolute; inset: 0; margin: auto;
  width: 86px; height: 86px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--brand-line);
  box-shadow: 0 10px 24px rgba(10,44,24,.12);
  color: var(--brand);
  font-size: 36px; font-weight: 600; line-height: 1;
}

.member-body { padding: 18px 20px 22px; }
.member-body h3 {
  font-size: 17.5px; font-weight: 700; letter-spacing: -.01em;
  margin: 0 0 6px;
}
.member-role {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--gold-deep);
  letter-spacing: .08em;
  margin: 0 0 10px;
}
.member-role::before {
  content: ""; width: 16px; height: 2px; flex: none;
  background: var(--gold); border-radius: 1px;
}
.member-intro { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.8; }

/* 「QQ 联系」小按钮：金铜色描边胶囊，悬停填色 */
.member-qq {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .05em;
  color: var(--gold-deep);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 6px 14px;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.member-qq::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); flex: none;
}
.member-qq:hover {
  background: var(--gold); border-color: var(--gold); color: #fff;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.member-privacy { margin-top: 52px; }

/* ---------------- 历届活动照片库 ---------------- */

.year-jump { align-items: center; }
.year-count {
  font-size: 13px; color: var(--muted);
  margin-left: 8px; letter-spacing: .04em;
}

.year-block { margin-bottom: 58px; scroll-margin-top: 90px; }
.year-block:last-of-type { margin-bottom: 0; }
.year-title {
  font-size: 25px; font-weight: 700; letter-spacing: -.01em;
  margin: 0 0 26px; padding-bottom: 13px;
  border-bottom: 2px solid var(--brand);
}

.album { margin-bottom: 38px; }
.album:last-child { margin-bottom: 0; }
.album-name { font-size: 16px; font-weight: 600; margin: 0 0 14px; }
.album-name span {
  font-size: 12.5px; font-weight: 400; color: var(--muted);
  margin-left: 8px; letter-spacing: .06em;
}

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* 照片格：方图 + 一圈米白边，做出「相纸」的感觉 */
.shot {
  position: relative; display: block; padding: 3px; cursor: zoom-in;
  border: 1px solid var(--line-2);
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
  aspect-ratio: 1 / 1;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.shot img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  transition: transform .6s var(--ease);
}
.shot:hover img { transform: scale(1.06); }
.shot:hover { box-shadow: var(--shadow); border-color: var(--gold-line); }
/* 照片库里的视频：复用 .shot 的网格尺寸，填充播放（不触发放大浮层） */
.shot-video {
  width: 100%; height: 100%; object-fit: cover;
  background: var(--brand-deeper); display: block; border: 0;
  border-radius: calc(var(--radius) - 4px);
}

.shot-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 12px 10px;
  background: linear-gradient(to top, rgba(10,44,24,.82), transparent);
  color: #fff; font-size: 12.5px; text-align: center; line-height: 1.5;
  opacity: 0; transition: opacity .3s var(--ease);
}
.shot:hover .shot-cap, .shot:focus-visible .shot-cap { opacity: 1; }

/* 点开看大图 */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10,44,24,.95);
  display: grid; place-items: center;
  padding: 56px 24px 32px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; text-align: center; }
.lightbox img {
  max-width: 100%; max-height: 76vh;
  border-radius: var(--radius);
  box-shadow: 0 44px 80px -30px rgba(0,0,0,.75);
}
.lightbox figcaption { color: #e6dcc8; font-size: 14px; margin-top: 18px; line-height: 1.7; }

.lb-close {
  position: absolute; top: 18px; right: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.32); background: transparent;
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  transition: background .22s var(--ease);
}
.lb-close:hover { background: rgba(255,255,255,.16); }

body.lb-open { overflow: hidden; }

.has-js .lightbox:not([hidden]) img { animation: lbIn .34s var(--ease) both; }
@keyframes lbIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- 页脚 ---------------- */

.site-foot {
  background: var(--brand-deeper);
  color: rgba(245,240,230,.72);
  padding: 68px 0 0;
  font-size: 14px;
  text-align: center;
}
.site-foot a { color: rgba(245,240,230,.86); }
.site-foot a:hover { color: #fff; text-decoration: none; }

/* 居中堆叠：原来是左对齐三栏，现在排成一列，依次落下来 */
.foot-grid {
  display: grid; grid-template-columns: 1fr; gap: 34px;
  max-width: 720px; margin: 0 auto;
}
.foot-grid h4 {
  font-family: var(--serif);
  font-size: 12.5px; font-weight: 600; letter-spacing: .2em;
  color: rgba(245,240,230,.5); margin: 0 0 20px;
}
.foot-brand { display: flex; align-items: center; justify-content: center; gap: 13px; margin-bottom: 18px; }
.foot-brand .brand-mark { background: rgba(255,255,255,.14); box-shadow: none; }
.foot-brand strong { color: #fff; font-weight: 600; font-size: 17px; }
.foot-grid p { margin: 0 0 10px; line-height: 1.85; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid ul li { display: inline-block; margin: 0 10px 12px; }

.foot-sub { color: rgba(245,240,230,.52); font-size: 13px; }

/* 值班那一格：原来放的是热线号码，现在改成值班时间与地点 */
.foot-help {
  display: inline-block;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.foot-help b {
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  color: var(--gold-light);
}
.foot-help .foot-note { margin: 8px 0 0; font-size: 12.5px; color: rgba(245,240,230,.6); }

.foot-bottom {
  margin-top: 52px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px; color: rgba(245,240,230,.5);
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  letter-spacing: .04em;
  padding: 24px 0 30px;
}

/* ==========================================================
   动效
   ----------------------------------------------------------
   全部用 .has-js 打头：JS 没加载出来时内容照常显示。
   ========================================================== */

/* 入场用 translate 这个独立属性，不用 transform——
   这样卡片的 transform（鼠标倾斜 + 抬起）不会把入场位移挤掉。 */
.has-js .rise { opacity: 0; translate: 0 22px; }
.has-js .rise.is-in {
  opacity: 1; translate: 0 0;
  transition: opacity .8s var(--ease), translate .8s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* 首屏：加载后依次升起 */
.has-js .hero-copy > * {
  opacity: 0; transform: translateY(18px);
  animation: riseIn .9s var(--ease) forwards;
}
.has-js .hero-copy > *:nth-child(1) { animation-delay: .04s; }
.has-js .hero-copy > *:nth-child(2) { animation-delay: .16s; }
.has-js .hero-copy > *:nth-child(3) { animation-delay: .28s; }
.has-js .hero-copy > *:nth-child(4) { animation-delay: .40s; }

/* 大标题单独一套：从模糊到清晰。整个首屏最重的一击 */
.has-js .hero-copy > h1 {
  animation-name: h1In;
  animation-duration: 1.15s;
}
@keyframes h1In {
  from { opacity: 0; transform: translateY(26px); filter: blur(12px); }
  55%  { filter: blur(0); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

.has-js .deskband { animation: cardIn 1s var(--ease) .30s both; }

.has-js .topbar { animation: dropIn .6s var(--ease) both; }

@keyframes riseIn { to { opacity: 1; transform: none; } }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(26px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes dropIn {
  from { transform: translateY(-100%); }
  to   { transform: none; }
}

/* 数字滚动时不要跳版 */
.statsband .stat b { font-variant-numeric: tabular-nums; }

/* ---------------- 移动端 ---------------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-inner { padding: 70px 26px 66px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .team-list { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .statsband-inner { grid-template-columns: repeat(2, 1fr); }
  .statsband .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .statsband .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  /* 纸笺带：窄屏上从三列改成一列 */
  .deskband-inner { grid-template-columns: 1fr; }
  .desk-item { border-left: 0; border-top: 1px solid var(--gold-line); padding: 20px 22px; }
  .desk-item:first-child { border-top: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 700px) {
  body { font-size: 15.5px; }
  .hero-inner { padding: 52px 20px 48px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 15.5px; }
  .desk-item { padding: 16px 20px; }
  .sec { padding: 56px 0; }
  .sec-head { margin-bottom: 32px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  /* 公告栏：窄屏上日期改成横排放在标题上面 */
  .notice-row { grid-template-columns: 1fr; gap: 7px; padding: 20px 18px; }
  .notice-when { display: flex; align-items: baseline; gap: 9px; padding: 6px 12px; }
  .notice-when b { font-size: 15.5px; }
  .notice-when span { margin-top: 0; }
  .notice-main h3 { font-size: 16.5px; }
  /* 首页紧凑版也要跟着堆叠：否则会被上面那条 .is-compact 的 2 列规则压住，
     74px 的日期列塞不下横排的「09.18 2026」，年份会挤到标题上 */
  .notice-board.is-compact .notice-row { grid-template-columns: 1fr; padding: 15px 16px; gap: 5px; }
  .notice-board.is-compact .notice-when { display: flex; align-items: baseline; gap: 9px; padding: 5px 12px; }
  .notice-board.is-compact .notice-when b { font-size: 14.5px; }
  .notice-board.is-compact .notice-when span { margin-top: 0; }
  .notice-board.is-compact .notice-main h3 { font-size: 16px; }
  /* 部门人员：手机上不往下长，改成横向滑一条（页面高度跟人数无关） */
  .team-list {
    display: flex; flex-wrap: nowrap; align-items: stretch;
    gap: 10px; padding: 2px 2px 10px;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .team-list::-webkit-scrollbar { display: none; }
  .team-list .member-card { flex: 0 0 84px; scroll-snap-align: start; border-radius: 12px; }
  .team-list .member-face { aspect-ratio: auto; background: none; overflow: visible; padding-top: 9px; }
  .team-list .member-face img {
    display: block; width: 56px; height: 56px; margin: 0 auto;
    border-radius: 50%; object-fit: cover;
  }
  .team-list .member-face::after { display: none; }
  .team-list .member-card:hover .member-face img { transform: none; }
  .team-list .member-initial {
    position: static; inset: auto; margin: 0 auto;
    width: 56px; height: 56px; font-size: 21px;
  }
  .team-list .member-body { padding: 7px 4px 10px; text-align: center; }
  .team-list .member-body h3 { font-size: 12.5px; margin: 0 0 2px; }
  .team-list .member-role { justify-content: center; font-size: 10px; letter-spacing: 0; margin: 0; gap: 0; }
  .team-list .member-role::before { display: none; }
  .team-list .member-grade { font-size: 10px; margin: 2px 0 0; }
  .team-list .member-duty { display: none; }          /* 带子上不铺字，专属页里有完整的 */
  .team-list .member-more { display: none; }
  .team-list .member-on-duty { font-size: 9.5px; gap: 4px; padding: 1px 7px; margin: 4px 0 0; }
  .team-list .member-on-duty::before { width: 5px; height: 5px; }
  /* 点了「查看全部」：换成 3 列网格铺开 */
  .team-list.is-expanded {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    overflow: visible; padding: 0;
  }
  .team-list.is-expanded .member-card { flex: none; }
  .team-list.is-expanded .member-face { aspect-ratio: 1 / 1; padding-top: 0; }
  .team-list.is-expanded .member-face img { width: 100%; height: 100%; border-radius: 0; margin: 0; }
  .team-list.is-expanded .member-initial {
    position: absolute; inset: 0; margin: auto;
    width: 64px; height: 64px; font-size: 25px;
  }
  .team-list.is-expanded .member-body { padding: 12px 8px 14px; }
  .team-list.is-expanded .member-body h3 { font-size: 15px; margin: 0 0 4px; }
  .team-list.is-expanded .member-role { font-size: 11px; letter-spacing: .04em; margin: 0 0 6px; }
  .team-list.is-expanded .member-role::before { display: block; width: 12px; }
  .member-body { padding: 14px 14px 18px; }
  .member-initial { width: 66px; height: 66px; font-size: 28px; }
  .shots { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .shot-cap { opacity: 1; }
  .lightbox { padding: 56px 14px 24px; }
  .statsband-inner { grid-template-columns: 1fr; }
  .statsband .stat { border-left: 0; padding: 22px 0; }
  .statsband .stat:first-child { padding-top: 28px; }
  .statsband .stat + .stat { border-top: 1px solid var(--line); }

  .boundary { padding: 22px 20px; }
  .faq-a { padding-left: 0; }

  .topbar-inner { min-height: 36px; gap: 14px; font-size: 12px; }
  .topbar .tb-hide { display: none; }

  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 14px; border-radius: var(--radius-sm); }
  .nav a.is-active::after { display: none; }

  .ledger-row { flex-direction: column; gap: 4px; padding: 15px 20px; }
  .ledger-row .k { width: auto; }
}

@media print {
  .topbar, .site-head, .site-foot, .hero-actions, .nav-toggle, .statsband { display: none; }
  .hero { background: #fff; color: var(--ink); }
  .hero h1, .hero h1 em { color: var(--ink); }
  body { background: #fff; }
}

/* ---------------- 无障碍 ---------------- */

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .has-js .rise,
  .has-js .hero-copy > *,
  .has-js .deskband { opacity: 1 !important; transform: none !important; translate: none !important; }
  .hero-copy { opacity: 1 !important; transform: none !important; }
  .hero::before, .hero::after { animation: none !important; }
  .card, .member-card { transform: none !important; }
}

/* ---------------- 返回顶部 ---------------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: var(--brand);
  border: none; cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(20,83,45,.55);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease),
              background .2s var(--ease), visibility .25s;
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-deep); }
.to-top:active { transform: translateY(1px); }
.to-top:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity .15s linear; transform: none; }
}
@media (max-width: 700px) {
  .to-top { right: 14px; bottom: 14px; width: 50px; height: 50px; }
}


/* ---------------- 成员 QQ 联系浮层 ---------------- */
.qq-pop {
  position: fixed; inset: 0; z-index: 92;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,83,45,.32); padding: 20px;
}
.qq-pop[hidden] { display: none; }
.qq-pop-box {
  position: relative; background: #fff; border-radius: 14px;
  max-width: 340px; width: 100%; padding: 24px 22px 22px;
  box-shadow: 0 20px 50px -18px rgba(0,0,0,.45); text-align: center;
}
.qq-pop-name { font-size: 15px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
.qq-pop-tip  { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.qq-pop-row  { display: flex; gap: 10px; align-items: stretch; }
.qq-pop-num  {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 18px; letter-spacing: .04em; color: var(--brand);
  background: rgba(20,83,45,.06); border-radius: 10px; user-select: all; padding: 0 8px;
}
.qq-pop-copy {
  border: none; background: var(--brand); color: #fff; border-radius: 10px;
  padding: 0 18px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.qq-pop-copy:active { transform: translateY(1px); }
.qq-pop-close {
  position: absolute; top: 6px; right: 10px; border: none; background: none;
  font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer;
}
.qq-pop-close:focus-visible, .qq-pop-copy:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 700px) {
  .qq-pop-box { max-width: 92vw; }
}

/* ---------------- 部门人员：今日值班 + 卡片详情 ---------------- */
.duty-today {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  position: relative;
  background: linear-gradient(100deg, rgba(20,83,45,.12), rgba(20,83,45,.04));
  border: 1px solid rgba(20,83,45,.18);
  border-left: 4px solid var(--brand);
  border-radius: 12px; padding: 15px 20px; margin: 16px 0 28px;
}
.duty-ico {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 18px;
}
.duty-label {
  font-weight: 700; color: var(--brand); font-size: 16px;
  letter-spacing: .02em;
}
.duty-list { display: flex; flex-wrap: wrap; gap: 8px; }
.duty-chip {
  background: #fff; border: 1px solid rgba(20,83,45,.22);
  border-radius: 999px; padding: 5px 13px; font-size: 13.5px; color: var(--ink);
  box-shadow: 0 1px 2px rgba(20,83,45,.06);
}
.duty-chip b { color: var(--brand); }
.duty-chip i { font-style: normal; color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.duty-tip { flex-basis: 100%; margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }

.member-card { cursor: pointer; }
.member-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* 名片现在是一个链接（点进 TA 的专属页），把链接的下划线去掉 */
a.member-card { display: block; color: inherit; text-decoration: none; }
a.member-card:hover { text-decoration: none; }

/* 名片上的「看 TA 的页面」提示（手机上被横滑带隐藏，见下面的媒体查询） */
.member-more {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 10px;
  font-size: 12.5px; font-weight: 600; color: var(--gold-deep); letter-spacing: .02em;
}
.member-more::after { content: "›"; font-size: 15px; line-height: 1; transition: transform .25s var(--ease); }
a.member-card:hover .member-more::after { transform: translateX(3px); }

.member-grade {
  margin: 4px 0 0; font-size: 12.5px; color: var(--muted); letter-spacing: .01em;
}

/* 值班摘要：来自「内部事务 → 值班排班」 */
.member-duty {
  display: inline-block; margin: 8px 0 0; padding: 4px 9px;
  font-size: 12px; color: var(--brand); line-height: 1.5;
  background: var(--brand-soft); border-radius: 8px;
}
.member-on-duty {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 4px;
  font-size: 12px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px; padding: 3px 12px;
}
.member-on-duty::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* 名单上方那一条：人数 + 左右滑动提示 */
.team-bar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin: 0 0 13px;
}
.team-count { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.team-swipe { font-size: 12.5px; color: var(--gold-deep); }

/* 小圆点：只在手机横滑时出现（由页面里的小脚本控制显示） */
.team-dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 0; }
.team-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.team-dots span.on { background: var(--brand); }

/* 「查看全部 N 位成员」：只在手机上出现 */
.team-more {
  display: block; width: 100%; margin: 14px 0 0; cursor: pointer;
  border: 1px dashed var(--brand-line); background: var(--surface);
  color: var(--brand); border-radius: 12px; padding: 13px 0;
  font-size: 14px; font-weight: 600; font-family: inherit;
}
.team-more:hover { background: var(--brand-soft); }
.team-more:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 「不确定找谁」 */
.team-ask { margin-top: 30px; text-align: center; }
.team-ask-tip { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; line-height: 1.8; }

/* 今日值班里那一小段时段 */
a.duty-chip { text-decoration: none; }
a.duty-chip:hover { text-decoration: none; }
.duty-chip em { font-style: normal; color: var(--gold-deep); font-size: 12.5px; margin-left: 6px; }

/* ---------------- 成员专属页 ---------------- */
.mp-hero {
  position: relative; text-align: center; color: #fff;
  background: linear-gradient(120deg, var(--brand) 0%, #0d5b85 55%, #1170a0 100%);
  border-radius: 16px; padding: 34px 24px 30px; margin-bottom: 22px;
}
.mp-face { width: 108px; height: 108px; margin: 0 auto 14px; }
.mp-face img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%; border: 3px solid rgba(255,255,255,.45);
}
.mp-initial {
  display: grid; place-items: center; width: 100%; height: 100%;
  border-radius: 50%; background: rgba(255,255,255,.16);
  border: 3px solid rgba(255,255,255,.45);
  font-size: 42px; font-weight: 600; line-height: 1;
}
.mp-name { margin: 0; font-size: 25px; font-weight: 700; letter-spacing: .01em; }
.mp-sub { margin: 7px 0 0; font-size: 13.5px; color: #d8e8f2; }
.mp-sub .mp-role { color: #f0d9a8; font-weight: 600; }
.mp-sub .mp-dot { margin: 0 7px; opacity: .6; }
.mp-hero-on {
  display: inline-flex; align-items: center; gap: 7px; margin: 15px 0 0;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px; padding: 4px 15px; font-size: 13px; font-weight: 600;
}
.mp-hero-on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7ee0b0; }

.mp-cols { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.mp-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.mp-ttl { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--gold-deep); letter-spacing: .1em; }
.mp-text { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }

.mp-duty { list-style: none; margin: 0 0 12px; padding: 0; }
.mp-duty li {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 10px 0; font-size: 14.5px; border-bottom: 1px dashed var(--line);
}
.mp-duty li:last-child { border-bottom: 0; }
.mp-duty .wd { font-weight: 700; color: var(--brand); min-width: 44px; }
.mp-duty .tm { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mp-duty .lc { font-size: 12.5px; color: var(--muted); }
.mp-duty .now {
  margin-left: auto; padding: 2px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft);
}
.mp-duty li.is-today .wd, .mp-duty li.is-today .tm { color: var(--gold-deep); }
.mp-note-line { margin: 0; font-size: 12.5px; color: var(--muted); }

.mp-ask-tip { margin: 0 0 6px; font-size: 13px; color: var(--muted); line-height: 1.75; }
.mp-ask textarea, .mp-ask input[type=text] {
  display: block; width: 100%; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
  padding: 11px 13px; font: inherit; font-size: 14.5px; color: var(--ink);
}
.mp-ask textarea { resize: vertical; min-height: 112px; }
.mp-ask textarea:focus-visible, .mp-ask input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.mp-ask .mm-submit { margin-top: 14px; }

.mp-side { position: sticky; top: 88px; }
.mp-side .member-qq { margin-top: 0; display: inline-flex; }
.mp-back { display: block; text-align: center; margin-top: 14px; }
.mp-priv { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.8; }

.mp-foottip {
  margin-top: 34px; padding: 16px 20px; border-radius: 12px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  font-size: 13.5px; color: var(--ink-2); line-height: 1.85;
}
.mp-foottip strong { color: var(--brand); }

/* 「已经有 N 位同学找过 TA」：比底部说明轻一点，居中一行 */
.mp-count {
  margin: 14px 0 0; padding: 12px 18px; border-radius: 12px; text-align: center;
  background: #f2f6fa; border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); line-height: 1.8;
}
.mp-count strong { color: var(--brand); font-size: 16px; }

/* ---------- 专属页的点缀（都是纯装饰，不占信息位） ---------- */
/* 头像外面一圈慢慢转的金铜虚线环；今天值班时，头像再带一圈呼吸光晕 */
.mp-face { position: relative; border-radius: 50%; }
.mp-face::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px dashed rgba(240,217,168,.5);
  animation: mpSpin 30s linear infinite;
}
.mp-hero { overflow: hidden; }
.mp-hero.is-on .mp-face { animation: mpGlow 2.8s ease-in-out infinite; }

/* 头部底图：不是"一条渐变"，而是像舞台光一样叠出来的
   底：墨绿渐变（两段色相，不是纯色）
   ① 左上墨绿光斑　② 右下暖金光斑　③ 顶部聚光
   ④ 一层极细颗粒（SVG 噪点）—— 顺手把渐变的色带打散，这是"看着高级"的关键
   ⑤ 四周压暗（vignette）　⑥ 两角同心弧线（对角呼应）　⑦ 内圈高光 + 底部金铜渐隐线 */
.mp-hero {
  background-color: var(--brand);
  background-image:
    radial-gradient(130% 92% at 6% -14%, rgba(28,107,58,.55), rgba(28,107,58,0) 58%),
    radial-gradient(100% 86% at 100% 114%, rgba(200,146,46,.42), rgba(200,146,46,0) 62%),
    radial-gradient(76% 62% at 50% -8%, rgba(255,255,255,.18), rgba(255,255,255,0) 72%),
    linear-gradient(158deg, var(--brand) 0%, var(--brand-deep) 46%, var(--brand-mid) 100%);
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 30px rgba(10,44,24,.16);
}

/* 颗粒。浏览器不认识这个滤镜时，它只是一层很淡的灰，不会出问题 */
.mp-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: .38; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27140%27%20height%3D%27140%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.9%27%20numOctaves%3D%272%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20type%3D%27saturate%27%20values%3D%270%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27140%27%20height%3D%27140%27%20filter%3D%27url%28%23n%29%27%20opacity%3D%270.55%27%2F%3E%3C%2Fsvg%3E");
  background-size: 140px 140px;
}

/* 四周压暗，中间才亮 —— 立体感。弧线放在它身上，好占伪元素位 */
.mp-deco {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 96px 20px rgba(6,28,16,.42);
}
.mp-deco::before,
.mp-deco::after { content: ""; position: absolute; border-radius: 50%; }
.mp-deco::before {
  right: -78px; bottom: -108px; width: 250px; height: 250px;
  border: 1px solid rgba(240,217,168,.20);
  box-shadow: 0 0 0 26px rgba(240,217,168,.07), 0 0 0 62px rgba(240,217,168,.038);
}
.mp-deco::after {
  left: -46px; top: -58px; width: 150px; height: 150px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 20px rgba(255,255,255,.05);
}

/* 底部一条金铜渐隐细线 */
.mp-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, rgba(154,111,31,0), rgba(154,111,31,.92), rgba(154,111,31,0));
}

/* 设了「部门人员页 · 顶部大图」时：把照片做成"品牌双色调"。
   照片只贡献明暗（background-blend-mode: luminosity），色相交给品牌色 ——
   这样随手一张合影放上去也不会土，还和全站同一个调子。 */
.mp-hero.has-img {
  background-image:
    radial-gradient(76% 62% at 50% -8%, rgba(255,255,255,.18), rgba(255,255,255,0) 72%),
    linear-gradient(158deg, rgba(9,58,86,.90) 0%, rgba(10,63,94,.74) 46%, rgba(13,91,133,.66) 100%),
    var(--mp-banner);
  background-size: auto, auto, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-blend-mode: normal, normal, luminosity;
}

@media (max-width: 700px) {
  .mp-deco::before { right: -96px; bottom: -122px; }
  .mp-deco::after { left: -56px; top: -70px; }
}

/* 名字下面一小段金铜短线 */
.mp-name { position: relative; padding-bottom: 13px; }
.mp-name::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 26px; height: 2px; border-radius: 2px; background: var(--gold);
}

/* 卡片顶沿一条细线，鼠标移上去从左展开（和名片墙同一套动作） */
.mp-card { position: relative; overflow: hidden; }
.mp-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.mp-card:hover::after { transform: scaleX(1); }

/* 「一句话」：左侧金铜竖条 + 右上角一个很淡的引号 */
.mp-quote { border-left: 3px solid var(--gold); }
.mp-quote::before {
  content: "\201C"; position: absolute; right: 16px; top: -4px;
  font-size: 74px; line-height: 1; color: rgba(20,83,45,.085); pointer-events: none;
}

/* 一周值班点阵：深色 = 值班日，金圈 = 今天 */
.mp-week { display: flex; gap: 7px; margin: 2px 0 10px; }
.mp-week .wd {
  flex: 1 1 0; text-align: center; padding: 7px 0 6px; border-radius: 9px;
  font-size: 12.5px; color: var(--muted); background: #f2f6fa;
  transition: box-shadow .25s var(--ease);
}
.mp-week .wd.on { color: #fff; background: var(--brand); font-weight: 700; }
.mp-week .wd.is-today { box-shadow: 0 0 0 2px var(--gold); color: var(--gold-deep); font-weight: 700; }
.mp-week .wd.on.is-today { color: #fff; }
.mp-week-legend { margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.mp-week-legend b { color: var(--brand); font-weight: 700; }
.mp-week-legend i { font-style: normal; color: var(--gold-deep); font-weight: 700; }

/* 每条值班左侧一条小竖条，今天那条是金铜色 */
.mp-duty li { position: relative; padding-left: 13px; }
.mp-duty li::before {
  content: ""; position: absolute; left: 0; top: 15px; bottom: 15px; width: 2px;
  border-radius: 2px; background: var(--brand);
}
.mp-duty li.is-today::before { background: var(--gold); }

/* 底部提示条也来一条金铜竖条，和上面的「一句话」呼应 */
.mp-foottip { border-left: 3px solid var(--gold); }

/* 「复制本页链接」——专属页能转发，是它比弹层强的地方 */
.mp-share {
  display: block; width: 100%; margin-top: 14px; cursor: pointer;
  border: 1px dashed var(--brand-line); background: var(--surface); color: var(--brand);
  border-radius: 12px; padding: 12px 0; font-size: 13.5px; font-weight: 600; font-family: inherit;
}
.mp-share:hover { background: var(--brand-soft); }
.mp-share:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@keyframes mpSpin { to { transform: rotate(360deg); } }
@keyframes mpGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,217,168,.45); }
  50%      { box-shadow: 0 0 0 15px rgba(240,217,168,0); }
}
@media (prefers-reduced-motion: reduce) {
  .mp-face::after { animation: none; }
  .mp-hero.is-on .mp-face { animation: none; box-shadow: 0 0 0 6px rgba(240,217,168,.22); }
}

/* ================= 一直动，但动得很慢 =================
   贵的感觉不等于"动得多"，而是"慢、柔、不停"。这里一共 5 层：
     ① 光斑漂移（48 秒一轮，永远在飘）
     ② 金属微光扫过（每 9.5 秒掠过一次，像翻页时镜面反光）
     ③ 两角弧线呼吸（26 / 34 秒，一正一反）
     ④ 头像外圈金铜环旋转（30 秒，在 .mp-face 上）
     ⑤ 「今日值班中」那个绿点呼吸（2.4 秒）
   全部只动 transform / opacity，手机上也吃得住。
   注：颗粒故意不动 —— 会动的噪点看着像画面在抖，不像高级。 */

/* 把装饰层压到文字下面，免得飘光盖住字 */
.mp-hero::before { z-index: 0; }
.mp-hero::after  { z-index: 3; }
.mp-deco, .mp-flow { z-index: 0; }
.mp-face, .mp-name, .mp-sub, .mp-hero-on { position: relative; z-index: 1; }

/* ① 光斑漂移：一块比头部大 1.5 倍的软光层，慢慢平移 + 转 + 微缩放 */
.mp-flow {
  position: absolute; inset: -28%; pointer-events: none;
  background-image:
    radial-gradient(42% 46% at 26% 30%, rgba(96,190,232,.40), rgba(96,190,232,0) 62%),
    radial-gradient(38% 42% at 76% 26%, rgba(240,217,168,.26), rgba(240,217,168,0) 64%),
    radial-gradient(46% 50% at 62% 82%, rgba(46,142,190,.34), rgba(46,142,190,0) 66%);
  animation: mpFlow 48s ease-in-out infinite;
  will-change: transform;
}
@keyframes mpFlow {
  0%   { transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1.02); }
  25%  { transform: translate3d(2.2%, 1.6%, 0) rotate(4deg) scale(1.06); }
  50%  { transform: translate3d(1%, -2%, 0) rotate(-3deg) scale(1.03); }
  75%  { transform: translate3d(-2.4%, 1.2%, 0) rotate(2deg) scale(1.07); }
  100% { transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1.02); }
}

/* ② 金属微光：一道很柔的斜光，隔一会儿从左边掠到右边 */
.mp-flow::after {
  content: ""; position: absolute; top: -45%; bottom: -45%; left: -70%; width: 42%;
  background: linear-gradient(100deg,
    rgba(255,255,255,0), rgba(255,255,255,.10) 42%,
    rgba(240,217,168,.17) 58%, rgba(255,255,255,0));
  transform: rotate(12deg);
  animation: mpSheen 9.5s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes mpSheen {
  0%, 55% { transform: translateX(0) rotate(12deg); opacity: 0; }
  62%     { opacity: .85; }
  100%    { transform: translateX(320%) rotate(12deg); opacity: 0; }
}

/* ③ 两角弧线：慢慢胀一下、缩一下，像水面涟漪 */
.mp-deco::before { animation: mpRing 26s ease-in-out infinite; }
.mp-deco::after  { animation: mpRing 34s ease-in-out infinite reverse; }
@keyframes mpRing {
  0%, 100% { transform: scale(1);    opacity: .85; }
  50%      { transform: scale(1.07); opacity: 1; }
}

/* ⑤ 值班状态那个小绿点：慢慢呼吸，像"在线" */
.mp-hero-on::before { animation: mpDot 2.4s ease-in-out infinite; }
@keyframes mpDot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: .45; transform: scale(.82); }
}

/* 关掉"动态效果"（系统设置 / 省电模式）时，全部静下来 */
@media (prefers-reduced-motion: reduce) {
  .mp-flow,
  .mp-flow::after,
  .mp-deco::before,
  .mp-deco::after,
  .mp-hero-on::before { animation: none !important; }
}

/* ---------- 待加的字段用到的样式（先在预览里看效果，正式加字段时直接复用） ---------- */
/* 「可以聊这些」/「平常的我」：一排标签胶囊 */
.mp-tagline { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.mp-tagline span {
  font-size: 12.5px; color: var(--brand); background: var(--brand-soft);
  border-radius: 99px; padding: 4px 12px; line-height: 1.5;
}
.mp-tagline.soft span { color: #5d6b76; background: #f1f5f8; }

/* 「想对你说的一句话」：整块偏暖，和上面的自我介绍分开 */
.mp-card.mp-warm { background: #fdf8f0; border-color: #eee0c6; }
.mp-card.mp-warm .mp-ttl { color: #96691f; }
.mp-greet { color: #6b5426; font-size: 15px; line-height: 1.9; }
.mp-greet::before { content: "\201C"; margin-right: 1px; }
.mp-greet::after  { content: "\201D"; margin-left: 1px; }

/* 头部「2024 年加入」那一行 */
.mp-joined { margin: 9px 0 0; font-size: 12.5px; color: #d8e8f2; }

@media (max-width: 1000px) {
  .mp-cols { grid-template-columns: 1fr; gap: 0; }
  .mp-side { position: static; }
}
@media (max-width: 700px) {
  .mp-hero { padding: 26px 18px 24px; border-radius: 14px; }
  .mp-face { width: 88px; height: 88px; }
  .mp-initial { font-size: 34px; }
  .mp-name { font-size: 21px; }
  .mp-card { padding: 18px 17px; margin-bottom: 14px; }
  .mp-duty li { gap: 8px; font-size: 14px; }
  .mp-week { gap: 5px; }
  .mp-week .wd { padding: 6px 0 5px; font-size: 11.5px; }
  .mp-side .member-qq { width: 100%; justify-content: center; }
}

/* ---------------- 部门人员：顶部横幅 + 今日一句 + 答疑预约 ---------------- */
.members-hero {
  position: relative; border-radius: 16px; overflow: hidden;
  padding: 30px 26px 26px; margin-bottom: 26px;
  background: linear-gradient(120deg, var(--brand) 0%, #0d5b85 55%, #1170a0 100%);
  color: #fff;
}
.members-hero.has-img { background-size: cover; background-position: center; }
.members-hero.has-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,40,60,.30), rgba(7,40,60,.62));
}
.members-hero > * { position: relative; z-index: 1; }
.hero-kicker { font-size: 13px; letter-spacing: .18em; color: var(--gold); margin: 0 0 8px; font-weight: 600; }
.hero-line { font-size: clamp(17px, 2.4vw, 22px); line-height: 1.6; margin: 0 0 14px; font-weight: 600; }
.quote-rotator { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.85); min-height: 1.7em; }
.quote-rotator .q { display: inline; transition: opacity .5s ease; }
.quote-rotator .q.fade { opacity: 0; }

.member-msg {
  margin-top: 12px; width: 100%; border: 1px solid var(--brand);
  background: #fff; color: var(--brand); border-radius: 10px;
  padding: 9px 14px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.member-msg:active { transform: translateY(1px); }

.mm-success {
  position: fixed; top: 0; left: 0; right: 0; z-index: 96;
  margin: 0; padding: 14px 22px; background: #1f8f5a; color: #fff;
  font-size: 14.5px; font-weight: 600; text-align: center; cursor: pointer;
  box-shadow: 0 8px 22px -10px rgba(0,0,0,.5);
}
.mm-success::after { content: '\00d7'; margin-left: 12px; font-size: 17px; opacity: .85; }

.mm-pop { position: fixed; inset: 0; z-index: 92; display: flex; align-items: center; justify-content: center;
  background: rgba(20,83,45,.34); padding: 20px; }
.mm-pop[hidden] { display: none; }
.mm-pop-box { position: relative; background: #fff; border-radius: 14px; width: 100%; max-width: 420px;
  padding: 24px 22px 22px; box-shadow: 0 20px 50px -18px rgba(0,0,0,.45); max-height: 90vh; overflow: auto; }
.mm-pop-title { font-size: 17px; font-weight: 700; color: var(--brand); margin: 0 0 6px; }
.mm-pop-tip { font-size: 13px; color: var(--muted); margin: 0 0 16px; line-height: 1.7; }
.mm-lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 12px 0 6px; }
.mm-member, .mm-pop-box textarea, .mm-pop-box input[type=text] {
  width: 100%; border: 1px solid rgba(20,83,45,.22); border-radius: 10px; padding: 10px 12px;
  font-size: 14.5px; font-family: inherit; color: var(--ink); background: #fff; }
.mm-pop-box textarea { resize: vertical; }
.mm-submit { margin-top: 16px; width: 100%; border: none; background: var(--brand); color: #fff;
  border-radius: 10px; padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer; }
.mm-submit:active { transform: translateY(1px); }
.mm-submit.is-loading,
.mm-submit:disabled { opacity: .7; cursor: default; }
.mm-msg {
  margin: 14px 0 0; padding: 10px 12px; font-size: 13px; line-height: 1.6;
  color: #a4232b; background: rgba(164,35,43,.08);
  border: 1px solid rgba(164,35,43,.3); border-radius: 10px;
}
.mm-msg[hidden] { display: none; }
.mm-pop-close { position: absolute; top: 6px; right: 10px; border: none; background: none;
  font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.mm-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mm-pop-close:focus-visible, .mm-submit:focus-visible, .mm-member:focus-visible,
.mm-pop-box textarea:focus-visible, .mm-pop-box input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 700px) { .mm-pop-box { max-width: 92vw; } }

/* ---------------- 后台表单：可多选的勾选组 ----------------
   用在「值班排班 → 新增」：星期可以一次勾多天，其余几栏共用。 */
.mulpick { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 6px; }
.mulpick-i {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: 14px; color: var(--ink); line-height: 1;
  border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 15px; background: var(--surface-2);
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.mulpick-i:hover { background: var(--brand-soft); border-color: var(--brand-line); }
.mulpick-i input {
  width: 16px; height: 16px; margin: 0; flex: 0 0 auto;
  accent-color: var(--brand); cursor: pointer;
}

/* ==========================================================
   2026-09-23 · 书院门户层（学习服务三件套 + 全站骨架差异化）
   ----------------------------------------------------------
   和旧站（左 logo 右导航 + 全屏大屏 + 浮起圆角卡）彻底分开：
   刊头居中、门户三门板、双栏纪事志、档案行、素框写信区。
   色板仍用上面 :root 的墨绿 / 米白 / 金铜，这里只改骨架与组件。
   ========================================================== */

/* ---------------- 刊头 ---------------- */

.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--gold-line);
  position: relative;
}
.mast-inner {
  display: flex; flex-direction: column; align-items: center;
  padding-top: 22px; padding-bottom: 0;
}
.mast-brand {
  display: inline-flex; align-items: center; gap: 13px;
  text-decoration: none; color: var(--ink);
}
.mast-brand .brand-mark {
  width: 46px; height: 46px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand); color: var(--gold-light);
  font-family: var(--serif); font-size: 25px; font-weight: 700;
  box-shadow: none;
}
.mast-text { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.mast-school {
  font-size: 11.5px; letter-spacing: .22em; color: var(--muted);
}
.mast-name {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  color: var(--brand-deep); letter-spacing: .06em; line-height: 1.2;
}

/* 导航：居中文字链，序号用短横隔开 */
.masthead .nav {
  margin-top: 16px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
  border-top: 1px solid var(--line);
  width: 100%;
}
.masthead .nav a {
  position: relative;
  display: inline-block; padding: 13px 17px 12px;
  font-size: 14.5px; color: var(--ink-2); text-decoration: none;
  letter-spacing: .04em;
  transition: color .2s var(--ease);
}
.masthead .nav a::before {
  content: ""; position: absolute; left: 50%; bottom: 7px;
  width: 0; height: 2px; background: var(--gold);
  transition: width .22s var(--ease), left .22s var(--ease);
}
.masthead .nav a:hover { color: var(--brand); }
.masthead .nav a.is-on { color: var(--brand-deep); font-weight: 600; }
.masthead .nav a.is-on::before { width: 26px; left: calc(50% - 13px); }

/* 汉堡（仅手机出现，桌面隐藏） */
.nav-toggle {
  display: none; position: absolute; top: 24px; right: 20px;
  width: 42px; height: 42px; padding: 0;
  background: none; border: 1px solid var(--line-2); border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 19px; height: 2px; margin: 4px auto;
  background: var(--brand-deep); border-radius: 2px;
}
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--gold);
}

/* ---------------- 首页门户 ---------------- */

.portal-hero {
  background:
    radial-gradient(80% 120% at 50% -30%, rgba(200,146,46,.10), transparent 60%),
    var(--bg);
  padding: 64px 0 56px;
  text-align: center;
}
.portal-hero .kicker { justify-content: center; }
.portal-hero h1 {
  font-family: var(--serif);
  font-size: var(--fs-h1); font-weight: 700; line-height: 1.35;
  margin: 14px auto 16px; max-width: 760px; color: var(--brand-deep);
}
.portal-hero h1 strong, .portal-hero h1 b { color: var(--gold-deep); font-weight: 700; }
.portal-rule {
  width: 54px; height: 3px; margin: 0 auto 20px;
  background: var(--gold); border-radius: 2px;
}
.portal-lead {
  max-width: 620px; margin: 0 auto 26px;
  font-size: 16px; line-height: 2; color: var(--ink-2);
}
.portal-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  margin-top: 24px; font-size: 13.5px; color: var(--muted);
}
.portal-meta b { color: var(--brand-deep); font-weight: 600; }
.portal-meta .pm-dot { color: var(--gold); }

/* 三扇门 */
.portal-services { padding-top: 8px; }
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 34px;
}
.service-card {
  position: relative; display: flex; flex-direction: column;
  min-height: 252px; padding: 30px 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none; color: var(--ink);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: var(--gold); transform: scaleX(.28); transform-origin: left;
  transition: transform .28s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line);
  box-shadow: var(--shadow);
}
.service-card:hover::before { transform: scaleX(1); }
.service-no {
  font-family: var(--serif); font-size: 15px; color: var(--gold-deep);
  letter-spacing: .2em; margin-bottom: 14px;
}
.service-card h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 700;
  color: var(--brand-deep); margin: 0 0 12px;
}
.service-card p { margin: 0; font-size: 14.5px; line-height: 1.9; color: var(--ink-2); }
.service-go {
  margin-top: auto; padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; color: var(--brand); font-weight: 600;
}
.service-go .sg-count { color: var(--muted); font-weight: 400; }
.service-go .sg-arrow {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--brand-line); color: var(--brand);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.service-card:hover .sg-arrow { background: var(--brand); color: #fff; }

/* 双栏纪事志 */
.gazette {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: 38px; align-items: start;
}
.gazette-side { display: flex; flex-direction: column; gap: 22px; }
.gazette-title {
  display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px;
}
.gazette-title h2 {
  font-family: var(--serif); font-size: 21px; font-weight: 700;
  color: var(--brand-deep); margin: 0;
}
.gazette-title .gt-more { margin-left: auto; font-size: 13px; }

/* 公告时间线 */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative; padding: 0 0 18px 26px;
  border-left: 1px solid var(--line-2); margin-left: 7px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--gold);
}
.timeline time {
  display: block; font-size: 12px; color: var(--muted);
  letter-spacing: .06em; margin-bottom: 4px;
}
.timeline a {
  font-size: 15px; line-height: 1.65; color: var(--ink);
  text-decoration: none; font-weight: 500;
}
.timeline a:hover { color: var(--brand); }
.timeline .tl-pin {
  display: inline-block; margin-right: 7px; padding: 1px 7px;
  font-size: 11px; font-weight: 600; color: var(--gold-deep);
  border: 1px solid var(--gold-line); border-radius: 3px;
  vertical-align: 1px;
}

/* 侧栏卡片（值班 / 最新资料） */
.side-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 22px 22px 20px;
}
.side-card h3 {
  font-family: var(--serif); font-size: 17px; font-weight: 700;
  color: var(--brand-deep); margin: 0 0 14px;
  display: flex; align-items: center; gap: 9px;
}
.side-card h3::before {
  content: ""; width: 4px; height: 15px; background: var(--gold); border-radius: 2px;
}
.duty-lines { list-style: none; margin: 0; padding: 0; }
.duty-lines li {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px dashed var(--line); font-size: 14px; line-height: 1.7;
}
.duty-lines li:last-child { border-bottom: 0; }
.duty-lines .dl-k { flex: none; width: 62px; color: var(--muted); }
.duty-lines .dl-v { color: var(--ink); }

.res-mini { list-style: none; margin: 0; padding: 0; }
.res-mini li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.res-mini li:last-child { border-bottom: 0; padding-bottom: 0; }
.res-mini a {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 14px; color: var(--ink); text-decoration: none; line-height: 1.55;
}
.res-mini a:hover { color: var(--brand); }
.res-mini .rm-cat {
  flex: none; font-size: 11px; color: var(--gold-deep);
  border: 1px solid var(--gold-line); border-radius: 3px; padding: 1px 6px;
}

/* 目录条（活动 / 学习园地） */
.archive-strip { display: flex; flex-direction: column; }
.archive-row {
  display: flex; align-items: center; gap: 18px;
  padding: 17px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: background .2s var(--ease), padding-left .2s var(--ease);
}
.archive-row:first-child { border-top: 1px solid var(--line); }
.archive-row:hover { background: var(--brand-soft); padding-left: 12px; }
.archive-row .ar-date {
  flex: none; width: 64px; text-align: center;
  font-family: var(--serif); color: var(--gold-deep);
}
.archive-row .ar-date b { display: block; font-size: 22px; line-height: 1.1; }
.archive-row .ar-date span { font-size: 11px; letter-spacing: .1em; }
.archive-row .ar-main { flex: 1 1 auto; min-width: 0; }
.archive-row .ar-title {
  font-size: 16px; font-weight: 600; color: var(--brand-deep);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.archive-row .ar-sub {
  font-size: 13px; color: var(--muted); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.archive-row .ar-arrow { flex: none; color: var(--muted); font-size: 18px; }
.archive-row:hover .ar-arrow { color: var(--brand); }

/* ---------------- 内页统一刊头 ---------------- */

.page-mast {
  background:
    radial-gradient(80% 130% at 50% -40%, rgba(200,146,46,.10), transparent 62%),
    var(--bg);
  text-align: center; padding: 48px 0 40px;
}
.page-mast .kicker { justify-content: center; }
.page-mast h1 {
  font-family: var(--serif);
  font-size: var(--fs-h2); font-weight: 700; color: var(--brand-deep);
  margin: 12px 0 14px;
}
.page-mast .portal-rule { margin-bottom: 16px; }
.page-mast p {
  max-width: 680px; margin: 0 auto; font-size: 15px;
  line-height: 2; color: var(--ink-2);
}

/* ---------------- 意见墙 + 写信区 ---------------- */

.opinion-wall { display: flex; flex-direction: column; gap: 22px; margin-top: 10px; }
.opinion-item {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 22px 26px;
}
.opinion-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.opinion-no {
  font-family: var(--serif); font-size: 14px; color: var(--gold-deep);
  letter-spacing: .12em;
}
.opinion-course {
  font-size: 12.5px; color: var(--brand); background: var(--brand-soft);
  border-radius: 3px; padding: 2px 9px;
}
.opinion-date { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.opinion-body p { margin: 0 0 10px; font-size: 15px; line-height: 2; color: var(--ink); }
.opinion-body p:last-child { margin-bottom: 0; }
.opinion-reply {
  margin-top: 14px; padding: 14px 16px;
  background: var(--brand-soft); border-radius: 0 5px 5px 0;
  font-size: 14px; line-height: 1.9; color: var(--ink-2);
}
.opinion-reply b { color: var(--brand-deep); }
.opinion-adopted {
  display: inline-block; margin-left: 8px; padding: 1px 8px;
  font-size: 12px; color: var(--gold-deep);
  border: 1px solid var(--gold-line); border-radius: 3px;
}
.opinion-empty {
  text-align: center; padding: 54px 20px;
  border: 1px dashed var(--line-2); border-radius: 6px;
  color: var(--muted); font-size: 14.5px; line-height: 2; background: var(--surface);
}

/* 写信区 */
.letter-box {
  margin-top: 46px; padding: 30px 30px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
}
.letter-box h2 {
  font-family: var(--serif); font-size: 21px; font-weight: 700;
  color: var(--brand-deep); margin: 0 0 6px;
  display: flex; align-items: center; gap: 10px;
}
.letter-box h2::before { content: ""; width: 4px; height: 18px; background: var(--gold); border-radius: 2px; }
.letter-sub { margin: 0 0 20px; font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.pform .prow { margin-bottom: 16px; }
.pform label {
  display: block; font-size: 13.5px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 7px;
}
.pform label .opt { font-weight: 400; color: var(--muted); }
.pform input[type=text], .pform textarea {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--line-2); border-radius: 5px;
  padding: 11px 13px; font: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--bg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.pform input[type=text]:focus, .pform textarea:focus {
  outline: 0; border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(20,83,45,.13);
}
.pform textarea { resize: vertical; min-height: 132px; line-height: 1.9; }
.pform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pform-check {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 15px; background: var(--gold-soft);
  border: 1px solid var(--gold-line); border-radius: 5px;
  font-size: 13.5px; line-height: 1.7; color: var(--ink-2); cursor: pointer;
}
.pform-check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.pform-honey { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pform-note {
  margin: 0 0 18px; padding: 11px 15px; border-radius: 5px;
  font-size: 14px; line-height: 1.8;
}
.pform-note.ok { background: var(--brand-soft); color: var(--brand-deep); border: 1px solid var(--brand-line); }
.pform-note.err { background: #f8ece6; color: var(--danger); border: 1px solid #e3c4bb; }
.pform .btn { padding: 12px 34px; font-size: 15px; }
.pform-tip { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.8; }

/* ---------------- 资料共享库 ---------------- */

.res-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 6px 0 30px;
}
.res-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 14px; color: var(--ink-2); text-decoration: none;
  transition: all .18s var(--ease);
}
.res-tab .rt-n { font-size: 12px; color: var(--muted); }
.res-tab:hover { border-color: var(--gold-line); color: var(--brand-deep); }
.res-tab.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.res-tab.is-on .rt-n { color: rgba(255,255,255,.75); }

.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.res-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 22px 24px; min-height: 190px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.res-card:hover { border-color: var(--gold-line); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.res-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rc-badge {
  font-size: 11.5px; font-weight: 600; letter-spacing: .05em;
  padding: 2px 9px; border-radius: 3px;
  background: var(--brand-soft); color: var(--brand);
}
.rc-ext {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  padding: 2px 8px; border-radius: 3px;
  background: var(--gold-soft); color: var(--gold-deep);
  border: 1px solid var(--gold-line);
}
.rc-course { margin-left: auto; font-size: 12px; color: var(--muted); }
.res-card h3 {
  font-family: var(--serif); font-size: 18.5px; font-weight: 700;
  color: var(--brand-deep); margin: 0 0 8px; line-height: 1.45;
}
.res-card .rc-summary {
  margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.res-card-foot {
  margin-top: auto; padding-top: 16px;
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; color: var(--muted);
}
.rc-btn {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 5px;
  border: 1px solid var(--brand); background: var(--brand); color: #fff;
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: background .2s var(--ease);
}
.rc-btn:hover { background: var(--brand-deep); }
.rc-btn.is-link { background: var(--surface); color: var(--brand); }
.rc-btn.is-link:hover { background: var(--brand-soft); }
.rc-submit {
  margin-top: 34px; text-align: center;
  padding: 26px; border: 1px dashed var(--line-2); border-radius: 6px;
  background: var(--surface);
}
.rc-submit p { margin: 0 0 14px; font-size: 14.5px; color: var(--ink-2); line-height: 1.9; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 960px) {
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { min-height: 0; }
  .gazette { grid-template-columns: 1fr; gap: 30px; }
  .res-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .mast-inner { flex-direction: row; flex-wrap: wrap; align-items: center;
                padding-top: 14px; padding-bottom: 14px; }
  .mast-brand .brand-mark { width: 40px; height: 40px; font-size: 22px; }
  .mast-name { font-size: 19px; }
  .mast-school { font-size: 10.5px; }
  .nav-toggle { display: block; }
  .masthead .nav {
    display: none; order: 3; width: 100%;
    flex-direction: column; margin-top: 12px; border-top: 1px solid var(--line);
  }
  .masthead .nav.is-open { display: flex; }
  .masthead .nav a {
    padding: 13px 6px; border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .masthead .nav a.is-on::before { display: none; }
  .masthead .nav a.is-on {
    border-left: 3px solid var(--gold); padding-left: 12px; background: var(--brand-soft);
  }
  .portal-hero { padding: 44px 0 40px; }
  .portal-lead { font-size: 15px; }
  .page-mast { padding: 36px 0 30px; }
  .pform-grid { grid-template-columns: 1fr; gap: 0; }
  .letter-box { padding: 22px 18px; }
  .opinion-item { padding: 18px 18px; }
  .opinion-date { margin-left: 0; width: 100%; }
  .archive-row { gap: 12px; }
  .archive-row .ar-date { width: 52px; }
}

