/* ============================================================
   郭庆课题组 · 全站样式（亮色学术风）
   ============================================================ */
:root {
  --ink: #152420;
  --text: #35443e;
  --muted: #6b7a73;
  --primary: #0e7c66;
  --primary-deep: #0a5c4c;
  --primary-soft: #e6f3ef;
  --bg: #f7f8f7;
  --surface: #ffffff;
  --line: #e2e8e5;
  --shadow: 0 1px 2px rgba(21, 36, 32, .05), 0 10px 30px -12px rgba(21, 36, 32, .16);
  --radius: 14px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-deep); }
code {
  font-family: Consolas, "JetBrains Mono", monospace;
  background: var(--primary-soft);
  color: var(--primary-deep);
  padding: .1em .4em;
  border-radius: 6px;
  font-size: .92em;
}

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

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); }
.brand-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--primary); align-self: center;
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: .5px; }
.brand-sub { font-size: 11.5px; color: var(--muted); letter-spacing: .3px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 7px 14px; border-radius: 999px;
  color: var(--text); font-size: 14.5px; transition: .18s;
}
.nav a:hover { background: var(--primary-soft); color: var(--primary-deep); }
.nav a.active { background: var(--primary); color: #fff; }
.header-mail { white-space: nowrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; transition: .18s; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--primary); color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-light { background: #fff; color: var(--primary-deep); }
.btn-light:hover { transform: translateY(-1px); color: var(--primary-deep); }
.btn-sm { padding: 7px 16px; font-size: 13.5px; }

/* ---------- 首页 Hero ---------- */
.hero {
  background:
    radial-gradient(700px 340px at 85% -60px, rgba(14, 124, 102, .12), transparent 65%),
    radial-gradient(520px 300px at 8% 110%, rgba(14, 124, 102, .08), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.25fr .75fr;
  gap: 56px; align-items: center; padding: 72px 24px 80px;
}
.hero-eyebrow {
  font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary); font-weight: 700; margin-bottom: 14px;
}
.hero h1 {
  margin: 0 0 10px; font-size: 44px; line-height: 1.2;
  color: var(--ink); letter-spacing: 1px;
}
.hero-tagline { margin: 0 0 14px; font-size: 18px; color: var(--primary-deep); font-weight: 600; }
.hero-slogan { margin: 0 0 30px; font-size: 16px; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  max-width: 320px; justify-self: end; width: 100%;
}
.hero-photo img { width: 100%; aspect-ratio: 3/3.4; object-fit: cover; }
.hero-meta { padding: 16px 18px 18px; border-top: 3px solid var(--primary); }
.hero-meta-name { font-weight: 700; font-size: 18px; color: var(--ink); }
.hero-meta-title { font-size: 13.5px; color: var(--muted); margin: 2px 0 8px; }
.hero-meta-mail { font-size: 13.5px; }

/* ---------- 通用区块 ---------- */
.section { padding: 68px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft);
  padding: 4px 12px; border-radius: 999px;
}
.sec-head h2 { margin: 0; font-size: 27px; color: var(--ink); letter-spacing: 1px; }
.sec-link { margin-left: auto; font-size: 14px; font-weight: 600; }

/* ---------- 卡片 ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* 研究方向：两列大卡，支持配图 */
.research-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.research-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.research-photo { aspect-ratio: 16 / 9; background: var(--primary-soft); }
.research-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.research-body { padding: 20px 22px 24px; flex: 1; }
.research-body .card-icon { margin-bottom: 14px; }
.research-body h3 { margin: 0 0 8px; font-size: 17.5px; color: var(--ink); }
.research-body p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.8; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
  transition: .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ---------- 新闻列表 ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item {
  display: flex; gap: 16px; padding: 14px 4px;
  border-bottom: 1px dashed var(--line); font-size: 15px;
}
.news-item:last-child { border-bottom: 0; }
.news-date {
  flex: 0 0 64px; font-weight: 700; color: var(--primary-deep);
  font-size: 13.5px; padding-top: 2px;
}
.news-text { color: var(--text); }

/* ---------- 招生横幅 ---------- */
.recruit-band {
  background: linear-gradient(120deg, var(--primary-deep), var(--primary) 70%);
  color: #fff;
}
.recruit-inner { display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.recruit-band h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: 1px; }
.recruit-band p { margin: 0; opacity: .92; font-size: 15px; }

/* ---------- 页面头（论文页等） ---------- */
.page-head { padding: 56px 0 8px; }
.page-desc { color: var(--muted); font-size: 14.5px; margin: -6px 0 0; }
.page-desc b { color: var(--primary-deep); }
.pub-toolbar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 26px 0 8px; }
#pub-search {
  flex: 1 1 280px; max-width: 380px; padding: 10px 16px;
  border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 14.5px; font-family: inherit; background: var(--surface);
  outline: none; transition: .18s; color: var(--ink);
}
#pub-search:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.year-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--line); background: var(--surface);
  color: var(--text); border-radius: 999px; padding: 6px 14px;
  font-size: 13px; cursor: pointer; font-family: inherit; transition: .15s;
}
.chip i { font-style: normal; color: var(--muted); font-size: 12px; margin-left: 3px; }
.chip:hover { border-color: var(--primary); color: var(--primary-deep); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.active i { color: rgba(255, 255, 255, .8); }
.pub-count { color: var(--muted); font-size: 13.5px; margin: 18px 0 26px; }
.pub-count b { color: var(--primary-deep); }

/* ---------- 论文列表 ---------- */
.pub-year {
  display: flex; align-items: baseline; gap: 12px;
  margin: 34px 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--ink);
}
.pub-year:first-child { margin-top: 0; }
.pub-year h3 { margin: 0; font-size: 21px; color: var(--ink); letter-spacing: 1px; }
.pub-year-n { font-size: 13px; color: var(--muted); }
.pub-items { list-style: none; margin: 14px 0 0; padding: 0; }
.pub-item {
  display: grid; grid-template-columns: 52px 1fr; gap: 8px;
  padding: 13px 10px; border-radius: 10px; font-size: 14.5px; line-height: 1.8;
  transition: .15s;
}
.pub-item:hover { background: var(--primary-soft); }
.pub-item:nth-child(even) { background: rgba(226, 232, 229, .35); }
.pub-item:nth-child(even):hover { background: var(--primary-soft); }
.pub-no { color: var(--muted); font-family: Consolas, monospace; font-size: 13px; padding-top: 2px; }
.pub-text { color: var(--text); overflow-wrap: anywhere; }
.pub-text .lead { color: var(--primary-deep); font-weight: 700; }
.pub-empty {
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted);
}

