:root {
  color-scheme: light;
  --paper: #f2f5ef;
  --ink: #112820;
  --muted: #466055;
  --line: #cfdad1;
  --green: #164c3a;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(ellipse at 92% 8%, #ddebe4 0%, transparent 44rem); }
body:has(dialog[open]) { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a, summary { outline-offset: 6px; }
:focus-visible { outline: 2px solid #276d50; }
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 5; top: -5rem; left: 1rem; padding: .75rem 1rem; background: white; }
.skip:focus { top: 1rem; }
.shell { width: min(1280px, calc(100% - 2 * clamp(1.25rem, 5vw, 5rem))); margin-inline: auto; }
.glass {
  border: 1px solid rgb(255 255 255 / .64);
  background: linear-gradient(132deg, rgb(255 255 255 / .64), rgb(255 255 255 / .18));
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .74), inset 0 -1px 0 rgb(17 42 34 / .1), 0 8px 26px rgb(18 62 45 / .08);
  backdrop-filter: blur(18px) saturate(145%);
}

.masthead { min-height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.25rem; font-weight: 700; }
.brand small { margin-left: .45rem; color: var(--muted); font-family: ui-monospace, monospace; font-size: .8rem; font-weight: 500; letter-spacing: .17em; }
.masthead nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2.5rem); font-size: .9375rem; }
.masthead nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .35em; }
.nav-download { border-radius: 50px; padding: .6rem 1.1rem; }
.nav-download:hover { background-color: #fff; }

.hero { display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); gap: clamp(1.5rem, 4.4vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 5.15vw, 5rem); }
.hero-copy { padding-bottom: .5rem; animation: enter 850ms var(--ease) both; }
.kicker { display: inline-flex; align-items: center; gap: .55rem; margin: 0; color: #285c49; font-size: .875rem; font-weight: 650; letter-spacing: .12em; }
.kicker > span, .sample-dot { display: inline-block; width: .52rem; height: .52rem; border-radius: 50%; background: #509376; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: 'Noto Serif SC', 'Songti SC', 'STSong', SimSun, serif; }
h1 { margin-block: 1.3rem 1.5rem; font-size: clamp(2.375rem, 4.6vw, 4.3rem); line-height: 1.19; letter-spacing: -.055em; font-weight: 700; }
h1 span { display: block; color: #214d3e; }
.intro { max-width: 29rem; color: var(--muted); line-height: 1.85; font-size: clamp(1rem, 1.45vw, 1.13rem); margin-bottom: 1.8rem; }
.hero-actions { display: flex; align-items: center; gap: 1rem 1.35rem; flex-wrap: wrap; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 50px; border: 1px solid #164332; border-radius: 100px; padding: .8rem 1.2rem; background: linear-gradient(145deg, #285e49, #154534 76%); color: white; font-size: .9375rem; font-weight: 650; box-shadow: inset 0 1px 0 #ffffff38, 0 4px 12px #275b4033; transition: translate 220ms var(--ease), box-shadow 220ms var(--ease); }
.cta[href]:hover { translate: 0 -2px; box-shadow: inset 0 1px 0 #ffffff38, 0 10px 20px #275b4038; }
.cta[aria-disabled="true"] { color: #edf4ee; background: #476458; border-color: #476458; box-shadow: none; cursor: default; }
.windows { width: .88rem; height: .88rem; display: inline-block; position: relative; background: currentColor; }
.windows::before, .windows::after { content: ''; position: absolute; background: #255441; }
.windows::before { width: 1px; inset: 0 auto 0 calc(50% - .5px); }
.windows::after { height: 1px; inset: calc(50% - .5px) 0 auto; }
.text-button { min-height: 44px; border: 0; padding: 0 .2rem; background: transparent; color: var(--green); font-size: .9375rem; text-decoration: underline; text-underline-offset: .35em; text-decoration-color: #83998d; }
.text-button:hover { text-decoration-color: var(--green); }
.release-status { margin: .76rem 0 0; min-height: 1.4em; font-size: .875rem; line-height: 1.4; color: var(--muted); }
.hero-image { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1.24; border-radius: clamp(1.25rem, 3vw, 2.5rem); background: #0c2923; box-shadow: 0 24px 56px #163b2522; animation: enter 1100ms var(--ease) both; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image::after { content: ''; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(transparent, #071f1dc9); backdrop-filter: blur(12px); mask-image: linear-gradient(transparent, #000); pointer-events: none; }
.hero-caption { position: absolute; z-index: 1; right: 5%; bottom: 6%; display: flex; align-items: center; gap: .65rem; padding: .75rem 1rem; border-radius: 1rem; border-color: #ffffff47; color: #e5f6ef; background: linear-gradient(145deg, #b9e7d831, #10332b65); box-shadow: inset 0 1px 1px #ffffff50, 0 8px 32px #0004; font-size: .82rem; line-height: 1.55; }
.hero-caption strong { font-size: .95rem; font-weight: 600; }
.caption-mark { display: inline-block; flex: 0 0 22px; width: 22px; height: 22px; border: 1px solid #e8fff0a8; border-radius: 45% 55% 48% 52%; background: radial-gradient(ellipse at 35% 24%, #e3fff0ef, #84caad31 54%, #b8fae382); box-shadow: inset 0 1px 2px #fff8; }
@keyframes enter { from { opacity: 0; transform: translate3d(18px, 0, 0); } }

.work { border-top: 1px solid var(--line); padding-block: clamp(1.5rem, 4.3vw, 3.3rem) 3.25rem; scroll-margin-top: 1.5rem; }
.work-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.work h2 { font-size: clamp(1.85rem, 3.15vw, 2.7rem); margin: 0; letter-spacing: -.06em; }
.tabs { display: flex; gap: .25rem; padding: .25rem; border: 1px solid #c9d7cc; border-radius: 50px; background: #e6eee7; }
.tabs button { border: 0; background: transparent; padding: .65rem 1rem; border-radius: 100px; font-size: .875rem; white-space: nowrap; transition: background-color 200ms, color 200ms; }
.tabs button[aria-selected="false"]:hover { background: #f2f8f2; }
.tabs [aria-selected="true"] { background: #173e30; color: white; }
.showcase { overflow: clip; border-radius: 1.5rem; }
.showcase-track { display: flex; transition: transform 600ms var(--ease); }
[data-view="1"] .showcase-track { transform: translateX(-100%); }
[data-view="2"] .showcase-track { transform: translateX(-200%); }
.scene { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(1.2rem, 4vw, 4rem); align-items: center; padding: clamp(1.25rem, 4.4vw, 3.75rem); background: radial-gradient(ellipse at 92% 20%, #f5f9ee, transparent 70%), #dbe9df; }
.scene:focus-visible { outline-offset: -4px; }
.scene-write { background: radial-gradient(ellipse at 92% 20%, #fffff0, transparent 70%), #e7ead8; }
.scene-model { background: radial-gradient(ellipse at 92% 20%, #f0fcfa, transparent 70%), #dceae7; }
.scene h3 { font-size: clamp(1.35rem, 2.5vw, 2.1rem); margin-bottom: .55rem; letter-spacing: -.04em; }
.scene p { margin: 0; max-width: 27rem; line-height: 1.8; color: #355346; }
.sample { display: grid; gap: .35rem; padding: .9rem; border-radius: 1.15rem; }
.sample-head { display: flex; gap: .45rem; align-items: center; margin: .1rem .2rem .35rem; font-size: .875rem; font-weight: 650; }
.sample-note { margin-left: auto; color: var(--muted); font-weight: 400; font-size: .8125rem; }
.sample-item { min-width: 0; display: flex; gap: .55rem; align-items: center; border-radius: .5rem; padding: .65rem .55rem; background: #f9fff8ad; font-size: .875rem; }
.sample-item span:last-child { margin-left: auto; color: var(--muted); font-size: .8125rem; }
.file-icon { width: .7rem; height: .875rem; flex: 0 0 .7rem; border: 1px solid #668679; border-radius: .15rem; }
.footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; padding-block: 1.3rem 2.4rem; }

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  max-height: none;
  max-width: 100%;
  width: min(100%, 470px);
  height: 100%;
  margin: 0;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  overflow-y: auto;
  color: var(--ink);
  background: linear-gradient(160deg, #f5faf3fa, #e1eee5f5 67%, #f1f9eff5);
  border-radius: 1.6rem 0 0 1.6rem;
  box-shadow: -20px 0 90px #0b251c4f, inset 1px 1px 1px white;
  transform: translateX(100%);
  opacity: .4;
  transition: transform 480ms var(--ease), opacity 280ms, display 480ms allow-discrete, overlay 480ms allow-discrete;
}
.drawer[open] { transform: translateX(0); opacity: 1; }
.drawer::backdrop { background: transparent; transition: background-color 400ms, backdrop-filter 400ms, display 480ms allow-discrete, overlay 480ms allow-discrete; }
.drawer[open]::backdrop { background: #061d1660; backdrop-filter: blur(7px); }
@starting-style {
  .drawer[open] { transform: translateX(100%); opacity: .4; }
  .drawer[open]::backdrop { background: transparent; backdrop-filter: blur(0); }
}
.drawer-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 100%; border: 1px solid #bad1c2; background: #fff8; font-size: 1.75rem; line-height: 1; }
.close:hover { background: white; }
.drawer h2 { margin-block: 1.15rem .6rem; font-size: 2.25rem; letter-spacing: -.07em; }
.drawer-lead, .install-note, .drawer ol { color: var(--muted); line-height: 1.8; }
.drawer hr { border: 0; border-top: 1px solid #bbd0c2; margin-block: 1.5rem; }
.drawer h3 { margin-bottom: .45rem; }
.drawer ol { margin-top: 0; padding-left: 1.3em; }
.install-note { font-size: .875rem; }
.drawer details { font-size: .875rem; }
.drawer summary { color: var(--green); cursor: pointer; }
.drawer details code { display: block; margin-top: .5rem; padding: .7rem; overflow-wrap: anywhere; border: 1px solid #c4d5c9; border-radius: .5rem; background: #fffb; }

@media (max-width: 760px) {
  .masthead { min-height: 68px; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-image { aspect-ratio: 1.45; }
  .work-heading { align-items: flex-start; flex-direction: column; }
  .scene { grid-template-columns: 1fr; align-content: start; }
}
@media (max-width: 390px) {
  .brand small { display: none; }
  .masthead nav { gap: .65rem; }
  .nav-download { padding-inline: .75rem; }
  .drawer { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
