/* ==========================================================================
   杭电导师科研查询助手
   全局样式：颜色、排版、布局、组件与响应式
   ========================================================================== */

:root {
  --bg: #f4f6f4;
  --bg-deep: #eaf0ec;
  --surface: #ffffff;
  --surface-soft: #f8faf8;
  --surface-tint: #edf4f0;
  --ink: #14231f;
  --ink-soft: #344a43;
  --muted: #6b7a74;
  --muted-light: #8b9892;
  --line: #dce5df;
  --line-strong: #c6d4cc;
  --accent: #1d5c4d;
  --accent-deep: #123e34;
  --accent-soft: #e4efe9;
  --accent-wash: #f0f7f3;
  --gold: #9a641f;
  --gold-soft: #f8f0e2;
  --danger: #9d3f36;
  --danger-soft: #fbeeec;
  --shadow-sm: 0 1px 2px rgba(20, 35, 31, 0.04);
  --shadow-md: 0 14px 36px -18px rgba(20, 35, 31, 0.22);
  --shadow-lg: 0 24px 60px -28px rgba(20, 35, 31, 0.28);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shell: 1180px;
  --header-h: 72px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(1100px 440px at 82% -130px, rgba(83, 140, 119, 0.14), transparent 68%),
    var(--bg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-deep);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

::selection {
  color: #fff;
  background: var(--accent);
}

:focus-visible {
  outline: 3px solid rgba(29, 92, 77, 0.38);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  color: #fff;
  background: var(--accent-deep);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

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

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.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;
}

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid rgba(220, 229, 223, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(29, 92, 77, 0.3);
  border-radius: 12px;
  color: var(--accent-deep);
  background:
    linear-gradient(145deg, #f8fbf9 0%, #e7f0eb 100%);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.6);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.main-nav a:hover {
  color: var(--accent);
  background: var(--accent-wash);
}

.main-nav a[aria-current="page"] {
  color: #fff;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink-soft);
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   免责声明、按钮与通用文字
   -------------------------------------------------------------------------- */

.notice-strip {
  border-bottom: 1px solid #eadfce;
  background: #fcf8f1;
}

.notice-strip .shell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 11px;
}

.notice-label {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 2px 9px;
  border: 1px solid #e3cba7;
  border-radius: var(--radius-pill);
  color: #7d521c;
  background: #f8eedf;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.notice-strip p {
  color: #6f5b3d;
  font-size: 12px;
  line-height: 1.75;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px -12px rgba(29, 92, 77, 0.7);
}

.btn-primary:hover {
  color: #fff;
  background: var(--accent-deep);
}

.btn-secondary {
  border-color: var(--line-strong);
  color: var(--ink-soft);
  background: var(--surface);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-wash);
}

.btn-ghost {
  min-height: 36px;
  padding-inline: 12px;
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-wash);
}

.btn-danger {
  border-color: #e5c9c5;
  color: var(--danger);
  background: var(--danger-soft);
}

.btn-danger:hover {
  border-color: var(--danger);
  color: #fff;
  background: var(--danger);
}

.btn-sm {
  min-height: 36px;
  padding-inline: 13px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   首页 Hero
   -------------------------------------------------------------------------- */

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 34px;
}

.home-hero::after {
  position: absolute;
  top: 36px;
  right: -120px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(29, 92, 77, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 54px rgba(29, 92, 77, 0.025),
    0 0 0 108px rgba(29, 92, 77, 0.018);
  pointer-events: none;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(290px, 0.68fr);
  align-items: end;
  gap: 56px;
}

.hero-copy h1 {
  max-width: 760px;
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.hero-title-line {
  display: block;
}

.hero-copy h1 em {
  position: relative;
  color: var(--accent);
  font-style: normal;
  white-space: nowrap;
}

.hero-copy h1 em::after {
  position: absolute;
  right: 2px;
  bottom: 2px;
  left: 2px;
  height: 8px;
  border-radius: 2px;
  background: rgba(29, 92, 77, 0.13);
  content: "";
}

.hero-copy > p {
  max-width: 610px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  font-size: 12px;
}

.hero-stat strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
}

.trust-card {
  padding: 22px;
  border: 1px solid rgba(29, 92, 77, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 243, 0.92));
  box-shadow: var(--shadow-md);
}

