/* ============ 灵涵实验室 · 站点样式（多页面版） ============ */
:root {
  --ink: #12333c;
  --ink-soft: #3d5a63;
  --deep: #0b3d4d;        /* 涵 · 深水青 */
  --deep-2: #0e4a5e;
  --teal: #17798f;        /* 灵 · 灵动青 */
  --accent: #2aa5b8;
  --mist: #eef5f7;
  --paper: #fbfdfd;
  --card: #ffffff;
  --line: #d9e6ea;
  --gold: #b8860b;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 253, 253, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(11, 61, 77, 0.10); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--deep), var(--teal));
  color: #eaf6f8; font-size: 17px; font-weight: 700; letter-spacing: 1px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-cn { font-size: 16px; font-weight: 700; color: var(--ink); }
.brand-en { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.4px; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { font-size: 15px; color: var(--ink-soft); font-weight: 500; }
.site-nav a:hover { color: var(--deep); text-decoration: none; }
.site-nav a.active { color: var(--deep); box-shadow: inset 0 -2px 0 var(--teal); padding-bottom: 2px; }
.site-nav a.nav-cta {
  padding: 7px 16px; border-radius: 999px;
  background: var(--deep); color: #fff;
}
.site-nav a.nav-cta:hover { background: var(--deep-2); }
.site-nav a.nav-cta.active { color: #fff; box-shadow: none; }

.nav-toggle { display: none; border: none; background: none; font-size: 22px; color: var(--deep); cursor: pointer; }

/* ============ Hero (home) ============ */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(42, 165, 184, 0.35), transparent 60%),
    linear-gradient(150deg, var(--deep) 0%, var(--deep-2) 55%, #11637a 100%);
  color: #f2fafb;
  overflow: hidden;
  padding: 96px 0 140px;
}
.hero-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; }
.hero-wave svg { display: block; width: 100%; height: 100%; }
.hero-inner { position: relative; text-align: center; }
.hero-uni { font-size: 14px; letter-spacing: 6px; color: rgba(242, 250, 251, 0.75); margin-bottom: 18px; }
.hero-title {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800; letter-spacing: 4px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  margin-bottom: 10px;
}
.hero-en { font-size: clamp(13px, 1.8vw, 17px); letter-spacing: 1.5px; color: rgba(242, 250, 251, 0.85); margin-bottom: 26px; }
.hero-slogan {
  font-size: clamp(18px, 2.6vw, 26px); letter-spacing: 8px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  color: #ffe9b8; margin-bottom: 6px;
}
.hero-slogan-en { font-size: 14px; letter-spacing: 2px; color: rgba(242, 250, 251, 0.75); margin-bottom: 26px; }
.hero-desc { max-width: 640px; margin: 0 auto 34px; font-size: 16px; color: rgba(242, 250, 251, 0.92); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-block; padding: 12px 30px; border-radius: 999px; font-size: 15px; font-weight: 600; transition: all 0.2s; }
.btn-primary { background: #fff; color: var(--deep); }
.btn-primary:hover { background: #e6f4f7; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.65); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; }
.btn-outline { border: 1.5px solid var(--teal); color: var(--teal); padding: 10px 24px; }
.btn-outline:hover { background: var(--mist); text-decoration: none; }

/* ============ Page hero (sub pages) ============ */
.page-hero {
  position: relative;
  background: linear-gradient(150deg, var(--deep) 0%, var(--deep-2) 55%, #11637a 100%);
  color: #f2fafb;
  overflow: hidden;
  padding: 84px 0 110px;
}
.page-hero-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; }
.page-hero-wave svg { display: block; width: 100%; height: 100%; }
.page-hero-inner { position: relative; text-align: center; }
.page-hero-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; letter-spacing: 3px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  margin-bottom: 12px;
}
.page-hero-en { font-size: 14px; letter-spacing: 2px; color: rgba(242, 250, 251, 0.75); }
.page-hero-en a { color: rgba(242, 250, 251, 0.9); }

/* ============ Sections ============ */
.section { padding: 84px 0; }
.section-alt { background: var(--mist); }
.section-sm { padding: 60px 0; }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head.left { text-align: left; }
.section-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.section-title { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: 2px; }
.section-sub { margin-top: 12px; color: var(--ink-soft); font-size: 15px; }

.section-action { text-align: center; margin-top: 32px; }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
.about-intro p { margin-bottom: 16px; font-size: 16px; color: var(--ink-soft); }
.about-intro strong { color: var(--deep); }

.name-cards { display: flex; flex-direction: column; gap: 16px; }
.name-card {
  display: flex; gap: 18px; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.name-char {
  flex: none; width: 58px; height: 58px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; color: #fff;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  background: linear-gradient(135deg, var(--deep), var(--teal));
}
.name-card h3 { font-size: 15px; color: var(--teal); letter-spacing: 0.5px; margin-bottom: 4px; }
.name-card p { font-size: 14px; color: var(--ink-soft); }
.name-quote {
  padding: 14px 20px; border-left: 3px solid var(--gold);
  background: rgba(184, 134, 11, 0.06); border-radius: 0 10px 10px 0;
  font-size: 14px; color: var(--ink-soft); font-style: normal;
  font-family: "Songti SC", "STSong", "SimSun", serif;
}

/* ============ Research ============ */
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.research-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.research-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(11, 61, 77, 0.12); }
.research-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(23, 121, 143, 0.14), rgba(42, 165, 184, 0.18));
  color: var(--teal);
}
.research-icon svg { width: 26px; height: 26px; }
.research-card h3 { font-size: 17px; margin-bottom: 8px; }
.research-card p { font-size: 14px; color: var(--ink-soft); }

