/* ============================================================
   延长县小学 · 官网样式
   设计基调：陕北公办学校 —— 中国红 + 宣纸米白 + 描金
   ============================================================ */

:root {
  --red: #a8231b;
  --red-deep: #7d1611;
  --red-soft: #c0392b;
  --gold: #c9a45c;
  --gold-soft: #e3cfa4;
  --ink: #221e1b;
  --ink-2: #57504a;
  --ink-3: #8b827a;
  --paper: #fdfbf7;
  --paper-2: #f6f1e8;
  --line: #e7ded0;
  --white: #fff;
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, .05), 0 2px 8px rgba(60, 40, 20, .05);
  --shadow-md: 0 4px 12px rgba(60, 40, 20, .08), 0 12px 32px rgba(60, 40, 20, .07);
  --radius: 4px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC",
          "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); }

/* ---------------------------------------------- 顶部细条 */
.topbar {
  background: var(--red-deep);
  color: rgba(255, 255, 255, .82);
  font-size: 12.5px;
  letter-spacing: .02em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 34px; gap: 16px;
}
.topbar-left { display: flex; gap: 18px; align-items: center; min-width: 0; }
.topbar-left span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { flex: none; white-space: nowrap; }
.topbar a:hover { color: #fff; }
.topbar .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------------------------------------------- 站头 */
.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.masthead .wrap {
  display: flex; align-items: center; gap: 18px;
  padding-top: 20px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.seal {
  width: 54px; height: 54px; flex: none;
  background: var(--red); color: #fff;
  border-radius: 3px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 30px; font-weight: 700;
  letter-spacing: 0; line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28), 0 2px 6px rgba(125, 22, 17, .3);
  position: relative;
}
.seal::after {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 1px;
}
.brand-text { min-width: 0; }
.brand-name {
  font-family: var(--serif); font-size: 30px; font-weight: 700;
  letter-spacing: .12em; line-height: 1.2; color: var(--red-deep);
  margin: 0;
}
.brand-sub {
  font-size: 12px; color: var(--ink-3); letter-spacing: .22em;
  margin-top: 2px; text-transform: uppercase;
}
.brand-tail {
  margin-left: auto; text-align: right; font-size: 12.5px; color: var(--ink-3);
  line-height: 1.6; flex: none;
}
.brand-tail b { display: block; font-family: var(--serif); font-size: 15px; color: var(--red); letter-spacing: .08em; }

/* ---------------------------------------------- 导航 */
.nav { background: var(--red); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.nav .wrap { display: flex; align-items: stretch; gap: 0; height: 50px; }
.nav a {
  display: flex; align-items: center; padding: 0 20px;
  color: rgba(255, 255, 255, .9); font-size: 15px; letter-spacing: .06em;
  position: relative; transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a.on { color: #fff; font-weight: 600; }
.nav a.on::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 0;
  height: 3px; background: var(--gold);
}
.nav .nav-sp { margin-left: auto; }
.nav .nav-btn {
  display: none; align-items: center; padding: 0 18px; color: #fff;
  background: none; border: 0; font-size: 20px;
}

/* ---------------------------------------------- Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 380px at 78% -10%, rgba(201, 164, 92, .18), transparent 60%),
    linear-gradient(135deg, #8e1a14 0%, #a8231b 42%, #7d1611 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 9px);
  pointer-events: none;
}
.hero .wrap {
  position: relative; display: grid; grid-template-columns: 1fr 268px;
  gap: 40px; align-items: center;
  padding-top: 62px; padding-bottom: 62px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: .2em; color: var(--gold-soft);
  border: 1px solid rgba(201, 164, 92, .45); border-radius: 999px;
  padding: 4px 14px; margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(30px, 4vw, 50px);
  line-height: 1.28; letter-spacing: .06em; margin: 0 0 10px; font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero p.lead {
  font-size: 15px; color: rgba(255, 255, 255, .8); margin: 0 0 26px;
  max-width: 620px; line-height: 1.9;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius);
  font-size: 14.5px; letter-spacing: .08em; border: 1px solid transparent;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.btn-gold { background: var(--gold); color: #3a2a12; font-weight: 600; }
.btn-gold:hover { background: #d8b672; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.btn-ghost { border-color: rgba(255, 255, 255, .42); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.hero-mark {
  text-align: center; border-left: 1px solid rgba(255, 255, 255, .16);
  padding-left: 30px;
}
.hero-mark .since {
  font-family: var(--serif); font-size: 62px; line-height: 1;
  color: var(--gold-soft); font-weight: 700; letter-spacing: .02em;
}
.hero-mark .since-label {
  font-size: 12px; letter-spacing: .3em; color: rgba(255, 255, 255, .6); margin-top: 6px;
}
.hero-mark .since-desc {
  margin-top: 18px; font-size: 13px; line-height: 1.9; color: rgba(255, 255, 255, .78);
  font-family: var(--serif); letter-spacing: .06em;
}
.hero-mark .since-desc strong { color: var(--gold-soft); font-weight: 600; }

/* ---------------------------------------------- 数字条 */
.stats { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.stats .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-top: 26px; padding-bottom: 26px;
}
.stat { text-align: center; border-right: 1px solid var(--line); padding: 4px 8px; }
.stat:last-child { border-right: 0; }
.stat b {
  font-family: var(--serif); font-size: 32px; color: var(--red); line-height: 1.1;
  font-weight: 700; letter-spacing: .02em;
}
.stat b i { font-style: normal; font-size: 15px; color: var(--ink-3); margin-left: 3px; }
.stat span { display: block; font-size: 13px; color: var(--ink-2); letter-spacing: .1em; margin-top: 2px; }

/* ---------------------------------------------- 通用区块 */
.section { padding: 62px 0; }
.section.tight { padding: 46px 0; }
.section.alt { background: var(--paper-2); }
.sec-head { margin-bottom: 30px; }
.sec-head .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.sec-title {
  font-family: var(--serif); font-size: 27px; font-weight: 700; letter-spacing: .1em;
  color: var(--ink); margin: 0; position: relative; padding-left: 16px; line-height: 1.3;
}
.sec-title::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 4px;
  width: 4px; background: var(--red); border-radius: 2px;
}
.sec-sub {
  font-size: 12px; letter-spacing: .24em; color: var(--ink-3);
  text-transform: uppercase; margin-top: 6px; padding-left: 16px;
}
.sec-more {
  font-size: 13.5px; color: var(--ink-2); letter-spacing: .06em;
  border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.sec-more:hover { color: var(--red); border-color: var(--red); }

/* ---------------------------------------------- 首页两栏 */
.split { display: grid; grid-template-columns: 1fr 350px; gap: 40px; align-items: start; }

/* 新闻列表（首页） */
.news-list { display: grid; gap: 0; }
.news-item {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) max-content; gap: 18px;
  align-items: center; padding: 17px 0; border-bottom: 1px dashed var(--line);
  transition: background .15s;
}
.news-item:first-child { border-top: 1px dashed var(--line); }
.news-item:hover { background: rgba(168, 35, 27, .03); }
.news-date {
  text-align: center; border-right: 1px solid var(--line); padding-right: 12px;
}
.news-date b {
  display: block; font-family: var(--serif); font-size: 25px; color: var(--red);
  line-height: 1.15; font-weight: 700;
}
.news-date span { font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; }
.news-body { min-width: 0; }
.news-body h3 {
  margin: 0; font-size: 16px; font-weight: 600; line-height: 1.6;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.news-body p {
  margin: 5px 0 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.7;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.news-item:hover h3 { color: var(--red); }
.news-tag {
  font-size: 11.5px; color: var(--red); border: 1px solid rgba(168, 35, 27, .3);
  border-radius: 2px; padding: 2px 8px; white-space: nowrap; background: rgba(168, 35, 27, .04);
}

/* 侧栏 */
.side-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; box-shadow: var(--shadow-sm);
}
.side-card + .side-card { margin-top: 22px; }
.side-card h3 {
  margin: 0; padding: 13px 18px; font-family: var(--serif); font-size: 16px;
  letter-spacing: .12em; color: #fff; background: var(--red); font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
}
.side-card h3 small { font-family: var(--sans); font-size: 11px; letter-spacing: .1em; opacity: .7; font-weight: 400; }
.side-body { padding: 16px 18px; }
.side-body.plain { padding: 6px 0; }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.quick a {
  background: var(--white); padding: 16px 8px; text-align: center;
  font-size: 13.5px; color: var(--ink-2); transition: background .15s, color .15s;
}
.quick a:hover { background: var(--paper-2); color: var(--red); }
.quick a i { display: block; font-style: normal; font-size: 20px; margin-bottom: 4px; opacity: .85; }

.kv { display: grid; gap: 10px; font-size: 13.5px; }
.kv div { display: grid; grid-template-columns: 54px 1fr; gap: 10px; color: var(--ink-2); }
.kv b { color: var(--ink-3); font-weight: 400; }
.kv a:hover { color: var(--red); }

/* ---------------------------------------------- 特色卡 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px; position: relative; overflow: hidden;
  transition: transform .16s, box-shadow .18s, border-color .18s;
}
.feature::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  opacity: 0; transition: opacity .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature:hover::before { opacity: 1; }
.feature .ico {
  font-size: 24px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(168, 35, 27, .07); color: var(--red);
}
.feature h4 {
  margin: 0 0 8px; font-family: var(--serif); font-size: 18px; letter-spacing: .1em; font-weight: 700;
}
.feature p { margin: 0; font-size: 13.8px; color: var(--ink-2); line-height: 1.85; }

/* ---------------------------------------------- 页面标题带 */
.pagehero {
  background: linear-gradient(120deg, #8e1a14, #a8231b 60%, #7d1611);
  color: #fff; position: relative; overflow: hidden;
}
.pagehero::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 9px);
}
.pagehero .wrap { position: relative; padding-top: 34px; padding-bottom: 34px; }
.crumb { font-size: 12.5px; color: rgba(255, 255, 255, .62); letter-spacing: .06em; margin-bottom: 10px; }
.crumb a:hover { color: #fff; }
.crumb span { margin: 0 7px; opacity: .5; }
.pagehero h1 {
  font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); letter-spacing: .12em;
  margin: 0; font-weight: 700;
}
.pagehero p { margin: 8px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .72); letter-spacing: .04em; }

/* ---------------------------------------------- 概况页 */
.prose { max-width: 820px; }
.prose p { margin: 0 0 18px; color: var(--ink-2); line-height: 2.05; text-indent: 2em; }
.prose p:first-of-type { text-indent: 2em; }

.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--red), var(--gold-soft));
}
.tl-item { position: relative; padding: 0 0 26px 0; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 7px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--red);
}
.tl-year { font-family: var(--serif); font-size: 19px; color: var(--red); font-weight: 700; letter-spacing: .06em; }
.tl-title { font-size: 15px; font-weight: 600; margin: 2px 0 3px; }
.tl-desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.8; }