/* ---------- 导师简介 / 成员 ---------- */
.pi-card {
  display: grid; grid-template-columns: 280px 1fr; gap: 36px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px;
}
.pi-photo { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.pi-body h3 { margin: 0 0 2px; font-size: 24px; color: var(--ink); }
.pi-title { color: var(--primary-deep); font-weight: 600; font-size: 14.5px; margin-bottom: 16px; }
.pi-intro p { margin: 0 0 12px; font-size: 14.8px; text-align: justify; }
.pi-body .btn { margin-top: 6px; }

.member-block { margin-bottom: 36px; }
.member-h { font-size: 18px; color: var(--ink); margin: 0 0 14px; }
.member-n {
  font-size: 12.5px; color: var(--muted); background: var(--primary-soft);
  padding: 2px 10px; border-radius: 999px; margin-left: 8px; vertical-align: 2px;
}
.member-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.member-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px;
}
.member-info { min-width: 0; flex: 1; }
.member-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; flex: 0 0 auto;
}
.member-name { font-weight: 600; color: var(--ink); font-size: 15px; }
.member-role { font-size: 12.5px; color: var(--muted); }
.member-mail {
  display: block; margin-top: 3px; font-size: 12px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.contact-link { cursor: pointer; }
.mail-copy { cursor: pointer; }
.member-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.member-grid.muted .member-card { opacity: .72; }
.member-empty {
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 32px; text-align: center;
  color: var(--muted); font-size: 14.5px; line-height: 2;
}

/* ---------- 加入我们 ---------- */
.recruit-card { border-top: 3px solid var(--primary); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.contact-card h3 { margin: 0 0 10px; font-size: 16.5px; color: var(--ink); }
.contact-card p { margin: 0 0 6px; font-size: 15px; }
.contact-link { font-size: 17px; font-weight: 600; }
.contact-note { color: var(--muted); font-size: 13.5px !important; }

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 16px);
  background: #12211c; color: #fff; font-size: 13.5px;
  padding: 10px 20px; border-radius: 999px; z-index: 200;
  opacity: 0; transition: .25s; pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  max-width: 86vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #12211c; color: #b9c8c1; margin-top: 0;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 40px 24px; flex-wrap: wrap;
}
.footer-name { color: #fff; font-weight: 700; font-size: 17px; letter-spacing: 1px; }
.footer-sub { font-size: 12.5px; opacity: .75; margin-top: 2px; }
.footer-right { text-align: right; font-size: 13px; line-height: 2; }
.footer-right a { color: #9fd8c9; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 52px 24px 60px; }
  .hero-card { justify-self: start; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .pi-card { grid-template-columns: 200px 1fr; padding: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px 16px; }
  .nav { margin-left: 0; order: 3; width: 100%; }
  .header-mail { display: none; }
  .hero h1 { font-size: 34px; }
  .cards-grid { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr; }
  .pi-card { grid-template-columns: 1fr; }
  .pi-photo { max-width: 220px; }
  .footer-right { text-align: left; }
  .pub-item { grid-template-columns: 42px 1fr; }
  .member-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}

/* ---------- 组内活动 ---------- */
.activity-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.activity-card {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  transition: .2s; box-shadow: 0 1px 2px rgba(21, 36, 32, .04);
}
.activity-card:hover, .activity-card:focus-visible {
  transform: translateY(-4px); box-shadow: var(--shadow); outline: none;
  border-color: var(--primary);
}
.activity-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--primary-soft); }
.activity-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.activity-card:hover .activity-photo img { transform: scale(1.05); }
.activity-cap {
  display: flex; flex-direction: column; gap: 3px;
  padding: 13px 15px 15px; border-top: 1px solid var(--line);
}
.activity-date {
  font-size: 12px; color: var(--primary-deep); font-weight: 700;
  letter-spacing: .5px;
}
.activity-title {
  font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.5;
}

