:root {
  color-scheme: dark;
  --background: #262626;
  --foreground: #e6e4e0;
  --muted: #aaa8a4;
  --line: #c8c7c4;
  --accent: #f44542;
  --card: #292929;
  --card-border: #424242;
  font-family: SimHei, "Heiti SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { min-width: 280px; background: var(--background); }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: var(--foreground); }
html[lang="en"] { font-family: "Helvetica Neue", Arial, SimHei, "Heiti SC", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.container { width: calc(100% - 80px); max-width: 1600px; margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; left: 24px; top: 16px; padding: 12px 16px; background: var(--foreground); color: var(--background); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.masthead { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: start; column-gap: 28px; min-height: 238px; padding-block: 25px 20px; border-bottom: 3px solid var(--line); }
.identity { min-width: 0; max-width: 100%; justify-self: start; }
.identity-logo-frame { display: flex; align-items: center; width: 200px; max-width: 100%; height: 150px; }
.identity-logo { display: block; width: 100%; height: auto; aspect-ratio: 1092 / 300; overflow: hidden; }
.identity-caption { display: block; width: fit-content; max-width: 100%; padding-top: 8px; border-top: 2px solid var(--line); color: #cbc9c5; font-size: 20px; line-height: 1.5; letter-spacing: .08em; overflow-wrap: anywhere; }
html[lang="en"] .identity-caption { letter-spacing: .04em; }
.navigation { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 60px; }
.nav-link { font-size: 16px; line-height: 1.6; white-space: nowrap; text-underline-offset: 5px; text-decoration-thickness: 1px; text-decoration-line: underline; text-decoration-color: transparent; transition: color 150ms, text-decoration-color 150ms; }
.nav-link:hover, .nav-link:focus-visible { color: var(--accent); text-decoration-color: currentColor; }
.nav-link[aria-current] { color: var(--accent); text-decoration-color: currentColor; }
.language-button { margin-top: 51px; min-height: 38px; min-width: 46px; padding: 6px 10px; color: var(--foreground); background: transparent; border: 1px solid #62605c; cursor: pointer; font-size: 13px; letter-spacing: .04em; transition: border-color 150ms, color 150ms; }
.language-button:hover, .language-button:focus-visible, .language-button:active { color: var(--accent); border-color: var(--accent); }
.content { flex: 1; padding-top: 36px; }
.content--empty { min-height: 320px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 36px; }
.project-link { display: block; min-width: 0; }
.project-card { position: relative; display: block; aspect-ratio: 376 / 553; min-width: 0; overflow: hidden; background: var(--card); border: 1px solid var(--card-border); transition: background-color 180ms, border-color 180ms; }
.project-cover { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.project-link[data-project="academic-1"] .project-cover { transform: scale(1.03); }
.project-name { display: block; max-width: 100%; margin-top: 3%; color: #cbc9c5; text-align: center; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-size: 20px; line-height: 1.6; letter-spacing: .02em; overflow-wrap: anywhere; transition: color 150ms; }
.project-link:hover .project-card { background: #2d2d2d; border-color: var(--accent); }
.project-link:focus-visible .project-card { border-color: var(--accent); }
.project-link:hover .project-name, .project-link:focus-visible .project-name { color: var(--accent); }
.project-index { margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line); }
.project-index-navigation { margin-bottom: 36px; }
.back-to-projects { font-size: 16px; line-height: 1.8; text-decoration: underline; text-underline-offset: 4px; transition: color 150ms; }
.back-to-projects:hover, .back-to-projects:focus-visible { color: var(--accent); }
.about-layout { display: grid; grid-template-columns: minmax(0, min(35%, 360px)) minmax(0, 1fr); align-items: start; gap: 34px; }
.about-photo { display: block; min-width: 0; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: var(--card); border: 1px solid var(--card-border); }
.about-copy { min-width: 0; color: var(--foreground); font-size: 18px; line-height: 1.8; overflow-wrap: anywhere; }
.about-copy p { margin: 0 0 1.2em; }
.about-name { margin: 0 0 20px; font-size: 32px; font-weight: 700; line-height: 1.4; }
.about-copy .about-thanks { margin-top: 28px; }
.about-contact { font-style: normal; }
.about-copy .about-contact-heading { margin-bottom: 6px; }
.about-contact-items { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.about-contact-item { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; min-width: 0; max-width: 100%; }
.about-contact a { text-decoration: underline; text-underline-offset: 4px; transition: color 150ms; }
.about-contact a:hover, .about-contact a:focus-visible { color: var(--accent); }
.project-detail { max-width: 1120px; margin-inline: auto; }
.detail-intro { margin: 16px 0 32px; }
.detail-title { max-width: 900px; margin: 0 auto 28px; text-align: center; font-size: 44px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.detail-description { max-width: 790px; margin: 0 auto; font-size: 16px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.detail-gallery { display: grid; gap: 30px; }
.detail-figure { min-width: 0; margin: 0; }
.detail-image-link { display: block; cursor: zoom-in; }
.detail-image { display: block; width: 100%; height: auto; }
.detail-video-frame { width: 100%; aspect-ratio: var(--media-ratio, 16 / 9); overflow: hidden; background: #111; }
.detail-video { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
.detail-video-link { display: inline-block; margin-left: 14px; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.detail-video-link:hover, .detail-video-link:focus-visible { color: var(--accent); }
.detail-caption { margin: 0; padding-top: 12px; color: var(--foreground); text-align: center; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
body.image-viewer-open { overflow: hidden; }
.image-viewer { position: fixed; inset: 0; width: min(1440px, calc(100vw - 48px)); max-width: none; max-height: calc(100svh - 32px); margin: auto; padding: 48px 48px 28px; border: 1px solid #424242; color: var(--foreground); background: #1b1b1b; }
.image-viewer::backdrop { background: rgb(0 0 0 / .9); }
.image-viewer-figure { margin: 0; }
.image-viewer-image { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 180px); margin-inline: auto; object-fit: contain; }
.image-viewer-caption { margin-top: 12px; text-align: center; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.image-viewer-caption:empty { display: none; }
.image-viewer-count { position: absolute; top: 18px; left: 48px; color: var(--muted); font-size: 13px; }
.image-viewer button { position: absolute; display: grid; place-items: center; padding: 0; border: 0; color: var(--foreground); background: transparent; cursor: pointer; }
.image-viewer button:hover, .image-viewer button:focus-visible { color: var(--accent); }
.image-viewer-close { top: 8px; right: 8px; width: 36px; height: 36px; font-size: 28px; }
.image-viewer-previous, .image-viewer-next { top: 50%; width: 38px; height: 54px; transform: translateY(-50%); font-size: 42px; }
.image-viewer-previous { left: 3px; }
.image-viewer-next { right: 3px; }
.site-footer { margin-top: 80px; padding-block: 12px 40px; }
.social-list { display: flex; justify-content: center; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.social-item { position: relative; display: flex; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 6px; color: #a6a4a0; background: none; border: 0; border-radius: 0; cursor: pointer; transition: color 150ms; }
.social-icon svg { display: block; width: 24px; height: 24px; }
.social-icon:hover, .social-icon:focus-visible { color: var(--accent); }
.social-icon[aria-disabled="true"] { cursor: default; }
.social-tooltip { position: absolute; bottom: calc(100% + 9px); left: 50%; z-index: 2; transform: translateX(-50%); padding: 6px 9px; white-space: nowrap; font-size: 12px; line-height: 1.4; background: #353535; border: 1px solid #555; color: var(--foreground); visibility: hidden; opacity: 0; transition: opacity 120ms; pointer-events: none; }
.social-item:hover .social-tooltip, .social-item:focus-within .social-tooltip { visibility: visible; opacity: 1; }
@media (min-width: 1024px) and (max-width: 1150px) {
  .masthead { column-gap: 20px; }
  .navigation { gap: 16px; }
  .nav-link { font-size: 14px; }
}
@media (max-width: 1023px) {
  .container { width: calc(100% - 48px); }
  .masthead { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "identity language" "navigation navigation"; row-gap: 28px; padding-block: 36px 28px; min-height: 0; }
  .identity { grid-area: identity; }
  .identity-logo-frame { width: 160px; height: 120px; }
  .identity-caption { margin-top: 12px; font-size: 18px; }
  .navigation { grid-area: navigation; margin: 0; gap: 28px; }
  .language-button { grid-area: language; margin-top: 3px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .about-layout { gap: 24px; }
  .content { padding-top: 28px; }
}
@media (max-width: 599px) {
  .container { width: calc(100% - 40px); }
  .masthead { padding-block: 30px 24px; column-gap: 12px; row-gap: 26px; }
  .identity-logo-frame { width: 128px; height: 96px; }
  .identity-caption { font-size: 14px; letter-spacing: .04em; }
  .navigation { gap: 12px 22px; }
  .nav-link { font-size: 13px; line-height: 1.8; }
  .language-button { min-width: 42px; min-height: 34px; margin-top: 0; font-size: 12px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .project-index { margin-top: 56px; padding-top: 20px; }
  .project-index-navigation { margin-bottom: 24px; }
  .about-layout { grid-template-columns: minmax(0, 1fr); }
  .about-photo { max-width: 280px; }
  .about-name { font-size: 28px; }
  .detail-intro { margin-top: 4px; margin-bottom: 24px; }
  .detail-title { margin-bottom: 20px; font-size: 30px; line-height: 1.4; }
  .detail-gallery { gap: 20px; }
  .detail-caption { padding-top: 10px; font-size: 14px; }
  .image-viewer { width: calc(100vw - 16px); padding: 48px 28px 24px; }
  .image-viewer-count { left: 28px; }
  .image-viewer-previous, .image-viewer-next { width: 26px; font-size: 34px; }
  .content { padding-top: 24px; }
  .content--empty { min-height: 240px; }
  .site-footer { margin-top: 56px; padding-bottom: 28px; }
  .social-list { gap: clamp(12px, 4vw, 25px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
