﻿/* ==========================================================================
   南京奶蛙大学（南京农业大学）介绍站 —— 全站样式表 (style.css)
   --------------------------------------------------------------------------
   主题配色：主色 黄 · 副色 绿
   --------------------------------------------------------------------------
   【新手改动指南】
   1. 想换主题色：只改下面 :root 里的 --brand（黄）和 --accent（绿）两行。
   2. 想改圆角大小：改 --radius / --radius-lg。
   3. 想改页面最大宽度：改 --wrap（默认 1160px）。
   4. 每一段都有中文注释，按注释标题往下找即可。
   ========================================================================== */

/* ------------------------------ 1. 设计变量 ------------------------------ */
:root {
  /* 主色：黄 */
  --brand: #f2b705;
  --brand-dark: #cf9a00;
  --brand-ink: #3a2a00;      /* 黄底上必须用这个深色写字，否则看不清 */
  --brand-soft: #fff6d9;

  /* 副色：绿 */
  --accent: #2e7d32;
  --accent-dark: #1b5e20;
  --accent-ink: #ffffff;
  --accent-soft: #e6f4e7;

  /* 文字色（偏绿的黑，整体更协调） */
  --ink: #1a2a1c;            /* 标题 */
  --body: #46564b;           /* 正文 */
  --muted: #7d8c81;          /* 次要文字 */

  /* 背景与描边 */
  --bg: #ffffff;
  --soft: #f7faf4;           /* 淡绿底 */
  --cream: #fffdf6;          /* 淡黄底 */
  --line: #e5ebe4;

  /* 圆角 */
  --radius: 14px;
  --radius-lg: 22px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(26, 42, 28, .06), 0 4px 14px rgba(26, 42, 28, .05);
  --shadow-md: 0 10px 30px rgba(26, 42, 28, .10);
  --shadow-lg: 0 24px 60px rgba(46, 125, 50, .18);

  /* 布局 */
  --wrap: 1160px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------ 2. 基础重置 ------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
               "Hiragino Sans GB", "Source Han Sans SC", system-ui,
               -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--ink);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-dark); }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

/* 键盘可达性：Tab 键聚焦时的明显边框 */
:focus-visible {
  outline: 3px solid rgba(46, 125, 50, .5);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------ 3. 布局工具类 ---------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 84px 0; }
.section--soft { background: var(--soft); }
.section--cream { background: var(--cream); }
.section--tight { padding: 56px 0; }

.section-head {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head p { color: var(--muted); font-size: 1.02rem; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #6b4d00;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.eyebrow--green { background: var(--accent-soft); color: var(--accent-dark); }

/* 注意 minmax(0, 1fr)：如果直接写 1fr，它的最小宽度是 auto，
   子元素内容一长就会把整列撑破、导致手机上横向溢出。这是 CSS Grid 最常见的坑。 */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: 24px; }

/* 仅供屏幕阅读器 */
.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;
}

/* 跳到主内容（键盘用户按 Tab 第一个出现） */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 999;
  padding: 10px 18px; background: var(--accent); color: #fff;
  border-radius: 0 0 10px 10px; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ------------------------------ 4. 按钮 ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .96rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* 黄底 + 深棕字：这是黄色按钮唯一能保证清晰可读的搭配 */
.btn--primary {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 8px 20px rgba(242, 183, 5, .35);
}
.btn--primary:hover {
  background: var(--brand-dark);
  color: var(--brand-ink);
  box-shadow: 0 12px 26px rgba(242, 183, 5, .45);
}