.trust-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.trust-card-head strong {
  font-family: var(--font-serif);
  font-size: 17px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.live-dot::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3d9b73;
  box-shadow: 0 0 0 4px rgba(61, 155, 115, 0.12);
  content: "";
}

.trust-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.trust-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px dashed var(--line);
}

.trust-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.trust-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
}

.trust-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.trust-item p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   搜索与筛选
   -------------------------------------------------------------------------- */

.explorer {
  padding: 12px 0 70px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.search-panel {
  position: relative;
  z-index: 2;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.search-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.search-panel-head h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.3;
}

.search-panel-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px auto;
  gap: 12px;
}

.field {
  position: relative;
}

.field-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  width: 19px;
  height: 19px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.text-input,
.select-input,
.textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-soft);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.text-input,
.select-input {
  height: 52px;
  padding: 0 16px;
  font-size: 14px;
}

.text-input {
  padding-left: 46px;
  padding-right: 46px;
}

.text-input::placeholder {
  color: #9aa6a0;
}

.text-input:focus,
.select-input:focus,
.textarea:focus {
  border-color: var(--accent);
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(29, 92, 77, 0.1);
}

.select-input {
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 23px,
    calc(100% - 15px) 23px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.input-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  transform: translateY(-50%);
}

.input-clear:hover {
  color: var(--ink);
  background: var(--bg-deep);
}

.search-submit {
  height: 52px;
  padding-inline: 22px;
}

.tag-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.tag-toolbar h3 {
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
}

