/* ============================================================
   郝格非教授课题组（农药信息学） — 前台样式
   设计语言：植物深绿 + 暖金点缀 + 墨色文字，大量留白，学术克制。
   纯手写、零外部字体/CDN 依赖（抗烂尾、可离线、可静态导出）。
   ============================================================ */

:root {
  --ink: #16241d;
  --ink-soft: #46584f;
  --ink-mute: #7d8c84;
  --paper: #ffffff;
  --cream: #f5f8f4;
  --cream-deep: #eef3ec;
  --line: #e2e9e1;
  --line-soft: #eef2ec;
  --brand: #1f7a5e;
  --brand-deep: #155b46;
  --brand-darker: #0f3f31;
  --brand-soft: #e6f1ec;
  --brand-tint: #f0f7f3;
  --accent: #c2962f;
  --accent-soft: #f6eed8;
  --shadow-sm: 0 1px 2px rgba(20, 40, 30, .05), 0 2px 8px rgba(20, 40, 30, .04);
  --shadow-md: 0 4px 14px rgba(20, 40, 30, .07), 0 10px 30px rgba(20, 40, 30, .05);
  --shadow-lg: 0 12px 40px rgba(20, 40, 30, .12);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Source Han Serif SC", "Noto Serif CJK SC", Georgia, "Songti SC", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--brand-soft); color: var(--brand-deep); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* —— 通用按钮 —— */
/* 内联文字图标统一小尺寸（链接箭头/外链/邮件等） */
.plink svg, .pi-link svg, .pub-links a svg, .member-mail svg, .btn svg,
.contact-row a svg, .pi-link svg { width: 15px; height: 15px; flex: none; }
.plink, .pi-link, .pub-links a { white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(31, 122, 94, .28); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(31, 122, 94, .34); }
.btn-ghost { background: transparent; color: var(--brand-deep); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }

/* —— 头部导航 —— */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-darker) 100%);
  display: grid; place-items: center; color: #fff; box-shadow: 0 3px 10px rgba(21, 91, 70, .3);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 15.5px; font-weight: 700; letter-spacing: .2px; }
.brand-text span { font-size: 11.5px; color: var(--ink-mute); font-weight: 500; letter-spacing: .3px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 8px 13px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  transition: color .15s, background .15s; cursor: pointer;
}
.nav-link:hover { color: var(--brand-deep); background: var(--brand-tint); }
.nav-link.active { color: var(--brand-deep); font-weight: 600; }
.nav-link .chev { width: 14px; height: 14px; opacity: .6; transition: transform .2s; }
.nav-item.has-drop:hover .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 196px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: 7px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease; z-index: 50;
}
.nav-item.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 9px 13px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); transition: all .12s; }
.dropdown a:hover { background: var(--brand-tint); color: var(--brand-deep); padding-left: 17px; }

.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden;
}
.lang-toggle button { padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--ink-mute); transition: all .15s; }
.lang-toggle button.on { background: var(--brand); color: #fff; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 9px; place-items: center; color: var(--ink); }
.nav-toggle:hover { background: var(--cream-deep); }

/* —— 通用区块 —— */
section { position: relative; }
.section { padding: 92px 0; }
.section.alt { background: var(--cream); }
/* 首屏引入栏（位于固定头部正下方，需更大顶距避免被遮挡） */
.sec-lead { padding-top: 128px; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--brand); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head.center .eyebrow::before { display: none; }
.section-title { font-family: var(--font-serif); font-size: clamp(27px, 3.6vw, 38px); line-height: 1.18; font-weight: 700; letter-spacing: -.3px; color: var(--ink); }
.section-sub { margin-top: 16px; font-size: 16.5px; color: var(--ink-soft); line-height: 1.7; }

/* —— Hero —— */
.hero { position: relative; padding: 84px 0 92px; overflow: hidden; background: var(--brand-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 80% at 82% 8%, rgba(31, 122, 94, .14), transparent 60%),
    radial-gradient(50% 60% at 6% 92%, rgba(194, 150, 47, .10), transparent 60%),
    linear-gradient(180deg, #f0f7f3 0%, #ffffff 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 35%, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; }
.hero-art { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 480px; max-width: 42%; opacity: .85; z-index: 0; pointer-events: none; }
.hero-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 1100px) { .hero-art { opacity: .4; right: -80px; width: 400px; } }
@media (max-width: 820px) { .hero-art { display: none; } }
.hero-inner { max-width: 820px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 600; color: var(--brand-deep); margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero h1 {
  font-family: var(--font-serif); font-weight: 800; letter-spacing: -.8px;
  font-size: clamp(34px, 5.8vw, 60px); line-height: 1.08; color: var(--ink);
}
.hero h1 .hl { color: var(--brand); position: relative; white-space: nowrap; }
.hero p.lead { margin-top: 24px; font-size: clamp(16px, 2vw, 19px); line-height: 1.72; color: var(--ink-soft); max-width: 680px; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 13px; }

/* —— 统计条 —— */
.stats { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; z-index: 1; }
.stat-card {
  background: rgba(255, 255, 255, .72); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px; backdrop-filter: blur(6px); box-shadow: var(--shadow-sm);
}
.stat-num { font-family: var(--font-serif); font-size: 34px; font-weight: 800; color: var(--brand-deep); line-height: 1; letter-spacing: -1px; }
.stat-label { margin-top: 9px; font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }

/* —— 关于 —— */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.about-body p { font-size: 16.5px; line-height: 1.82; color: var(--ink-soft); }
.about-pi {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.about-pi::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.pi-top { display: flex; align-items: center; gap: 18px; }
.pi-avatar {
  width: 84px; height: 84px; border-radius: 16px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-darker) 100%); color: #fff;
  font-family: var(--font-serif); font-size: 30px; font-weight: 700; box-shadow: var(--shadow-md); overflow: hidden;
}
.pi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pi-name { font-size: 21px; font-weight: 700; font-family: var(--font-serif); }
.pi-title { font-size: 14px; color: var(--brand-deep); font-weight: 600; margin-top: 3px; }
.pi-affil { font-size: 13px; color: var(--ink-mute); margin-top: 4px; }
.pi-bio { margin-top: 18px; font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); }
.pi-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pi-tags span { font-size: 12px; font-weight: 600; color: var(--brand-deep); background: var(--brand-soft); padding: 4px 11px; border-radius: 999px; }
.pi-link { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand); }
.pi-link:hover { color: var(--brand-deep); gap: 9px; }