.btn--green { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(46, 125, 50, .28); }
.btn--green:hover { background: var(--accent-dark); color: #fff; }

.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* 深绿底上的按钮 */
.btn--light { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn--light:hover { background: #fff; color: var(--accent-dark); border-color: #fff; }

.btn--sm { padding: 9px 18px; font-size: .88rem; }
.btn--block { width: 100%; }

/* ------------------------------ 5. 顶部导航 ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 246, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}

/* 站点标识：左侧校徽图片 + 右侧校名 */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.logo:hover { color: var(--ink); }
/* 校徽图片（images/emblem.png）。
   它已经处理成「圆形 + 透明圆角」，所以放在奶黄色页头和深绿色页脚上
   都不会出现一个突兀的白方块。 */
.logo__emblem {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: contain;
}
/* 手机上把校徽略微缩小，给校名腾出空间 */
@media (max-width: 420px) {
  .logo__emblem { width: 34px; height: 34px; }
  .logo { font-size: 1.05rem; }
}
.logo__text { line-height: 1.15; }
.logo__text small {
  display: block;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  display: block;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--body);
  font-size: .95rem;
  font-weight: 600;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav__link:hover { background: var(--brand-soft); color: #6b4d00; }
.nav__link.is-active { color: #6b4d00; background: var(--brand-soft); }

.nav__cta { margin-left: 10px; }

/* 汉堡按钮：只在手机上显示 */
.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 18px; height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav__toggle span { position: relative; }
.nav__toggle span::before,
.nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------ 6. 首屏 Hero ----------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 84px;
  background:
    radial-gradient(900px 460px at 88% -10%, rgba(242, 183, 5, .20), transparent 62%),
    radial-gradient(760px 440px at -6% 108%, rgba(46, 125, 50, .16), transparent 62%),
    var(--cream);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  /* 文字下方的高亮色块 */
  background: linear-gradient(transparent 62%, rgba(242, 183, 5, .5) 62%);
}
.hero__lead { font-size: 1.09rem; color: var(--body); max-width: 34em; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 32px;
  font-size: .92rem;
  color: var(--body);
}
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero__points li::before {
  content: "";
  width: 18px; height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero__media { position: relative; }
.hero__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* 浮在图片上的小卡片 */
.hero__badge {
  position: absolute;
  left: -22px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.hero__badge strong { display: block; color: var(--accent); font-size: 1.3rem; line-height: 1.1; }
.hero__badge span { font-size: .78rem; color: var(--muted); }

/* 校训横条 */
.motto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 26px 20px;
  background: var(--accent);
  color: #fff;
}
.motto__chars {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--brand);
  margin: 0;
}
.motto__note { font-size: .88rem; color: rgba(255, 255, 255, .82); margin: 0; }

/* 图片下方的小字说明（首屏大图、校园风光图都用它） */
.media-caption {
  margin: 12px 0 0;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
}
/* ------------------------------ 7. 数据条 -------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats--plain { border: none; padding: 0; }
.stats__item { text-align: center; }
.stats__num {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.stats__num small { font-size: .55em; font-weight: 700; }
.stats__label { font-size: .86rem; color: var(--muted); }

/* ------------------------------ 8. 卡片 ---------------------------------- */
.card {
  height: 100%;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 183, 5, .75);
  box-shadow: var(--shadow-md);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; color: var(--body); }

/* 卡片上的图标方块（内嵌 SVG，无需图片） */
.icon-box {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  border-radius: 15px;
  background: var(--brand-soft);
  color: #a87800;
}
.icon-box svg { width: 26px; height: 26px; }
.icon-box--green { background: var(--accent-soft); color: var(--accent); }

/* ------------------------------ 9. 学院卡片 ------------------------------ */
.dept {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.dept:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 183, 5, .75);
  box-shadow: var(--shadow-md);
}
.dept__media { position: relative; overflow: hidden; background: var(--soft); }
.dept__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.dept:hover .dept__media img { transform: scale(1.05); }

.dept__tag {
  position: absolute;
  left: 14px; top: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: var(--accent-dark);
  font-size: .74rem;
  font-weight: 700;
}
.dept__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.dept__body h3 { margin-bottom: 8px; }
.dept__body p { font-size: .93rem; }
.dept__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.dept__field { font-size: .95rem; font-weight: 800; color: #a87800; }
.dept__link { margin-left: auto; font-size: .88rem; font-weight: 700; color: var(--accent); }

/* ------------------------------ 10. 步骤流程 ----------------------------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding: 28px 26px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: .92rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: .92rem; }

/* ------------------------------ 11. 校园风光图片墙 ------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;      /* 竖版 3:4，三张图高度一致 */
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gallery figure:hover img { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.gallery figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: .86rem;
  color: var(--muted);
}
/* ------------------------------ 12. 行动号召条 --------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  background: linear-gradient(120deg, #14401a, var(--accent) 62%, #4f9a52);
  color: #fff;
  text-align: center;
}
.cta::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(242, 183, 5, .18);
}
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: rgba(255, 255, 255, .88); max-width: 640px; margin: 0 auto 30px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; z-index: 1; }

/* ------------------------------ 13. 页脚 --------------------------------- */
.site-footer {
  padding: 62px 0 0;
  background: #101d13;
  color: rgba(255, 255, 255, .7);
  font-size: .92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 40px;
  padding-bottom: 46px;
}
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .logo small { color: rgba(255, 255, 255, .5); }
.site-footer h4 {
  margin-bottom: 16px;
  color: #fff;
  font-size: .95rem;
  letter-spacing: .02em;
}
.footer__links li { margin-bottom: 10px; }
.footer__links a { color: rgba(255, 255, 255, .68); }
.footer__links a:hover { color: var(--brand); }
.footer__contact li { margin-bottom: 12px; display: flex; gap: 9px; }
.footer__contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 5px; opacity: .7; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .84rem;
  color: rgba(255, 255, 255, .48);
}
/* 免责声明：提醒访客这不是官方站点 */
.footer__disclaimer {
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .8rem;
  color: rgba(255, 255, 255, .42);
  line-height: 1.7;
}

/* ------------------------------ 14. 内页头部 ----------------------------- */
.page-hero {
  padding: 62px 0 56px;
  background:
    radial-gradient(800px 340px at 82% 0%, rgba(242, 183, 5, .22), transparent 64%),
    radial-gradient(600px 320px at 4% 100%, rgba(46, 125, 50, .12), transparent 64%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.page-hero p { max-width: 700px; color: var(--body); }

/* 面包屑 */
.crumb { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumb li::after { content: "/"; margin-left: 8px; color: #c9d3c8; }
.crumb li:last-child::after { content: ""; }

/* ------------------------------ 15. 筛选按钮 ----------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 42px;
}
.filter {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--body);
  font-size: .9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}

/* 被筛选隐藏的卡片 */
.is-hidden { display: none !important; }

/* ------------------------------ 16. 折叠问答 ----------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq details[open] { border-color: rgba(46, 125, 50, .4); box-shadow: var(--shadow-sm); }
.faq summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__body { padding: 0 22px 20px; font-size: .95rem; }

/* ------------------------------ 17. 校史时间轴 --------------------------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--brand), var(--accent));
}
.timeline li { position: relative; padding-bottom: 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -30px; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
}
.timeline__year {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--accent);
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .04em;
}
.timeline h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline p { font-size: .93rem; }

/* ------------------------------ 18. 联系页 ------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 46px;
  align-items: start;
}

.info-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.info-card + .info-card { margin-top: 14px; }
.info-card .icon-box { margin: 0; width: 46px; height: 46px; border-radius: 13px; }
.info-card .icon-box svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 1rem; margin-bottom: 4px; }
.info-card p { font-size: .92rem; }
.info-card a { font-weight: 600; color: var(--accent); }

/* 校区卡片 */
.campus {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  border-bottom: 4px solid var(--accent);
}
.campus h3 { font-size: 1.1rem; margin-bottom: 6px; }
.campus__addr { font-size: .93rem; color: var(--body); }
.campus__zip { font-size: .82rem; color: var(--muted); }
.campus__note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: .87rem;
  color: var(--muted);
}

/* 表单 */
.form-card {
  padding: 34px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
}
.field .req { color: #c62828; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink);
  font-size: .95rem;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, .12);
}
.field--row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field--row .field { margin-bottom: 18px; }

.form__note { margin-top: 14px; font-size: .82rem; color: var(--muted); }
/* 表单提交后的提示条 */
.form__alert {
  display: none;
  margin-bottom: 20px;
  padding: 13px 16px;
  border-radius: 10px;
  background: #e7f7ef;
  border: 1px solid #a8e0c3;
  color: #17663c;
  font-size: .9rem;
}
.form__alert.is-visible { display: block; }

.map-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft);
}
.map-card img { width: 100%; }

/* ------------------------------ 19. 滚动进场动画 ------------------------- */
/* 关键：前面加 .js —— 只有 JS 可用时才隐藏元素。
   万一访客禁用了 JavaScript，内容仍然全部可见，不会变成一片空白。 */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* 尊重系统「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 回到顶部按钮 */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-dark); }
