/* ============================================================
   Yeyao Research Group · 冷紫淡雅长卷
   背景：全页统一冷紫纯色（无渐变）；论文 / 团队 / 页脚 用整幅色块硬边交界分区
   ============================================================ */

:root {
  --bg: #BAB8E5;            /* 页面统一底色（冷紫，无渐变） */
  --band: #EAE9F7;          /* 色块区底色：论文 / 团队 / 页脚，与页面底色硬边交界 */
  --ink: #3B3A6E;           /* 深冷紫主色 */
  --ink-deep: #2B2A55;
  --ink-soft: #6C6B96;
  --accent: #8E8CC4;
  --accent-soft: #E7E6F5;
  --card: #FFFFFF;
  --line: #E5E4F2;
  --text: #33325C;
  --muted: #6E6D95;
  --gold: #D8B25E;          /* 银杏叶点缀 */
  --radius-lg: 26px;
  --radius-md: 18px;
  --ease: cubic-bezier(.22, .68, .36, 1);
  --serif: Georgia, "Times New Roman", "Noto Sans SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* 标题专用字体：Relmond（本地托管，拉丁字符；中文标题回退到衬线栈） */
@font-face {
  font-family: "Relmond";
  src: url("../fonts/relmond.ttf") format("truetype");
  font-weight: normal; font-style: normal; font-display: swap;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 60px; }

body {
  font-family: var(--sans);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  background: var(--bg);     /* 全页统一底色，无渐变 */
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;          /* 防横向溢出（长标题/菜单）导致错位 */
}

a { color: inherit; text-decoration: none; }

/* ===================== 顶部导航 ===================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);                  /* 与主背景同色 */
  border-bottom: 1px solid rgba(43, 42, 85, .1);
  transition: box-shadow .3s var(--ease);
}
.nav.is-scrolled { box-shadow: 0 4px 18px rgba(43, 42, 85, .1); }
.nav-in {
  max-width: 1180px; margin: 0 auto;
  padding: 0 24px; height: 46px;          /* 纵向更窄（原 68 的约 2/3） */
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 14px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand .logo { width: 26px; height: 26px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b {
  font-family: var(--serif); font-size: 13px; font-weight: 600;
  letter-spacing: .2px; color: var(--ink);
}
.brand-txt i { font-style: normal; font-size: 10px; letter-spacing: 2px; color: var(--ink-soft); }

.menu { justify-self: center; display: flex; align-items: center; gap: 4px; }
.menu a {
  position: relative; padding: 6px 11px;
  font-size: 13px; color: var(--ink-deep);   /* 菜单字统一深紫 */
  border-radius: 9px; white-space: nowrap;
  transition: color .25s var(--ease);
}
.menu a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: center;
  transition: transform .3s var(--ease);
}
.menu a:hover { color: var(--ink-deep); }
.menu a:hover::after,
.menu a.is-active::after { transform: scaleX(1); }
.menu a.is-active { color: var(--ink-deep); font-weight: 500; }

.nav-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.lang-btn {
  font-family: var(--sans); font-size: 12px; letter-spacing: .6px;
  color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px; cursor: pointer;
  transition: border-color .25s, background .25s, color .25s;
}
.lang-btn:hover { border-color: var(--accent); background: var(--accent-soft); }

.burger {
  display: none; width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.burger span {
  display: block; width: 15px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .25s;
}
.burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ===================== 主体容器（无毛玻璃、无边框） ===================== */
.sheet {
  max-width: 1080px;
  margin: 34px auto 0;
  padding: 0 8px 30px;
  display: flex; flex-direction: column; gap: 30px;
  position: relative; z-index: 2;   /* 正文层级高于上提的页脚区，供 JS 淡出腾位 */
}

/* ===================== 整幅色块区（硬边交界，不用边框/分割线） ===================== */
.band {
  background: var(--band);
  padding: 56px 24px;
}
.band .band-in { max-width: 1080px; margin: 0 auto; }
.band .panel-head h2::after { display: none; }        /* 色块内不画装饰分割线 */
/* 色块内的卡片：无边框、无阴影，只靠底色提亮区分 */
.band .pubs li,
.band .member {
  border: none; box-shadow: none;
  background: rgba(255, 255, 255, .5);
}
.band .pubs li:hover,
.band .member:hover { background: rgba(255, 255, 255, .68); }

/* ===================== 首页 Hero（背景即冷紫长图） ===================== */
.hero {
  position: relative; overflow: hidden;
  padding: 74px 44px 68px;
  text-align: center;
  border-radius: var(--radius-lg);
  min-height: calc(100vh - 80px);   /* 撑满首屏：打开时看不到下方导师区 */
  display: flex; align-items: center; justify-content: center;
}
.hero-inner { position: relative; z-index: 3; width: 100%; }

/* 曲线层：JS 逐段匀速描线 */
.curves {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  pointer-events: none;
}
.curve {
  fill: none;
  stroke: rgba(255, 255, 255, .94);
  stroke-width: 13;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* 标题逐字/逐词飘入 */
.hero h1 .tk {
  display: inline-block;
  opacity: 0; transform: translateY(26px);
  animation: tkIn .78s cubic-bezier(.22, .68, .36, 1) forwards;
}
@keyframes tkIn { to { opacity: 1; transform: none; } }

.kicker {
  display: inline-block; font-size: 12.5px; letter-spacing: 4px;
  color: rgba(43, 42, 85, .72); margin-bottom: 16px;
}
.divider {
  width: 52px; height: 3px; border-radius: 2px;
  background: rgba(43, 42, 85, .38); margin: 0 auto 24px;
}
.hero h1 {
  font-family: "Relmond", var(--serif); font-weight: 700;
  font-size: clamp(22px, 5.4vw, 56px);    /* 放大：主标题更突出 */
  letter-spacing: 3px;                    /* 字间距稍加大 */
  white-space: nowrap;                    /* 标题强制一行 */
  color: var(--ink-deep); line-height: 1.1;
  display: inline-block;
  transform: scale(1.05, 0.95);           /* 略横宽竖矮：矮胖沉稳，压掉原有瘦高拉伸 */
  transform-origin: center center;
}
.hero-desc {
  max-width: 560px; margin: 22px auto 0;
  color: var(--ink-deep); font-size: 14.5px;   /* 与标题同深紫 */
}
.hero-btns { margin-top: 32px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 30px;
  font-size: 14.5px; letter-spacing: .6px;
  border-radius: 999px; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
}
.btn-solid { background: var(--ink-deep); color: #fff; box-shadow: 0 8px 20px rgba(43, 42, 85, .22); }
.btn-solid:hover { background: #211F47; transform: translateY(-2px); }
.btn-line { border: 1px solid rgba(43, 42, 85, .45); color: var(--ink-deep); background: transparent; }
.btn-line:hover { background: var(--ink-deep); color: #fff; transform: translateY(-2px); }

/* ===================== 导师介绍（左大图 + 右介绍） ===================== */
.pi-intro {
  display: grid; grid-template-columns: 400px 1fr;
  gap: 44px; align-items: center;
}
.pi-photo { position: relative; }
.pi-photo img {
  width: 100%; height: auto; display: block;   /* 按原图比例，不裁不拉 */
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(43, 42, 85, .16);
}
/* 导师区出场：像彩旗一样从左下方飘入（滚动到才出现） */
.pi-intro { opacity: 0; }
.pi-intro.visible { opacity: 1; transition: opacity .01s; }
.pi-intro .pi-photo,
.pi-intro .pi-body {
  opacity: 0; transform: translate(-64px, 44px) rotate(-5deg);
  transform-origin: left bottom;
}
.pi-intro.visible .pi-photo,
.pi-intro.visible .pi-body {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.pi-intro.visible .pi-body { transition-delay: .16s; }
.pi-name {
  font-family: "Relmond", var(--serif); font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px); letter-spacing: 1px; color: var(--ink-deep);
}
.pi-role {
  margin-top: 8px; font-size: 13px; letter-spacing: .8px;
  color: var(--accent); font-weight: 600;
}
.pi-bio { margin-top: 16px; font-size: 14.5px; color: var(--ink-deep); line-height: 1.85; }
.pi-btn { margin-top: 22px; }

/* ===================== 统计条（沿用 website2 计数样式，配色走 website3 冷紫淡雅） ===================== */
.stats-strip {
  background: #FFFFFF;                           /* 底色与侧边悬浮说明卡一致：纯白 */
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 34px 48px;
  /* 贯穿页面左右：负外边距逃出 .sheet 的限宽，通栏铺满视口 */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 44px; text-align: center;
}
.stat {
  display: block; min-width: 120px;
  text-decoration: none; color: inherit;
  padding: 8px 12px; border-radius: 12px;
  transition: background .3s var(--ease);
}
.stat .num {
  font-family: var(--serif); font-size: 42px; font-weight: 700;
  color: var(--ink-deep); line-height: 1.15;
  display: inline-block; transform: scale(1);
  transform-origin: center bottom;
  transition: transform .35s var(--ease), color .35s var(--ease);
}
.stat .num .plus { color: var(--accent); font-weight: 700; margin-left: 1px; }
.stat .label {
  font-size: 14px; color: var(--muted);
  letter-spacing: 2px; margin-top: 4px;
  transition: color .3s var(--ease);
}
/* 悬停交互（website2 同款）：数字放大、标签提亮；保持深紫主色，不用金色 */
.stat:hover .num { transform: scale(1.12); color: var(--ink-deep); }
.stat:hover .label { color: var(--ink-soft); }
/* 英文界面：标签更紧凑，避免换行错位 */
html[lang="en"] .stat .label { letter-spacing: .5px; white-space: nowrap; }

/* ===================== 内容面板（透明板块，直接落在背景上） ===================== */
.panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 44px 46px 48px;
}
.panel-head { margin-bottom: 30px; }
.panel-head h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: 27px; letter-spacing: 3px; color: var(--ink-deep);
}
.panel-head h2::after {
  content: ""; display: block; width: 44px; height: 3px; border-radius: 2px;
  background: var(--accent); margin-top: 14px;
}
.panel-head .en {
  margin-top: 6px; font-family: var(--serif); font-size: 13px;
  letter-spacing: 2.6px; color: var(--accent); text-transform: uppercase;
}
.panel-tip { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* ---------- 研究方向 ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.area {
  padding: 30px 26px 28px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 16px;
  background: rgba(255, 255, 255, .28);
  transition: border-color .3s, background .3s, transform .3s var(--ease), box-shadow .3s;
}
.area:hover {
  border-color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .42);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(43, 42, 85, .07);
}
.area-num {
  font-family: var(--serif); font-size: 13px; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 14px;
}
.area h3 {
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  letter-spacing: 1.4px; color: var(--ink-deep); margin-bottom: 12px;
}
.area p { font-size: 14.5px; color: var(--muted); line-height: 1.8; }

/* ---------- 研究成果 ---------- */
.pubs { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.pubs li {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 14px;
  background: rgba(255, 255, 255, .24);
  transition: border-color .3s, background .3s;
}
.pubs li:hover { border-color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .38); }
.yr {
  flex: none; font-family: var(--serif); font-size: 14px; font-weight: 600;
  color: var(--ink); background: var(--accent-soft);
  border-radius: 8px; padding: 5px 11px; letter-spacing: .5px;
}
.pub-body h4 {
  font-family: var(--serif); font-size: 15.5px; font-weight: 600;
  line-height: 1.6; color: var(--ink-deep); margin-bottom: 7px;
}
.pub-body .cite { font-size: 13px; color: var(--muted); line-height: 1.7; }
.pub-body .cite i { font-style: italic; }

/* ---------- 课程教学 ---------- */
.courses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.course {
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 16px;
  background: rgba(255, 255, 255, .28);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.course:hover { border-color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .42); transform: translateY(-3px); }
.course h3 {
  font-family: var(--serif); font-size: 17.5px; font-weight: 600;
  letter-spacing: 1.2px; color: var(--ink-deep); margin-bottom: 9px;
}
.course p { font-size: 14px; color: var(--muted); }

/* ---------- 团队成员 ---------- */
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.member {
  padding: 28px 22px 26px; text-align: center;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 16px;
  background: rgba(255, 255, 255, .28);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.member:hover { border-color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .42); transform: translateY(-3px); }
.avatar {
  width: 62px; height: 62px; margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 23px; color: var(--ink);
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .65);
}
.member.is-pi .avatar { background: var(--ink); color: #fff; border-color: var(--ink); }
.member h3 {
  font-family: var(--serif); font-size: 17px; font-weight: 600;
  letter-spacing: 1.5px; color: var(--ink-deep);
}
.member .role { font-size: 12.5px; color: var(--accent); margin-top: 6px; letter-spacing: .5px; }
.member .bio { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.7; }

/* ---------- 加入我们 ---------- */
.join-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; }
.join-text p { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.join-list { list-style: none; margin: 20px 0 22px; }
.join-list li {
  position: relative; padding-left: 22px; margin-bottom: 9px;
  font-size: 14.5px; color: var(--text);
}
.join-list li::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.join-mail { font-size: 14.5px; color: var(--ink-soft); }
.join-mail a { color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.join-mail a:hover { color: var(--accent); }
.join-card {
  padding: 28px 26px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 16px;
  background: rgba(255, 255, 255, .28);
}
.join-card h4 { border-bottom-color: rgba(255, 255, 255, .6); }
.join-card h4 {
  font-family: var(--serif); font-size: 16px; font-weight: 600;
  letter-spacing: 1.6px; color: var(--ink-deep);
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.join-card dl { display: grid; gap: 12px; }
.join-card dt { font-size: 12.5px; letter-spacing: 1.5px; color: var(--accent); }
.join-card dd { font-size: 14px; color: var(--text); margin-top: 2px; }

/* ===================== 子页面：研究方向（research.html） ===================== */
/* 页面横幅 */
.page-hero { text-align: center; padding: 30px 24px 6px; }
.page-hero h1 {
  font-family: "Relmond", var(--serif); font-weight: 600;
  font-size: clamp(30px, 5vw, 46px); letter-spacing: 2px;
  color: var(--ink-deep); line-height: 1.2;
}
.page-hero .en {
  margin-top: 10px; font-family: var(--serif); font-size: 13px;
  letter-spacing: 3px; color: var(--accent); text-transform: uppercase;
}
.page-hero .ph-intro {
  max-width: 760px; margin: 22px auto 0;
  font-size: 15px; line-height: 1.9; color: var(--muted);
}

/* 概览卡片作为链接 */
.area { text-decoration: none; color: inherit; cursor: pointer; display: flex; flex-direction: column; }
.area-go {
  display: inline-block; margin-top: 16px;
  font-size: 13px; letter-spacing: 1px; color: var(--accent);
  transition: transform .25s var(--ease);
}
.area:hover .area-go { transform: translateX(4px); }

/* 方向详情 */
.rd {
  padding: 34px 36px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 18px;
  background: rgba(255, 255, 255, .28);
  margin-bottom: 22px;
}
.rd:last-child { margin-bottom: 0; }
.rd-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.rd-num {
  flex: none; width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 24px; font-weight: 600;
  color: #fff; background: var(--ink);
}
.rd-head h3 {
  font-family: var(--serif); font-size: 21px; font-weight: 600;
  letter-spacing: 1.2px; color: var(--ink-deep);
}
.rd-en { font-family: var(--serif); font-size: 13px; letter-spacing: 1.4px; color: var(--accent); margin-top: 4px; }
.rd-intro { font-size: 15px; line-height: 1.9; color: var(--ink-deep); }
.rd-sec {
  margin: 24px 0 12px; font-family: var(--serif);
  font-size: 14px; font-weight: 600; letter-spacing: 1.6px; color: var(--ink);
  padding-bottom: 8px; border-bottom: 1px solid rgba(43, 42, 85, .12);
}
.rd-list { list-style: none; display: grid; gap: 9px; }
.rd-list li {
  position: relative; padding-left: 22px;
  font-size: 14.5px; line-height: 1.75; color: var(--text);
}
.rd-list li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.rd-reps { display: grid; gap: 12px; }
.rd-rep {
  display: block; padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 12px;
  background: rgba(255, 255, 255, .34);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.rd-rep:hover { border-color: var(--accent); background: rgba(255, 255, 255, .5); transform: translateY(-2px); }
.rd-rep .t { display: block; font-size: 14.5px; line-height: 1.65; color: var(--ink-deep); }
.rd-rep .m { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); font-style: italic; }
.rd-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-block; padding: 6px 14px;
  font-size: 13px; letter-spacing: .5px; color: var(--ink);
  background: var(--accent-soft); border-radius: 999px;
}
.rd-back { margin-top: 22px; }
.rd-back a { font-size: 13px; color: var(--accent); letter-spacing: .5px; }
.rd-back a:hover { color: var(--ink-deep); }

/* 代表研究议题 */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.topic {
  padding: 28px 26px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 16px;
  background: rgba(255, 255, 255, .28);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.topic:hover { border-color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .42); transform: translateY(-4px); }
.topic-ic {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: var(--accent-soft); margin-bottom: 16px;
}
.topic h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: 1px; color: var(--ink-deep); margin-bottom: 10px; }
.topic p { font-size: 14px; line-height: 1.8; color: var(--muted); }

/* ===================== 子页面：团队成员（team.html） ===================== */
/* 参考 website1 的分组 section + 圆形头像卡，配色走 website3 冷紫淡雅 */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.member-card {
  display: block; text-align: center; color: inherit;
  padding: 30px 18px 26px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 16px;
  background: rgba(255, 255, 255, .28);
  transition: border-color .3s, background .3s, transform .3s var(--ease), box-shadow .3s;
}
.member-card:hover {
  border-color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .42);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(43, 42, 85, .07);
}
/* 圆形头像：姓氏首字占位，后续可直接换成照片 <img> */
.avatar-c {
  width: 86px; height: 86px; margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 32px; color: var(--ink);
  background: var(--accent-soft);
  border: 2px solid rgba(255, 255, 255, .85);
  box-shadow: 0 6px 16px rgba(43, 42, 85, .10);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.member-card:hover .avatar-c { transform: scale(1.07); box-shadow: 0 12px 26px rgba(43, 42, 85, .18); }
.member-card h3 {
  font-family: var(--serif); font-size: 17px; font-weight: 600;
  letter-spacing: 1.2px; color: var(--ink-deep);
}
.member-card .m-role { margin-top: 6px; font-size: 12.5px; letter-spacing: .5px; color: var(--accent); }
.member-card .m-hint { margin-top: 12px; font-size: 12px; color: var(--muted); transition: color .25s; }
.member-card:hover .m-hint { color: var(--ink-soft); }

/* ===================== 子页面：成员个人介绍（member.html?id=…） ===================== */
/* 大矩形白版卡（约两倍大）：左侧六寸比例（3:2）照片槽，右侧介绍文字（左对齐排版） */
.mb-card {
  max-width: 1060px; margin: 0 -34px;   /* 负外边距突破面板内边距，桌面端整体放大 */
  padding: 60px 56px 52px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 22px 54px rgba(43, 42, 85, .16);
}
.mb-grid {
  display: grid; grid-template-columns: 400px 1fr;
  gap: 52px; align-items: center;
}
/* 六寸比例照片槽（3:2 横版）：当前为姓氏首字占位，可直接放 <img> 照片 */
.mb-photo {
  width: 100%; aspect-ratio: 2 / 3;              /* 六寸竖版比例（2:3） */
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 120px; color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid rgba(43, 42, 85, .08);
}
.mb-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 17px; display: block; }
.mb-info { text-align: left; }
.mb-name {
  font-family: "Relmond", var(--serif); font-weight: 600;
  font-size: clamp(30px, 3.8vw, 42px); letter-spacing: 1px;
  color: var(--ink-deep); line-height: 1.2;
}
.mb-en {
  margin-top: 8px; font-family: var(--serif); font-size: 15px;
  letter-spacing: 2.4px; color: var(--accent); text-transform: uppercase;
}
.mb-role { margin-top: 16px; font-size: 15px; color: var(--ink); }
.mb-div { width: 56px; height: 3px; border-radius: 2px; background: var(--accent); margin: 24px 0; }
.mb-dir { font-size: 15px; color: var(--ink-soft); }
.mb-dir b { font-weight: 600; color: var(--ink); }
.mb-bio { margin-top: 18px; }
.mb-bio p { font-size: 15.5px; line-height: 1.95; color: var(--text); }
/* 详略突出：首段作为引导摘要，更大更深 */
.mb-bio p:first-child { font-size: 17px; color: var(--ink-deep); font-weight: 500; line-height: 1.85; }
.mb-bio p + p { margin-top: 12px; }
.mb-back { margin-top: 34px; text-align: center; }
.mb-back a { font-size: 13px; color: var(--accent); letter-spacing: .5px; transition: color .2s; }
.mb-back a:hover { color: var(--ink-deep); }

/* ---------- 团队页撞色分区：纯白带 / 浅紫带 交替，与页面底色硬边交界 ---------- */
.team-band { padding: 52px 24px; }
.team-band.white { background: #FFFFFF; }
.team-band.tint { background: var(--accent-soft); }
.team-band .band-in { max-width: 1080px; margin: 0 auto; }
/* 白底带上的卡片：改用浅紫灰底保持层次 */
.team-band.white .member-card {
  background: rgba(59, 58, 110, .045);
  border-color: rgba(43, 42, 85, .12);
}
.team-band.white .member-card:hover {
  background: #FFFFFF; border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(43, 42, 85, .12);
}
/* 浅紫底带上的卡片：白透提亮 */
.team-band.tint .member-card {
  background: rgba(255, 255, 255, .55);
  border-color: rgba(255, 255, 255, .9);
}
.team-band.tint .member-card:hover { background: #FFFFFF; border-color: var(--accent); }

/* ---------- 联系方式页（contact.html）：可点击联系卡 + 图标信息卡 ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card {
  display: block; text-align: center; color: inherit;
  padding: 32px 26px 28px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 16px;
  background: rgba(255, 255, 255, .28);
  transition: border-color .3s, background .3s, transform .3s var(--ease), box-shadow .3s;
}
.contact-card:hover {
  border-color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .42);
  transform: translateY(-4px); box-shadow: 0 14px 30px rgba(43, 42, 85, .07);
}
.cc-icon { font-size: 30px; line-height: 1; }
.contact-card h3 {
  margin-top: 14px; font-family: var(--serif); font-size: 18px; font-weight: 600;
  letter-spacing: 1.2px; color: var(--ink-deep);
}
.cc-main { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.contact-card p { margin-top: 10px; font-size: 13.5px; line-height: 1.8; color: var(--muted); }

/* 图标信息卡（招生信息 / 本科生科研 / 如何申请 / 课题组文化） */
.topics.two { grid-template-columns: 1fr 1fr; }

/* ---------- 通用撞色分区带（contact 招生栏 / outputs 成果页 / teaching） ---------- */
.band-sec { padding: 52px 24px; }
.band-sec.white { background: #FFFFFF; }
.band-sec.tint { background: var(--accent-soft); }
.band-sec .band-in { max-width: 1080px; margin: 0 auto; }
/* 白底带上的半透明卡片改浅紫灰底，保持层次 */
.band-sec.white .topic,
.band-sec.white .contact-card,
.band-sec.white .proj-item,
.band-sec.white .service-card {
  background: rgba(59, 58, 110, .045);
  border-color: rgba(43, 42, 85, .12);
}
/* 研究方向页：白底带上的方向详情卡与代表成果行同步改浅紫灰底 */
.band-sec.white .rd,
.band-sec.white .rd-rep {
  background: rgba(59, 58, 110, .045);
  border-color: rgba(43, 42, 85, .12);
}
.band-sec.white .topic:hover,
.band-sec.white .contact-card:hover,
.band-sec.white .service-card:hover {
  background: #FFFFFF; border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(43, 42, 85, .12);
}
/* 浅紫底带上的卡片白透提亮 */
.band-sec.tint .topic,
.band-sec.tint .contact-card,
.band-sec.tint .proj-item,
.band-sec.tint .service-card {
  background: rgba(255, 255, 255, .55);
  border-color: rgba(255, 255, 255, .9);
}
.band-sec.tint .topic:hover,
.band-sec.tint .contact-card:hover,
.band-sec.tint .service-card:hover { background: #FFFFFF; border-color: var(--accent); }

/* ---------- 课程教学页（teaching.html）：横滑选图轨道（website2 手机端形态） ---------- */
.rail-hint { text-align: center; font-size: 12.5px; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 18px; }
.rail {
  display: flex; gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 6px 4px 12px;
  /* 显示滑动滚动条（细款，配色走冷紫） */
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 58, 110, .45) rgba(43, 42, 85, .07);
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-track { background: rgba(43, 42, 85, .07); border-radius: 4px; }
.rail::-webkit-scrollbar-thumb { background: rgba(59, 58, 110, .45); border-radius: 4px; }
.rail::-webkit-scrollbar-thumb:hover { background: var(--ink); }
.rail-card {
  flex: none; width: 280px; scroll-snap-align: center;
  border-radius: 18px; overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(43, 42, 85, .10);
  box-shadow: 0 12px 28px rgba(43, 42, 85, .10);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  color: inherit;
}
.rail-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(43, 42, 85, .16); }
/* 扑克牌比例：卡宽:总高 ≈ 5:7 —— 图区压扁为 6/5，避免整卡瘦长 */
.rail-card .rc-img { aspect-ratio: 6 / 5; width: 100%; object-fit: cover; display: block; }
.rail-card .rc-body { padding: 16px 16px 18px; }
.rail-card .rc-no {
  font-family: var(--serif); font-size: 11.5px; letter-spacing: 2px; color: var(--accent);
}
.rail-card h3 {
  margin-top: 6px; font-family: var(--serif); font-size: 16.5px; font-weight: 600;
  letter-spacing: 1px; line-height: 1.45; color: var(--ink-deep);
}
.rail-card .rc-chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.rail-card .rc-chips .chip { font-size: 11.5px; padding: 3px 10px; }
.rail-card .rc-more { display: block; margin-top: 12px; font-size: 12px; color: var(--muted); transition: color .25s; }
.rail-card:hover .rc-more { color: var(--ink); }

/* ---------- 课程详情页（course.html?id=…） ---------- */
.cd-card {
  max-width: 900px; margin: 0 auto;
  padding: 50px 52px 46px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(43, 42, 85, .14);
}
.cd-head { display: flex; align-items: center; gap: 16px; }
.cd-head .cd-no { font-family: var(--serif); font-size: 12.5px; letter-spacing: 2px; color: var(--accent); }
.cd-chips { display: flex; gap: 8px; }
.cd-card h1 {
  margin-top: 14px; font-family: "Relmond", var(--serif); font-weight: 600;
  font-size: clamp(24px, 3.4vw, 34px); letter-spacing: 1px; color: var(--ink-deep); line-height: 1.3;
}
.cd-en { margin-top: 8px; font-family: var(--serif); font-size: 13.5px; letter-spacing: 2px; color: var(--accent); text-transform: uppercase; }
.cd-desc { margin-top: 20px; font-size: 15.5px; line-height: 1.95; color: var(--ink-deep); }
.cd-sec {
  margin: 28px 0 14px; font-family: var(--serif);
  font-size: 14px; font-weight: 600; letter-spacing: 1.6px; color: var(--ink);
  padding-bottom: 8px; border-bottom: 1px solid rgba(43, 42, 85, .12);
}
.cd-list { list-style: none; display: grid; gap: 9px; }
.cd-list li {
  position: relative; padding-left: 22px;
  font-size: 14.5px; line-height: 1.75; color: var(--text);
}
.cd-list li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.cd-dls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.cd-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.cd-back { margin-top: 30px; text-align: center; }
.cd-back a { font-size: 13px; color: var(--accent); letter-spacing: .5px; }
.cd-back a:hover { color: var(--ink-deep); }

/* 受控下载按钮（与 website1/2 同形态：默认锁定，成员登录后由脚本解锁） */
.dl-btn {
  display: inline-block; padding: 11px 22px;
  font-size: 13.5px; letter-spacing: .4px;
  border-radius: 999px; cursor: pointer;
  background: var(--accent-soft); color: var(--ink-deep);
  border: 1px solid rgba(43, 42, 85, .14);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.dl-btn:hover { background: var(--ink-deep); color: #fff; transform: translateY(-2px); }
/* 锁定态：虚线边 + 灰化 + 不抬升，明确「会员专属、需登录」 */
.dl-btn.is-locked {
  opacity: .82;
  background: transparent; color: var(--ink-soft);
  border: 1px dashed rgba(43, 42, 85, .34);
  box-shadow: none; cursor: help;
}
.dl-btn.is-locked:hover {
  background: rgba(43, 42, 85, .06); color: var(--ink-deep);
  transform: none;
}

/* ---------- 研究成果页（outputs.html）：分区撞色组件 ---------- */
.proj-list { display: grid; gap: 14px; }
.proj-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 16px;
  background: rgba(255, 255, 255, .28);
  transition: border-color .3s, background .3s;
}
.proj-item:hover { background: rgba(255, 255, 255, .42); border-color: rgba(255, 255, 255, .8); }
.proj-badge {
  flex: none; min-width: 58px; text-align: center;
  font-size: 12px; letter-spacing: 1px; font-weight: 600;
  color: #fff; background: var(--ink);
  border-radius: 8px; padding: 6px 10px; margin-top: 3px;
}
.proj-badge--prov { background: var(--accent); }
.proj-badge--school { background: var(--ink-soft); }
.proj-badge--gold { background: var(--gold); }
.proj-body h3 {
  font-family: var(--serif); font-size: 17px; font-weight: 600;
  letter-spacing: .8px; line-height: 1.6; color: var(--ink-deep);
}
.proj-meta { margin-top: 5px; font-size: 13px; color: var(--accent); letter-spacing: .4px; }
.proj-body p { margin-top: 10px; font-size: 14.5px; line-height: 1.85; color: var(--text); }
.proj-body .adv-adopt { font-size: 13.5px; color: var(--ink); }
.book-list, .award-list { list-style: none; display: grid; gap: 14px; }
.book-item, .award-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 14px;
  background: rgba(255, 255, 255, .28);
}
.book-year, .award-year {
  flex: none; font-family: var(--serif); font-size: 14px; font-weight: 600;
  color: var(--ink); background: var(--accent-soft);
  border-radius: 8px; padding: 5px 11px; letter-spacing: .5px; margin-top: 2px;
}
.book-item b { font-family: var(--serif); font-size: 15.5px; color: var(--ink-deep); }
.book-item span { display: block; margin-top: 4px; font-size: 13px; color: var(--accent); }
.book-item p, .award-item div div { margin-top: 8px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.award-item b { font-size: 14.5px; color: var(--ink-deep); }
.award-item span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 16px;
  background: rgba(255, 255, 255, .28);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.service-card:hover { background: rgba(255, 255, 255, .42); border-color: rgba(255, 255, 255, .8); transform: translateY(-3px); }
.service-card .num { font-family: var(--serif); font-size: 11.5px; letter-spacing: 2px; color: var(--accent); }
.service-card h3 { margin-top: 10px; font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink-deep); letter-spacing: .8px; }
.service-card p { margin-top: 8px; font-size: 13px; line-height: 1.7; color: var(--muted); }
/* 期刊论文条目 */
.pub-item-link { display: block; color: inherit; }
.pub-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 18px 20px; margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 14px;
  background: rgba(255, 255, 255, .5);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.pub-item:hover { border-color: var(--accent); background: #FFFFFF; transform: translateY(-2px); }
.pub-item .year {
  flex: none; font-family: var(--serif); font-size: 13.5px; font-weight: 600;
  color: var(--ink); background: var(--accent-soft);
  border-radius: 8px; padding: 4px 10px; margin-top: 2px;
}
.pub-item h4 { font-family: var(--serif); font-size: 14.5px; font-weight: 600; line-height: 1.65; color: var(--ink-deep); }
.pub-item .meta { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.pub-item .meta i { font-style: italic; }
.pub-item em { font-style: normal; color: var(--accent); font-size: 13px; }
.kw-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.kw-tag {
  font-size: 11.5px; color: var(--ink);
  background: var(--accent-soft); border-radius: 999px; padding: 3px 10px;
}
.sec-note { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

/* ===================== 悬浮说明卡（fixed，伴随整页，可关闭） ===================== */
.slate {
  position: fixed; z-index: 131;
  right: 26px; top: 50%;
  width: 300px; padding: 24px 24px 22px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 44px rgba(43, 42, 85, .16);
  transform: translateY(-50%) translateX(16px) scale(.97);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.slate.is-open { opacity: 1; transform: translateY(-50%) translateX(0) scale(1); pointer-events: auto; }
.slate-close {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; padding: 0;
  border: none; border-radius: 50%;
  background: transparent; color: var(--muted);
  font-size: 19px; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s;
}
.slate-close:hover { background: rgba(43, 42, 85, .08); color: var(--ink-deep); }
.slate-name {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  letter-spacing: 1px; color: var(--ink-deep);
}
.slate-eyebrow { margin-top: 12px; font-size: 11.5px; line-height: 1.8; color: var(--muted); }
.slate-badge {
  display: inline-block; margin-top: 14px;
  background: var(--ink); color: #fff;
  font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 15px; border-radius: 999px;
}

/* ===================== 页脚：贝壳图镜头推进（滚动驱动放大铺满） ===================== */
/* 贝壳未放大前是页面底部的一部分：静态嵌在钉住舞台底边、随文档自然滚入视野，
   与正文永不重叠；只有滑过它（舞台钉住）之后才开始放大 */
.foot { padding: 0; background: var(--ink-deep); margin-top: 0; position: relative; z-index: 1; }   /* 与正文紧挨着，不做上提重叠 */

/* 滚动驱动区间：唯一触发源 = 页面纵向滚动（速度还原为原始值，保证完整看到贝壳图） */
.foot-scroll { position: relative; height: 135vh; }   /* 钉住行程 35vh = 放大行程：贝壳完整露出（舞台钉住）后才开始放大 */
.foot-stick {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  /* 底部 --shell-lift 区域为深色底条（与贝壳图自带实心底 #2E2B57 同色）：
     贝壳上提后放大过程中底边以下不再露紫底，色彩无缝衔接。
     条顶比贝壳底边多高出 2px（-2px）：盖住贝壳图底边的半透明抗锯齿行，
     手机端高 dpr 屏不再露出 1px 浅紫分界线 */
  --shell-lift: 330px;   /* 贝壳起始上提量：210 + 追加 120 = 330px */
  background: linear-gradient(to bottom,
    var(--bg) calc(100% - var(--shell-lift) - 2px),
    #2E2B57 calc(100% - var(--shell-lift) - 2px));
  --sz: 1;    /* 贝壳缩放倍率（JS 指数推进写入） */
  --vp: 0;    /* 收尾补底层不透明度：推进后半程接管，兜住铺满 */
}

/* 收尾补底：与贝壳同色，后半程淡入，负责填满贝壳尚未覆盖的空白 */
.foot-veil {
  position: absolute; inset: 0; z-index: 2;
  background: var(--ink-deep);
  opacity: var(--vp);
}

/* 贝壳图：底部居中锚定（整体上提 --shell-lift = 330px ≈ 侧边悬浮卡高度再上移 120px），
   随 --sz 以底边为原点放大，模拟镜头持续推进。
   未放大阶段静态嵌在舞台内（文档流）：随滚动自然露出，不追踪视口、不缩放 */
.foot-shell {
  position: absolute; left: 0; bottom: var(--shell-lift); z-index: 1;
  width: 100%; height: auto;
  display: block;
  transform: scale(var(--sz));
  transform-origin: 50% 100%;
  will-change: transform;
}

/* 欢迎语 + 介绍 + 加入我们：居中偏上，铺满后就地浮现（排版参考 Catskills 结尾屏） */
/* 波浪式入场：逐条错峰上浮 + 轻微倾斜回正（不做半透明渐隐叠化） */
@keyframes waveIn {
  0%   { opacity: 0; transform: translate3d(0, 52px, 0) rotate(1.8deg); }
  45%  { opacity: 1; }
  72%  { transform: translate3d(0, -7px, 0) rotate(-.6deg); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); }
}
/* 标题版本：入场位移/旋转 + 与首页一致的横宽竖矮终态 */
@keyframes waveInTitle {
  0%   { opacity: 0; transform: translate3d(0, 52px, 0) rotate(1.8deg) scale(1.05, 0.95); }
  45%  { opacity: 1; }
  72%  { transform: translate3d(0, -7px, 0) rotate(-.6deg) scale(1.05, 0.95); }
  100% { opacity: 1; transform: scale(1.05, 0.95); }
}

.foot-text {
  position: absolute; left: 0; right: 0; top: 0; bottom: 22%; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px;
  color: #F1EFFB;
}
.foot-text > * { opacity: 0; }
.foot-text.is-in > * { animation: waveIn .8s var(--ease) both; }
.foot-text.is-in > .cta-title { animation-name: waveInTitle; }
.foot-text.is-in > *:nth-child(1) { animation-delay: 0s; }
.foot-text.is-in > *:nth-child(2) { animation-delay: .13s; }
.foot-text.is-in > *:nth-child(3) { animation-delay: .26s; }
.foot-text.is-in > *:nth-child(4) { animation-delay: .39s; }
.cta-title {
  font-family: "Relmond", var(--serif); font-weight: 700;   /* 与首页主标题一致：700 更粗 */
  font-size: clamp(28px, 4.6vw, 48px);
  letter-spacing: 3px; line-height: 1.18;                    /* 字距加大，与首页主标题一致 */
  transform: scale(1.05, 0.95); transform-origin: center bottom;   /* 与首页一致：略横宽竖矮 */
}
.cta-sub { margin-top: 22px; font-size: 16px; color: rgba(241, 239, 251, .92); }
.cta-note { margin-top: 10px; font-size: 13px; color: rgba(241, 239, 251, .6); }
.cta-btn {
  display: inline-block; margin-top: 30px;
  padding: 13px 34px; border-radius: 999px;
  background: #ECEAFB; color: var(--ink-deep);
  font-size: 14.5px; font-weight: 600; letter-spacing: .3px;
  transition: transform .25s var(--ease), background .25s;
}
.cta-btn:hover { background: #fff; transform: translateY(-2px); }

/* 三栏内容：铺满瞬间就在这块屏幕内自下方浮现，不再额外滚一段 */
.foot-in {
  position: absolute; left: 0; right: 0; bottom: 7%; z-index: 3;
  max-width: 1140px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr;
  gap: 46px; align-items: start;
  color: rgba(236, 234, 251, .78);
  opacity: 0; transform: translateY(48px);      /* 原效果：整块淡入上浮 */
}
.foot-in.visible {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.f-h {
  font-family: "Relmond", var(--serif); font-weight: 400;
  font-size: 15px; letter-spacing: 2.5px; color: #F1EFFB;
  padding-bottom: 10px; margin-bottom: 6px;
  border-bottom: 1px solid rgba(236, 234, 251, .26);   /* 参考图的栏目标题下细线 */
}
.f-item {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 7px; font-size: 13px; line-height: 1.5;   /* 行间距收紧 */
}
.f-item .f-ic { width: 14px; height: 14px; flex: none; margin-top: 3px; color: rgba(236, 234, 251, .66); }
.f-item b { font-weight: 400; color: #ECEAFB; }
.f-item a { color: inherit; }
.f-item a:hover { color: #fff; }
.f-link {
  display: block; padding: 3px 0;                       /* 链接行距收紧 */
  font-size: 13px; color: rgba(236, 234, 251, .78);
  transition: color .2s, transform .2s var(--ease);
}
.f-link:hover { color: #fff; transform: translateX(3px); }
.foot-copy {
  grid-column: 1 / -1; text-align: center;
  margin-top: 6px; padding-top: 0;                      /* 与底部版权小字更贴近 */
  font-size: 12.5px; color: rgba(236, 234, 251, .55);
}

/* ===================== 进场动画 ===================== */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.visible {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.d1.visible { transition-delay: .1s; }
.d2.visible { transition-delay: .2s; }
.d3.visible { transition-delay: .3s; }
.d4.visible { transition-delay: .4s; }
.d5.visible { transition-delay: .5s; }

/* ===================== 响应式 ===================== */
@media (max-width: 1020px) {
  .members { grid-template-columns: 1fr 1fr; }
  .areas { grid-template-columns: 1fr 1fr; }
  .sheet { margin: 28px 20px 48px; }
}

@media (max-width: 900px) {
  .nav-in { grid-template-columns: 1fr auto; }   /* 菜单已脱离文档流，品牌占主宽、控件自适应，避免挤碰 */
  .menu {
    position: fixed; inset: 46px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 10px 22px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease);
  }
  .menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .menu a { padding: 14px 6px; font-size: 15.5px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .menu a::after { left: 6px; right: auto; width: 22px; bottom: 9px; }
  .burger { display: flex; }
  .panel { padding: 32px 24px 34px; }
  .hero { padding: 48px 24px 44px; }
  .pi-intro { grid-template-columns: 1fr; gap: 26px; }
  .pi-photo { max-width: 320px; margin: 0 auto; }
  .join-grid { grid-template-columns: 1fr; }
  .topics { grid-template-columns: 1fr 1fr; }
  .topics.two { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .mb-grid { grid-template-columns: 1fr; gap: 32px; }
  .mb-photo { max-width: 380px; margin: 0 auto; }
  .mb-card { margin: 0; padding: 44px 36px 40px; }
  .rail-card { width: 260px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .cd-card { padding: 38px 30px 36px; }
  .mb-info { text-align: center; }
  .mb-div { margin: 20px auto; }
  .mb-bio p:first-child { text-align: left; }
  .rd { padding: 26px 24px; }
  .foot-scroll { height: 142vh; }
  .foot { margin-top: 0; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 16px 28px; padding: 0 24px; bottom: 4%; }
  .foot-text { bottom: 70%; }              /* 三栏改为两列降低高度，避免与欢迎语重叠 */
  .cta-title { font-size: clamp(22px, 6.6vw, 30px); }
  .cta-sub { margin-top: 14px; font-size: 13.5px; }
  .cta-note { margin-top: 6px; font-size: 11.5px; }
  .cta-btn { margin-top: 18px; padding: 11px 26px; font-size: 13px; }
  .f-h { font-size: 13.5px; padding-bottom: 7px; }
  .f-item { margin-top: 7px; font-size: 12.5px; line-height: 1.5; }
  .f-link { padding: 3px 0; font-size: 12.5px; }
  .band { padding: 44px 22px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .nav-in { grid-template-columns: 1fr auto; padding: 0 14px; gap: 8px; }
  .brand { min-width: 0; overflow: hidden; }
  .brand-txt { min-width: 0; }
  .brand-txt i { display: none; }           /* 小屏隐藏副标题，避免与语言/汉堡按钮挤碰 */
  .brand-txt b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
  .sheet { padding: 0; gap: 20px; }
  .panel { padding: 26px 18px 28px; border-radius: 16px; }
  .hero { padding: 40px 18px 36px; border-radius: 20px; }
  .hero h1 { font-size: clamp(20px, 6.4vw, 30px); white-space: normal; transform: none; line-height: 1.3; font-weight: 700; letter-spacing: 1.5px; }  /* 小屏允许换行，避免溢出挤占标题 */
  .areas, .courses, .members, .topics { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .team-band { padding: 40px 18px; }
  .member-card { padding: 22px 12px 20px; }
  .avatar-c { width: 68px; height: 68px; font-size: 26px; }
  .mb-card { padding: 34px 20px 30px; }
  .mb-photo { max-width: 320px; }
  .rail { gap: 14px; }
  .rail-card { width: 236px; }
  .rail-card .rc-body { padding: 13px 13px 15px; }
  .service-grid { grid-template-columns: 1fr; }
  .cd-card { padding: 30px 20px 30px; }
  .proj-item { flex-direction: column; gap: 12px; padding: 20px 18px; }
  .rd { padding: 24px 20px; }
  .rd-head { gap: 12px; }
  .rd-num { width: 46px; height: 46px; font-size: 20px; }
  .page-hero { padding: 16px 16px 0; }
  .hero-stats { gap: 12px 22px; }
  .stats-strip { padding: 22px 18px; }
  .stat { min-width: 0; padding: 6px 8px; }
  .stat .num { font-size: 34px; }
  .stat .label { font-size: 12px; letter-spacing: 1px; }
  .pubs li { flex-direction: column; gap: 10px; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 14px 20px; padding: 22px 18px; bottom: 4%; }
  .slate { width: min(320px, calc(100vw - 40px)); right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.visible { opacity: 1; transform: none; transition: none; }
  .pi-intro, .pi-intro .pi-photo, .pi-intro .pi-body,
  .foot-in, .foot-in.visible { opacity: 1; transform: none; transition: none; }
  .hero h1 .tk { opacity: 1; transform: none; animation: none; }
  .curve { stroke-dashoffset: 0 !important; animation: none !important; }
  .foot-shell { transform: scale(3.6); }   /* 降级：直接呈现铺满终态 */
  .foot-veil { opacity: 1; }
  .foot { margin-top: 0; }                 /* 降级：不做上提重叠，页脚顺排 */
  .foot-text > * { opacity: 1; animation: none; }
  .foot-in, .foot-in.visible { opacity: 1; transform: none; transition: none; }
}