.philo { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.philo-row { display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid var(--line); }
.philo-row:last-child { border-bottom: 0; }
.philo-row .k {
  background: var(--paper-2); padding: 15px 18px; font-family: var(--serif);
  font-size: 14.5px; color: var(--red-deep); letter-spacing: .1em; font-weight: 600;
}
.philo-row .v { padding: 15px 20px; font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }

.honor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.honor {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 13px 16px; font-size: 14px; color: var(--ink-2);
  line-height: 1.65;
}
.honor > span:last-child { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.honor .lv {
  flex: none; font-size: 11.5px; letter-spacing: .06em; color: var(--red);
  border: 1px solid rgba(168, 35, 27, .28); border-radius: 2px; padding: 1px 7px;
  background: rgba(168, 35, 27, .04); line-height: 1.6;
}

/* ---------------------------------------------- 新闻页 */
.filterbar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 16px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 6px;
}
.chip {
  font-size: 13.5px; padding: 6px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-2);
  transition: all .15s; letter-spacing: .04em;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; }
.searchbox { margin-left: auto; position: relative; }
.searchbox input {
  width: 210px; padding: 8px 12px 8px 32px; font-size: 13.5px; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.searchbox input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(168, 35, 27, .08); }
.searchbox::before {
  content: "🔍"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: 12px; opacity: .45;
}