/* —— 研究方向 —— */
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.research-grid .card:first-child { grid-column: span 3; }
@media (min-width: 861px) {
  .research-grid { grid-template-columns: repeat(6, 1fr); }
  .research-card { grid-column: span 2; }
  .research-card.wide { grid-column: span 3; }
}
.research-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden;
}
.research-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-soft); }
.research-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep);
  display: grid; place-items: center; margin-bottom: 18px;
}
.research-icon svg { width: 24px; height: 24px; }
.research-card h3 { font-size: 18.5px; font-weight: 700; line-height: 1.35; }
.research-card p { margin-top: 11px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.72; }
.kw { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.kw span { font-size: 11.5px; font-weight: 600; color: var(--ink-mute); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }

/* —— 平台 —— */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.platform-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-soft); }
.platform-card .ptop { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.platform-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), var(--brand-tint)); color: var(--brand-deep); }
.platform-icon svg { width: 23px; height: 23px; }
.badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .3px; }
.badge.live { color: var(--brand-deep); background: var(--brand-soft); }
.badge.coming { color: #9a7b1f; background: var(--accent-soft); }
.platform-card h3 { margin-top: 18px; font-size: 19px; font-weight: 700; }
.platform-card .pfull { font-size: 12.5px; color: var(--brand); font-weight: 600; margin-top: 3px; }
.platform-card p { margin-top: 11px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; flex: 1; }
.platform-card .pmeta { margin-top: 16px; font-size: 12px; color: var(--ink-mute); border-top: 1px dashed var(--line); padding-top: 13px; }
.platform-card .plink { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.platform-card .plink:hover { gap: 9px; }
.platform-card .plink.disabled { color: var(--ink-mute); pointer-events: none; }

/* —— 论文 —— */
.pub-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.pub-toolbar .pub-filters { margin-bottom: 0; }
.btn-export { padding: 8px 16px; font-size: 13px; flex: none; }
.pub-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.pub-filters button {
  padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  border: 1.5px solid var(--line); transition: all .15s;
}
.pub-filters button:hover { border-color: var(--brand); color: var(--brand); }
.pub-filters button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pub-list { display: flex; flex-direction: column; gap: 2px; }
.pub-item {
  display: grid; grid-template-columns: 76px 1fr; gap: 22px; padding: 22px 18px; border-radius: 12px;
  transition: background .15s; align-items: start;
}
.pub-item:hover { background: var(--cream); }
.pub-item.feat { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.pub-item.feat:hover { background: linear-gradient(90deg, var(--accent-soft), var(--cream) 80%); }
.pub-year { font-family: var(--font-serif); font-size: 26px; font-weight: 800; color: var(--brand-deep); line-height: 1; }
.pub-venue-tag { margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--accent); display: inline-block; }
.pub-main h4 { font-size: 16.5px; font-weight: 700; line-height: 1.45; color: var(--ink); }
.pub-authors { margin-top: 7px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.pub-authors b { color: var(--brand-deep); }
.pub-venue { margin-top: 6px; font-size: 13.5px; color: var(--ink-mute); font-style: italic; }
.pub-venue em { font-style: normal; font-weight: 600; color: var(--ink-soft); }
.pub-links { margin-top: 9px; display: flex; gap: 14px; }
.pub-links a { font-size: 12.5px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 4px; }
.pub-links a:hover { color: var(--brand-deep); }
.star { color: var(--accent); }

/* —— 成员 —— */
.member-group { margin-bottom: 44px; }
.member-group-title { font-size: 14px; font-weight: 700; letter-spacing: .5px; color: var(--brand-deep); text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.member-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pi-feature { grid-template-columns: 1fr; }
.member-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-soft); }
.member-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-soft), var(--cream-deep)); color: var(--brand-deep);
  font-family: var(--font-serif); font-size: 24px; font-weight: 700; overflow: hidden;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-size: 16px; font-weight: 700; }
.member-name .en { font-size: 12.5px; color: var(--ink-mute); font-weight: 500; display: block; margin-top: 1px; }
.member-title { font-size: 12.5px; color: var(--brand-deep); font-weight: 600; margin-top: 6px; }
.member-research { font-size: 12px; color: var(--ink-soft); margin-top: 8px; line-height: 1.55; }
.member-mail { margin-top: 10px; font-size: 12px; color: var(--ink-mute); display: inline-flex; align-items: center; gap: 5px; }
.member-mail:hover { color: var(--brand); }
.member-empty { font-size: 14px; color: var(--ink-mute); padding: 16px 0; }

