/* ==========================================================================
   哈尔滨工业大学 · 教职员工档案
   Static site stylesheet — no external dependencies.
   ========================================================================== */

:root {
  --navy-950: #041f3d;
  --navy-900: #062b52;
  --navy-800: #0a3a6b;
  --navy-700: #10497f;
  --navy-600: #1a5c99;
  --gold: #c9a961;
  --gold-soft: #e6d3a3;
  --gold-deep: #a8873f;
  --ink: #16222e;
  --ink-soft: #33465a;
  --muted: #61748a;
  --muted-2: #8b9bae;
  --bg: #f4f6f9;
  --bg-2: #edf1f6;
  --card: #ffffff;
  --line: #e2e8f0;
  --line-2: #d3dce7;
  --ok: #2f7d5f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(7, 43, 82, 0.08);
  --shadow-lg: 0 24px 60px rgba(7, 43, 82, 0.16);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    "Source Han Sans SC", "WenQuanYi Micro Hei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, Georgia,
    "Times New Roman", serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-600); }

img, svg { display: block; max-width: 100%; }

button { font-family: inherit; }

:focus-visible {
  outline: 3px solid rgba(201, 169, 97, 0.85);
  outline-offset: 3px;
  border-radius: 4px;
}

#app [tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--navy-900);
  color: #fff;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 76px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }

.brand-emblem {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  border: 1px solid rgba(201, 169, 97, 0.55);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.06), 0 4px 12px rgba(6, 43, 82, 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.brand-emblem-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}
.brand-emblem-year {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7px;
  letter-spacing: 1.5px;
  color: var(--gold-soft);
  margin-top: 2px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 17px; font-weight: 700; letter-spacing: 0.04em; }
.brand-text small {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.32em;
  margin-top: 2px;
}

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.main-nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
}
.main-nav a:hover { color: var(--navy-800); background: var(--bg-2); }
.main-nav a[aria-current="page"] { color: var(--navy-900); font-weight: 600; }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 3px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 12px 11px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* -------------------------------------------------------------------- app */
.app { min-height: 60vh; }

.page-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 120px 24px;
  color: var(--muted);
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--line-2);
  border-top-color: var(--navy-700);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#main { min-height: 60vh; }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1100px 520px at 82% -12%, rgba(201, 169, 97, 0.24), transparent 62%),
    radial-gradient(800px 500px at -8% 110%, rgba(26, 92, 153, 0.5), transparent 60%),
    linear-gradient(158deg, var(--navy-950) 0%, var(--navy-900) 48%, #0d3a60 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 78%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 97, 0.22);
  box-shadow: 0 0 0 60px rgba(201, 169, 97, 0.045), 0 0 0 140px rgba(201, 169, 97, 0.03);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 82px 24px 76px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.68);
}
.hero-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}
.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(42px, 6.4vw, 68px);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.18;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.28);
}
.hero-motto {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.42em;
  color: var(--gold-soft);
}
.hero-desc {
  max-width: 660px;
  margin: 22px 0 0;
  font-size: 15.5px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.76);
}

.hero-search {
  display: flex;
  gap: 0;
  max-width: 700px;
  margin-top: 32px;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 18px 44px rgba(2, 16, 32, 0.4);
}
.hero-search .search-icon {
  align-self: center;
  margin-left: 16px;
  color: var(--muted-2);
  flex-shrink: 0;
}
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  padding: 12px 14px;
  color: var(--ink);
}
.hero-search input::placeholder { color: var(--muted-2); }
.hero-search button {
  border: 0;
  cursor: pointer;
  padding: 12px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.hero-search button:hover { box-shadow: 0 10px 22px rgba(4, 31, 61, 0.35); transform: translateY(-1px); }

.hero-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
.hero-quick button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.hero-quick button:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(201, 169, 97, 0.7); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 46px 0 0;
  padding: 0;
}
.stat-item {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(6px);
}
.stat-item dt {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
}
.stat-item dd {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.stat-item dd em {
  font-style: normal;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  margin-left: 6px;
}

/* ---------------------------------------------------------------- section */
.section { padding: 66px 0; }
.section.alt { background: linear-gradient(180deg, #fff, var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 12.5px;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.section-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy-900);
}
.section-desc { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; max-width: 720px; }
.section-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--navy-700);
  padding: 8px 2px;
  border-bottom: 1px solid transparent;
}
.section-link:hover { border-bottom-color: var(--gold); }
.section-link svg { transition: transform 0.16s ease; }
.section-link:hover svg { transform: translateX(3px); }