.to-top svg { width: 20px; height: 20px; }

/* ------------------------------ 20. 响应式 ------------------------------- */
/* 平板 */
@media (max-width: 980px) {
  .section { padding: 66px 0; }
  .hero { padding: 56px 0 66px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero__media { max-width: 560px; }
  .hero__badge { left: 14px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

/* 手机 */
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { font-size: 15.5px; line-height: 1.72; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 36px; }

  /* 手机上把导航收进抽屉 */
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    left: 12px; right: 12px; top: calc(var(--header-h) + 8px);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    /* 默认隐藏，加 .is-open 才展开 */
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__link { padding: 12px 14px; border-radius: 10px; }
  /* 让"招生咨询"按钮在抽屉里撑满整行 */
  .nav__cta { margin: 8px 0 0; width: 100%; }

  .grid--2, .grid--3, .grid--4, .gallery { grid-template-columns: minmax(0, 1fr); }
  .grid { gap: 18px; }
  .card, .step { padding: 24px 22px; }

  .hero__actions .btn { flex: 1 1 100%; }
  .field--row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .form-card { padding: 26px 22px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer__bottom { justify-content: flex-start; }
  .to-top { right: 16px; bottom: 16px; }
  .timeline { padding-left: 26px; }
  .timeline li::before { left: -26px; }
  .motto { flex-direction: column; gap: 6px; text-align: center; }
}

/* 打印时隐藏交互元素 */
@media print {
  .site-header, .to-top, .cta__actions, .filters { display: none !important; }
  body { color: #000; }
}