/* PI 大卡片 */
.pi-card { display: grid; grid-template-columns: auto 1fr; gap: 28px; text-align: left; padding: 30px; }
.pi-card .member-avatar { width: 120px; height: 120px; border-radius: 18px; margin: 0; font-size: 40px; }
.pi-card .pi-name2 { font-size: 24px; font-weight: 800; font-family: var(--font-serif); }
.pi-card .pi-title2 { font-size: 14.5px; color: var(--brand-deep); font-weight: 600; margin-top: 5px; }
.pi-card .pi-bio2 { margin-top: 14px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.75; }
.pi-card .pi-cv { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.cv-row { font-size: 13px; color: var(--ink-soft); display: flex; gap: 10px; }
.cv-row .yr { color: var(--ink-mute); flex: none; font-variant-numeric: tabular-nums; min-width: 96px; }

/* —— 项目 —— */
.proj-list { display: flex; flex-direction: column; gap: 14px; }
.proj-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px;
  transition: box-shadow .2s, border-color .2s;
}
.proj-item:hover { box-shadow: var(--shadow-sm); border-color: var(--brand-soft); }
.proj-item.feat { border-left: 4px solid var(--accent); }
.proj-period { font-size: 12.5px; color: var(--ink-mute); font-variant-numeric: tabular-nums; min-width: 130px; }
.proj-name { font-size: 16px; font-weight: 700; line-height: 1.4; }
.proj-funder { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.proj-right { text-align: right; }
.proj-amount { font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: var(--brand-deep); }
.proj-status { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-top: 6px; display: inline-block; }
.proj-status.ongoing { color: var(--brand-deep); background: var(--brand-soft); }
.proj-status.completed { color: var(--ink-mute); background: var(--cream-deep); }

/* —— 荣誉小条 —— */
.awards-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.award-item { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.award-yr { font-family: var(--font-serif); font-size: 17px; font-weight: 800; color: var(--accent); flex: none; min-width: 44px; }
.award-name { font-size: 14px; font-weight: 600; line-height: 1.4; }
.award-org { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }

/* —— 新闻 —— */
.news-tools { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.news-search { flex: 1; max-width: 520px; display: grid; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.news-search input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: var(--paper); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s; }
.news-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); outline: none; }
.news-count { font-size: 13px; color: var(--ink-mute); text-align: right; padding-bottom: 12px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.news-cat { font-size: 11px; font-weight: 700; color: var(--brand-deep); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; }
.news-date { font-size: 12.5px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.news-card { cursor: pointer; }
.news-card h4 { font-size: 16.5px; font-weight: 700; line-height: 1.4; }
.news-card p { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }
.news-thumb { margin: -24px -24px 16px; height: 168px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--cream-deep); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-more { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand); }
.news-more svg { width: 15px; height: 15px; transition: transform .15s; }
.news-card:hover .news-more { gap: 9px; }
.news-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.news-pager button { min-width: 40px; height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink-soft); font-size: 13px; font-weight: 700; transition: border-color .15s, color .15s, background .15s; }
.news-pager button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.news-pager button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.news-pager button:disabled { opacity: .45; cursor: not-allowed; }

/* 新闻详情弹窗 */
.nm-overlay { position: fixed; inset: 0; z-index: 210; background: rgba(20,30,25,.5); backdrop-filter: blur(4px); display: none; opacity: 0; transition: opacity .2s; padding: 40px 20px; overflow-y: auto; }
.nm-overlay.open { display: block; opacity: 1; }
.nm-panel { max-width: 680px; margin: 20px auto; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; animation: searchpop .25s cubic-bezier(.2,.8,.2,1); }
.nm-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--ink); z-index: 2; box-shadow: var(--shadow-sm); }
.nm-close:hover { background: #fff; color: var(--brand); }
.nm-close svg { width: 18px; height: 18px; }
.nm-img { height: 280px; background: var(--cream-deep); } .nm-img img { width: 100%; height: 100%; object-fit: cover; }
.nm-body { padding: 32px 36px 38px; }
.nm-body h2 { font-family: var(--font-serif); font-size: 26px; font-weight: 800; line-height: 1.25; margin-top: 12px; }
.nm-sum { margin-top: 14px; font-size: 16px; color: var(--ink-soft); line-height: 1.75; }
.nm-text { margin-top: 18px; font-size: 15px; color: var(--ink-soft); line-height: 1.85; padding-top: 18px; border-top: 1px solid var(--line); }

/* 返回顶部 */
.back-to-top { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: all .25s; z-index: 90; }
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--brand-deep); transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; }

/* 跳到主内容（无障碍） */
.skip-link { position: fixed; top: -50px; left: 16px; z-index: 300; background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 10px; font-size: 14px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 0; }

/* 通用 toast */
.hao-toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(18px); background: var(--ink); color: #fff; padding: 12px 24px; border-radius: 999px; font-size: 14px; font-weight: 500; z-index: 220; opacity: 0; transition: all .25s; pointer-events: none; box-shadow: var(--shadow-lg); }
.hao-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 键盘可达性：可聚焦元素的焦点环 */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ============================================================
   打印样式（论文/成员列表可直接打印）
   ============================================================ */