/* ----------------------------------------------------------------- panels */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.panel-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900);
}
.panel-sub { margin: 0 0 20px; font-size: 12.5px; color: var(--muted-2); }

.stack-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-2);
}
.stack-bar span { height: 100%; transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }

.legend { display: grid; gap: 10px; margin-top: 18px; }
.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.legend-item .dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend-item .legend-value { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.legend-item .legend-value b { color: var(--navy-800); }

.bar-chart { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 74px 1fr 44px; align-items: center; gap: 12px; font-size: 13px; }
.bar-label { color: var(--muted); white-space: nowrap; }
.bar-track { display: block; height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy-700), var(--navy-600));
  transition: width 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bar-value { text-align: right; color: var(--navy-800); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------- dept cards */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 16px;
}
.dept-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}
.dept-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.dept-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 169, 97, 0.55);
  color: var(--ink);
}
.dept-card:hover::after { opacity: 1; }
.dept-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dept-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-950));
  flex-shrink: 0;
}
.dept-card:nth-child(3n + 2) .dept-icon { background: linear-gradient(140deg, #1f5d8c, #0a3357); }
.dept-card:nth-child(3n + 3) .dept-icon { background: linear-gradient(140deg, #8a6f37, #5d4a22); }
.dept-count { text-align: right; line-height: 1.1; }
.dept-count b {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--navy-900);
}
.dept-count span { font-size: 11.5px; color: var(--muted-2); letter-spacing: 0.1em; }
.dept-name { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.dept-disciplines {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----------------------------------------------------------- staff cards */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px;
}
.staff-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.staff-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 169, 97, 0.55);
  color: var(--ink);
}
.staff-card-top { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-950));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}
.avatar.palette-1 { background: linear-gradient(145deg, #1f5d8c, #0a3357); }
.avatar.palette-2 { background: linear-gradient(145deg, #8a6f37, #5d4a22); }
.avatar.palette-3 { background: linear-gradient(145deg, #2f6f66, #123f3a); }
.avatar.palette-4 { background: linear-gradient(145deg, #6c5187, #382a4a); }
.avatar.palette-5 { background: linear-gradient(145deg, #8c5a3c, #4d2c1a); }
.avatar.palette-6 { background: linear-gradient(145deg, #37628f, #1b3552); }

.staff-card-head { min-width: 0; }
.staff-name { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: 0.05em; }
.staff-name a { color: inherit; }
.staff-titleline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 5px; }
.staff-title {
  font-size: 12px;
  color: var(--navy-800);
  background: rgba(16, 73, 127, 0.09);
  border: 1px solid rgba(16, 73, 127, 0.16);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.staff-title.rank-senior { color: var(--gold-deep); background: rgba(201, 169, 97, 0.14); border-color: rgba(201, 169, 97, 0.4); }
.staff-dept { font-size: 12.5px; color: var(--muted); }

.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag {
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--bg-2);
  border-radius: 6px;
  padding: 3px 9px;
  line-height: 1.6;
}
.staff-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px dashed var(--line-2);
  font-size: 12px;
  color: var(--muted-2);
}
.archive-id { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; letter-spacing: 0.02em; }
.staff-card-foot .card-arrow { color: var(--navy-700); display: inline-flex; align-items: center; gap: 4px; }
.staff-card:hover .card-arrow { color: var(--gold-deep); }

/* ----------------------------------------------------------- inner pages */
.page-hero {
  background:
    radial-gradient(900px 380px at 88% -20%, rgba(201, 169, 97, 0.16), transparent 60%),
    linear-gradient(150deg, var(--navy-950), var(--navy-900) 60%, #0b3559);
  color: #fff;
  padding: 44px 0 52px;
}
.page-hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
.breadcrumb a { color: rgba(255, 255, 255, 0.78); }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb .sep { opacity: 0.45; }
.breadcrumb-light { color: var(--muted); }
.breadcrumb-light a { color: var(--navy-700); }
.breadcrumb-light a:hover { color: var(--navy-800); }
.person-page { padding-top: 26px; }
.person-page .profile-card { margin-top: 16px; }

.page-title {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: 0.1em;
  font-weight: 700;
}
.page-desc { margin: 12px 0 0; max-width: 720px; font-size: 14.5px; color: rgba(255, 255, 255, 0.72); }
.page-content { padding: 40px 0 72px; }
.page-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.search-field { position: relative; flex: 1 1 280px; min-width: 220px; }
.search-field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.search-field input:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(26, 92, 153, 0.16);
}
.select-field { display: flex; flex-direction: column; gap: 3px; }
.select-field label { font-size: 11.5px; color: var(--muted-2); letter-spacing: 0.1em; padding-left: 2px; }
.select-field select {
  height: 40px;
  min-width: 132px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2361748a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.select-field select:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(26, 92, 153, 0.16); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--navy-600); color: var(--navy-800); }
.btn-primary { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.9);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: var(--gold-soft); }

.roster-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.results-count b { color: var(--navy-800); font-size: 16px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  background: rgba(16, 73, 127, 0.08);
  color: var(--navy-800);
  padding: 4px 10px;
  border-radius: 999px;
}
.filter-chip button {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}
.filter-chip button:hover { color: #b23b3b; }

.empty-state {
  text-align: center;
  padding: 72px 24px;
  background: var(--card);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty-state .empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
}
.empty-state h3 { margin: 0 0 6px; color: var(--ink); font-size: 18px; }
.empty-state p { margin: 0 0 20px; font-size: 14px; }

.show-more-wrap { text-align: center; margin-top: 28px; }

/* --------------------------------------------------------------- profile */
.profile-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding: 34px;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(700px 340px at 92% -30%, rgba(201, 169, 97, 0.26), transparent 62%),
    linear-gradient(150deg, var(--navy-950), var(--navy-900) 55%, #0d3a60);
  box-shadow: var(--shadow-lg);
}
.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.7), transparent 70%);
  -webkit-mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.7), transparent 70%);
  pointer-events: none;
}
.profile-main { position: relative; display: flex; align-items: center; gap: 22px; flex: 1 1 420px; }
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--navy-600), var(--navy-950));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16), 0 0 0 7px rgba(201, 169, 97, 0.28);
  flex-shrink: 0;
}
.profile-name { margin: 0; font-family: var(--font-serif); font-size: 34px; letter-spacing: 0.12em; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.badge {
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
}
.badge.gold { border-color: rgba(201, 169, 97, 0.6); color: var(--gold-soft); background: rgba(201, 169, 97, 0.12); }
.profile-dept { margin: 12px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.68); }
.profile-actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.profile-facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px 34px;
  padding-left: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.profile-facts div { line-height: 1.5; }
