
:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --surface-2: #f2eeea;
  --ink: #151515;
  --muted: #5f5f5f;
  --line: #e3ddd7;
  --accent: #7b1f36;
  --accent-soft: #f6ecef;
  --shadow: 0 10px 30px rgba(30, 20, 20, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(247, 245, 242, 0.88);
  border-bottom: 1px solid rgba(227, 221, 215, 0.85);
}

.topbar-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 1.25rem;
}

.nav a {
  color: var(--muted);
  padding: 6px 0;
}

.nav a:hover,
.nav a:focus {
  color: var(--accent);
  text-decoration: none;
}
.nav a.current {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.section {
  scroll-margin-top: 90px;
  padding: 76px 0 0;
}
.page{max-width:var(--max); margin:0 auto; padding:28px 22px 56px}
.hero{
  display:grid; grid-template-columns:1.05fr 1.1fr; gap:28px; align-items:center;
  padding:24px 0 8px;
}
.hero-copy,.hero-visual{
  background:var(--panel); border:1px solid var(--line); border-radius:32px; box-shadow:var(--shadow);
}
.hero-copy{padding:34px}
.hero-visual{padding:18px}
.hero-visual img{border-radius:22px}
.kicker{
  display:inline-block; padding:8px 14px; border-radius:999px;
  background:var(--accent-soft); color:var(--accent);
  font-size:.86rem; font-weight:700; letter-spacing:.02em;
}
.hero h1{margin:18px 0 10px; font-size:clamp(2.5rem,5vw,4.7rem); line-height:1.02; letter-spacing:-.05em}
.hero-line{font-size:1.1rem; color:var(--accent); font-weight:600; margin:0 0 8px}
.hero-small{margin:0 0 22px; color:var(--muted)}
.hero-links{display:flex; flex-wrap:wrap; gap:12px; margin:0 0 18px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px; border-radius:999px; border:1px solid var(--line);
  font-weight:600; transition:.2s ease;
}
.btn.primary{background:var(--accent); border-color:var(--accent); color:#fff}
.btn.ghost{background:#fff}
.btn:hover{transform:translateY(-1px); box-shadow:0 10px 22px rgba(42,22,31,.08)}
.chip-band{display:flex; flex-wrap:wrap; gap:10px}
.chip-band span{
  background:#fff; border:1px solid var(--line); border-radius:999px;
  padding:8px 12px; color:var(--muted); font-size:.92rem;
}
.section{padding:34px 0 10px}
.section-head{margin-bottom:18px}
.section-head h2{margin:10px 0 0; font-size:clamp(1.7rem,3vw,2.6rem); line-height:1.1; letter-spacing:-.04em}
.overview-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:18px;
}
.overview-card,.contact-card{
  background:var(--panel); border:1px solid var(--line); border-radius:26px; box-shadow:var(--shadow);
}
.overview-card{padding:22px}
.overview-card h3{margin:0 0 8px; font-size:1.06rem}
.overview-card p{margin:0; color:var(--muted)}
.publications .section-head{margin-bottom:24px}
.pub-year-block{margin:0 0 34px}
.year-pill{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:88px; height:44px; padding:0 18px; border-radius:999px;
  background:var(--accent); color:#fff; font-weight:700; margin:0 0 16px;
}
.paper-grid{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:22px;
}
.paper-card{
  background:var(--panel); border:1px solid var(--line); border-radius:28px;
  overflow:hidden; box-shadow:var(--shadow);
}
.button-secondary:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(123, 31, 54, 0.12);
}

.button-secondary {
  background: #fff;
  color: var(--accent);
}
/* .paper-figure{
  display:block; aspect-ratio:16/10; background:#f7f1f3;
}
.paper-figure img{
  width:100%; height:100%; object-fit:cover; object-position:center center;
} */
.paper-figure{
  width:100%;
  height:260px;              /* 固定高度 */
  display:flex;
  align-items:center;        /* 垂直居中 */
  justify-content:center;    /* 水平居中 */
  background:#fff;           /* 上下留白区域背景 */
  overflow:hidden;
}

.paper-figure img{
  width:100%;                /* 按宽度填充 */
  height:auto;               /* 保持比例 */
  max-height:100%;           /* 不超过容器 */
  object-fit:contain;        /* 防止裁剪 */
}
.paper-body{padding:16px 18px 18px}
.paper-meta{
  display:flex; gap:10px; flex-wrap:wrap; color:var(--muted); font-size:.9rem; margin-bottom:10px
}
.paper-tag{
  background:var(--accent-soft); color:var(--accent); padding:6px 10px; border-radius:999px; font-weight:700;
}
.paper-body h3{margin:0 0 8px; font-size:1.12rem; line-height:1.3}
.paper-body p{margin:0; color:var(--muted)}
.section-actions{margin-top:8px}
.member-grid{
  display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:18px;
}
.member-card{
  background:var(--panel); border:1px solid var(--line); border-radius:24px;
  box-shadow:var(--shadow); padding:16px; display:grid; grid-template-columns:92px 1fr; gap:14px; align-items:center;
}
.member-avatar{
  width:92px; height:92px; border-radius:22px; overflow:hidden; border:1px solid var(--line); background:#fff;
}
.member-avatar img{width:100%; height:100%; object-fit:cover}
.member-name{font-weight:700}
.member-name a:hover{color:var(--accent)}
.member-role,.member-period{color:var(--muted); font-size:.95rem}
.contact-card{
  padding:22px; display:grid; grid-template-columns:1fr 1fr 1fr; gap:18px;
}
.contact-card a{color:var(--accent)}
.footer{padding:20px 0 10px; color:var(--muted); font-size:.95rem}
.gallery-note{margin:0 0 18px; color:var(--muted)}
.gallery-grid{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:22px;
}
.gallery-card{
  background:var(--panel); border:1px solid var(--line); border-radius:28px;
  overflow:hidden; box-shadow:var(--shadow);
}
.gallery-card img{width:100%; aspect-ratio:16/10; object-fit:cover}
.gallery-copy{padding:16px 18px 18px}
.gallery-copy time{display:block; color:var(--muted); font-size:.92rem; margin-bottom:6px}
.gallery-copy h3{margin:0; font-size:1.1rem}

@media (max-width: 1100px){
  .hero{grid-template-columns:1fr}
  .overview-grid{grid-template-columns:repeat(2,1fr)}
  .member-grid{grid-template-columns:repeat(2,1fr)}
  .contact-card{grid-template-columns:1fr}
}
@media (max-width: 760px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-copy,
  .hero-panel,
  .section-panel,
  .card,
  .paper-block,
  .timeline-item,
  .link-card {
    padding: 20px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .site-shell,
  .topbar-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  section {
    padding-top: 58px;
  }
}


.page-hero{
  margin: 0 0 8px;
}
.page-panel{
  background:var(--panel); border:1px solid var(--line); border-radius:32px; box-shadow:var(--shadow);
  padding:28px;
}
.page-panel h1{margin:16px 0 8px; font-size:clamp(2.2rem,4vw,3.6rem); line-height:1.04; letter-spacing:-.05em}
.page-panel p{margin:0; color:var(--muted); max-width:820px}
.page-actions{display:flex; flex-wrap:wrap; gap:12px; margin-top:20px}
.link-grid{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px;
}
.link-card{
  display:block; background:var(--panel); border:1px solid var(--line); border-radius:28px;
  box-shadow:var(--shadow); padding:24px; transition:.2s ease;
}
.link-card:hover{transform:translateY(-2px); box-shadow:0 18px 40px rgba(42,22,31,.12)}
.link-card h3{margin:10px 0 8px; font-size:1.2rem}
.link-card p{margin:0; color:var(--muted)}
.link-meta{display:inline-block; color:var(--accent); font-weight:700; font-size:.92rem}
.group-block{padding-top:10px}
.group-head{display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 16px}
.group-head h2{margin:0; font-size:1.6rem; letter-spacing:-.03em}
.group-note{color:var(--muted); font-size:.95rem}
.member-lead{
  background:var(--panel); border:1px solid var(--line); border-radius:28px; box-shadow:var(--shadow);
  padding:18px; display:grid; grid-template-columns:120px 1fr; gap:18px; align-items:center; margin-bottom:22px;
}
.member-lead .member-avatar{width:120px; height:120px; border-radius:28px}
.member-lead .member-name{font-size:1.2rem}
.member-lead p{margin:8px 0 0; color:var(--muted)}
.mini-note{margin-top:8px; color:var(--muted); font-size:.95rem}
@media (max-width: 1100px){
  .link-grid{grid-template-columns:1fr}
}
@media (max-width: 760px){
  .page-panel{padding:20px}
  .member-lead{grid-template-columns:1fr}
}
