:root {
  --navy: #17364a;
  --navy-2: #244f68;
  --orange: #c45a12;
  --ink: #172a36;
  --muted: #687883;
  --line: #dce2e5;
  --soft: #f5f6f6;
  --paper: #ffffff;
  --serif: "Noto Serif SC", "Songti SC", SimSun, serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.8 var(--sans);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.container { width: min(1160px, calc(100% - 48px)); margin: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: white; padding: 8px 12px; }

.site-header { border-top: 5px solid var(--navy); background: white; }
.utility { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.utility .container { min-height: 35px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.utility-links { display: flex; align-items: center; gap: 11px; }
.utility-links i { width: 1px; height: 12px; background: var(--line); }
.utility-links b { color: var(--navy); font-weight: 600; }
.utility-links a:hover { color: var(--orange); }
.masthead { min-height: 94px; display: flex; align-items: center; gap: 30px; }
.identity { display: flex; align-items: center; gap: 15px; }
.mark {
  width: 50px; height: 50px; display: grid; place-items: center;
  color: white; background: var(--navy); font: 600 23px var(--serif);
}
.identity strong { display: block; font: 600 21px var(--serif); letter-spacing: .07em; }
.identity small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.site-nav { margin-left: auto; }
.nav-inner { display: flex; align-items: center; gap: 32px; min-height: 52px; }
.site-nav a {
  height: 52px; display: flex; align-items: center; padding: 0 2px;
  font-size: 14px; position: relative;
}
.site-nav a:hover, .site-nav a.active { color: var(--orange); }
.site-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 2px; background: var(--orange); }
.menu-button { display: none; margin-left: auto; border: 0; background: none; color: var(--navy); font-size: 20px; }

html[lang="en"] body { font-family: Arial, Helvetica, sans-serif; }
html[lang="en"] h1,
html[lang="en"] .identity strong,
html[lang="en"] .section-heading h2,
html[lang="en"] .feature h3,
html[lang="en"] .record h2,
html[lang="en"] .footer-grid h2 { font-family: Georgia, "Times New Roman", serif; }

.page-hero { padding: 62px 0 50px; background: var(--soft); border-bottom: 1px solid var(--line); }
.kicker { color: var(--orange); font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 10px 0 18px; color: var(--navy); font: 600 clamp(35px, 5vw, 55px)/1.25 var(--serif); letter-spacing: .02em; }
.intro { max-width: 800px; margin: 0; color: #425761; font-size: 16px; line-height: 2; }
.section { padding: 68px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; color: var(--navy); font: 600 29px var(--serif); }
.section-heading p { margin: 5px 0 0; color: var(--muted); }
.more { color: var(--orange); font-size: 13px; border-bottom: 1px solid currentColor; white-space: nowrap; }

.home-hero { padding: 66px 0; background: var(--soft); border-bottom: 1px solid var(--line); }
.home-bio { max-width: 1160px; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 56px; align-items: center; }
.home-bio .kicker { display: block; margin-bottom: 18px; }
.home-bio p { margin: 0; color: #344d5b; font-size: 16px; line-height: 2.05; text-align: justify; }
.profile-photo-placeholder { width: 230px; aspect-ratio: 4/5; margin: 0; display: grid; place-content: center; gap: 12px; color: #84949d; background: #eef1f2 url("assets/xuefeng-portrait.webp?v=20260809") center top / cover no-repeat; border: 1px solid #d7dfe2; text-align: center; }
.profile-photo-placeholder img { visibility: hidden; }
.photo-symbol { width: 70px; height: 70px; display: grid; place-items: center; margin: auto; border-radius: 50%; color: white; background: var(--navy); font: 600 29px var(--serif); }
.profile-photo-placeholder figcaption { font-size: 11px; letter-spacing: .12em; }
.home-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 70px; align-items: center; }
.home-hero h1 { font-size: clamp(38px, 5vw, 60px); }
.home-hero .intro { max-width: 680px; }
.profile-card { background: white; border-top: 4px solid var(--orange); padding: 27px; box-shadow: 0 10px 30px rgba(23,54,74,.06); }
.profile-card dl { margin: 0; }
.profile-card div { display: grid; grid-template-columns: 75px 1fr; padding: 9px 0; border-bottom: 1px solid var(--line); }
.profile-card div:last-child { border: 0; }
.profile-card dt { color: var(--muted); font-size: 12px; }
.profile-card dd { margin: 0; }

.waterfall { columns: 3; column-gap: 22px; }
.feature {
  break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 22px;
  background: white; border: 1px solid var(--line); vertical-align: top;
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(23,54,74,.08); }
.feature-visual { aspect-ratio: 16/8.5; overflow: hidden; background: #edf1f2; }
.feature-visual img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: white; }
.feature:nth-child(3n+2) .feature-visual { aspect-ratio: 16/11; }
.feature-body { padding: 22px; }
.label { display: inline-block; color: var(--orange); font-size: 10px; font-weight: 600; letter-spacing: .1em; }
.feature h3 { margin: 8px 0 10px; color: var(--navy); font: 600 18px/1.55 var(--serif); }
.feature p { margin: 0; color: var(--muted); font-size: 13px; }

.filters { padding: 32px 0; border-bottom: 1px solid var(--line); }
.search { position: relative; max-width: 800px; }
.search input {
  width: 100%; border: 0; border-bottom: 2px solid var(--orange); outline: none;
  padding: 11px 6px 11px 34px; color: var(--ink); background: transparent; font-size: 17px;
}
.search::before { content: "⌕"; position: absolute; left: 5px; top: 5px; color: #9ba8af; font-size: 25px; }
.filter-row { display: flex; gap: 36px; margin-top: 21px; }
.field { display: grid; gap: 5px; min-width: 150px; }
.field label { color: var(--orange); font-size: 11px; font-weight: 600; }
.field select { border: 0; border-bottom: 1px solid var(--orange); padding: 5px 2px; background: white; color: var(--ink); outline: none; }
.topic-row { display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: start; margin-top: 24px; padding-top: 19px; border-top: 1px solid var(--line); }
.topic-row > span { padding-top: 8px; color: var(--orange); font-size: 11px; font-weight: 600; }
.topic-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-filter button { border: 1px solid #cfd8dc; padding: 7px 14px; color: #465d69; background: white; cursor: pointer; transition: .18s ease; }
.topic-filter button:hover { border-color: var(--orange); color: var(--orange); }
.topic-filter button.active { border-color: var(--navy); color: white; background: var(--navy); }
.result-note { margin: 34px 0 13px; color: var(--muted); font-size: 12px; }
.result-note b { color: var(--ink); }

.record-list { border-top: 1px solid var(--line); }
.record {
  display: grid; grid-template-columns: 142px 1fr 30px; gap: 28px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.record-thumb { width: 142px; min-height: 112px; background: var(--soft); overflow: hidden; border: 1px solid #e8ebed; }
.record-thumb svg { width: 100%; height: 100%; min-height: 112px; }
.record-thumb img { width: 100%; height: 100%; min-height: 112px; object-fit: contain; object-position: center; background: white; }
.record-type { color: var(--orange); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.record h2 { margin: 6px 0 8px; color: var(--navy); font: 600 17px/1.6 var(--serif); }
.record h2 a:hover { color: var(--orange); }
.record-meta { margin: 0 0 7px; color: #4f626d; font-size: 13px; }
.record-date { color: var(--muted); font-size: 12px; }
.record-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.record-links a { color: var(--orange); font-size: 12px; border-bottom: 1px solid rgba(196,90,18,.5); }
.copy { align-self: start; border: 0; background: none; color: #9aa6ac; cursor: pointer; padding: 3px; }
.empty { padding: 45px; background: var(--soft); border: 1px dashed #cbd3d7; color: var(--muted); text-align: center; }

.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.article-card { display: grid; grid-template-columns: 150px 1fr; min-height: 160px; border: 1px solid var(--line); background: white; }
.article-card .record-thumb { width: 150px; height: 100%; border: 0; border-right: 1px solid var(--line); }
.article-card .article-copy { padding: 20px; }
.article-card h2 { margin: 7px 0; color: var(--navy); font: 600 17px/1.55 var(--serif); }
.article-card p { margin: 0; color: var(--muted); font-size: 12px; }

.project-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 42px; background: var(--line); border: 1px solid var(--line); }
.project-stat { padding: 26px; background: white; }
.project-stat b { display: block; color: var(--orange); font: 600 28px var(--serif); }
.project-stat span { color: var(--muted); font-size: 12px; }
.project-list { display: grid; gap: 20px; }
.project-card { display: grid; grid-template-columns: 210px 1fr; border: 1px solid var(--line); background: white; }
.project-code { padding: 28px; color: white; background: var(--navy); }
.project-code span { display: block; margin-bottom: 9px; color: #9fc0cf; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.project-code strong { font: 600 20px/1.45 var(--serif); }
.project-copy { padding: 28px 32px; }
.project-copy h2 { margin: 0 0 10px; color: var(--navy); font: 600 20px/1.55 var(--serif); }
.project-copy p { margin: 0; color: var(--muted); }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.project-tags span { padding: 4px 9px; color: var(--navy); background: var(--soft); font-size: 11px; }

.site-footer { margin-top: 30px; background: var(--navy); color: #c5d0d5; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; padding: 42px 0; }
.footer-grid h2 { margin: 0 0 10px; color: white; font: 600 20px var(--serif); }
.footer-grid p { margin: 4px 0; font-size: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 16px 0; color: #95a9b2; font-size: 11px; }

@media (max-width: 860px) {
  .home-bio { grid-template-columns: 1fr 190px; gap: 30px; }
  .profile-photo-placeholder { width: 190px; }
  .home-grid { grid-template-columns: 1fr; gap: 30px; }
  .waterfall { columns: 2; }
  .article-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 170px 1fr; }
  .nav-inner { gap: 18px; }
  .site-nav a { font-size: 13px; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .utility { display: none; }
  .masthead { min-height: 76px; }
  .masthead { flex-wrap: wrap; }
  .menu-button { display: block; }
  .site-nav { display: none; order: 3; width: 100%; margin-left: 0; }
  .site-nav.open { display: block; }
  .nav-inner { display: block; padding: 7px 0; }
  .site-nav a { height: 44px; border: 0; padding: 0; }
  .site-nav a.active::after { width: 28px; right: auto; bottom: 3px; }
  .page-hero, .home-hero { padding: 44px 0; }
  .home-bio { grid-template-columns: 1fr; }
  .profile-photo-placeholder { width: min(220px, 68vw); justify-self: center; }
  .section { padding: 50px 0; }
  .section-heading { align-items: start; }
  .waterfall { columns: 1; }
  .filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .field { min-width: 0; }
  .topic-row { grid-template-columns: 1fr; gap: 8px; }
  .topic-row > span { padding-top: 0; }
  .record { grid-template-columns: 105px 1fr; gap: 17px; }
  .record-thumb { width: 105px; min-height: 100px; }
  .record-thumb svg { min-height: 100px; }
  .copy { display: none; }
  .article-card { grid-template-columns: 110px 1fr; }
  .article-card .record-thumb { width: 110px; }
  .project-overview { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
}