.profile-facts dt { font-size: 11.5px; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.5); }
.profile-facts dd { margin: 2px 0 0; font-size: 15px; color: #fff; }
.profile-facts dd .id-mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 13.5px; letter-spacing: 0.04em; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  margin-top: 24px;
  align-items: start;
}
.detail-main { display: grid; gap: 20px; min-width: 0; }
.detail-side { display: grid; gap: 20px; position: sticky; top: 96px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: 0.04em;
}
.card-title::before { content: ""; width: 3px; height: 16px; border-radius: 2px; background: var(--gold); }
.card-sub { margin: -10px 0 16px; font-size: 12.5px; color: var(--muted-2); }

.info-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
}
.info-list > div { display: flex; gap: 12px; font-size: 14px; }
.info-list dt { flex: 0 0 76px; color: var(--muted); }
.info-list dd { margin: 0; color: var(--ink); word-break: break-word; }
.info-list .wide { grid-column: 1 / -1; }

.tag-list.lg .tag { font-size: 13px; padding: 5px 12px; border-radius: 8px; background: rgba(16, 73, 127, 0.07); color: var(--navy-800); }

.timeline-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.timeline-columns > div > .panel-title { margin: 0 0 14px; }
.timeline-columns .timeline::before { top: 6px; }

.timeline { position: relative; margin: 0; padding: 0 0 0 20px; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--line-2));
  border-radius: 2px;
}
.timeline-item { position: relative; padding: 0 0 20px 16px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--navy-700);
  box-shadow: 0 0 0 3px rgba(16, 73, 127, 0.1);
}
.timeline-period { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.timeline-body { margin-top: 3px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.75; }
.timeline-body strong { color: var(--ink); font-weight: 600; }

.pub-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pub-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line-2);
}
.pub-item:last-child { border-bottom: 0; padding-bottom: 0; }
.pub-year {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-deep);
}
.pub-title { font-size: 14.5px; color: var(--ink); line-height: 1.65; }
.pub-journal { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.project-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.project-item:last-child { border-bottom: 0; padding-bottom: 0; }
.project-period { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.project-name { font-size: 14.5px; color: var(--ink); flex: 1 1 260px; }
.project-level { font-size: 12px; color: var(--navy-800); background: rgba(16, 73, 127, 0.08); padding: 2px 9px; border-radius: 999px; }
.project-role { font-size: 12px; color: var(--muted); }

.contact-grid { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(16, 73, 127, 0.08);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item dt { font-size: 11.5px; color: var(--muted-2); letter-spacing: 0.1em; }
.contact-item dd { margin: 2px 0 0; color: var(--ink); word-break: break-all; }

.related-list { display: grid; gap: 12px; }
.related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: background 0.16s ease;
}
.related-item:hover { background: var(--bg-2); color: var(--ink); }
.related-item .avatar { width: 40px; height: 40px; font-size: 17px; }
.related-item .related-name { font-size: 14px; font-weight: 600; }
.related-item .related-meta { font-size: 12px; color: var(--muted); }
.related-item .related-arrow { margin-left: auto; color: var(--muted-2); }

/* ------------------------------------------------------------------ about */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: start; }
.about-card { padding: 30px; }
.about-card p { margin: 0 0 14px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.95; }
.about-card p:last-child { margin-bottom: 0; }
.about-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.about-list li { display: flex; gap: 12px; font-size: 14px; color: var(--ink-soft); line-height: 1.8; }
.about-list .num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.16);
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.notice {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 169, 97, 0.4);
  background: rgba(201, 169, 97, 0.09);
  font-size: 13.5px;
  color: #6a5427;
  line-height: 1.8;
}
.stats-inline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stats-inline .mini-stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.mini-stat dt { font-size: 12px; color: var(--muted); }
.mini-stat dd { margin: 6px 0 0; font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--navy-900); }
.mini-stat dd em { font-style: normal; font-family: var(--font-sans); font-size: 12px; color: var(--muted); margin-left: 4px; }

