﻿:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #0f4c81;
  --accent-soft: #eef4fa;
  --radius: 12px;
  --sidebar: 240px;
  --page-gutter: clamp(16px, 2.8vw, 36px);
}

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

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.layout {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: 100vh;
  width: 100%;
  background: var(--surface);
}

.layout-top {
  min-height: 100vh;
  width: 100%;
  background: var(--surface);
}

.sidebar {
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 28px 20px;
}

.nav {
  display: grid;
  gap: 12px;
  color: #374151;
}

.nav a {
  padding: 8px 10px;
  border-radius: 8px;
}

.nav a.active,
.nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.sidebar-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.topbar-inner {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--page-gutter);
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #374151;
  font-size: 15px;
}

.topbar-nav a {
  padding: 7px 10px;
  border-radius: 8px;
}

.topbar-nav a.active,
.topbar-nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.main {
  padding: 26px var(--page-gutter) 60px;
  background: var(--surface);
}

.container {
  width: 100%;
  max-width: none;
  margin: 0;
}

.section {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 20px;
}

.section:first-child {
  margin-top: 0;
}

.section h1,
.section h2 {
  color: #334155;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section h1 {
  font-size: 22px;
  font-weight: 700;
}

.section h2 {
  font-size: 20px;
  font-weight: 700;
}

.section p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.notice-board p {
  color: #374151;
}

.notice-board {
  padding: 28px 32px;
  border-color: #d6e3f0;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: 0 10px 24px rgba(15, 76, 129, 0.06);
}

.notice-board h1 {
  font-size: 30px;
  margin-bottom: 16px;
}

.notice-board p {
  color: #25364a;
  font-size: 18px;
  line-height: 1.95;
}

.notice-board strong {
  color: var(--accent);
}

.plain-list {
  list-style: none;
}

.plain-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: #374151;
  line-height: 1.6;
}

.plain-list li:last-child {
  border-bottom: none;
}

.section-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.section-tabs a {
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f7f7f8;
  color: #374151;
  font-size: 14px;
}

.section-tabs a.active,
.section-tabs a:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: #cbd5e1;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.faculty-card {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 24px;
  align-items: stretch;
}

.faculty-photo-frame {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
}

.faculty-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.faculty-meta {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
  padding: 18px 20px;
}

.faculty-meta h1 {
  font-size: 28px;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 0;
  border-bottom: none;
}

.faculty-meta ul {
  margin-left: 20px;
  color: #374151;
  line-height: 1.8;
  font-size: 15px;
}

.faculty-meta strong {
  color: var(--text);
}

.faculty-meta .inline-break {
  display: block;
  margin-left: 2px;
}

.faculty-meta a {
  color: var(--accent);
}

.info-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.section-intro {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.member-card {
  border: 1px solid #d6d9df;
  border-radius: 8px;
  background: #fbfbfc;
  padding: 18px 18px 20px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.member-photo {
  width: 100%;
  aspect-ratio: 6 / 5;
  border-radius: 4px;
  margin-bottom: 18px;
  overflow: hidden;
}

.member-photo-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px dashed #b4c2d3;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #e9eef5 0%, #dde5ef 48%, #edf2f7 100%);
}

.member-photo-placeholder::before {
  content: '';
  position: absolute;
  top: 18%;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(15, 76, 129, 0.14);
}

.member-photo-placeholder::after {
  content: '';
  position: absolute;
  bottom: 10%;
  width: 132px;
  height: 82px;
  border-radius: 999px 999px 12px 12px;
  background: rgba(15, 76, 129, 0.12);
}

.member-photo-label {
  position: relative;
  z-index: 1;
  margin-top: 110px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b6481;
}

.member-name {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}

.member-role,
.member-email {
  color: #1f2937;
  font-size: 15px;
  line-height: 1.8;
}

.member-email {
  word-break: break-word;
}

.alumni-meta-line {
  color: #1f2937;
  font-size: 15px;
  line-height: 1.8;
}

.pubs h1 {
  font-size: 22px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.pubs-note {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.pub-year {
  margin: 18px 0 10px;
  padding: 10px 12px;
  background: #f8fafc;
  color: #334155;
  border: 1px solid var(--line);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.pub-list {
  list-style: decimal;
  padding-left: 28px;
}

.pub-cite-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  counter-reset: pub-item;
}

.pub-cite-item {
  position: relative;
  counter-increment: pub-item;
  padding: 10px 2px;
  padding-left: 40px;
  border-bottom: 1px solid var(--line);
  color: #374151;
  font-size: 15px;
  line-height: 1.8;
  word-break: break-word;
}

.pub-cite-item::before {
  content: '[' counter(pub-item) '].';
  position: absolute;
  left: 2px;
  top: 10px;
  color: #111827;
  font-weight: 600;
}

.pub-cite-item:last-child {
  border-bottom: none;
}

.pub-item {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  line-height: 1.7;
}

.pub-item:nth-child(even) {
  background: #f5f5f5;
}

.pub-item::marker {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.pub-title {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.pub-meta {
  color: #374151;
  font-size: 15px;
}

.pub-meta strong {
  color: #111827;
}

.legacy-card,
.hero-grid,
.hero-photo,
.info-card,
.top-tabs {
  display: none;
}

@media (max-width: 900px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px var(--page-gutter);
  }

  .topbar-nav {
    flex-wrap: wrap;
  }

  .main {
    padding: 20px var(--page-gutter) 40px;
  }

  .faculty-card {
    grid-template-columns: 1fr;
  }

  .faculty-photo-frame img {
    min-height: 300px;
  }

  .member-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
  }

  .alumni-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
  }

  .member-card {
    padding: 14px 14px 18px;
  }

  .pub-year {
    font-size: 18px;
  }

  .pub-title {
    font-size: 16px;
  }
}