/* ============ People ============ */
.group-title {
  font-size: 17px; color: var(--deep); letter-spacing: 1px;
  margin: 34px 0 16px; padding-left: 12px;
  border-left: 4px solid var(--teal);
}
.group-title:first-of-type { margin-top: 0; }

.people-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.person-card {
  display: flex; gap: 18px; padding: 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.avatar {
  flex: none; width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 700; color: #fff;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  background: linear-gradient(135deg, var(--deep), var(--accent));
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-tbd { background: linear-gradient(135deg, #8fb7c1, #c3d9de); color: #fff; font-size: 24px; }
.person-info h4 { font-size: 18px; margin-bottom: 4px; }
.person-title { font-size: 13px; font-weight: 500; color: var(--teal); margin-left: 8px; }
.person-affil { font-size: 13px; color: var(--gold); margin-bottom: 8px; }
.person-bio { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.person-contact { font-size: 13px; color: var(--ink-soft); }

/* Team leader / PI card */
.leader-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 36px;
  align-items: start;
  background: linear-gradient(180deg, #fff 0%, #f8fbfc 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px;
  margin-bottom: 10px;
}
.leader-photo {
  width: 220px; height: auto; border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(11, 61, 77, 0.12);
  display: block;
}
.leader-name { font-size: 28px; font-weight: 800; letter-spacing: 2px; margin-bottom: 4px; }
.leader-role {
  display: inline-block; font-size: 14px; color: #fff; background: var(--teal);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.leader-titles { font-size: 14px; color: var(--gold); margin-bottom: 14px; line-height: 1.7; }
.leader-bio p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 10px; }
.leader-contact { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }

/* ============ Clickable person cards ============ */
a.person-card { color: inherit; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
a.person-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(11, 61, 77, 0.12); border-color: var(--teal); }
.person-more { font-size: 13px; color: var(--teal); font-weight: 600; margin-top: 6px; }

/* ============ Faculty detail page ============ */
.detail-body { max-width: 860px; margin: 0 auto; }
.detail-sec { margin: 44px 0; }
.detail-sec-title {
  font-size: 20px; color: var(--deep); letter-spacing: 1px;
  margin-bottom: 18px; padding-left: 12px; border-left: 4px solid var(--teal);
}
.meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.meta-grid li { list-style: none; font-size: 14.5px; color: var(--ink-soft); }
.meta-grid strong { color: var(--ink); }
.timeline { list-style: none; }
.timeline li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 10px; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.detail-bio p { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }
.paper-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.paper-list li {
  padding: 16px 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 14.5px; color: var(--ink-soft);
}
.paper-list .paper-venue { display: block; font-size: 13px; color: var(--teal); font-weight: 600; margin-top: 4px; }
.paper-list .paper-award { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(23, 121, 143, 0.10); color: var(--deep);
  font-size: 13.5px; font-weight: 500;
}
.back-link { display: inline-block; margin-top: 10px; font-size: 14px; }

/* ============ News ============ */
.news-list { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 auto; }
.news-item {
  display: flex; gap: 22px; padding: 20px 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.news-item time { flex: none; font-weight: 700; color: var(--teal); font-size: 14px; padding-top: 2px; }
.news-item h4 { font-size: 16px; margin-bottom: 4px; }
.news-item p { font-size: 14px; color: var(--ink-soft); }

/* ============ Publications ============ */
.pub-list { list-style: none; display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin: 0 auto; }
.pub-list li {
  padding: 18px 22px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.pub-award { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: 0.5px; margin-bottom: 6px; }
.pub-list p { font-size: 14.5px; color: var(--ink-soft); }

/* ============ Join ============ */
.join { background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 70%, #11637a 100%); color: #f2fafb; }
.join .section-title { color: #fff; }
.join .section-sub { color: rgba(242, 250, 251, 0.8); }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 26px; }
.join-card { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius); padding: 26px; }
.join-card h3 { font-size: 18px; margin-bottom: 12px; color: #ffe9b8; }
.join-card ul { list-style: none; }
.join-card li { font-size: 14.5px; color: rgba(242, 250, 251, 0.92); padding-left: 20px; position: relative; margin-bottom: 8px; }
.join-card li::before { content: "·"; position: absolute; left: 6px; color: var(--accent); font-weight: 700; }
.join-note { text-align: center; font-size: 15px; }
.join-note a { color: #ffe9b8; text-decoration: underline; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.contact-list { list-style: none; }
.contact-list li { font-size: 15px; color: var(--ink-soft); margin-bottom: 10px; }
.contact-list a { font-weight: 600; }
.contact-slogan { text-align: center; }
.contact-slogan-cn {
  font-size: 26px; letter-spacing: 6px; color: var(--deep);
  font-family: "Songti SC", "STSong", "SimSun", serif; margin-bottom: 6px;
}
.contact-slogan-en { font-size: 13px; letter-spacing: 2px; color: var(--ink-soft); }

/* ============ Footer ============ */
.site-footer { background: #082b36; color: rgba(242, 250, 251, 0.75); padding: 34px 0; text-align: center; font-size: 13.5px; }
.footer-en { font-size: 12px; margin-top: 4px; color: rgba(242, 250, 251, 0.5); }
.footer-nav { margin-top: 10px; }
.footer-nav a { color: rgba(242, 250, 251, 0.7); margin: 0 12px; }
.footer-nav a:hover { color: #fff; text-decoration: none; }

/* ============ Responsive ============ */
@media (max-width: 920px) {
  .research-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .join-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .leader-card { grid-template-columns: 1fr; }
  .leader-photo { margin: 0 auto; width: 200px; }
}
@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .meta-grid { grid-template-columns: 1fr; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(11, 61, 77, 0.12);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 24px; border-top: 1px solid var(--mist); }
  .site-nav a.nav-cta { border-radius: 0; text-align: center; }
  .brand-en { display: none; }
  .research-grid { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; gap: 6px; }
  .hero { padding: 72px 0 120px; }
  .leader-card { padding: 24px; }
  .leader-name { font-size: 22px; }
}