@media print {
  .site-header, .site-footer, .back-to-top, .skip-link, .search-overlay, .nm-overlay, .pub-filters, .hero-actions, .section-cta, .see-all, .nav-toggle { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .section, .page-hero { padding: 12px 0 !important; background: #fff !important; }
  .page-hero::before, .page-hero::after, .hero::before, .hero::after { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .container { max-width: 100%; }
  .pub-item, .faculty-card, .platform-card, .research-card, .award-item, .proj-item, .ht-item { break-inside: avoid; box-shadow: none !important; border-color: #ddd !important; }
  .pub-item.feat { background: none !important; }
  a { color: #000 !important; text-decoration: none; }
  .section-title, .page-hero h1 { color: #000 !important; }
}

/* —— 加入 / 联系 —— */
.join { background: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand-deep) 100%); color: #fff; border-radius: 24px; padding: 56px; position: relative; overflow: hidden; }
.join::after {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 40px 40px; -webkit-mask-image: radial-gradient(60% 80% at 85% 20%, #000, transparent 70%); mask-image: radial-gradient(60% 80% at 85% 20%, #000, transparent 70%);
}
.join-grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.join h2 { font-family: var(--font-serif); font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; line-height: 1.2; }
.join p { margin-top: 16px; font-size: 15.5px; line-height: 1.8; color: rgba(255, 255, 255, .82); }
.join .btn-primary { background: #fff; color: var(--brand-deep); box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.join .btn-primary:hover { background: var(--accent-soft); transform: translateY(-2px); }
.contact-box { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 28px; backdrop-filter: blur(6px); }
.contact-row { display: flex; gap: 13px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-row:last-child { border-bottom: none; }
.contact-row svg { width: 19px; height: 19px; flex: none; color: var(--accent); margin-top: 2px; }
.contact-row .ct-label { font-size: 11.5px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .6px; }
.contact-row .ct-val { font-size: 14.5px; color: #fff; font-weight: 500; margin-top: 2px; word-break: break-word; }
.contact-row a.ct-val:hover { color: var(--accent-soft); }

/* —— 在线留言表单 —— */
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-sm); max-width: 860px; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-field { display: flex; flex-direction: column; gap: 7px; }
.cf-field.cf-span { grid-column: 1 / -1; }
.cf-field span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.cf-field span i { color: var(--accent); font-style: normal; }
.cf-field input, .cf-field textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 14.5px; color: var(--ink); background: var(--cream); transition: border-color .15s, background .15s; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.cf-field textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.cf-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.cf-note { font-size: 12.5px; color: var(--ink-mute); max-width: 60%; }
.contact-success { display: flex; align-items: center; gap: 18px; background: var(--brand-tint); border: 1px solid var(--brand-soft); border-radius: 18px; padding: 30px 32px; max-width: 860px; animation: searchpop .3s cubic-bezier(.2,.8,.2,1); }
.contact-success .cs-ic { width: 44px; height: 44px; flex: none; color: #fff; background: var(--brand); border-radius: 50%; padding: 10px; box-shadow: var(--shadow-md); }
.contact-success b { font-size: 17px; color: var(--ink); }
.contact-success p { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.contact-static { display: flex; align-items: center; gap: 12px; background: var(--cream); border: 1px dashed var(--line); border-radius: 14px; padding: 22px 26px; font-size: 14.5px; color: var(--ink-soft); max-width: 860px; }
.contact-static svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.contact-static a { color: var(--brand); font-weight: 600; }
@media (max-width: 640px) { .cf-grid { grid-template-columns: 1fr; } .cf-note { max-width: 100%; } .cf-foot { justify-content: stretch; } .cf-foot .btn { width: 100%; justify-content: center; } }

/* —— 页脚 —— */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 52px 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { max-width: 380px; }
.footer-brand .brand-text b { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.55); }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 { font-size: 12.5px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: rgba(255,255,255,.6); padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,.45); }
.footer-meta { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.footer-meta a { color: rgba(255,255,255,.55); transition: color .15s; }
.footer-meta a:hover { color: #fff; }
.footer-meta .fdot { font-style: normal; opacity: .4; margin: 0 3px; }
.foot-visits { color: rgba(255,255,255,.45); }

/* —— 滚动揭示动画 —— */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
/* 无障碍：尊重"减少动态效果"系统偏好，直接显示，绝不隐藏内容 */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* —— 加载态 —— */
.loading { text-align: center; padding: 60px 0; color: var(--ink-mute); font-size: 14px; }

/* —— 移动端抽屉 —— */
.mobile-menu { display: none; }

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .platform-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .member-grid { grid-template-columns: repeat(3, 1fr); }
  .join-grid { grid-template-columns: 1fr; gap: 32px; }
  .pi-card { grid-template-columns: 1fr; text-align: center; }
  .pi-card .member-avatar { margin: 0 auto; }
  .pi-card .pi-cv { grid-template-columns: 1fr; }
  .awards-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .sec-lead { padding-top: 96px; }
  .hero { padding: 56px 0 64px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
  .research-grid, .platform-grid, .news-grid { grid-template-columns: 1fr; }
  .research-grid .card:first-child { grid-column: auto; }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .join { padding: 36px 26px; }
  .pub-item { grid-template-columns: 1fr; gap: 8px; }
  .pub-year { font-size: 20px; }
  .proj-item { grid-template-columns: 1fr; gap: 12px; }
  .proj-right { text-align: left; }
  .mobile-menu.open {
    display: block; position: fixed; top: 68px; left: 0; right: 0; z-index: 99;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 12px;
  }
  .mobile-menu.open a { display: block; padding: 13px 16px; font-size: 16px; font-weight: 600; color: var(--ink); border-radius: 10px; }
  .mobile-menu.open a:hover { background: var(--brand-tint); color: var(--brand-deep); }
}
@media (max-width: 460px) {
  .member-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 28px; }
}

/* ============================================================
   多页面扩展组件
   ============================================================ */

/* —— 内页 Hero —— */
.page-hero { position: relative; padding: 134px 0 56px; background: var(--brand-tint); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 88% 0%, rgba(31,122,94,.12), transparent 60%), linear-gradient(180deg, #f0f7f3, #fff); }
.page-hero::after { content: ""; position: absolute; inset: 0; opacity: .4; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(70% 80% at 70% 0%, #000, transparent 70%); mask-image: radial-gradient(70% 80% at 70% 0%, #000, transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-family: var(--font-serif); font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -.5px; line-height: 1.12; color: var(--ink); }
.page-hero p { margin-top: 16px; font-size: 17px; color: var(--ink-soft); line-height: 1.7; max-width: 720px; }

/* —— 首页：精选成果 —— */
.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feat-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-soft); }
.feat-venue { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--brand); margin-bottom: 12px; }
.feat-venue .vbar { width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.feat-card h3 { font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.feat-card p { margin-top: 11px; font-size: 14px; color: var(--ink-soft); line-height: 1.72; flex: 1; }
.feat-card .feat-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.feat-card .feat-link:hover { gap: 9px; }
.feat-link svg { width: 15px; height: 15px; }

/* —— 通用：区块 CTA 行 —— */
.section-cta { text-align: center; margin-top: 44px; }
.sec-flex { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.sec-flex .section-head { margin-bottom: 0; }
.see-all { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.see-all:hover { gap: 9px; color: var(--brand-deep); }
.see-all svg { width: 16px; height: 16px; }

/* —— 平台：分类分组（程序开发页）—— */
.plat-cat { margin-bottom: 52px; }
.plat-cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.plat-cat-head .pc-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; flex: none; }
.plat-cat-head .pc-icon svg { width: 21px; height: 21px; }
.plat-cat-head h2 { font-family: var(--font-serif); font-size: 23px; font-weight: 700; }
.plat-cat-head .pc-count { font-size: 13px; color: var(--ink-mute); font-weight: 600; background: var(--cream-deep); padding: 2px 11px; border-radius: 999px; }
.plat-cat-head .pc-line { flex: 1; height: 1px; background: var(--line); }

/* —— 成员页：教师大卡（可展开）—— */
.faculty-list { display: flex; flex-direction: column; gap: 20px; }
.faculty-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faculty-top { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; padding: 28px; align-items: start; }
.faculty-photo { width: 116px; height: 116px; border-radius: 16px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-darker) 100%); color: #fff; font-family: var(--font-serif); font-size: 40px; font-weight: 700; overflow: hidden; box-shadow: var(--shadow-md); }
.faculty-photo img { width: 100%; height: 100%; object-fit: cover; }
.faculty-info .fname { font-size: 23px; font-weight: 800; font-family: var(--font-serif); }
.faculty-info .fname .en { font-size: 15px; color: var(--ink-mute); font-weight: 500; margin-left: 8px; font-family: var(--font-sans); }
.faculty-info .ftitle { font-size: 14.5px; color: var(--brand-deep); font-weight: 600; margin-top: 5px; }
.faculty-info .fresearch { font-size: 14px; color: var(--ink-soft); margin-top: 10px; line-height: 1.6; }
.faculty-contact { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.faculty-contact a, .faculty-contact span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-mute); }
.faculty-contact a:hover { color: var(--brand); }
.faculty-contact svg { width: 15px; height: 15px; flex: none; color: var(--brand); }
.faculty-toggle { align-self: center; }
.fexpand-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--brand-deep); white-space: nowrap; transition: all .15s; }
.fexpand-btn:hover { border-color: var(--brand); background: var(--brand-tint); }
.fexpand-btn svg { width: 15px; height: 15px; transition: transform .2s; }
.faculty-card.open .fexpand-btn svg { transform: rotate(180deg); }
.faculty-detail { max-height: 0; overflow: hidden; transition: max-height .35s ease; border-top: 0 solid var(--line); }
.faculty-card.open .faculty-detail { max-height: 1400px; border-top: 1px solid var(--line); }
.faculty-detail-inner { padding: 24px 28px; background: var(--cream); }
.fdetail-block { margin-bottom: 20px; }
.fdetail-block:last-child { margin-bottom: 0; }
.fdetail-block h4 { font-size: 13px; font-weight: 700; letter-spacing: .5px; color: var(--brand-deep); text-transform: uppercase; margin-bottom: 11px; }
.fdetail-block .fbio { font-size: 14px; color: var(--ink-soft); line-height: 1.8; }
.fdetail-block .cv-line { display: flex; gap: 14px; font-size: 13.5px; color: var(--ink-soft); padding: 4px 0; }
.fdetail-block .cv-line .yr { color: var(--ink-mute); flex: none; min-width: 120px; font-variant-numeric: tabular-nums; }
.fdetail-block .rep-pub { font-size: 13px; color: var(--ink-soft); padding: 5px 0 5px 16px; position: relative; line-height: 1.55; }
.fdetail-block .rep-pub::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* —— 移动菜单子项 —— */
.mobile-menu .m-main { font-weight: 700; }
.mobile-menu .m-sub { padding-left: 32px !important; font-size: 14px !important; color: var(--ink-soft) !important; font-weight: 500 !important; }

/* 多页面导航：中等宽度即收起为汉堡，避免 7 项挤行 */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
}
/* 窄屏：品牌副标题隐藏，保持头部紧凑不换行 */
@media (max-width: 520px) {
  .brand-text span { display: none; }
  .brand-text b { font-size: 15px; white-space: nowrap; }
  .brand { gap: 9px; }
  .nav-right { gap: 6px; }
  .lang-toggle button { padding: 5px 9px; }
  .search-btn { width: 34px; height: 34px; }
}
@media (max-width: 380px) {
  .brand-text b { font-size: 14px; }
  .brand-mark { width: 34px; height: 34px; }
}

/* ============================================================
   旗舰平台页
   ============================================================ */
.flag-hero { position: relative; padding: 150px 0 70px; background: linear-gradient(150deg, var(--brand-darker) 0%, var(--brand-deep) 55%, #1a6b54 100%); color: #fff; overflow: hidden; }
.flag-hero::after { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(70% 70% at 85% 10%, #000, transparent 70%); mask-image: radial-gradient(70% 70% at 85% 10%, #000, transparent 70%); }
.flag-hero .container { position: relative; z-index: 1; }
.flag-art { position: absolute; right: -20px; top: 50%; transform: translateY(-44%); width: 540px; max-width: 50%; opacity: .55; z-index: 0; pointer-events: none; }
.flag-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .flag-art { opacity: .16; right: -140px; width: 460px; } }
.flag-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); font-size: 13px; font-weight: 600; color: var(--accent-soft); margin-bottom: 24px; backdrop-filter: blur(6px); }
.flag-hero h1 { font-family: var(--font-serif); font-size: clamp(36px, 6vw, 62px); font-weight: 800; letter-spacing: -1px; line-height: 1.08; }
.flag-hero > .container > p, .flag-hero p { margin-top: 22px; font-size: clamp(16px, 2vw, 19px); line-height: 1.72; color: rgba(255,255,255,.82); max-width: 720px; }
.flag-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 13px; }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.28); }
.btn-glass:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.flag-hero .btn-primary { background: #fff; color: var(--brand-deep); }
.flag-hero .btn-primary:hover { background: var(--accent-soft); transform: translateY(-2px); }
.flag-metrics { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 760px; }
.flag-metric .fm-num { font-family: var(--font-serif); font-size: clamp(30px, 4vw, 42px); font-weight: 800; line-height: 1; }
.flag-metric .fm-label { margin-top: 8px; font-size: 13.5px; color: rgba(255,255,255,.7); }

.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; display: block; }
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-soft); }
.mod-icon { width: 50px; height: 50px; border-radius: 13px; background: linear-gradient(135deg, var(--brand-soft), var(--brand-tint)); color: var(--brand-deep); display: grid; place-items: center; margin-bottom: 18px; }
.mod-icon svg { width: 25px; height: 25px; }
.module-card h3 { font-size: 19px; font-weight: 700; }
.module-card p { margin-top: 10px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.mod-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.mod-link svg { width: 15px; height: 15px; }
.module-card:hover .mod-link { gap: 9px; }

.workflow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 4px; }
.wf-step { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 14px 8px; min-width: 96px; }
.wf-num { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-serif); box-shadow: 0 4px 12px rgba(31,122,94,.3); }
.wf-label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); text-align: center; max-width: 88px; line-height: 1.35; }
.wf-arrow { color: var(--brand-soft); }
.wf-arrow svg { width: 18px; height: 18px; }

