:root {
  --ink: #171817;
  --muted: #5f5d58;
  --paper: #f8f6f0;
  --surface: #ffffff;
  --line: #ded9cf;
  --accent: #7b3f3f;
  --link: #365f7f;
  --placeholder: #ece7dd;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

body.is-viewer-open {
  overflow: hidden;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header,
.home-section,
.content-section,
.site-footer {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 28px;
  align-items: center;
  padding: 28px 0 18px;
  background: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--ink);
}

.nav-links .i18n-zh,
.menu-toggle .i18n-zh {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.menu-toggle {
  display: none;
  justify-self: end;
  padding: 11px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.1;
}

.home-section {
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line);
}

.home-hero {
  position: relative;
}

.home-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(23, 24, 23, 0.12), rgba(65, 39, 71, 0.7)),
    linear-gradient(90deg, rgba(23, 24, 23, 0.4), rgba(23, 24, 23, 0.06));
}

.home-banner {
  display: block;
  width: 100%;
  height: clamp(180px, 31vw, 360px);
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  background: var(--placeholder);
}

.home-hero-copy {
  position: absolute;
  left: clamp(24px, 6vw, 58px);
  right: clamp(24px, 6vw, 58px);
  bottom: clamp(26px, 6vw, 56px);
  z-index: 1;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.home-hero-copy h1,
.home-hero-copy .role-line,
.home-hero-copy .name-local {
  color: #ffffff;
}

.mobile-statement {
  display: none;
}

.home-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 58px);
  padding-top: 34px;
}

.profile-card {
  display: grid;
  align-content: start;
  gap: 20px;
}

.portrait-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--placeholder);
}

.portrait-placeholder,
.image-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  background:
    linear-gradient(135deg, transparent 49%, rgba(0, 0, 0, 0.08) 49% 51%, transparent 51%),
    var(--placeholder);
  text-align: center;
}

.portrait-placeholder {
  min-height: 270px;
  padding: 24px;
}

.image-placeholder {
  min-height: 150px;
  padding: 18px;
  font-size: 14px;
}

.button-link {
  display: inline-block;
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
}

.know-me-button {
  margin-top: 12px;
}

.section-back {
  margin-top: 34px;
}

.contact-block h2 {
  margin: 0 0 8px;
  font: inherit;
  font-weight: 700;
}

.contact-block a,
.social-links a {
  display: block;
  margin-top: 8px;
}

.home-intro {
  min-width: 0;
}

.home-intro h2 {
  overflow-wrap: normal;
}

.home-intro h2 .i18n-zh {
  white-space: nowrap;
  overflow-wrap: normal;
  font-size: clamp(20px, 2.6vw, 26px);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.05;
}

.name-local {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.62em;
  font-weight: 500;
}

.role-line,
.tagline {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.55;
}

.tagline {
  margin-top: 12px;
  max-width: 720px;
  font-weight: 700;
}

.divider {
  width: 100%;
  height: 1px;
  margin: 28px 0;
  background: var(--line);
}

h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 23px;
  line-height: 1.25;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.i18n-en,
.i18n-zh {
  display: block;
}

.i18n-zh {
  margin-top: 0.36em;
  color: color-mix(in srgb, currentColor 70%, transparent);
  font-size: 0.78em;
  font-weight: 500;
  line-height: 1.55;
}

p .i18n-zh,
li .i18n-zh,
time .i18n-zh {
  font-size: 0.82em;
}

h2 .i18n-zh {
  font-size: 0.68em;
}

h3 .i18n-zh {
  font-size: 0.76em;
}

.text-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.content-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 24px;
}

.section-intro {
  max-width: 960px;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.68;
}