.art-list { display: grid; gap: 0; }
.art-row {
  display: grid; grid-template-columns: 172px 1fr; gap: 22px;
  padding: 22px 0; border-bottom: 1px dashed var(--line); align-items: start;
}
.art-thumb {
  width: 172px; height: 110px; border-radius: var(--radius); overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line); flex: none;
  display: grid; place-items: center; color: var(--ink-3); font-size: 12px;
}
.art-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-main { min-width: 0; }
.art-main h3 {
  margin: 2px 0 8px; font-size: 17px; font-weight: 600; line-height: 1.55;
  transition: color .15s;
}
.art-row:hover h3 { color: var(--red); }
.art-main p {
  margin: 0 0 10px; font-size: 13.8px; color: var(--ink-3); line-height: 1.8;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.art-meta { font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em; display: flex; gap: 14px; flex-wrap: wrap; }
.art-meta .src { color: var(--red); }
.empty { padding: 60px 0; text-align: center; color: var(--ink-3); font-size: 14px; }

/* ---------------------------------------------- 文章详情 */
.article { max-width: 800px; margin: 0 auto; }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 30px; }
.article-head h1 {
  font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.55;
  letter-spacing: .02em; margin: 0 0 14px; font-weight: 700;
}
.article-meta {
  font-size: 13px; color: var(--ink-3); display: flex; gap: 18px; flex-wrap: wrap;
  letter-spacing: .04em; align-items: center;
}
.article-meta .src { color: var(--red); border: 1px solid rgba(168, 35, 27, .25); padding: 1px 8px; border-radius: 2px; }
.article-body { font-size: 16px; line-height: 2.1; color: #2b2723; }
.article-body p { margin: 0 0 20px; text-indent: 2em; }
.article-body h3 {
  font-family: var(--serif); font-size: 19px; letter-spacing: .06em;
  margin: 32px 0 14px; padding-left: 12px; border-left: 3px solid var(--red);
}
.article-body blockquote {
  margin: 22px 0; padding: 14px 20px; background: var(--paper-2);
  border-left: 3px solid var(--gold); color: var(--ink-2); font-size: 15px;
}
.article-body blockquote p { text-indent: 0; margin: 0; }
.article-body figure { margin: 26px 0; }
/* ★ 绝不写 width:100%。原图多宽就显示多宽，超出容器由全局 img{max-width:100%} 等比压。
   微信正文里 500px 的小图本来就只占 500px，强拉满会放大失真；
   1080×2792 的竖版长图被拉满更会变成两屏多。height:auto 必须写——
   img 的 height 属性会落成 CSS，不置 auto 则缩宽时高度不跟，图会压扁。 */
.article-body figure img {
  width: auto; height: auto; max-width: 100%;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  background: var(--paper-2);
}

/* ---------- 公众号原排版容器 .wx-art（2026-10-18） --------------------------
   公众号正文多为 135 模板：整篇嵌在多层 <section> 里，标题靠 font-size/color、
   头图靠 flex + 负边距把「边框图/大字/楼群/边框图」拼成一张海报。
   因此抓取时保留结构与行内样式，这里只做三件事：
   ① 限宽 677px（微信正文设计宽）并居中；② 裁掉负边距溢出的装饰；
   ③ 把站点自己的段落字号/首行缩进/图片圆角阴影「复位」，避免与模板打架。 */
.article-body .wx-art { max-width: 677px; margin: 0 auto; overflow: hidden; }
.article-body .wx-art p {
  margin: 0; text-indent: 0; font-size: inherit; line-height: inherit; color: inherit;
}
.article-body .wx-art section,
.article-body .wx-art div,
.article-body .wx-art span { text-indent: 0; max-width: 100%; }
.article-body .wx-art img {
  display: inline-block; width: auto; height: auto; max-width: 100%;
  border-radius: 0; box-shadow: none; background: none;
}
/* ★ 不要用 zoom 等比缩小：模板字号 14px × 0.54 ≈ 7.5px，手机上没法读。
   微信自己的做法是「宽度 min(677px, 100%) + 内部 max-width:100% 自适应」，
   这里照抄即可（负边距仍是 px，与微信手机上表现一致）。 */
.article-foot {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.article-foot .tip { font-size: 12.5px; color: var(--ink-3); line-height: 1.8; }
.btn-line {
  font-size: 13.5px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 18px; color: var(--ink-2); background: var(--white); transition: all .15s;
}
.btn-line:hover { border-color: var(--red); color: var(--red); }

/* ---------------------------------------------- 教师页 */
.tier-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tier {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center; padding: 22px 10px;
}
.tier b { font-family: var(--serif); font-size: 32px; color: var(--red); line-height: 1; font-weight: 700; }
.tier span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 8px; letter-spacing: .04em; line-height: 1.5; }
.tier-grid.n4 { grid-template-columns: repeat(4, 1fr); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.team-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 16px; align-items: flex-start;
}
.avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: 21px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
}
.team-card h4 { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: .06em; }
.team-card .role { font-size: 12.5px; color: var(--red); margin: 3px 0 6px; letter-spacing: .06em; }
.team-card .note { font-size: 13px; color: var(--ink-3); line-height: 1.75; }