.demo-card { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 44px; box-shadow: var(--shadow-md); }
.demo-left .eyebrow { margin-bottom: 14px; }
.dropzone { border: 2px dashed var(--line); border-radius: 16px; background: var(--cream); min-height: 200px; display: grid; place-items: center; cursor: pointer; transition: border-color .18s, background .18s; padding: 24px; }
.dropzone:hover { border-color: var(--brand); background: var(--brand-tint); }
.dz-inner { text-align: center; color: var(--ink-mute); }
.dz-inner svg { width: 42px; height: 42px; color: var(--brand); margin: 0 auto 12px; }
.dz-title { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.dz-note { font-size: 12.5px; margin-top: 5px; }
.dz-result { margin-top: 16px; }
.dz-demo-box { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.dz-demo-box > b { font-size: 13px; color: var(--ink); }
.dz-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.dz-row > span:first-child { min-width: 54px; }
.dz-bar { flex: 1; height: 8px; background: var(--cream-deep); border-radius: 999px; overflow: hidden; }
.dz-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 999px; }
.dz-honest { margin-top: 14px; font-size: 12px; color: #9a7b1f; background: var(--accent-soft); padding: 10px 12px; border-radius: 9px; line-height: 1.6; }

@media (max-width: 980px) {
  .module-grid { grid-template-columns: 1fr 1fr; }
  .demo-card { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .flag-metrics { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 600px) {
  .module-grid { grid-template-columns: 1fr; }
  .wf-arrow { transform: rotate(90deg); }
  .workflow { flex-direction: column; }
}

/* ============================================================
   站内搜索
   ============================================================ */
.search-btn { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-soft); transition: all .15s; }
.search-btn:hover { background: var(--brand-tint); color: var(--brand-deep); }
.search-btn svg { width: 19px; height: 19px; }
.search-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(20,30,25,.4); backdrop-filter: blur(4px); display: none; opacity: 0; transition: opacity .18s; padding: 80px 20px 20px; }
.search-overlay.open { display: block; opacity: 1; }
.search-panel { max-width: 660px; margin: 0 auto; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; max-height: calc(100vh - 120px); display: flex; flex-direction: column; animation: searchpop .22s cubic-bezier(.2,.8,.2,1); }
@keyframes searchpop { from { transform: translateY(-12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.search-box { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); flex: none; }
.search-box .sicon { width: 21px; height: 21px; color: var(--brand); flex: none; }
.search-box input { flex: 1; border: none; outline: none; font-size: 17px; color: var(--ink); background: none; }
.search-close { font-size: 12px; font-weight: 600; color: var(--ink-mute); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
.search-results { overflow-y: auto; padding: 10px; }
.search-hint { padding: 36px 20px; text-align: center; color: var(--ink-mute); font-size: 14px; }
.search-count { font-size: 12px; color: var(--ink-mute); padding: 8px 12px 4px; font-weight: 600; }
.search-item { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 11px; transition: background .12s; }
.search-item:hover { background: var(--cream); }
.si-type { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; flex: none; min-width: 58px; text-align: center; color: var(--brand-deep); background: var(--brand-soft); }
.si-type.si-pub { color: #9a7b1f; background: var(--accent-soft); }
.si-type.si-platform { color: #1d6fa5; background: #e3f0f8; }
.si-type.si-member { color: var(--brand-deep); background: var(--brand-soft); }
.si-main { flex: 1; min-width: 0; }
.si-title { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-snip { display: block; font-size: 12.5px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.si-arrow { width: 16px; height: 16px; color: var(--ink-mute); flex: none; }
.search-item:hover .si-arrow { color: var(--brand); }
@media (max-width: 600px) { .search-overlay { padding: 60px 12px 12px; } .search-box input { font-size: 16px; } }

/* ============================================================
   荣誉合照页
   ============================================================ */
.honor-timeline { position: relative; padding-left: 8px; }
.ht-row { display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding-bottom: 30px; position: relative; }
.ht-row::before { content: ""; position: absolute; left: 121px; top: 8px; bottom: -8px; width: 2px; background: var(--line); }
.ht-row:last-child::before { display: none; }
.ht-year { font-family: var(--font-serif); font-size: 28px; font-weight: 800; color: var(--brand-deep); text-align: right; position: relative; }
.ht-year::after { content: ""; position: absolute; right: -16px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand-soft); }
.ht-items { display: flex; flex-direction: column; gap: 12px; padding-left: 16px; }
.ht-item { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 16px 20px; transition: box-shadow .2s, transform .2s; }
.ht-item:hover { box-shadow: var(--shadow-sm); transform: translateX(3px); }
.ht-name { font-size: 16px; font-weight: 700; line-height: 1.4; }
.ht-org { font-size: 13px; color: var(--ink-mute); margin-top: 4px; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--cream); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 12px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.gallery-empty { text-align: center; padding: 64px 24px; background: var(--paper); border: 1px dashed var(--line); border-radius: 18px; }
.gallery-empty svg { width: 48px; height: 48px; color: var(--brand-soft); margin: 0 auto 16px; }
.gallery-empty .ge-title { font-size: 17px; font-weight: 700; color: var(--ink-soft); }
.gallery-empty .ge-note { font-size: 13.5px; color: var(--ink-mute); margin-top: 8px; }
@media (max-width: 720px) {
  .ht-row { grid-template-columns: 64px 1fr; gap: 16px; }
  .ht-row::before { left: 71px; }
  .ht-year { font-size: 20px; }
  .ht-year::after { right: -11px; width: 10px; height: 10px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .featured-grid { grid-template-columns: 1fr; }
  .faculty-top { grid-template-columns: auto 1fr; }
  .faculty-toggle { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 720px) {
  .page-hero { padding: 110px 0 44px; }
  .faculty-top { grid-template-columns: 1fr; text-align: center; padding: 22px; }
  .faculty-photo { margin: 0 auto; }
  .faculty-contact { align-items: center; }
  .faculty-detail-inner { padding: 20px; }
  .fdetail-block .cv-line { flex-direction: column; gap: 2px; }
}

/* ============================================================
   DrugFlow/CADD visual refresh
   参考 https://cadd.drugflow.com/people#faculty 的蓝白 Tailwind 风格。
   仅覆盖前台视觉层，不改变数据结构和后台维护流程。
   ============================================================ */
:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-mute: #64748b;
  --paper: #ffffff;
  --cream: #f8fafc;
  --cream-deep: #f1f5f9;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --brand: #2563eb;
  --brand-deep: #1d4ed8;
  --brand-darker: #172554;
  --brand-soft: #dbeafe;
  --brand-tint: #eff6ff;
  --accent: #06b6d4;
  --accent-soft: #cffafe;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 56px rgba(15, 23, 42, .16);
  --radius: 8px;
  --radius-sm: 6px;
  --maxw: 1280px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-serif: var(--font-sans);
}

body {
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

.container { max-width: var(--maxw); padding-left: 32px; padding-right: 32px; }
.section { padding: 96px 0; }
.section.alt { background: var(--cream); }
.sec-lead { padding-top: 136px; }

.site-header {
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(226, 232, 240, .75);
  box-shadow: none;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
.nav { height: 76px; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text b { font-size: 15px; letter-spacing: 0; color: var(--ink); }
.brand-text span { font-size: 12px; letter-spacing: 0; color: var(--ink-mute); }
.nav-links { gap: 4px; }
.nav-link {
  border-radius: 8px;
  padding: 9px 13px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}
.nav-link:hover { color: var(--brand); background: var(--brand-tint); }
.nav-link.active { color: var(--brand); background: #eef4ff; }
.dropdown {
  top: calc(100% + 10px);
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, .12);
}
.dropdown a { border-radius: 6px; color: var(--ink-soft); }
.dropdown a:hover { color: var(--brand); background: var(--brand-tint); padding-left: 13px; }
.search-btn, .nav-toggle { border-radius: 8px; }
.search-btn:hover, .nav-toggle:hover { color: var(--brand); background: var(--brand-tint); }
.lang-toggle { border-radius: 999px; border-color: var(--line); background: #fff; }
.lang-toggle button.on { background: var(--brand); color: #fff; }

.eyebrow {
  margin-bottom: 14px;
  color: var(--brand);
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}
.eyebrow::before { background: linear-gradient(90deg, var(--brand), var(--cyan)); }
.section-title {
  color: var(--ink);
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: 0;
}
.section-sub { color: var(--ink-soft); }

.btn {
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  box-shadow: none;
}
.btn-primary {
  background: var(--brand);
  box-shadow: 0 12px 22px rgba(37, 99, 235, .2);
}
.btn-primary:hover {
  background: var(--brand-deep);
  box-shadow: 0 18px 34px rgba(37, 99, 235, .28);
}
.btn-ghost {
  color: var(--brand);
  border-color: #bfdbfe;
  background: #fff;
}
.btn-ghost:hover { color: var(--brand-deep); border-color: var(--brand); background: var(--brand-tint); }

.hero,
.page-hero,
.flag-hero {
  color: #fff;
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(135deg, #0b1220 0%, #0f2748 58%, #2563eb 100%);
  background-size: 52px 52px, 52px 52px, auto;
  border: none;
}
.hero::before,
.hero::after,
.page-hero::before,
.page-hero::after,
.flag-hero::after {
  display: none;
}
.hero {
  padding: 116px 0 104px;
  min-height: max(680px, calc(100vh - 76px));
}
.hero-inner { max-width: 820px; }
.hero-badge,
.flag-badge {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .22);
  color: #dbeafe;
  box-shadow: none;
}
.hero-badge .dot { background: var(--cyan); box-shadow: 0 0 0 4px rgba(6, 182, 212, .18); }
.hero h1,
.flag-hero h1 {
  color: #fff;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: 0;
}
.hero h1 .hl { color: #bfdbfe; }
.hero p.lead,
.flag-hero p,
.flag-hero > .container > p {
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
}
.hero-art { opacity: .22; filter: grayscale(1) brightness(1.8); }
.hero .btn-ghost,
.flag-hero .btn-glass {
  color: #fff;
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.26);
}
.hero .btn-ghost:hover,
.flag-hero .btn-glass:hover { background: rgba(255,255,255,.18); }
.stats { gap: 16px; }
.stat-card,
.flag-metric {
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  box-shadow: none;
}
.stat-num, .flag-metric .fm-num { color: #fff; letter-spacing: 0; }
.stat-label, .flag-metric .fm-label { color: rgba(255,255,255,.72); }

.page-hero {
  padding: 118px 0 28px;
  text-align: left;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.page-hero::before,
.page-hero::after {
  display: none;
}
.page-hero .container { position: relative; z-index: 1; max-width: 1120px; }
.page-hero .eyebrow {
  color: var(--brand);
  justify-content: flex-start;
}
.page-hero .eyebrow::before { background: var(--accent); }
.page-hero h1 {
  color: var(--brand);
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}
.page-hero p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 760px;
}

.about-grid { gap: 48px; }
.about-pi,
.feat-card,
.research-card,
.platform-card,
.pub-item,
.proj-item,
.award-item,
.news-card,
.module-card,
.demo-card,
.contact-form,
.gallery-empty,
.ht-item {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.about-pi::before { background: linear-gradient(90deg, var(--brand), var(--accent), var(--cyan)); }
.members-section { padding-top: 28px; }
.about-pi:hover,
.feat-card:hover,
.research-card:hover,
.platform-card:hover,
.news-card:hover,
.module-card:hover,
.member-card:hover,
.faculty-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-md);
}
.pi-avatar,
.faculty-photo,
.member-avatar,
.platform-icon,
.research-icon,
.mod-icon,
.plat-cat-head .pc-icon {
  background: linear-gradient(135deg, #dbeafe, #eef2ff);
  color: var(--brand);
  box-shadow: none;
}
.pi-tags span,
.badge.live,
.news-cat,
.proj-status.ongoing,
.si-type,
.tags-input .tag {
  background: var(--brand-tint);
  color: var(--brand);
}
.badge.coming,
.si-type.si-pub,
.dz-honest {
  background: var(--accent-soft);
  color: var(--accent);
}
.feat-venue,
.feat-card .feat-link,
.platform-card .plink,
.mod-link,
.see-all,
.pi-link,
.pub-links a,
.news-more,
.contact-static a {
  color: var(--brand);
}
.feat-venue .vbar { background: var(--cyan); }
.kw span,
.pub-filters button {
  border-color: var(--line);
  color: var(--ink-soft);
}
.pub-filters button.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.people-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 22px 0 44px;
  padding: 8px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}
.people-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}
.people-tabs a:hover {
  color: var(--brand);
  background: var(--brand-tint);
}
.people-tabs span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
}
.member-group {
  scroll-margin-top: 104px;
  margin-bottom: 72px;
}
.member-group-title {
  display: block;
  margin-bottom: 20px;
  color: var(--brand);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
}
.member-group-title::after {
  display: block;
  width: 100%;
  height: 1px;
  margin: 10px 0 0;
  border-radius: 999px;
  background: var(--line);
}
.faculty-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
#pi .faculty-list {
  max-width: 920px;
  margin: 0 auto;
}
.faculty-card {
  height: 100%;
  border-radius: 8px;
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.faculty-card:hover { transform: translateY(-4px); }
.faculty-top {
  grid-template-columns: 104px 1fr auto;
  gap: 22px;
  padding: 24px 26px;
  align-items: center;
}
.faculty-photo {
  width: 104px;
  height: 104px;
  border-radius: 8px;
  font-size: 34px;
}
.faculty-info .fname {
  color: var(--ink);
  font-size: 22px;
  letter-spacing: 0;
}
.faculty-info .fname .en {
  display: block;
  margin: 4px 0 0;
  color: var(--ink-mute);
  font-size: 13px;
}
.faculty-info .ftitle {
  color: var(--brand);
  font-size: 14px;
}
.faculty-info .fresearch,
.faculty-contact a,
.faculty-contact span {
  color: var(--ink-soft);
}
.faculty-contact svg { color: var(--brand); }
.faculty-toggle {
  justify-self: end;
  align-self: center;
}
.fexpand-btn {
  color: var(--brand);
  border-color: #bfdbfe;
  border-radius: 999px;
}
.fexpand-btn:hover {
  background: var(--brand-tint);
  border-color: var(--brand);
}
.faculty-detail-inner { background: var(--cream); }
.fdetail-block h4 { color: var(--brand); letter-spacing: 0; }
.fdetail-block .rep-pub::before { background: var(--cyan); }

.member-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.member-card {
  border-radius: 8px;
  border-color: var(--line);
  padding: 26px 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.member-card:hover { transform: translateY(-4px); }
.member-avatar {
  width: 78px;
  height: 78px;
  border-radius: 999px;
}
.member-name { color: var(--ink); font-size: 17px; }
.member-title { color: var(--brand); }

.flag-hero {
  padding: 126px 0 58px;
  min-height: 0;
  color: #fff;
  background:
    radial-gradient(640px 360px at 84% 30%, rgba(59, 130, 246, .32), transparent 68%),
    radial-gradient(520px 320px at 12% 12%, rgba(6, 182, 212, .12), transparent 62%),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(135deg, #0b1220 0%, #0f2748 58%, #2563eb 100%);
  background-size: auto, auto, 52px 52px, 52px 52px, auto;
  border: none;
}
.flag-hero .container { max-width: 1120px; }
.flag-hero .flag-badge {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .22);
  color: #dbeafe;
}
.flag-hero h1 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(40px, 4.7vw, 50px);
}
.flag-hero p,
.flag-hero > .container > p {
  max-width: 760px;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
}
.flag-hero .flag-actions { margin-top: 28px; }
.flag-hero .btn-primary {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 14px 26px rgba(0, 0, 0, .16);
}
.flag-hero .btn-primary:hover { background: #eff6ff; color: var(--brand-deep); }
.flag-hero .btn-glass {
  color: #fff;
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.28);
}
.flag-hero .btn-glass:hover { background: rgba(255,255,255,.18); color: #fff; }
.flag-art {
  right: 48px;
  width: 430px;
  max-width: 36%;
  opacity: .24;
  filter: grayscale(1) brightness(1.8);
}
.flag-metrics {
  max-width: 820px;
  gap: 16px;
  margin-top: 34px;
}
.flag-metric {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.14);
  border-radius: 8px;
  box-shadow: none;
  padding: 18px 20px;
  backdrop-filter: blur(8px);
}
.flag-metric .fm-num {
  color: #fff;
  font-size: clamp(30px, 3.4vw, 38px);
}
.flag-metric .fm-label { color: rgba(255,255,255,.72); }
.workflow .wf-num {
  background: var(--brand);
  box-shadow: 0 10px 22px rgba(37,99,235,.24);
}
.dropzone:hover { border-color: var(--brand); background: var(--brand-tint); }
.dz-inner svg,
.vp-head h3 svg,
.helpbar svg,
.contact-static svg { color: var(--brand); }

.join,
.site-footer {
  background: #0f172a;
}
.join::after {
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
}
.contact-box {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
}
.contact-row svg { color: #67e8f9; }
.back-to-top,
.skip-link {
  background: var(--brand);
  box-shadow: var(--shadow-md);
}
.back-to-top:hover { background: var(--brand-deep); }
.search-overlay,
.nm-overlay { background: rgba(15, 23, 42, .42); }
.search-panel,
.nm-panel {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.search-item:hover { background: var(--cream); }
.search-box .sicon { color: var(--brand); }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible {
  outline-color: var(--brand);
}

@media (max-width: 980px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .hero h1,
  .flag-hero h1 { font-size: 44px; }
  .page-hero h1 { font-size: 38px; }
  .section-title { font-size: 32px; }
}

@media (max-width: 720px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .section { padding: 70px 0; }
  .sec-lead { padding-top: 84px; }
  .hero { padding: 84px 0 76px; }
  .hero { min-height: 0; }
  .flag-hero { padding: 112px 0 44px; }
  .hero h1,
  .flag-hero h1 { font-size: 34px; }
  .hero p.lead,
  .flag-hero p,
  .flag-hero > .container > p { font-size: 16px; }
  .flag-hero .flag-actions { margin-top: 22px; }
  .flag-metrics { margin-top: 26px; gap: 14px; }
  .flag-metric { padding: 14px 16px; }
  .page-hero { padding: 100px 0 22px; }
  .page-hero h1 { font-size: 32px; }
  .section-title { font-size: 28px; }
  .people-tabs {
    justify-content: flex-start;
    width: 100%;
    margin: 18px 0 32px;
    border-radius: 999px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .people-tabs a { flex: none; }
  .member-group-title { font-size: 16px; }
  .news-tools { align-items: stretch; flex-direction: column; gap: 10px; }
  .news-search { max-width: none; }
  .news-count { text-align: left; padding-bottom: 0; }
  .news-pager { justify-content: flex-start; }
  .faculty-top {
    grid-template-columns: 1fr;
    text-align: left;
    justify-items: start;
  }
  .faculty-photo { margin: 0; }
  .faculty-toggle { justify-self: start; }
}