.section-intro .i18n-en {
  white-space: pre-line;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.about-diagram-wrap {
  position: relative;
}

.about-diagram {
  display: block;
  width: 100%;
  height: auto;
}

.diagram-note {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
}

.diagram-note span {
  display: block;
}

.diagram-note span[lang="zh-CN"] {
  margin-top: 4px;
  font-size: 0.86em;
}

.diagram-hotspot {
  position: absolute;
  z-index: 2;
  display: block;
  border-radius: 12px;
  outline: 0;
}

.diagram-hotspot:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.hotspot-research {
  top: 16%;
  left: 38%;
  width: 29%;
  height: 18%;
}

.hotspot-fieldwork {
  top: 37%;
  left: 73%;
  width: 25%;
  height: 19%;
}

.hotspot-writing {
  top: 70%;
  left: 62%;
  width: 28%;
  height: 18%;
}

.hotspot-teaching {
  top: 70%;
  left: 17%;
  width: 31%;
  height: 18%;
}

.hotspot-projects {
  top: 38%;
  left: 4%;
  width: 31%;
  height: 18%;
}

.feature-grid article {
  display: grid;
  gap: 14px;
}

.entry-list,
.project-list {
  display: grid;
  gap: 24px;
}

.research-table-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.research-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.research-table th,
.research-table td {
  padding: 14px 12px;
  vertical-align: top;
  text-align: left;
}

.research-table thead th {
  border-bottom: 1.5px solid var(--ink);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.research-table tbody tr + tr td {
  border-top: 1px solid rgba(23, 24, 23, 0.12);
}

.research-table th:nth-child(1),
.research-table td:nth-child(1) {
  width: 72px;
  white-space: nowrap;
}

.research-table th:nth-child(2),
.research-table td:nth-child(2) {
  width: 220px;
}

.research-table th:nth-child(3),
.research-table td:nth-child(3) {
  width: 220px;
}

.research-table th:nth-child(5),
.research-table td:nth-child(5) {
  width: 110px;
  white-space: nowrap;
}

.fieldwork-table-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.fieldwork-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

.fieldwork-table th,
.fieldwork-table td {
  padding: 16px 14px;
  vertical-align: top;
  text-align: left;
}

.fieldwork-table thead th {
  border-bottom: 1.5px solid var(--ink);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fieldwork-table tbody tr + tr td {
  border-top: 1px solid rgba(23, 24, 23, 0.12);
}

.fieldwork-table th:nth-child(1),
.fieldwork-table td:nth-child(1) {
  width: 96px;
  white-space: nowrap;
}

.fieldwork-table th:nth-child(2),
.fieldwork-table td:nth-child(2) {
  width: 280px;
}

.fieldwork-table th:nth-child(3),
.fieldwork-table td:nth-child(3) {
  width: 170px;
}

.research-training {
  margin-top: 54px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

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

.training-list article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(23, 24, 23, 0.14);
}

.training-list article:nth-child(-n + 2) {
  border-top-color: var(--ink);
}

.training-year {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.training-list h4 {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.3;
}

.training-list p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.entry-list article,
.project-list article {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.entry-list article:last-child,
.project-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

time {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.blog-list {
  display: grid;
  gap: 38px;
}

.blog-list article {
  max-width: 820px;
}

.blog-list h3 {
  margin: 0;
  font-family: Inter, "Noto Sans SC", sans-serif;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.blog-list h3 a {
  color: #a36bb2;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.blog-title-en {
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.read-more {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(23, 24, 23, 0.28);
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
}

.project-list article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.teaching-scope-figure,
.detail-image-figure {
  margin: 42px 0 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.teaching-scope-button,
.detail-image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
}

.teaching-scope-button img,
.detail-image-button img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(23, 24, 23, 0.16);
  background: var(--surface);
}

.teaching-scope-button span,
.detail-image-button span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(23, 24, 23, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
  background: rgba(12, 12, 12, 0.92);
}

.image-viewer[hidden] {
  display: none;
}

.image-viewer-stage {
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.image-viewer-stage img {
  display: block;
  max-width: none;
  width: var(--viewer-width, min(1120px, 170vw));
  height: auto;
  margin: 0 auto;
  user-select: none;
  -webkit-user-drag: none;
}

.image-viewer-close,
.image-viewer-controls button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 800;
}

.image-viewer-close {
  justify-self: end;
  padding: 0 16px;
}

.image-viewer-controls {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  gap: 10px;
}

.teaching-detail {
  display: grid;
  gap: 42px;
  margin-top: 44px;
}

.teaching-block {
  padding-top: 26px;
  border-top: 2px solid var(--ink);
}

.teaching-block-heading {
  margin-bottom: 18px;
}

.teaching-block-heading h3 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 40px);
}

.course-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.course-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
}

.course-table th,
.course-table td {
  padding: 14px 12px;
  border-top: 1px solid rgba(23, 24, 23, 0.14);
  text-align: left;
  vertical-align: top;
}

.course-table thead th {
  border-top: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.course-table td:nth-child(1) {
  font-weight: 800;
}

.course-table td:nth-child(2),
.course-table td:nth-child(4) {
  white-space: nowrap;
}

.course-table-compact {
  min-width: 560px;
}

.teaching-feature-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  counter-reset: teaching-feature;
  list-style: none;
}

.teaching-feature-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  counter-increment: teaching-feature;
}

.teaching-feature-list li:first-child {
  border-top: 0;
}

.teaching-feature-list li::before {
  color: var(--accent);
  content: counter(teaching-feature, decimal-leading-zero);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.teaching-feature-list strong {
  grid-column: 2;
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
}

.teaching-feature-list p {
  grid-column: 2;
  max-width: 820px;
  margin: 0;
  font-size: 16px;
  line-height: 1.72;
}

.score-carousel {
  display: grid;
  grid-template-columns: 44px minmax(0, 360px) 44px;
  grid-template-areas:
    "prev image next"
    ". counter .";
  align-items: center;
  justify-content: start;
  gap: 12px;
  padding: 2px 0 14px;
}

.score-slide {
  grid-area: image;
  display: grid;
  width: min(100%, 360px);
  height: 360px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(23, 24, 23, 0.16);
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  cursor: zoom-in;
  overflow: hidden;
}

.score-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.score-nav {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.score-nav-prev {
  grid-area: prev;
}

.score-nav-next {
  grid-area: next;
}

.score-nav:active {
  transform: translateY(1px);
}

.score-counter {
  grid-area: counter;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.experience-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.experience-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--accent);
  color: #ffffff;
  background: var(--accent);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
}

.experience-link:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
}

.teaching-contact-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 34px;
}

.teaching-note,
.assistant-wechat {
  max-width: 680px;
  margin-bottom: 10px;
  font-size: 16px;
}

.platform-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.platform-list div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.platform-list dt {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.platform-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.project-detail {
  display: grid;
  gap: 42px;
  margin-top: 44px;
}

.project-block {
  padding-top: 26px;
  border-top: 2px solid var(--ink);
}

.project-block-heading {
  margin-bottom: 18px;
}

.project-block-heading h3 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 40px);
}

.project-link-list {
  display: grid;
  gap: 10px;
}

.project-link-list a {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.project-link-list a:first-child {
  border-top-color: var(--ink);
}

.project-link-list a:hover {
  color: var(--accent);
  text-decoration: none;
}

.project-link-list strong {
  font-size: 18px;
  line-height: 1.35;
}

.project-link-list span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.project-step-list,
.project-outcome-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: project-item;
}

.project-step-list li,
.project-outcome-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  counter-increment: project-item;
}

