:root {
  --ink: #111f2e;
  --navy: #10283d;
  --blue: #2f6f9f;
  --gold: #bb9560;
  --paper: #f8f6f1;
  --line: #dedad1;
  --muted: #75808a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.topbar { height: 84px; padding: 0 clamp(24px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; background: rgba(248,246,241,.95); border-bottom: 1px solid rgba(17,31,46,.1); }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-family: "Songti SC", serif; font-size: 22px; }
.brand strong, .footer-brand strong { display: block; font-family: "Songti SC", serif; font-size: 20px; letter-spacing: .2em; }
.brand small, .footer-brand small { display: block; margin-top: 3px; color: #8c7b63; font-size: 8px; letter-spacing: .2em; }
.national-badge { margin-left: 9px; color: #d52f2f; font-size: 23px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.auth-actions { display: flex; gap: 10px; }
.text-button, .outline-button { border: 0; background: transparent; padding: 10px 20px; color: var(--ink); font-size: 14px; }
.outline-button { border: 1px solid var(--ink); transition: .2s; }
.outline-button:hover { background: var(--ink); color: white; }

.hero { position: relative; overflow: hidden; min-height: 294px; padding: 44px 24px 36px; text-align: center; color: white; background: linear-gradient(135deg,#112b41,#173a53 55%,#1c455d); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .17; background-image: linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px); background-size: 52px 52px; }
.hero-orb { position: absolute; border: 1px solid rgba(205,177,133,.25); border-radius: 50%; }
.hero-orb::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(205,177,133,.13); border-radius: inherit; }
.hero-orb-one { width: 330px; height: 330px; left: -140px; top: -100px; }
.hero-orb-two { width: 410px; height: 410px; right: -190px; bottom: -260px; }
.hero > :not(.hero-orb) { position: relative; z-index: 1; }
.hero h1 { margin: 0; font-family: "Songti SC",serif; font-size: clamp(40px,5.2vw,66px); font-weight: 400; letter-spacing: .18em; }
.notice { max-width: 880px; margin: 26px auto 0; padding: 16px 28px; border: 1px solid rgba(211,185,146,.35); background: rgba(9,25,38,.38); }
.notice p { margin: 0; color: rgba(255,255,255,.88); font-size: 13px; line-height: 2; }
.notice p + p { color: #ddc5a1; }

.directory { width: min(1200px,calc(100% - 48px)); margin: 0 auto; padding: 72px 0 60px; }
.directory-head { display: flex; align-items: end; gap: 28px; }
.eyebrow { margin: 0 0 7px; color: var(--gold); font: 9px Georgia,serif; letter-spacing: .32em; }
.directory-head h2 { margin: 0; font-family: "Songti SC",serif; font-size: 34px; font-weight: 400; letter-spacing: .13em; }
.filters { display: flex; align-items: stretch; gap: 12px; margin-top: 30px; }
.filters label { width: 220px; height: 64px; padding: 0 16px; display: flex; align-items: center; gap: 12px; background: white; border: 1px solid var(--line); transition: .2s; }
.filters label:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(187,149,96,.1); }
.filter-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #f0eee9; color: var(--gold); }
.filter-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.filter-content small { color: #9a9da1; font-size: 9px; letter-spacing: .18em; }
.filter-content select { width: 100%; margin-top: 3px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.filters .is-disabled { opacity: .55; }
.search-button { min-width: 122px; height: 64px; border: 1px solid var(--navy); background: var(--navy); color: white; font-size: 15px; font-weight: 600; letter-spacing: .28em; text-indent: .28em; transition: background .2s,opacity .2s,transform .2s; }
.search-button:not(:disabled):hover { background: #1d4968; transform: translateY(-1px); }
.search-button:disabled { cursor: not-allowed; opacity: .38; }
.results-line { margin: 36px 0 20px; padding-bottom: 14px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); color: #757d83; font-size: 11px; letter-spacing: .08em; }
.results-line p { display: flex; align-items: center; gap: 9px; margin: 0; }
.results-line p span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(187,149,96,.14); }
.results-line b, .results-line em { font-weight: 400; font-style: normal; }

.people-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 24px 16px; }
.person-card { overflow: hidden; background: white; border: 1px solid #e6e2da; box-shadow: 0 9px 30px rgba(15,37,54,.04); transition: transform .28s,box-shadow .28s; }
.person-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(15,37,54,.13); }
.photo-button { position: relative; width: 100%; padding: 0; display: block; overflow: hidden; border: 0; background: #dce2e3; aspect-ratio: .82; }
.photo-button img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.9); transition: transform .5s,filter .3s; }
.photo-button:hover img { transform: scale(1.035); filter: saturate(1); }
.photo-button::after { content: "点击登录查看"; position: absolute; inset: auto 0 0; padding: 20px 10px 11px; color: white; opacity: 0; background: linear-gradient(transparent,rgba(8,25,39,.78)); font-size: 10px; letter-spacing: .12em; transition: opacity .25s; }
.photo-button:hover::after, .photo-button:focus-visible::after { opacity: 1; }
.person-info { padding: 15px 14px 17px; }
.name-row { display: flex; align-items: baseline; gap: 9px; }
.name-row h3 { margin: 0; color: #151b20; font-family: "Songti SC",serif; font-size: 23px; letter-spacing: .08em; }
.name-row span { color: #2874af; font: 16px Georgia,serif; }
.person-info p { margin: 10px 0 0; color: #d52f2f; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.person-info p b { margin-right: 4px; color: var(--gold); }

footer { min-height: 150px; padding: 34px clamp(24px,5vw,80px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; background: #0e2538; color: rgba(255,255,255,.55); font-size: 10px; letter-spacing: .08em; }
footer .footer-brand { color: white; }
footer p { text-align: center; }
footer > span { text-align: right; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 24px; display: grid; place-items: center; background: rgba(5,16,25,.73); backdrop-filter: blur(9px); animation: fade .18s; }
.auth-modal { position: relative; width: min(430px,100%); max-height: calc(100vh - 48px); overflow: auto; padding: 38px 46px 34px; background: #fbfaf7; box-shadow: 0 30px 80px rgba(0,0,0,.28); animation: rise .25s; }
.auth-modal::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg,var(--navy),var(--gold),var(--navy)); }
.modal-close { position: absolute; top: 14px; right: 17px; width: 32px; height: 32px; border: 0; background: transparent; color: #8a8f92; font-size: 25px; }
.modal-mark { width: 44px; height: 44px; margin: 0 auto 16px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font: 22px "Songti SC",serif; }
.auth-modal > .eyebrow, .auth-modal h2, .modal-subtitle { text-align: center; }
.auth-modal h2 { margin: 4px 0 7px; font: 400 27px "Songti SC",serif; letter-spacing: .13em; }
.modal-subtitle { margin: 0 0 25px; color: #898e91; font-size: 11px; }
.auth-modal form { display: grid; gap: 14px; }
.auth-modal label > span:first-child { display: block; margin-bottom: 7px; color: #4a5156; font-size: 11px; }
.auth-modal input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid #ddd9d1; outline: 0; background: white; color: var(--ink); font-size: 13px; }
.auth-modal input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(187,149,96,.1); }
.password-field, .captcha-field { position: relative; display: flex; }
.password-field button { position: absolute; right: 5px; top: 5px; height: 34px; padding: 0 8px; border: 0; background: transparent; color: var(--blue); font-size: 10px; }
.password-field input { padding-right: 48px; }
.captcha-field { gap: 9px; }
.captcha-field b { min-width: 92px; display: grid; place-items: center; border: 1px solid #d7d1c7; color: var(--navy); background: repeating-linear-gradient(-45deg,#f5f1e9,#f5f1e9 5px,#ebe5db 5px,#ebe5db 6px); font: italic 18px Georgia,serif; letter-spacing: .23em; }
.form-message { min-height: 16px; margin: -2px 0 -4px; color: transparent; font-size: 11px; }
.form-message.show { color: #bd3b31; }
.submit-button { height: 46px; border: 0; background: var(--navy); color: white; font-size: 13px; letter-spacing: .35em; }
.switch-auth { margin: 20px 0 0; text-align: center; color: #969a9c; font-size: 11px; }
.switch-auth button { border: 0; background: transparent; color: var(--blue); font-size: inherit; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 980px) { .people-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } footer { grid-template-columns: 1fr 1fr; } footer p { display: none; } }
@media (max-width: 620px) {
  .topbar { height: 72px; padding: 0 18px; }
  .brand small { display: none; }
  .brand strong { font-size: 17px; letter-spacing: .12em; }
  .brand-mark { width: 35px; height: 35px; font-size: 18px; }
  .national-badge { margin-left: 2px; font-size: 16px; letter-spacing: .02em; }
  .text-button,.outline-button { padding: 8px 12px; font-size: 12px; }
  .hero { min-height: 286px; padding: 38px 18px 32px; }
  .hero h1 { font-size: 38px; letter-spacing: .1em; }
  .notice { margin-top: 23px; padding: 14px; }
  .notice p { font-size: 11px; line-height: 1.85; }
  .directory { width: calc(100% - 28px); padding-top: 52px; }
  .directory-head { align-items: start; flex-direction: column; gap: 10px; }
  .directory-head > p { padding-left: 0; border: 0; }
  .filters { flex-direction: column; }
  .filters label { width: 100%; }
  .search-button { width: 100%; }
  .people-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 10px; }
  .person-info { padding: 12px 10px 14px; }
  .name-row h3 { font-size: 20px; }
  footer { grid-template-columns: 1fr; justify-items: center; }
  footer > span { text-align: center; }
  .auth-modal { padding: 34px 24px 28px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