/* ---------- 灯箱（点击放大） ---------- */
#lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
}
#lightbox.open { display: block; }
.lightbox-mask {
  position: absolute; inset: 0;
  background: rgba(13, 24, 20, .82); backdrop-filter: blur(3px);
}
.lightbox-body {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  margin: 0; max-width: min(920px, 92vw); max-height: 88vh;
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
  animation: lb-in .22s ease;
}
@keyframes lb-in {
  from { opacity: 0; transform: translate(-50%, -47%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
.lightbox-body img {
  width: 100%; max-height: 68vh; object-fit: contain; background: #10201b;
}
.lightbox-body figcaption {
  padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.lightbox-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.lightbox-date { font-size: 12.5px; color: var(--primary-deep); font-weight: 700; }
.lightbox-desc { font-size: 14px; color: var(--muted); line-height: 1.8; }
.lightbox-close {
  position: absolute; top: 10px; right: 10px;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(13, 24, 20, .55); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer; transition: .15s;
}
.lightbox-close:hover { background: rgba(13, 24, 20, .8); }

/* ---------- 毕业学生去向 ---------- */
.placement-figure { margin: 0 0 18px; padding: 14px; }
.placement-scroll { overflow-x: auto; }
.placement-img {
  display: block; min-width: 760px; max-width: 100%; height: auto;
  cursor: zoom-in; border-radius: 8px;
}
.placement-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }
.placement-rows { display: flex; flex-direction: column; gap: 10px; }
.placement-row { display: flex; align-items: flex-start; gap: 12px; }
.placement-year {
  flex: 0 0 64px; text-align: center; padding: 6px 0;
  background: var(--primary-soft); color: var(--primary-deep);
  font-weight: 700; font-size: 14px; border-radius: 8px;
}
.placement-orgs { display: flex; flex-wrap: wrap; gap: 8px; }
.placement-org {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 14px;
  font-size: 13.5px; color: var(--ink);
}
@media (max-width: 640px) {
  .placement-img { min-width: 640px; }
}

@media (max-width: 640px) {
  .activity-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .activity-cap { padding: 10px 12px 12px; }
  .activity-title { font-size: 13px; }
  .lightbox-body { max-width: 96vw; max-height: 92vh; }
  .lightbox-body img { max-height: 56vh; }
}

/* ---- 间距微调工具类（替代内联 style，配合 CSP 安全策略） ---- */
.pt-20 { padding-top: 20px; }
.pt-24 { padding-top: 24px; }
.pb-36 { padding-bottom: 36px; }
.mt-18 { margin-top: 18px; }