.project-step-list li:first-child,
.project-outcome-list li:first-child {
  border-top: 0;
}

.project-step-list li::before,
.project-outcome-list li::before {
  color: var(--accent);
  content: counter(project-item, decimal-leading-zero);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.project-step-list strong,
.project-outcome-list strong {
  grid-column: 2;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.project-step-list p,
.project-outcome-list p {
  grid-column: 2;
  max-width: 840px;
  margin: 0;
  font-size: 16px;
  line-height: 1.72;
}

.project-step-list p + p {
  margin-top: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 0 46px;
  color: var(--muted);
}

.footer-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.site-footer a {
  color: #a267b5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-header,
.privacy-page,
.privacy-footer {
  width: min(920px, calc(100% - 44px));
  margin: 0 auto;
}

.privacy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 34px 0 18px;
}

.privacy-back {
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.privacy-page {
  padding: 54px 0 74px;
}

.privacy-hero {
  padding-bottom: 34px;
  border-bottom: 3px solid var(--ink);
}

.privacy-hero h1 {
  margin: 16px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 8vw, 82px);
  line-height: 0.98;
}

.privacy-subtitle {
  margin: 0 0 28px;
  color: #a267b5;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
}

.privacy-hero p,
.privacy-content p,
.privacy-content li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.privacy-content article {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.privacy-content h2 {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 22px;
  letter-spacing: 0.03em;
}

.privacy-content h3 {
  margin: 26px 0 10px;
  color: var(--ink);
  font-size: 19px;
}

.privacy-content ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 18px;
  padding-left: 1.4em;
}

.privacy-content a {
  color: var(--link);
  text-decoration: underline;
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    justify-content: stretch;
  }

  .site-header.is-menu-open .nav-links {
    display: grid;
  }

  .nav-links a {
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    text-align: center;
  }

  .home-grid,
  .project-list article,
  .teaching-contact-block,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .profile-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-intro {
    order: -1;
  }

  .portrait-placeholder {
    min-height: 220px;
  }

  .training-list {
    grid-template-columns: 1fr;
  }

  .training-list article:nth-child(-n + 2) {
    border-top-color: rgba(23, 24, 23, 0.14);
  }

  .training-list article:first-child {
    border-top-color: var(--ink);
  }

  .teaching-detail {
    gap: 32px;
    margin-top: 32px;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .teaching-scope-figure,
  .detail-image-figure {
    margin-top: 30px;
    padding: 14px 0 18px;
  }

  .teaching-scope-button,
  .detail-image-button {
    overflow: hidden;
    border: 1px solid rgba(23, 24, 23, 0.16);
    background: var(--surface);
  }

  .teaching-scope-button img,
  .detail-image-button img {
    width: 100%;
    min-width: 0;
    border: 0;
  }

  .teaching-scope-button span,
  .detail-image-button span {
    right: 10px;
    bottom: 10px;
    font-size: 12px;
  }

  .teaching-block {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding-top: 22px;
  }

  .teaching-block-heading h3 {
    font-size: 28px;
    line-height: 1.12;
  }

  .course-table-wrap {
    overflow-x: visible;
    border-top: 0;
    border-bottom: 0;
  }

  .course-table,
  .course-table thead,
  .course-table tbody,
  .course-table tr,
  .course-table th,
  .course-table td {
    display: block;
  }

  .course-table {
    min-width: 0;
    font-size: 15px;
  }

  .course-table thead {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .course-table tbody {
    display: grid;
    gap: 14px;
  }

  .course-table tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    padding: 16px;
    border: 1px solid rgba(23, 24, 23, 0.14);
    background: rgba(255, 255, 255, 0.64);
  }

  .course-table td {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 0;
    border-top: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .course-table td::before {
    content: attr(data-label);
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
  }

  .course-table td:nth-child(1) {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    padding-bottom: 4px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
  }

  .course-table td:nth-child(1)::before {
    display: none;
  }

  .course-table td:nth-child(2),
  .course-table td:nth-child(4) {
    white-space: normal;
  }

  .teaching-feature-list li {
    display: block;
    padding: 18px 0;
  }

  .teaching-feature-list li::before,
  .teaching-feature-list strong,
  .teaching-feature-list p {
    grid-column: auto;
  }

  .teaching-feature-list li::before {
    display: block;
    margin-bottom: 8px;
  }

  .teaching-feature-list strong {
    font-size: 19px;
  }

  .teaching-feature-list p {
    max-width: none;
    font-size: 15px;
    line-height: 1.72;
    overflow-wrap: anywhere;
  }

  .score-carousel {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    justify-content: stretch;
    gap: 8px;
  }

  .score-slide {
    width: 100%;
    height: min(72vw, 320px);
    font-size: 14px;
  }

  .score-nav {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .experience-link-grid {
    gap: 7px;
    justify-content: center;
    margin-top: 10px;
  }

  .experience-link {
    min-height: 42px;
    padding: 0 14px;
    font-size: 15px;
  }

  .platform-list div {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .project-detail {
    gap: 32px;
    width: 100%;
    min-width: 0;
    margin-top: 32px;
    overflow-x: hidden;
  }

  .project-block {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding-top: 22px;
  }

  .project-block-heading h3 {
    font-size: 28px;
    line-height: 1.12;
  }

  .project-link-list a {
    padding: 13px 0;
  }

  .project-link-list strong {
    font-size: 17px;
    line-height: 1.42;
  }

  .project-link-list span {
    font-size: 13px;
    line-height: 1.48;
    overflow-wrap: anywhere;
  }

  .project-step-list li,
  .project-outcome-list li {
    display: block;
    padding: 18px 0;
  }

  .project-step-list li::before,
  .project-outcome-list li::before {
    display: block;
    margin-bottom: 8px;
  }

  .project-step-list strong,
  .project-outcome-list strong,
  .project-step-list p,
  .project-outcome-list p {
    grid-column: auto;
  }

  .project-step-list strong,
  .project-outcome-list strong {
    display: block;
    font-size: 19px;
  }

  .project-step-list p,
  .project-outcome-list p {
    max-width: none;
    font-size: 15px;
    line-height: 1.72;
    overflow-wrap: anywhere;
  }

  .privacy-header .brand {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .content-section,
  .site-footer {
    width: min(100% - 44px, 1040px);
  }

  .content-section {
    padding-top: 96px;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    grid-template-columns: 1fr;
    padding: 24px 22px 0;
    background: transparent;
    pointer-events: none;
  }

  .brand {
    display: none;
  }

  .menu-toggle {
    justify-self: end;
    pointer-events: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--ink);
    font-size: 0;
    line-height: 1;
  }

  body[data-route="overview"] .menu-toggle {
    color: #ffffff;
  }

  .menu-toggle::before {
    content: "☰";
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
  }

  .menu-toggle .i18n-en,
  .menu-toggle .i18n-zh {
    display: none;
  }

  .site-header.is-menu-open {
    background: transparent;
    padding-bottom: 18px;
  }

  .site-header.is-menu-open .nav-links {
    display: grid;
    grid-template-columns: 1fr;
    width: min(280px, calc(100vw - 44px));
    justify-self: end;
    margin-top: 12px;
    padding: 10px 0;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    pointer-events: auto;
  }

  .site-header.is-menu-open .nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 20px;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 38px;
    text-align: left;
    white-space: nowrap;
  }

  .nav-links .i18n-zh {
    display: inline;
    margin-top: 0;
    color: var(--muted);
    font-size: 0.86em;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
  }

  .home-section {
    width: 100%;
    padding-bottom: 42px;
    border-bottom: 0;
    background: #ffffff;
  }

  .content-section,
  .site-footer {
    background: var(--paper);
  }

  .privacy-header {
    position: static;
    width: min(100% - 44px, 920px);
    padding: 24px 0 12px;
    background: transparent;
  }

  .privacy-header .brand {
    display: inline-flex;
  }

  .privacy-page {
    width: min(100% - 44px, 920px);
    padding-top: 42px;
  }

  .privacy-footer {
    width: min(100% - 44px, 920px);
    align-items: flex-start;
  }

  .privacy-hero h1 {
    font-size: 48px;
  }

  .privacy-subtitle {
    font-size: 28px;
  }

  .privacy-hero p,
  .privacy-content p,
  .privacy-content li {
    font-size: 16px;
    line-height: 1.72;
  }

  .home-hero {
    min-height: 430px;
    overflow: hidden;
    color: #ffffff;
  }

  .home-banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.88) contrast(0.94) blur(0.5px);
    transform: scale(1.02);
  }

  .home-hero-copy {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 72px;
    z-index: 1;
    display: block;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  }

  .home-hero-copy h1 {
    color: #ffffff;
    font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.02;
  }

  .home-hero-copy .name-local {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.72em;
    font-weight: 700;
  }

  .home-hero-copy .role-line {
    color: #ffffff;
    font-size: 27px;
    line-height: 1.24;
  }

  .mobile-statement {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    width: calc(100% - 56px);
    margin: 42px auto 54px;
    padding: 22px 26px;
    border-radius: 8px;
    background: #f1e5f3;
  }

  .statement-mark {
    color: var(--accent);
    font-size: 34px;
    line-height: 1;
  }

  .mobile-statement .tagline {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
  }

  .home-grid {
    width: min(100% - 44px, 1040px);
    margin: 0 auto;
    padding-top: 0;
  }

  .home-intro {
    order: initial;
  }

  .home-intro > .tagline {
    display: none;
  }

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

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .home-intro h2 .i18n-zh {
    white-space: normal;
    font-size: 0.72em;
  }

  p {
    font-size: 16px;
  }
}