.tag-toolbar h3 span {
  margin-left: 6px;
  color: var(--muted-light);
  font-weight: 500;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 78px;
  margin-top: 11px;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.tag-cloud.is-expanded {
  max-height: 520px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 12px;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.tag:hover {
  border-color: #a9c6ba;
  color: var(--accent);
  background: var(--accent-wash);
}

.tag.is-active {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.tag-count {
  color: var(--muted-light);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.tag.is-active .tag-count {
  color: rgba(255, 255, 255, 0.72);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid #d8e6de;
  border-radius: 12px;
  background: var(--accent-wash);
}

.filter-bar-label {
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #c4d9cf;
  border-radius: var(--radius-pill);
  color: var(--accent-deep);
  background: #fff;
  font-size: 12px;
}

.filter-chip button {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  line-height: 1;
}

.filter-chip button:hover {
  color: #fff;
  background: var(--accent);
}

.filter-reset {
  margin-left: auto;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 2px 16px;
}

.results-head h2 {
  font-family: var(--font-serif);
  font-size: 23px;
}

.results-head h2 span {
  margin-left: 5px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
}

.results-meta {
  color: var(--muted);
  font-size: 11.5px;
  text-align: right;
}

.data-source-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 10.5px;
}

.data-source-note::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #74a693;
  content: "";
}

/* --------------------------------------------------------------------------
   导师卡片
   -------------------------------------------------------------------------- */

.advisor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.advisor-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.advisor-card::before {
  position: absolute;
  top: 20px;
  left: -1px;
  width: 3px;
  height: 42px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  opacity: 0.55;
  content: "";
  transition: opacity 0.2s ease, height 0.2s ease;
}

.advisor-card:hover,
.advisor-card:focus-visible {
  border-color: #b7cec3;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.advisor-card:hover::before,
.advisor-card:focus-visible::before {
  height: 58px;
  opacity: 1;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-person {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.monogram {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border: 1px solid #cfe0d7;
  border-radius: 15px;
  color: var(--accent-deep);
  background:
    radial-gradient(circle at 25% 20%, #fff, transparent 50%),
    linear-gradient(145deg, #edf6f1, #dcebe3);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
}

.card-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.card-name-link {
  color: inherit;
  text-decoration: none;
}

.card-name-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.card-title .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.card-college {
  max-width: 48%;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 10.5px;
  line-height: 1.45;
  text-align: right;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.card-tags .tag {
  min-height: 26px;
  padding: 3px 9px;
  font-size: 11px;
  pointer-events: none;
}

.card-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.card-block-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.card-block-label::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.card-achievement {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-project {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-project.is-empty,
.card-contact.is-empty {
  color: var(--muted-light);
}

.card-facts {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.card-fact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.55;
}

.card-fact-label {
  flex: 0 0 54px;
  color: var(--muted-light);
  font-size: 10.5px;
  font-weight: 650;
}

.card-fact-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.card-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 75%;
  color: var(--muted);
  font-size: 10.5px;
  text-decoration: none;
}

.card-source:hover {
  color: var(--accent);
  text-decoration: underline;
}

.card-source span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-enter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   空状态、加载状态
   -------------------------------------------------------------------------- */

.state-box {
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: 36px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.state-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  color: var(--accent);
  background: var(--accent-soft);
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
}

.state-box h3 {
  margin-top: 15px;
  font-family: var(--font-serif);
  font-size: 21px;
}

.state-box p {
  max-width: 430px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.state-box .btn {
  margin-top: 18px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.skeleton-card {
  height: 310px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.85) 50%, transparent 80%) 0 0 / 300% 100%,
    var(--surface);
  animation: skeleton 1.4s infinite linear;
}

@keyframes skeleton {
  to {
    background-position: -150% 0, 0 0;
  }
}

/* --------------------------------------------------------------------------
   使用说明
   -------------------------------------------------------------------------- */

.howto {
  padding: 0 0 76px;
}

.howto-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(244, 249, 246, 0.92));
}

.howto-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.howto-head h2 {
  font-family: var(--font-serif);
  font-size: 23px;
}

.howto-head p {
  max-width: 560px;
  color: var(--muted);
  font-size: 12.5px;
}

.howto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.howto-item {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.howto-num {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.howto-item h3 {
  margin-top: 8px;
  font-size: 14px;
}

.howto-item p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: auto;
  color: #dbe7e1;
  background: #13241e;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 42px;
  padding-block: 42px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-brand .brand-mark {
  border-color: rgba(255, 255, 255, 0.18);
  color: #eaf3ee;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 17px;
}

.footer-brand small {
  color: #92a89f;
  font-size: 9.5px;
  letter-spacing: 0.11em;
}

.footer-note {
  max-width: 440px;
  margin-top: 16px;
  color: #9cb0a8;
  font-size: 11.5px;
  line-height: 1.8;
}

.footer-col h3 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-col a,
.footer-col p {
  display: block;
  margin-top: 8px;
  color: #a7bab2;
  font-size: 11.5px;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #82988f;
  font-size: 10.5px;
}

/* --------------------------------------------------------------------------
   通用内页头
   -------------------------------------------------------------------------- */

.page-hero {
  padding: 42px 0 22px;
}

.page-hero h1 {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: clamp(31px, 4vw, 44px);
  line-height: 1.24;
  letter-spacing: -0.03em;
}

.page-hero > .shell > p {
  max-width: 720px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 11.5px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumb span[aria-hidden] {
  color: #aebbb5;
}

/* --------------------------------------------------------------------------
   导师详情
   -------------------------------------------------------------------------- */

body.has-actionbar .site-footer {
  padding-bottom: 84px;
}

.detail-main {
  padding-bottom: 24px;
}

.profile-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 247, 0.94));
  box-shadow: var(--shadow-sm);
}

.profile-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 92, 77, 0.08), transparent 68%);
  transform: translate(30%, -35%);
  content: "";
}

.profile-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.profile-monogram {
  width: 82px;
  height: 82px;
  flex-basis: 82px;
  border-radius: 24px;
  font-size: 34px;
}

.profile-info {
  min-width: 0;
  flex: 1;
}

.profile-college {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.profile-info h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 3px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.profile-info h1 small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.profile-tags .tag {
  pointer-events: none;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

.profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-meta b {
  color: var(--ink-soft);
  font-weight: 600;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 20px;
  margin-top: 20px;
}

.detail-stack {
  display: grid;
  gap: 16px;
}

.detail-card {
  padding: 25px 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.detail-card h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-serif);
  font-size: 21px;
}

.detail-card h2::before {
  width: 5px;
  height: 19px;
  border-radius: 3px;
  background: var(--accent);
  content: "";
}

.detail-card > p {
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.9;
}

.fact-list {
  display: grid;
  gap: 11px;
  margin-top: 16px;
  list-style: none;
}

.fact-list li {
  position: relative;
  padding-left: 17px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.85;
}

.fact-list li::before {
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  content: "";
}

.detail-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding: 13px 15px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12.5px;
}

.detail-empty strong {
  color: var(--ink-soft);
  font-weight: 650;
}

.contact-card {
  padding: 22px;
  border: 1px solid #cfe0d7;
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, #f9fcfa, #eef6f1);
}

.contact-card h2 {
  font-family: var(--font-serif);
  font-size: 18px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #cfe0d7;
}

.contact-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.07em;
}

.contact-value {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.copy-mini {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 3px 9px;
  border: 1px solid #c0d6cb;
  border-radius: 7px;
  color: var(--accent);
  background: #fff;
  font-size: 10.5px;
  font-weight: 650;
}

.copy-mini:hover {
  color: #fff;
  background: var(--accent);
}

.contact-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.side-stack {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: grid;
  gap: 14px;
}

.source-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.source-card h2 {
  font-family: var(--font-serif);
  font-size: 17px;
}

.source-url {
  display: block;
  margin-top: 11px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 10px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-card .btn {
  margin-top: 10px;
}

.source-meta {
  margin-top: 11px;
  color: var(--muted-light);
  font-size: 10px;
}

.side-disclaimer {
  padding: 17px;
  border: 1px solid #eadfce;
  border-radius: var(--radius);
  background: #fcf8f1;
  color: #755f40;
  font-size: 10.5px;
  line-height: 1.75;
}

.side-disclaimer strong {
  display: block;
  margin-bottom: 4px;
  color: #6d4c22;
  font-size: 11px;
}

.detail-actionbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  border-top: 1px solid #d8e4dd;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -12px 30px -24px rgba(20, 35, 31, 0.4);
  backdrop-filter: blur(14px);
}

.actionbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 74px;
  padding-block: 12px;
}

.actionbar-copy {
  max-width: 830px;
  color: #6b5a40;
  font-size: 10.5px;
  line-height: 1.65;
}

.actionbar-copy strong {
  color: #7a4c16;
  letter-spacing: 0.04em;
}

.actionbar-inner .btn {
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   科研指南
   -------------------------------------------------------------------------- */

.guide-hero {
  padding: 40px 0 26px;
}

.guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 36px;
}

.guide-hero h1 {
  margin-top: 13px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.guide-title-break {
  display: initial;
}

.guide-hero p {
  max-width: 700px;
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 14px;
}

.guide-meta-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.guide-meta-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.guide-meta-card strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 18px;
}

.guide-meta-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.guide-main {
  padding-bottom: 72px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 10px;
}

.guide-toc {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.guide-toc-title {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.guide-tabs {
  display: grid;
  gap: 5px;
  margin-top: 11px;
}

.guide-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.guide-tab:hover {
  color: var(--accent);
  background: var(--accent-wash);
}

.guide-tab[aria-current="true"] {
  border-color: #cfe0d7;
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.guide-tab-index {
  color: var(--muted-light);
  font-family: var(--font-serif);
  font-size: 10px;
}

.guide-tab[aria-current="true"] .guide-tab-index {
  color: var(--accent);
}

.guide-toc-note {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.guide-content {
  min-width: 0;
}

.guide-section {
  animation: fade-in 0.28s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guide-section-head {
  padding: 25px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background:
    linear-gradient(135deg, #fff, #f3f9f5);
}

.guide-section-head .guide-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.guide-stamp {
  padding: 2px 8px;
  border: 1px solid #c8dcd1;
  border-radius: var(--radius-pill);
  color: var(--accent);
  background: #eff7f2;
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.guide-section-head h2 {
  margin-top: 9px;
  font-family: var(--font-serif);
  font-size: clamp(25px, 3vw, 33px);
  line-height: 1.3;
}

.guide-section-head p {
  max-width: 820px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.guide-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--surface-soft);
}

.guide-tools p {
  color: var(--muted);
  font-size: 10.5px;
}

.guide-tools-actions {
  display: flex;
  gap: 7px;
}

.guide-blocks {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: #fbfcfb;
}

.guide-block {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.guide-block[open] {
  border-color: #cbdcd3;
}

.guide-block summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 12px 46px 12px 15px;
  list-style: none;
  cursor: pointer;
  border-radius: 10px;
}

.guide-block summary::-webkit-details-marker {
  display: none;
}

.guide-block summary:hover {
  background: var(--accent-wash);
}

.block-index {
  flex: 0 0 auto;
  color: #9baba3;
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.guide-block summary strong {
  font-size: 13.5px;
  font-weight: 700;
}

.guide-block summary::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
  content: "";
}

.guide-block[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.guide-block[open] summary {
  border-bottom: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  background: #fcfdfc;
}

.guide-block-body {
  padding: 18px 20px 20px;
}

.guide-block-body > p {
  color: var(--ink-soft);
  font-size: 12.8px;
  line-height: 1.9;
}

.guide-block-body > p + p {
  margin-top: 9px;
}

.guide-list {
  display: grid;
  gap: 9px;
  padding-left: 0;
  list-style: none;
}

.guide-list li {
  position: relative;
  padding-left: 17px;
  color: var(--ink-soft);
  font-size: 12.8px;
  line-height: 1.85;
}

.guide-list li::before {
  position: absolute;
  top: 0.78em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.guide-steps {
  display: grid;
  gap: 10px;
  counter-reset: step;
  padding-left: 0;
  list-style: none;
}

.guide-steps li {
  position: relative;
  min-height: 29px;
  padding: 5px 0 0 38px;
  color: var(--ink-soft);
  font-size: 12.8px;
  line-height: 1.8;
  counter-increment: step;
}

.guide-steps li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #cfe0d7;
  border-radius: 8px;
  color: var(--accent);
  background: var(--accent-wash);
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 700;
  content: counter(step, decimal-leading-zero);
}

.guide-timeline {
  display: grid;
  gap: 0;
  padding-left: 0;
  list-style: none;
}

.guide-timeline li {
  position: relative;
  padding: 0 0 18px 25px;
  border-left: 1px solid #cddfd5;
}

.guide-timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.guide-timeline li::before {
  position: absolute;
  top: 5px;
  left: -4px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px #a9c6ba;
  content: "";
}

.timeline-date {
  display: inline-block;
  margin-bottom: 2px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.timeline-text {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.8;
}

.block-note {
  margin-top: 15px;
  padding: 11px 13px;
  border-left: 3px solid #d3b077;
  border-radius: 0 8px 8px 0;
  color: #6f5c3e;
  background: #fcf8f0;
  font-size: 11px;
  line-height: 1.75;
}

.guide-block.is-key {
  border-color: #dec8a5;
  background: #fffdf9;
}

.guide-block.is-key summary {
  background: #fcf7ed;
}

.guide-block.is-key .block-index {
  color: #a17a42;
}

.source-box {
  margin-top: 12px;
  padding: 19px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.source-box h3 {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.source-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}

.source-list a {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.6;
  text-decoration: none;
}

.source-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.source-list a::before {
  flex: 0 0 auto;
  color: var(--accent);
  content: "↗";
}

.source-box-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   后台数据维护
   -------------------------------------------------------------------------- */

.admin-main {
  padding-bottom: 70px;
}

.admin-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #e7d7bd;
  border-radius: 12px;
  color: #6e5a3d;
  background: #fdf9f1;
  font-size: 11.5px;
  line-height: 1.75;
}

.admin-notice strong {
  color: #7a4c16;
}

.admin-layout {
  display: grid;
  grid-template-columns: 306px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-top: 18px;
}

.admin-sidebar,
.admin-editor {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.admin-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  overflow: hidden;
}

.admin-sidebar-head {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.admin-sidebar-head h2 {
  font-family: var(--font-serif);
  font-size: 18px;
}

.admin-sidebar-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.admin-list-search {
  width: 100%;
  height: 38px;
  margin-top: 10px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

.admin-list {
  max-height: 560px;
  overflow-y: auto;
  padding: 7px;
  list-style: none;
}

.admin-list-item {
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  text-align: left;
}

.admin-list-item:hover {
  background: var(--accent-wash);
}

.admin-list-item[aria-current="true"] {
  border-color: #cfe0d7;
  background: var(--accent-soft);
}

.admin-list-item strong {
  display: block;
  font-size: 12.5px;
}

.admin-list-item small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.admin-sidebar-foot {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.admin-editor {
  padding: 22px;
}

.admin-editor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.admin-editor-head h2 {
  font-family: var(--font-serif);
  font-size: 22px;
}

.admin-editor-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 650;
}

.admin-status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.form-section {
  padding-top: 18px;
}

.form-section + .form-section {
  margin-top: 18px;
  border-top: 1px dashed var(--line);
}

.form-section h3 {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.form-field {
  min-width: 0;
}

.form-field.is-full {
  grid-column: 1 / -1;
}

.form-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 650;
}

.form-field label small {
  color: var(--muted-light);
  font-size: 9.5px;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  font-size: 12.5px;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.form-input {
  height: 40px;
  padding: 0 11px;
}

.form-textarea {
  min-height: 84px;
  padding: 9px 11px;
  line-height: 1.7;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  outline: 0;
  background: #fff;
}

.form-hint {
  margin-top: 4px;
  color: var(--muted-light);
  font-size: 9.5px;
  line-height: 1.55;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.form-actions .spacer {
  flex: 1;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.admin-toolbar .spacer {
  flex: 1;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 100;
  max-width: min(420px, calc(100% - 32px));
  padding: 11px 16px;
  border-radius: 10px;
  color: #fff;
  background: #173b31;
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast.is-error {
  background: #7e342d;
}

body.has-actionbar .toast {
  bottom: 98px;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 32px;
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 275px;
  }

  .admin-layout {
    grid-template-columns: 270px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .guide-hero-grid {
    grid-template-columns: 1fr;
  }

  .trust-card {
    max-width: 560px;
  }

  .search-form {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .search-submit {
    grid-column: 1 / -1;
  }

  .advisor-grid,
  .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .howto-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .side-stack {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-toc {
    position: static;
    padding: 12px;
  }

  .guide-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: 8px;
  }

  .guide-tab {
    justify-content: center;
    min-height: 38px;
    padding-inline: 7px;
    font-size: 11.5px;
    text-align: center;
  }

  .guide-tab-index {
    display: none;
  }

  .guide-toc-title,
  .guide-toc-note {
    display: none;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-list {
    max-height: 240px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }

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

  .brand-text strong {
    font-size: 14px;
  }

  .brand-text small {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 14px;
    left: 14px;
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    justify-content: center;
    min-height: 44px;
  }

  .notice-strip .shell {
    gap: 8px;
    padding-block: 9px;
  }

  .notice-label {
    font-size: 9.5px;
  }

  .notice-strip p {
    font-size: 10.5px;
    line-height: 1.65;
  }

  .home-hero {
    padding: 34px 0 24px;
  }

  .hero-copy h1 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .hero-copy > p {
    font-size: 13.5px;
  }

  .hero-stat {
    padding: 6px 10px;
    font-size: 10.5px;
  }

  .hero-stat strong {
    font-size: 15px;
  }

  .trust-card {
    padding: 17px;
  }

  .search-panel {
    padding: 17px;
    border-radius: 16px;
  }

  .search-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .search-panel-head h2 {
    font-size: 21px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-submit {
    grid-column: auto;
  }

  .text-input,
  .select-input,
  .search-submit {
    height: 48px;
  }

  .tag-cloud {
    max-height: 88px;
  }

  .tag-cloud.is-expanded {
    max-height: 720px;
  }

  .results-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .results-meta {
    text-align: left;
  }

  .advisor-card {
    padding: 18px;
  }

  .card-head {
    gap: 10px;
  }

  .card-college {
    max-width: 46%;
    font-size: 9.5px;
  }

  .card-name {
    font-size: 21px;
  }

  .monogram {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 20px;
  }

  .card-facts {
    padding: 10px;
  }

  .howto {
    padding-bottom: 54px;
  }

  .howto-panel {
    padding: 20px;
  }

  .profile-card {
    padding: 20px;
  }

  .profile-head {
    flex-direction: column;
    gap: 13px;
  }

  .profile-monogram {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    border-radius: 18px;
    font-size: 27px;
  }

  .profile-info h1 {
    font-size: 32px;
  }

  .detail-card {
    padding: 20px;
  }

  .side-stack {
    grid-template-columns: 1fr;
  }

  .actionbar-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    padding-block: 10px;
  }

  .actionbar-copy {
    font-size: 9.5px;
    line-height: 1.55;
  }

  .actionbar-inner .btn {
    min-height: 40px;
    width: 100%;
  }

  body.has-actionbar .site-footer {
    padding-bottom: 128px;
  }

  .guide-hero {
    padding: 28px 0 18px;
  }

  .guide-title-break {
    display: none;
  }

  .guide-section-head {
    padding: 20px;
  }

  .guide-blocks {
    padding: 8px;
  }

  .guide-block summary {
    padding-left: 12px;
  }

  .guide-block-body {
    padding: 15px;
  }

  .source-box {
    padding: 16px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 30px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-editor {
    padding: 16px;
  }

  .admin-toolbar .spacer {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand-text small {
    display: none;
  }

  .hero-copy h1 {
    font-size: 31px;
  }

  .card-college {
    display: none;
  }

  .profile-meta {
    display: grid;
    gap: 5px;
  }
}

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

/* --------------------------------------------------------------------------
   打印
   -------------------------------------------------------------------------- */

@media print {
  :root {
    --bg: #fff;
  }

  body {
    background: #fff;
    font-size: 11pt;
  }

  body.has-actionbar {
    padding-bottom: 0;
  }

  .site-header,
  .site-footer,
  .notice-strip,
  .detail-actionbar,
  .profile-actions,
  .copy-mini,
  .breadcrumb,
  .guide-toc,
  .guide-tools,
  .toast,
  .btn {
    display: none !important;
  }

  .shell {
    width: 100%;
  }

  .profile-card,
  .detail-card,
  .contact-card,
  .source-card,
  .side-disclaimer,
  .guide-block,
  .guide-section-head,
  .guide-blocks,
  .source-box {
    border-color: #bbb;
    box-shadow: none;
    break-inside: avoid;
  }

  .detail-grid,
  .guide-layout {
    display: block;
  }

  .side-stack {
    position: static;
    margin-top: 12px;
  }

  .guide-block {
    break-inside: avoid;
  }

  .guide-block:not([open]) > .guide-block-body {
    display: none;
  }
}