/* ------------------------------------------------------------------ toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  z-index: 80;
  background: var(--navy-900);
  color: #fff;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ----------------------------------------------------------------- footer */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.66);
  padding: 52px 0 34px;
  font-size: 13px;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-emblem {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 97, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  flex-shrink: 0;
}
.footer-brand strong { color: #fff; font-size: 15.5px; letter-spacing: 0.05em; }
.footer-brand p { margin: 4px 0 0; font-size: 12px; letter-spacing: 0.3em; color: rgba(255, 255, 255, 0.45); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-links a { color: rgba(255, 255, 255, 0.72); font-size: 13.5px; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-note { margin: 18px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.42); line-height: 1.8; }
.footer-copy { margin: 8px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.34); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .overview-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
  .profile-facts { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 18px; width: 100%; }
}

@media (max-width: 900px) {
  .header-inner { height: 68px; gap: 16px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(7, 43, 82, 0.12);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .main-nav a[aria-current="page"] { background: var(--bg-2); }
  .section { padding: 52px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-inner { padding: 62px 20px 60px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
  .stat-item { padding: 16px 18px; }
  .stat-item dd { font-size: 28px; }
  .profile-card { padding: 26px; }
  .detail-side { grid-template-columns: 1fr; }
  .timeline-columns { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .brand-text small { letter-spacing: 0.2em; }
  .brand-emblem { width: 40px; height: 40px; }
  .brand-text strong { font-size: 15.5px; }
  .hero-title { letter-spacing: 0.08em; }
  .hero-motto { letter-spacing: 0.3em; font-size: 13px; }
  .hero-search { flex-wrap: nowrap; }
  .hero-search button { padding: 12px 20px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-item dd { font-size: 24px; }
  .section-inner, .page-inner, .footer-inner { padding: 0 18px; }
  .staff-grid { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .toolbar { padding: 14px; }
  .select-field { flex: 1 1 132px; }
  .select-field select { width: 100%; }
  .info-list { grid-template-columns: 1fr; }
  .info-list dt { flex-basis: 72px; }
  .profile-main { flex-direction: column; align-items: flex-start; gap: 16px; }
  .profile-avatar { width: 78px; height: 78px; font-size: 30px; }
  .profile-name { font-size: 28px; }
  .profile-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-actions { width: 100%; }
  .profile-actions .btn { flex: 1; }
  .card { padding: 20px; }
  .about-card { padding: 22px; }
  .stats-inline { grid-template-columns: 1fr; }
  .footer-links { gap: 16px; }
  .pub-item { grid-template-columns: 1fr; gap: 4px; }
  .pub-year { font-size: 13px; }
}

/* -------------------------------------------------------------- print only */
.print-only { display: none; }

/* ------------------------------------------------------------------ print */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .site-header, .site-footer, .skip-link, .toast,
  .profile-actions, .breadcrumb, .page-hero, .related-section,
  .show-more-wrap, .toolbar { display: none !important; }
  .print-only { display: block !important; }
  .print-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid #222;
  }
  .print-brand { font-size: 13pt; font-weight: 700; letter-spacing: 0.1em; }
  .print-title { font-size: 15pt; font-weight: 700; letter-spacing: 0.2em; }
  @page { margin: 14mm; }
  .page-content { padding: 0; }
  .page-inner { max-width: none; padding: 0; }
  .profile-card {
    color: #000;
    background: #fff;
    box-shadow: none;
    border: 1px solid #999;
    padding: 18px;
  }
  .profile-card::before { display: none; }
  .profile-avatar { color: #000; background: #eee; box-shadow: none; border: 1px solid #999; }
  .profile-name { color: #000; }
  .badge { color: #333; border-color: #999; background: #f5f5f5; }
  .profile-dept, .profile-facts dt { color: #444; }
  .profile-facts dd { color: #000; }
  .profile-facts { border-color: #ccc; }
  .detail-layout { display: block; margin-top: 12px; }
  .detail-side { display: block !important; }
  .detail-side .card { margin-top: 12px; }
  .card { box-shadow: none; border: 1px solid #bbb; margin-bottom: 12px; padding: 14px; page-break-inside: avoid; }
  .timeline-item, .pub-item, .project-item { page-break-inside: avoid; }
  .card-title { color: #000; }
  .card-title::before { background: #666; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
