:root {
  --ink: #0a142d;
  --muted: #606570;
  --paper: #faf9f6;
  --line: #dddcd7;
  --focus: #40647b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; scrollbar-color: #89929a var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Georgia, "Times New Roman", "Songti SC", SimSun, serif; -webkit-font-smoothing: antialiased; }
::selection { background: #cedce3; color: var(--ink); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; padding: 0; background: none; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
a:hover, button:hover { color: #46657a; }
img { display: block; max-width: 100%; }
p { margin: 0 0 16px; }
h2, h3 { font-weight: 400; text-wrap: balance; }
h2 { font-size: clamp(34px, 3vw, 44px); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 22px; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.015em; margin: 0 0 12px; }
.shell { width: 88%; max-width: 1440px; margin-inline: auto; }
.section { padding-block: 56px; }
.section-border { border-top: 1px solid var(--line); }
.section-number { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.section-number span { height: 1px; width: 48px; background: #a7adb7; }
.short-rule { display: block; width: 32px; height: 1px; background: #b4b9c0; margin: 20px 0; }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; }
.text-link span { font-family: Arial, sans-serif; font-size: 21px; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.site-header { height: 72px; background: var(--paper); position: relative; z-index: 10; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: 19px; white-space: nowrap; }
.wordmark > span { font-size: 30px; letter-spacing: 2px; }
.wordmark small { font-size: 11px; letter-spacing: 3px; }
.site-header nav, .site-footer nav { display: flex; align-items: center; gap: 32px; font-size: 16px; }
.site-header nav a, .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-divider { height: 23px; width: 1px; background: #aeb0b7; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.icon-link svg { width: 23px; height: 23px; }
.menu-toggle { display: none; }
.hero { min-height: 560px; height: clamp(560px, 40vw, 640px); position: relative; color: var(--paper); background: #0d1a25 url('assets/moonlit.webp') center / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #040e1766, transparent 68%), linear-gradient(0deg, #020a1630, transparent 45%); }
.hero-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.hero-copy { padding-block: 32px; }
.hero h1 { margin: 0 0 30px; font-size: 96px; line-height: .95; font-weight: 400; letter-spacing: 8px; }
.hero h1 span { display: block; font-size: 25px; letter-spacing: 13px; margin-top: 17px; }
.hero-motto { font-size: 34px; line-height: 1.16; letter-spacing: .2px; margin-bottom: 28px; }
.hero-description { font-size: 20px; line-height: 1.5; margin: 22px 0; }
.hero-link { font-size: 17px; }
.hero a:hover { color: #d4e4ed; }
.hero a:focus-visible { outline-color: #e1edf4; }
.hero-aside { text-align: right; padding-top: 18px; }
.chinese-motto { display: flex; justify-content: flex-end; gap: 8px; line-height: 1.5; letter-spacing: 4px; font-size: 18px; }
.chinese-motto span { writing-mode: vertical-rl; }
.vertical-rule { width: 1px; height: 100px; background: #dadbde; margin: 28px 34px 22px auto; }
.hero-aside p { font: 10px/1.8 Arial, sans-serif; letter-spacing: 2px; }
.about { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 32px; }
.about-copy { padding-right: 12px; }
.about-copy p { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 48ch; }
.about-copy .question { margin: 24px 0 0; }
.about-copy strong { display: inline-block; color: var(--ink); font-weight: 600; margin-top: 7px; }
.about-copy strong br { display: none; }
.story { margin: 0; min-width: 0; }
.story > img { width: 100%; height: auto; aspect-ratio: 1.24; object-fit: cover; }
.story figcaption { padding-top: 20px; }
.story h3 { font-size: 18px; margin-bottom: 8px; }
.story p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }
.story .short-rule { width: 28px; margin: 14px 0; }
.story h3[lang="zh"], .story .poem { font-family: "STKaiti", "华文楷体", "KaiTi", "楷体", serif; font-weight: 400; line-height: 1.5; letter-spacing: .8px; }
.story h3[lang="zh"] { font-size: 18px; }
.story .poem { font-size: 19px; color: var(--ink); }
.research, .principles { display: grid; grid-template-columns: minmax(210px, .9fr) repeat(3, minmax(0, 1fr)); gap: 24px; }
.section-intro { min-width: 0; padding-right: 12px; }
.section-intro p { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 42ch; }
.section-intro .text-link { margin-top: 4px; }
.research-card { min-width: 0; border-left: 1px solid var(--line); padding-left: 24px; }
.research-card > img { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: contain; margin: 0 0 24px; mix-blend-mode: multiply; }
.research-card h3 { font-size: 21px; min-height: 2.6em; }
.research-card h3 button { text-align: left; min-height: 44px; }
.research-card h3 button:hover { text-decoration: underline; }
.research-card p { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 0; }
.principle { text-align: center; border-left: 1px solid var(--line); padding: 10px 12px 0 24px; }
.principle svg { width: 83px; height: 58px; margin-bottom: 18px; fill: none; stroke: var(--ink); stroke-width: 1.3; }
.principle h3 { font-size: 23px; margin-bottom: 8px; }
.principle .principle-cn { font-size: 21px; letter-spacing: 6px; color: var(--ink); margin: 0 0 12px; padding-left: 6px; }
.principle p { font-size: 16px; color: var(--muted); line-height: 1.5; margin-bottom: 0; }
.work { display: grid; grid-template-columns: minmax(210px, .9fr) minmax(0, 3fr); gap: 24px; }
.work-content { min-width: 0; }
.view-all { display: flex; width: fit-content; margin: -6px 0 24px auto; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.work-item { display: flex; width: 100%; text-align: left; gap: 16px; align-items: flex-start; }
.work-item > img { width: 72px; height: 96px; object-fit: cover; flex-shrink: 0; }
.work-item > span { min-width: 0; }
.work-item small { display: block; font: 11px/1.5 Arial, sans-serif; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.work-item h3 { font-size: 17px; line-height: 1.4; margin-bottom: 14px; }
.work-item h3 br { display: none; }
.work-item:hover h3 { text-decoration: underline; }
.work-item p { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0 0 12px; }
.work-item time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.work-note { color: var(--muted); font-size: 15px; line-height: 1.6; border-top: 1px solid var(--line); margin: 28px 0 0; padding-top: 20px; }
.site-footer { color: #f7f7f6; background: linear-gradient(#050f18b8, #050f18b8), url('assets/moonlit.webp') center 72% / cover; padding: 42px 0 24px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-bottom: 26px; border-bottom: 1px solid #ffffff40; }
.footer-brand > span { font-size: 35px; }
.footer-top p { font-size: 16px; line-height: 1.5; margin: 10px 0 0; }
.site-footer nav { gap: 24px; font-size: 15px; }
.site-footer .nav-divider { background: #ffffff66; }
.site-footer a:hover, .site-footer button:hover { color: #c2dbe9; }
.site-footer :focus-visible { outline-color: #d4e4ed; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; color: #dce0e5; font-size: 13px; line-height: 1.5; align-items: center; }
.footer-bottom p { margin: 0; }
.footer-bottom > div { display: flex; gap: 24px; }
.footer-bottom button { min-height: 44px; }
.skip-link { position: absolute; top: -80px; left: 15px; z-index: 100; background: var(--paper); padding: 12px; }
.skip-link:focus { top: 10px; }
dialog { width: min(620px, calc(100% - 36px)); max-height: 85dvh; overflow: auto; padding: 48px; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 24px 100px #0005; }
dialog::backdrop { background: #071522bf; }
.dialog-close { position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; font: 30px Georgia; }
.eyebrow { font: 11px/1.5 Arial, sans-serif; letter-spacing: .12em; color: var(--muted); margin-bottom: 16px; }
dialog h2 { font-size: 36px; }
#detail-body p { font-size: 17px; line-height: 1.65; color: var(--muted); }
#detail-body .detail-note { font-size: 14px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.dialog-back { margin-top: 10px; }
body.modal-open { overflow: hidden; }
@media (max-width: 1200px) {
  .research, .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .research > .section-intro, .principles > .section-intro { grid-column: 1 / -1; }
  .research > .section-intro p, .principles > .section-intro p { max-width: 64ch; }
  .research-card:first-of-type, .principle:first-of-type { border-left: 0; padding-left: 0; }
  .work { grid-template-columns: 1fr; gap: 0; }
  .work h2 { margin-bottom: 0; }
  .view-all { margin-top: -44px; }
  .about { grid-template-columns: 1.1fr 1fr 1fr; gap: 24px; }
  .about-copy p { font-size: 17px; }
}
@media (max-width: 900px) {
  .site-header nav { gap: 18px; }
  .hero-aside { display: none; }
  .about { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .about-copy { grid-column: 1 / -1; padding: 0; }
  .about-copy p { max-width: 66ch; }
  .work-grid { gap: 24px; }
  .work-item { flex-direction: column; }
  .work-item > img { width: 84px; height: 108px; }
  .footer-top { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 40px); }
  .section { padding-block: 40px; }
  .site-header { height: 64px; }
  .wordmark { gap: 13px; }
  .wordmark > span { font-size: 27px; }
  .wordmark small { font-size: 11px; letter-spacing: 2px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; width: 44px; height: 44px; }
  .menu-toggle span { display: block; width: 23px; height: 1px; background: var(--ink); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-header nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 20px; gap: 4px 24px; flex-wrap: wrap; font-size: 17px; }
  .site-header nav.is-open { display: flex; }
  .site-header nav .nav-divider { display: none; }
  .hero { height: 570px; min-height: 570px; background-position: 63% center; }
  .hero-shade { background: linear-gradient(90deg, #061321a6, #06132120), linear-gradient(0deg, #06132155, transparent); }
  .hero h1 { font-size: 76px; letter-spacing: 5px; margin-bottom: 30px; }
  .hero h1 span { font-size: 19px; letter-spacing: 10px; }
  .hero-motto { font-size: 29px; }
  .hero-description { font-size: 18px; max-width: 290px; }
  .hero-link { font-size: 16px; }
  .about-copy p { font-size: 17px; }
  .research, .principles { grid-template-columns: 1fr; gap: 28px; }
  .research-card, .research-card:first-of-type { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .research-card > img { max-width: 420px; margin: 0 auto 20px; }
  .research-card h3 { min-height: 0; font-size: 23px; margin-bottom: 8px; }
  .research-card p { font-size: 17px; }
  .principle, .principle:first-of-type { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
  .principle svg { margin-bottom: 12px; }
  .work h2 { margin-bottom: 16px; }
  .view-all { margin: 0 0 20px; }
  .work-grid { grid-template-columns: 1fr; gap: 24px; }
  .work-item { flex-direction: row; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
  .work-item h3 { font-size: 19px; }
  .work-item p { font-size: 15px; }
  .work-item time { font-size: 14px; }
  .site-footer nav { flex-wrap: wrap; gap: 8px 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  dialog { padding: 48px 24px 28px; }
  dialog h2 { font-size: 30px; }
}
@media (max-width: 480px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .story > img { aspect-ratio: 1.35; }
  .story h3 { font-size: 20px; }
  .story p { font-size: 16px; }
  .story h3[lang="zh"] { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
