:root {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: #343c46;
  background: #f4f4f4;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid #cf6d21; outline-offset: 3px; }

.site-header { background: #073d80; color: #fff; }
.header-inner, .page-shell, .footer-inner { width: min(1168px, calc(100% - 48px)); margin-inline: auto; }
.header-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 16px; flex: none; color: #fff; text-decoration: none; }
.brand img { display: block; width: 220px; max-height: 54px; object-fit: contain; }
.brand span { font-size: 19px; font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 38px); }
.site-nav a { color: #fff; font-size: 14px; white-space: nowrap; padding-block: 10px; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }

.page-shell { padding-top: 28px; }
.teacher-card, .section-menu, .link-box, .content-card, .related-card { background: #fff; border: 1px solid #e2e5e9; }
.teacher-card { display: flex; gap: 20px; min-height: 205px; padding: 20px; }
.teacher-photo { width: 118px; height: 146px; object-fit: cover; flex: none; }
.teacher-details { min-width: 0; flex: 1; }
.name-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.name-line h1 { color: #073d80; font-size: 27px; line-height: 1.3; margin: 0; }
.degree { color: #626c78; background: #edf0f3; border-radius: 3px; padding: 2px 8px; font-size: 12px; }
.unit { border-left: 1px solid #dfe3e8; padding-left: 18px; margin-left: 6px; color: #697481; font-size: 13px; }
.position { margin: 6px 0 12px; font-size: 14px; }
.contact-list { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 7px; color: #586675; font-size: 13px; line-height: 1.6; }
.contact-item { display: inline-flex; align-items: flex-start; gap: 7px; min-width: 0; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: #073d80; text-decoration: underline; }
.contact-icon, .research-icon { color: #4e72b8; flex: none; transform: translateY(1px); }
.contact-icon svg, .research-icon svg { display: block; width: 18px; height: 18px; }
.contact-label, .research-summary strong { color: #52606d; font-weight: 600; }
.research-summary { display: flex; gap: 7px; margin: 11px 0 0; color: #586675; font-size: 13px; line-height: 1.6; }
.teacher-meta { min-width: 80px; flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; color: #98a1ac; font-size: 11px; white-space: nowrap; }
.profile-mark { width: 78px; height: 78px; display: grid; place-items: center; background: #e8eef5; color: #9aabc0; font-size: 12px; font-weight: 700; letter-spacing: .15em; }
.teacher-meta p { margin: 0; }

.main-grid { display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 28px; margin-top: 28px; }
.sidebar { min-width: 0; }
.section-menu { display: flex; flex-direction: column; }
.menu-item { appearance: none; display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 47px; padding: 0 17px; border: 0; border-bottom: 1px solid #e5e8ec; background: #fff; color: #3c434b; text-align: left; font-size: 15px; cursor: pointer; }
.menu-item:last-child { border-bottom: 0; }
.menu-item:hover:not([aria-selected="true"]) { background: #f2f5f8; }
.menu-item[aria-selected="true"] { background: #073d80; color: #fff; }
.menu-arrow { font-size: 20px; line-height: 1; font-weight: 300; }
.link-box { margin-top: 20px; padding: 27px 15px 20px; min-height: 107px; }
.link-box h2 { color: #073d80; font-size: 15px; margin: 0 0 10px; }
.link-box a { font-size: 13px; color: #4b5561; text-decoration: underline; text-underline-offset: 3px; }
.link-box a:hover { color: #073d80; }
.content-card { min-height: 414px; padding: 36px 25px; border-color: transparent; }
.content-panel[hidden] { display: none; }
.content-panel { color: #555d66; font-size: 15px; line-height: 1.85; }
.content-panel p { margin: 0 0 10px; }
.content-panel h2 { margin: 0 0 16px; color: #073d80; font-size: 19px; }
.section-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; margin-top: 22px; }
.section-gallery figure { margin: 0; }
.section-gallery img { display: block; width: 100%; max-height: 360px; object-fit: contain; background: #f4f6f8; }
.section-gallery figcaption { color: #697481; font-size: 13px; line-height: 1.5; margin-top: 7px; }
.empty-state { color: #818b96; }
.document-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid #dbe3ec; }
.document-tab { flex: 1 0 160px; min-height: 54px; padding: 10px 14px; border: 0; border-bottom: 3px solid transparent; background: #fff; color: #52606d; cursor: pointer; font-size: 14px; line-height: 1.4; }
.document-tab:hover { background: #f2f6fa; }
.document-tab[aria-selected="true"] { border-bottom-color: #073d80; color: #073d80; font-weight: 700; }
.document-group { padding-top: 24px; }
.document-group[hidden] { display: none; }
.document-group h3 { margin: 0 0 14px; color: #073d80; font-size: 18px; }
.document-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.document-table th, .document-table td { padding: 12px 10px; border-bottom: 1px solid #e5e9ee; text-align: left; }
.document-table th { color: #657382; background: #f5f7fa; font-weight: 600; }
.document-table th:last-child, .document-table td:last-child { width: 130px; white-space: nowrap; }
.document-table a { color: #073d80; overflow-wrap: anywhere; }
.document-date { color: #7f8a96; font-size: 13px; }
.document-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 18px; color: #697481; font-size: 13px; }
.document-pagination button { border: 1px solid #cbd6e1; background: #fff; color: #073d80; padding: 6px 11px; cursor: pointer; }
.document-pagination button:disabled { color: #9ca8b3; cursor: default; }
.loading-state { color: #818b96; }

.related-card { margin-top: 28px; min-height: 230px; padding: 20px; }
.related-card h2 { color: #073d80; font-size: 16px; margin: 0 0 18px; }
.related-list { display: flex; flex-wrap: wrap; gap: 20px; }
.related-teacher { width: 90px; text-align: center; }
.related-teacher img { display: block; width: 88px; height: 108px; object-fit: cover; }
.related-teacher h3 { font-size: 13px; font-weight: 500; margin: 7px 0 0; }
.related-teacher p { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: #7a838d; margin: 3px 0 0; }
.site-footer { margin-top: 40px; padding: 22px 0; background: #fff; border-top: 1px solid #e2e5e9; color: #78818d; font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }
.footer-record { width: min(1168px, calc(100% - 48px)); margin-inline: auto; margin-top: 10px; text-align: center; }
.footer-contact { width: min(1168px, calc(100% - 48px)); margin: 12px auto 0; padding-top: 12px; border-top: 1px dashed #e2e5e9; text-align: center; line-height: 1.9; }
.footer-contact p { margin: 0; }
.footer-contact a { color: #78818d; text-decoration: none; }
.footer-contact a:hover, .footer-contact a:focus-visible { color: #073d80; text-decoration: underline; }
.footer-record a { color: #78818d; text-decoration: none; }
.footer-record a:hover, .footer-record a:focus-visible { color: #073d80; text-decoration: underline; }
.footer-record .record-sep { margin: 0 10px; color: #c3c9d2; }
.footer-record .police-icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }

@media (max-width: 1000px) {
  .brand img { width: 190px; }
  .brand span { font-size: 16px; }
  .site-nav { gap: 16px; }
  .profile-mark { display: none; }
  .teacher-meta { justify-content: flex-end; }
}

@media (max-width: 760px) {
  .header-inner, .page-shell, .footer-inner, .footer-record, .footer-contact { width: min(100% - 32px, 560px); }
  .header-inner { padding: 12px 0; flex-direction: column; align-items: flex-start; gap: 6px; }
  .brand img { width: 174px; max-height: 40px; }
  .brand span { font-size: 15px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 8px; }
  .site-nav a { font-size: 12px; }
  .page-shell { padding-top: 16px; }
  .teacher-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .teacher-photo { width: 92px; height: 116px; }
  .name-line { gap: 6px; }
  .name-line h1 { font-size: 23px; }
  .unit { width: 100%; margin-left: 0; padding-left: 0; border: 0; }
  .position { margin: 4px 0 8px; }
  .contact-list { gap: 6px 12px; }
  .teacher-meta { grid-column: 1 / -1; align-items: flex-start; }
  .main-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .section-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu-item { min-height: 42px; padding: 0 10px; font-size: 13px; border-right: 1px solid #e5e8ec; }
  .menu-arrow { display: none; }
  .link-box { display: none; }
  .content-card { min-height: 320px; padding: 24px 20px; }
  .related-card { margin-top: 16px; min-height: 205px; }
  .footer-inner { flex-direction: column; gap: 4px; }
}

@media (max-width: 400px) {
  .brand { gap: 8px; }
  .brand img { width: 150px; }
  .brand span { font-size: 13px; }
  .teacher-card { grid-template-columns: 76px minmax(0, 1fr); }
  .teacher-photo { width: 76px; height: 96px; }
}
