:root {
  --paper: #f4f1ea;
  --paper-deep: #eae5dc;
  --ink: #22221f;
  --muted: #74716a;
  --line: rgba(34, 34, 31, 0.16);
  --accent: #9b4e38;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.eyebrow { color: var(--accent); font-size: .68rem; letter-spacing: .17em; line-height: 1.4; text-transform: uppercase; }
.serif { font-family: var(--serif); }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(244,241,234,.92); backdrop-filter: blur(16px); }
.site-bar { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 78px; }
.brand { flex: 0 0 auto; font-size: .86rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.site-nav { display: flex; flex: 1; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.site-nav a { position: relative; color: var(--muted); font-size: .74rem; letter-spacing: .08em; transition: color 180ms ease; }
.site-nav a::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; background: var(--accent); content: ""; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }

.page { min-height: calc(100vh - 160px); padding: 104px 0 120px; }
.page-header { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.page-header h1 { margin: 20px 0 0; font-family: var(--serif); font-size: clamp(3.2rem, 7vw, 7.2rem); font-weight: 400; letter-spacing: -.065em; line-height: .9; }
.page-lede { max-width: 430px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.85; }
.article-page .page-header { grid-template-columns: 1fr; gap: 22px; }
.article-page .page-header h1 { max-width: 900px; }
.article-meta { margin: 0; color: var(--muted); font-size: .72rem; letter-spacing: .08em; }
.article-copy { max-width: 760px; }
.article-copy p { margin: 0 0 1.5em; color: #5f5b53; font-family: var(--serif); font-size: 1.25rem; line-height: 1.85; }
.article-copy p:last-child { margin-bottom: 0; }
.article-back { display: inline-block; margin-top: 42px; border-bottom: 1px solid var(--ink); padding-bottom: 7px; font-size: .72rem; letter-spacing: .1em; }
.page-body { padding-top: 48px; }
.article-list { border-top: 1px solid var(--line); }
.article-row { display: grid; grid-template-columns: 120px 1fr 180px 24px; gap: 20px; align-items: center; min-height: 88px; border-bottom: 1px solid var(--line); }
.article-row:hover .article-title { color: var(--accent); }
.article-date, .article-category { color: var(--muted); font-size: .68rem; letter-spacing: .08em; }
.article-category { color: var(--accent); }
.article-title { font-family: var(--serif); font-size: 1.4rem; transition: color 180ms ease; }
.article-arrow { font-size: 1.1rem; text-align: right; }
.empty-state { padding: 52px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--serif); font-size: 1.8rem; }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-card { min-height: 170px; padding: 22px; border: 1px solid var(--line); }
.detail-card h2 { margin: 20px 0 12px; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; letter-spacing: -.03em; }
.detail-card p { max-width: 470px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.8; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; }
.profile-statement { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.03em; line-height: 1.15; }
.profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.fact { border-top: 1px solid var(--line); padding-top: 14px; }
.fact small { display: block; margin-bottom: 9px; color: var(--accent); font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; }
.fact p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.75; }
.bio-hero { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 9%; align-items: start; }
.portrait-frame { aspect-ratio: 4 / 5; margin: 0; overflow: hidden; background: var(--paper-deep); }
.portrait-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.bio-copy h2 { margin: 0 0 16px; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 4.2rem); font-weight: 400; letter-spacing: -.055em; line-height: .98; }
.bio-copy .role { margin: 0 0 24px; color: var(--accent); font-size: .78rem; letter-spacing: .1em; line-height: 1.7; }
.bio-copy p { max-width: 600px; margin: 0; color: #5f5b53; font-size: .9rem; line-height: 1.9; }
.bio-section { margin-top: 90px; padding-top: 24px; border-top: 1px solid var(--line); }
.bio-section h2 { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 400; letter-spacing: -.05em; }
.specialty-list { display: flex; flex-wrap: wrap; gap: 10px 18px; max-width: 980px; margin: 0; padding: 0; list-style: none; }
.specialty-list li { color: #5f5b53; font-size: .84rem; line-height: 1.7; }
.specialty-list li::before { margin-right: 9px; color: var(--accent); content: "—"; }
.appointment-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; margin: 0; padding: 0; list-style: none; }
.appointment-list li { border-top: 1px solid var(--line); padding: 14px 0; color: #5f5b53; font-size: .82rem; line-height: 1.7; }
.education-list { max-width: 980px; }
.education-list p { margin: 0; border-top: 1px solid var(--line); padding: 14px 0; color: #5f5b53; font-size: .88rem; line-height: 1.85; }
.interest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.interest-card { min-height: 150px; padding: 22px; border: 1px solid var(--line); }
.interest-card h3 { margin: 18px 0 10px; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; letter-spacing: -.03em; }
.interest-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.8; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter { border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px; color: var(--muted); background: transparent; cursor: pointer; font: inherit; font-size: .68rem; letter-spacing: .08em; }
.filter.active, .filter:hover { border-color: var(--ink); color: var(--paper); background: var(--ink); }
.site-footer { padding: 34px 0 50px; border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.footer-name { font-family: var(--serif); font-size: 1.8rem; }
.footer-note { color: var(--muted); font-size: .72rem; line-height: 1.7; text-align: right; }

.footer-note a { color: inherit; border-bottom: 1px solid transparent; }
.footer-note a:hover { border-bottom-color: currentColor; }
.beian-gongan { display: inline-flex; align-items: center; gap: 6px; }
.beian-gongan img { width: 14px; height: 16px; display: block; }

.article-copy h2 {
  margin: 2.4em 0 0.9em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.article-copy h2:first-child { margin-top: 0; }
.article-figure { margin: 0 0 1.8em; text-align: center; }
.article-figure img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
.article-figure.portrait img { max-width: 280px; }
.article-figure.landscape img { max-width: 560px; }
.article-figure.wide img { max-width: 100%; }
.article-figure figcaption {
  margin-top: 0.65em;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}
.article-refs { margin: 0 0 1.5em; padding: 0; list-style: none; }
.article-refs li {
  margin: 0 0 0.9em;
  padding-left: 1.5em;
  color: #5f5b53;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.7;
  text-indent: -1.5em;
}
.article-refs a { color: inherit; border-bottom: 1px solid currentColor; word-break: break-all; }
.list-pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pager-btn {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 14px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .68rem;
  letter-spacing: .08em;
}
.pager-btn:hover, .pager-btn.active { border-color: var(--ink); color: var(--paper); background: var(--ink); }
.pager-btn:disabled { opacity: .4; cursor: default; pointer-events: none; }

@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 32px), var(--max)); }
  .site-bar { align-items: flex-start; flex-direction: column; gap: 17px; padding: 19px 0; }
  .site-nav { justify-content: flex-start; gap: 12px 18px; }
  .site-nav a::after { display: none; }
  .page { padding: 74px 0 82px; }
  .page-header, .profile-grid { display: block; }
  .page-lede { margin-top: 25px; }
  .profile-statement { margin-bottom: 42px; }
  .bio-hero { display: block; }
  .portrait-frame { max-width: 420px; margin-bottom: 42px; }
  .bio-section { margin-top: 70px; }
  .appointment-list, .interest-grid { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 84px 1fr; gap: 10px; padding: 14px 0; }
  .article-category { grid-column: 2; }
  .article-arrow { display: none; }
  .details-grid { grid-template-columns: 1fr; }
  .footer-row { align-items: start; flex-direction: column; }
  .footer-note { text-align: left; }
}