/* ---------------------------------------------- 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px;
}
.contact-card h3 {
  margin: 0 0 16px; font-family: var(--serif); font-size: 18px; letter-spacing: .1em;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.cline { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 9px 0; font-size: 14px; color: var(--ink-2); }
.cline b { color: var(--ink-3); font-weight: 400; }
.cline a:hover { color: var(--red); }
.mapbox {
  background: var(--paper-2); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 34px 20px; text-align: center; color: var(--ink-3); font-size: 13.5px; line-height: 2;
}

/* ---------------------------------------------- 页脚 */
.footer { background: #4a110d; color: rgba(255, 255, 255, .62); margin-top: 0; }
.footer .wrap { padding-top: 40px; padding-bottom: 26px; }
.foot-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand .seal { width: 46px; height: 46px; font-size: 25px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.foot-brand h4 { margin: 0 0 6px; font-family: var(--serif); font-size: 19px; color: #fff; letter-spacing: .12em; }
.foot-brand p { margin: 0; font-size: 12.5px; line-height: 1.9; color: rgba(255, 255, 255, .55); }
.foot-col h5 {
  margin: 0 0 12px; font-size: 13px; color: var(--gold-soft); letter-spacing: .14em; font-weight: 500;
}
.foot-col a, .foot-col span { display: block; font-size: 13px; line-height: 2.1; color: rgba(255, 255, 255, .6); }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  padding-top: 18px; font-size: 12px; color: rgba(255, 255, 255, .42);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; line-height: 1.9;
}
.foot-bottom a:hover { color: rgba(255, 255, 255, .8); }

/* ---------------------------------------------- 骨架屏 / 状态 */
.skeleton { background: linear-gradient(90deg, #f0ece4 25%, #f7f4ee 37%, #f0ece4 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 3px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.loading-note { padding: 40px 0; text-align: center; color: var(--ink-3); font-size: 13.5px; }

/* ---------------------------------------------- 响应式 */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 26px; }
  .hero-mark { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); padding-left: 0; padding-top: 22px; text-align: left; }
  .hero-mark .since { font-size: 44px; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .topbar .wrap { height: 30px; font-size: 11.5px; }
  .topbar-left span:nth-child(3) { display: none; }
  .brand-tail { display: none; }
  .brand-name { font-size: 23px; letter-spacing: .08em; }
  .seal { width: 44px; height: 44px; font-size: 24px; }
  .masthead .wrap { padding-top: 14px; padding-bottom: 14px; }

  .nav .wrap { height: auto; flex-wrap: wrap; }
  .nav .nav-btn { display: flex; }
  .nav a { display: none; width: 100%; padding: 11px 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
  .nav.open a { display: flex; }
  .nav.open a.on::after { display: none; }
  .nav .nav-sp { display: none; }

  .hero .wrap { padding-top: 38px; padding-bottom: 38px; }
  /* 首页 hero 只保留一个 CTA（校园动态）：窄屏给足点击面，避免像枚零碎小标签 */
  .hero-actions { gap: 10px; }
  .hero-actions .btn { justify-content: center; min-width: 152px; padding: 12px 26px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 14px 0; padding-top: 20px; padding-bottom: 20px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat b { font-size: 26px; }
  .section { padding: 40px 0; }
  .features { grid-template-columns: 1fr; }
  .sec-title { font-size: 22px; }
  .news-item { grid-template-columns: 58px 1fr; gap: 12px; }
  .news-tag { display: none; }
  .art-row { grid-template-columns: 1fr; gap: 12px; }
  .art-thumb { width: 100%; height: 168px; }
  .searchbox { margin-left: 0; width: 100%; }
  .searchbox input { width: 100%; }
  .honor-grid, .contact-grid, .team-grid { grid-template-columns: 1fr; }
  .tier-grid, .tier-grid.n4 { grid-template-columns: repeat(2, 1fr); }
  .philo-row { grid-template-columns: 90px 1fr; }
  .foot-main { grid-template-columns: 1fr; gap: 24px; }
  .article-body { font-size: 15.5px; }
}

/* ---------------------------------------------- 校园掠影 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--paper-2); aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px; font-size: 12.5px; color: #fff; line-height: 1.5;
  background: linear-gradient(transparent, rgba(20, 8, 4, .78));
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 1000px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ---------------------------------------------- 常用链接 */
.flink {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13.8px;
}
.flink:last-child { border-bottom: 0; }
.flink .n { color: var(--ink); white-space: nowrap; transition: color .15s; }
.flink .u {
  color: var(--ink-3); font-size: 11.5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.flink:hover .n { color: var(--red); }

/* ---------------------------------------------- 事业单位登记信息 */
.reg-table {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.reg-row {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px;
  padding: 13px 20px; border-bottom: 1px dashed var(--line);
}
.reg-row:last-child { border-bottom: 0; }
.reg-row:nth-child(odd) { background: #fcfaf5; }
.reg-k { color: var(--ink-3); font-size: 13.5px; white-space: nowrap; letter-spacing: .3px; }
.reg-v { color: var(--ink); font-size: 14.8px; overflow-wrap: anywhere; }
.reg-src { margin: 14px 2px 0; color: var(--ink-3); font-size: 12.5px; }

@media (max-width: 720px) {
  .reg-row { grid-template-columns: 1fr; gap: 2px; padding: 11px 15px; }
  .reg-k { font-size: 12.5px; }
  .reg-v { font-size: 14.5px; }
}
