@charset "UTF-8";

:root {
  --paper: #eae4d9;
  --ink: #302d2b;
  --reading: #3c3734;
  --muted: #6b625c;
  --panel: #c3b9ab;
  --edge: #6e6258;
  --frame: color-mix(in srgb, var(--ink) 22%, var(--paper));
  --accent: #95483b;
  --accent-hover: #783c32;
  --accent-press: #603129;
  --amber: #a37843;
  --amber-light: #edc781;
  --mist: #566676;
  --mist-light: #c1cdd9;
  --veil-strong: rgb(235 226 209 / .63);
  --veil-soft: rgb(235 226 209 / .20);
  --sheet: clamp(16px, 2.6vw, 36px);
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", serif;
  --sans: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  font: 15px/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
  font-synthesis: none;
  scrollbar-color: #a89888 var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, a { color: inherit; -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; border-radius: 0; background: none; }
button:disabled { cursor: default; opacity: .5; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, canvas:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
/* 水面铺满裁切容器，焦点框向内收，键盘操作时仍清楚可见。 */
#water:focus-visible { outline: 2px solid #f0e7c8; outline-offset: -8px; }
::selection { color: var(--paper); background: var(--ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #b3a79a; border: 3px solid var(--paper); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 12px; padding: 12px 18px; background: var(--paper); z-index: 20; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 10;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--sheet);
  overflow: visible;
  transition: opacity .45s ease;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* 原始 Logo 只通过窗口裁切展示，不重绘、不调色。 */
.brand-symbol { display: block; position: relative; width: 70px; aspect-ratio: 1060 / 424; overflow: hidden; mix-blend-mode: darken; flex: none; }
.brand-symbol img { position: absolute; width: 118.3%; height: auto; max-width: none; left: -9.1%; top: -48.1%; }
/* 共用已确认的繁体中英组合，保留原英文字形及两组文字的相对比例。 */
.brand-wordmark { display: block; width: 204px; height: auto; flex: none; }
.about-link {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--mist);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.about-link:hover { text-decoration-line: underline; }
.header-links { display: flex; align-items: center; gap: 26px; flex: none; }
.studio-guestbook-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--accent); border-bottom: 1px solid var(--frame); font-size: 14px; }
.studio-guestbook-link:hover { border-color: var(--accent); }
.guestbook-link[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.language-switch { position: relative; flex: none; }
.language-switch svg { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.language-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 11px;
  color: var(--muted);
  font-size: 12px;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* 边框收进触控区域，视觉轻巧，点击范围仍保留 44px。 */
.language-trigger::before { content: ""; position: absolute; inset: 5px 0; border: 1px solid color-mix(in srgb, var(--ink) 23%, var(--paper)); border-radius: 2px; transition: border-color .18s, background-color .18s; z-index: -1; }
.language-trigger::-webkit-details-marker { display: none; }
.language-trigger > span { min-width: 24px; text-align: center; }
.language-trigger:hover, .language-switch[open] .language-trigger { color: var(--ink); }
.language-trigger:hover::before, .language-switch[open] .language-trigger::before { background: color-mix(in srgb, var(--ink) 4%, var(--paper)); border-color: var(--edge); }
.language-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.language-globe { width: 16px; height: 16px; }
.language-chevron { width: 10px; height: 10px; transition: transform .18s; }
.language-switch[open] .language-chevron { transform: rotate(180deg); }
.language-options {
  position: absolute;
  top: calc(100% + 3px);
  right: 0;
  width: 152px;
  padding: 5px;
  border: 1px solid var(--frame);
  border-radius: 2px;
  background: var(--paper);
}
.language-options button { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 44px; padding: 0 12px; color: var(--muted); font-size: 13px; text-align: left; }
.language-options button:hover, .language-options button:focus-visible { background: color-mix(in srgb, var(--ink) 6%, var(--paper)); color: var(--ink); }
.language-options button:focus-visible { outline: 1px solid var(--accent); outline-offset: -2px; }
.language-options button[aria-pressed="true"] { color: var(--accent); }
.language-options button svg { width: 14px; height: 14px; visibility: hidden; }
.language-options button[aria-pressed="true"] svg { visibility: visible; }
[data-i18n] { white-space: pre-line; }

/* 英文按自身字宽排版，保留纸面与原画之间的留白。 */
:root:lang(en) { --serif: Georgia, "Times New Roman", serif; }
:lang(en) .hero-copy { top: 10%; }
:lang(en) h1 { font-size: clamp(46px, 4.4vw, 70px); line-height: 1.08; letter-spacing: -.025em; }
:lang(en) .hero-description { max-width: 24em; margin: 20px 0 24px; line-height: 1.8; letter-spacing: 0; }
:lang(en) :is(.about-link, .explore-button, .return-button, .scene-control, .water-hint, .under-scene a, .site-footer, .site-footer span) { letter-spacing: 0; }
:lang(en) .studio h2 { font-size: clamp(36px, 4.3vw, 56px); line-height: 1.2; letter-spacing: -.02em; }
:lang(en) .studio p { line-height: 1.85; }
:lang(en) .island-whisper { max-width: min(90%, 32em); letter-spacing: .015em; line-height: 1.5; }
:lang(en) .under-scene { height: auto; min-height: 56px; }
:lang(en) .under-scene a { white-space: normal; line-height: 1.5; }
:lang(en) body.is-exploring .under-scene { min-height: 0; }

.hero {
  position: relative;
  isolation: isolate;
  /* 静态探索会缩放整个 scene；外框同样不能被焦点滚动。 */
  overflow: clip;
  margin: 0 var(--sheet);
  min-height: 520px;
  height: calc(100svh - 132px);
  max-height: min(1120px, calc((100vw - 2 * var(--sheet)) / 1.62));
  border: 1px solid var(--frame);
  background: var(--panel);
  transition: border-color .5s ease;
}
.scene, .scene-backdrop, #water, .scene-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
/* 全场景共用色彩处理，使水面、装饰与静态回退的色调一致，取景坐标保持原样。 */
/* 只裁切，不创建滚动容器，避免聚焦门窗时浏览器把放大的场景整体滚走。 */
.scene { --scene-zoom: 1.12; --scene-focus-y: 35%; z-index: -3; overflow: clip; filter: url(#scene-palette); }
/* 原画与静态灯光采用同一取景；动态绘制和点击投影读取此基础倍率。 */
.scene-backdrop, .scene-lighting {
  object-fit: cover;
  object-position: 100% var(--scene-focus-y);
  transform: scale(var(--scene-zoom));
  transform-origin: 100% var(--scene-focus-y);
}
.scene-lighting, #window-lights { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.window-light-button, .door-button, .pier-lamp-button { position: absolute; padding: 0; border: 0; background: transparent; pointer-events: auto; touch-action: pan-y pinch-zoom; cursor: pointer; }
.window-light-button:focus-visible, .door-button:focus-visible, .pier-lamp-button:focus-visible { outline: 2px solid #e6c78f; outline-offset: 1px; }
.scene-boats, .scene-atmosphere, .scene-door, .scene-fox { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* 船素材的浅木色与描边反差偏强；先压低高光和黄调，再进入全场景暖灰处理。 */
.scene-boats { filter: brightness(.84) saturate(.72) contrast(.9); }
/* 保留赤赭色的辨识度；局部去色会与全景暖灰滤镜叠加，让狐狸变成灰色。 */
.scene-fox { filter: saturate(1.15) brightness(1.03); }
.scene-incense { position: absolute; pointer-events: none; }
#water { display: block; touch-action: pan-y pinch-zoom; cursor: crosshair; }
.scene-shade {
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 38% 58% at 8% 28%, var(--veil-strong), var(--veil-soft) 70%, transparent),
    linear-gradient(0deg, rgb(28 28 32 / .16), transparent 22%);
  transition: opacity .8s var(--ease-out);
}
.hero.is-exploring .scene-shade { opacity: 0; }

/* 标题区的透明空隙不遮挡窗户；文字与探索按钮仍可选择、点击。 */
.hero-copy {
  position: absolute;
  pointer-events: none;
  top: 15%;
  left: 7.5%;
  transition: opacity .55s ease, transform .9s var(--ease-out);
}
.hero:not(.is-exploring) .hero-copy > * { pointer-events: auto; }
h1 {
  margin: 0;
  font: 400 clamp(48px, 5.1vw, 82px)/1.34 var(--serif);
  letter-spacing: .04em;
}
.hero-description {
  margin: 26px 0 30px;
  max-width: 14em;
  color: var(--ink);
  font-size: 15px;
  line-height: 2;
  letter-spacing: .06em;
}
.explore-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 48px;
  padding: 12px 20px 12px 22px;
  background: var(--accent);
  color: #f7f0e7;
  border: 1px solid var(--accent);
  font-size: 13px;
  letter-spacing: .14em;
  transition: background-color .2s;
}
.explore-button:hover { background: var(--accent-hover); }
.explore-button:active { background: var(--accent-press); }
.ink-line {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  transition: transform .45s var(--ease-out);
}
.explore-button .ink-line { width: 28px; color: var(--amber-light); }
.explore-button:hover .ink-line,
.return-button:hover .ink-line { transform: scaleX(1.6); }
.hero.is-exploring .hero-copy { opacity: 0; transform: translateY(-18px); pointer-events: none; }

.return-button {
  position: absolute;
  z-index: 3;
  left: max(22px, env(safe-area-inset-left));
  top: max(20px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 16px 8px 14px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: .16em;
  transition: background-color .2s;
}
.return-button:hover { background: var(--paper); }

.island-whisper {
  position: absolute;
  left: 50%;
  bottom: 20%;
  transform: translateX(-50%);
  display: grid;
  width: max-content;
  max-width: min(92%, 36em);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  font: 400 clamp(18px, 1.7vw, 26px)/1.7 var(--serif);
  letter-spacing: .16em;
  color: #f5f2df;
  text-shadow: 0 1px 8px #27242b;
  transition: opacity 1s ease;
}
.hero.is-exploring .island-whisper { opacity: 1; transition-delay: .55s; }
.island-whisper > span { grid-area: 1 / 1; opacity: 0; transition: opacity 1.1s ease; text-wrap: balance; }
.hero[data-whisper="quiet"] [data-whisper="quiet"],
.hero[data-whisper="figure"] [data-whisper="figure"],
.hero[data-whisper="lamp"] [data-whisper="lamp"],
.hero[data-whisper="gone"] [data-whisper="gone"] { opacity: 1; }

.keyboard-hint {
  position: absolute;
  left: 28px;
  bottom: 68px;
  z-index: 2;
  margin: 0;
  max-width: calc(100% - 56px);
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.7;
  opacity: 0;
  pointer-events: none;
}
.keyboard-hint span { display: block; }
.keyboard-hint span:empty { display: none; }
.hero:has(#water:focus-visible) .keyboard-hint { opacity: 1; }
.hero:has(#water:focus-visible) .island-whisper { opacity: 0; transition: none; }

.hero-bottom {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  color: #f9f4dc;
  pointer-events: none;
}
.water-hint {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 13px;
  letter-spacing: .04em;
  text-shadow: 0 1px 4px #27242b;
}
#water-hint-text { text-wrap: balance; }
.ripple-symbol { position: relative; flex: none; width: 21px; height: 7px; border: 1px solid currentColor; border-radius: 50%; color: var(--mist-light); }
.ripple-symbol::before { content: ""; position: absolute; left: 5px; top: -5px; width: 9px; height: 4px; border: 1px solid currentColor; border-radius: 50%; }
.scene-controls { display: flex; flex-shrink: 0; margin-left: auto; gap: 12px; align-items: center; pointer-events: auto; }
.scene-control { display: flex; align-items: center; gap: 8px; min-height: 44px; min-width: 64px; padding: 0; font-size: 13px; letter-spacing: .04em; }
.scene-control:hover { color: #fff9e4; }
.control-divider { width: 1px; height: 14px; background: currentColor; opacity: .35; }
.pause-icon, .play-icon { position: relative; width: 14px; height: 14px; flex: none; }
.pause-icon::before, .pause-icon::after { content: ""; position: absolute; top: 1px; width: 1.5px; height: 12px; background: currentColor; }
.pause-icon::before { left: 3px; }
.pause-icon::after { right: 3px; }
.play-icon { display: none; }
.play-icon::before { content: ""; position: absolute; left: 3px; top: 1px; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent currentColor; }
.scene-control[aria-pressed="true"] .pause-icon { display: none; }
.scene-control[aria-pressed="true"] .play-icon { display: block; }
.sound-bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 17px; height: 15px; }
.sound-bars i { width: 1.5px; height: 5px; background: currentColor; }
.sound-bars i:nth-child(2) { height: 12px; }
.sound-bars i:nth-child(3) { height: 8px; }
#sound-toggle[aria-pressed="true"] .sound-bars { color: var(--amber-light); }
#sound-toggle[aria-pressed="true"] .sound-bars i { animation: sound-wave 1.1s ease-in-out alternate infinite; }
#sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -.45s; }
#sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -.2s; }
@keyframes sound-wave { to { height: 14px; } }

.under-scene {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 var(--sheet);
  overflow: hidden;
  transition: opacity .4s ease;
}
.under-scene a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .14em;
  color: var(--mist);
  white-space: nowrap;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}
.under-scene a:hover { text-decoration-line: underline; }

/* 探索时纸边退去，画面占满这一屏。窄屏仍保留完整横画幅，不裁掉两侧山体。 */
body.is-exploring { overflow: hidden; }
body.is-exploring .studio,
body.is-exploring .site-footer { display: none; }
body.is-exploring .site-header,
body.is-exploring .under-scene {
  height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}
body.is-exploring .hero { margin-inline: 0; border-color: transparent; }

.studio {
  width: min(640px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(88px, 11vw, 132px) 0 clamp(96px, 11vw, 148px);
}
.studio-logo { display: grid; justify-items: center; gap: 6px; width: min(280px, 74vw); margin: 0 0 72px; }
.studio-logo .brand-symbol { width: 100%; }
.studio-logo .brand-wordmark { width: 100%; }
.studio h2 {
  margin: 0 0 36px;
  font: 400 clamp(36px, 4.6vw, 60px)/1.4 var(--serif);
  letter-spacing: .035em;
}
.studio p { margin: 0 0 1.15em; color: var(--reading); font-size: 17px; line-height: 1.95; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 22px var(--sheet) 28px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
}
.site-footer p { margin: 0; }
.site-footer span { font-family: var(--serif); letter-spacing: .16em; }
.site-footer a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--mist);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.site-footer a:hover { text-decoration-line: underline; }

@media (min-width: 1201px) {
  body.is-exploring .hero {
    position: fixed;
    inset: 0;
    z-index: 5;
    margin: 0;
    height: auto;
    max-height: none;
    min-height: 0;
    border-color: transparent;
  }
  .hero.is-exploring[data-renderer="static"] .scene { transform: scale(1.1); transform-origin: 100% 35%; }
}

@media (max-width: 1200px) {
  body.is-exploring { background: var(--panel); }
  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    padding-top: 236px;
    padding-bottom: 72px;
  }
  /* 中等宽度同样保留完整双翼，场景比例与手机一致。 */
  .scene, .hero.is-exploring .scene { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1.56; }
  .scene-shade { display: none; }
  .scene { --scene-zoom: 1.16; --scene-focus-y: 50%; }
  .hero.is-exploring[data-renderer="static"] .scene { transform: scale(1.02); transform-origin: 100% 50%; }
  .hero-copy {
    top: 32px;
    left: 6%;
    right: 6%;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, .85fr);
    column-gap: 6%;
    row-gap: 16px;
    align-items: end;
  }
  h1 { grid-column: 1; grid-row: 1 / span 2; font-size: clamp(40px, 4.8vw, 56px); }
  .hero-description { grid-column: 2; grid-row: 1; margin: 0; align-self: end; max-width: none; }
  .explore-button { grid-column: 2; grid-row: 2; justify-self: start; }
  .hero.is-exploring { padding-top: 76px; padding-bottom: 108px; }
  .hero-bottom { color: var(--ink); }
  .ripple-symbol { color: var(--mist); }
  #sound-toggle[aria-pressed="true"] .sound-bars { color: var(--accent); }
  .water-hint { text-shadow: none; }
  .island-whisper { bottom: 78px; color: var(--ink); text-shadow: none; font-size: 16px; letter-spacing: .1em; }
  .scene-control:hover { color: var(--ink); }
  .scene-control:hover .pause-icon,
  .scene-control:hover .play-icon,
  .scene-control:hover .sound-bars { color: var(--accent); }
  :lang(en) .hero-copy { top: 32px; }
  :lang(en) h1 { font-size: clamp(28px, 4.2vw, 50px); }
  :lang(en) .hero-description { margin: 0; max-width: none; }
}

@media (max-width: 900px) {
  .hero-copy { left: 5%; right: 5%; }
  .studio { width: min(640px, calc(100% - 56px)); }
}

@media (max-width: 640px) {
  .site-header { padding-inline: 20px; gap: 12px; }
  .brand { gap: 9px; }
  .brand-symbol { width: 58px; }
  .brand > .brand-wordmark { width: 180px; }
  .about-link { font-size: 12px; letter-spacing: .04em; }
  .header-links { gap: 10px; }
  .language-trigger { gap: 6px; padding-inline: 8px; }
  .language-globe { width: 14px; height: 14px; }
  .language-chevron { width: 8px; height: 8px; }
  :lang(en) .about-link { max-width: 64px; line-height: 1.35; }
  .hero { margin-inline: 12px; padding-top: 236px; padding-bottom: 76px; }
  .hero.is-exploring { padding-top: 72px; padding-bottom: 112px; }
  .hero-copy { top: 22px; left: 20px; right: 16px; display: block; }
  h1 { font-size: 36px; line-height: 1.36; letter-spacing: .03em; }
  .hero-description { max-width: 12em; margin: 14px 0 0; font-size: 13px; line-height: 1.85; letter-spacing: .02em; }
  .explore-button {
    position: absolute;
    right: 0;
    bottom: 0;
    gap: 14px;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
    letter-spacing: .08em;
  }
  .explore-button .ink-line { width: 18px; }
  .hero-bottom { left: 16px; right: 12px; gap: 8px; color: var(--ink); }
  .water-hint { font-size: 11px; gap: 7px; max-width: 146px; line-height: 1.7; letter-spacing: 0; text-shadow: none; }
  .ripple-symbol { width: 16px; height: 6px; }
  .ripple-symbol::before { width: 7px; left: 3px; }
  .scene-controls { gap: 4px; }
  .scene-control { font-size: 11px; gap: 4px; min-width: 52px; letter-spacing: 0; }
  .island-whisper { font-size: 14px; letter-spacing: .08em; max-width: 90%; bottom: 76px; }
  .return-button { left: 16px; top: 16px; letter-spacing: .1em; }
  .under-scene { padding-inline: 20px; }
  .under-scene a { font-size: 13px; letter-spacing: .06em; }
  .studio { width: min(640px, calc(100% - 40px)); padding: 72px 0 88px; }
  .studio-logo { margin-bottom: 48px; }
  .studio h2 { margin-bottom: 24px; font-size: clamp(28px, 7.6vw, 34px); }
  .studio p { font-size: 15px; }
  .site-footer { padding: 16px 20px 24px; font-size: 11px; }
  .site-footer > span { display: none; }
  .keyboard-hint { left: 14px; right: 14px; bottom: 62px; max-width: none; padding: 6px 9px; }
  /* 英文正文在自然文档流中增长，避免长句与探索按钮互相覆盖。 */
  :lang(en) .hero:not(.is-exploring) { display: flex; flex-direction: column; padding-top: 0; padding-bottom: 112px; }
  :lang(en) .hero:not(.is-exploring) .hero-copy { position: relative; order: -1; inset: auto; margin: 26px 20px 28px; }
  :lang(en) .hero:not(.is-exploring) .scene { flex: none; }
  /* 第二句完整保留在一行，和中文标题一样分为两拍。 */
  :lang(en) h1 { font-size: clamp(26px, 8.5vw, 44px); }
  :lang(en) .hero-description { margin-top: 18px; max-width: 27em; font-size: 14px; line-height: 1.75; }
  :lang(en) .explore-button { position: static; margin-top: 20px; padding-inline: 16px; }
  :lang(en) .hero-bottom { flex-direction: column; align-items: stretch; gap: 2px; }
  :lang(en) .water-hint { max-width: none; font-size: 12px; line-height: 1.5; }
  :lang(en) #water-hint-text { text-wrap: pretty; }
  :lang(en) .scene-controls { justify-content: flex-end; gap: 12px; }
  :lang(en) .scene-control { font-size: 12px; min-width: 56px; }
  :lang(en) .hero.is-exploring { padding-bottom: 154px; }
  :lang(en) .island-whisper { bottom: 114px; font-size: 15px; }
  :lang(en) .keyboard-hint { bottom: 108px; }
  :lang(en) .under-scene { padding-block: 7px; }
  :lang(en) .studio h2 { font-size: clamp(30px, 8.1vw, 40px); }
}

@media (max-width: 360px) {
  .site-header { padding-inline: 14px; gap: 8px; }
  .brand-symbol { width: 46px; }
  /* 320px 窄屏仍保留中英名称，并给同一行的语言菜单留下完整触控区域。 */
  .brand > .brand-wordmark { width: 160px; }
  .hero { margin-inline: 10px; padding-top: 286px; }
  .hero-copy { left: 16px; right: 12px; }
  .hero-description { max-width: none; }
  .explore-button { position: static; margin-top: 16px; padding-inline: 14px; gap: 12px; }
  .hero-bottom { left: 12px; right: 8px; }
  .water-hint { max-width: 108px; }
  .header-links { gap: 6px; }
  .language-trigger { gap: 5px; }
  :lang(en) .hero:not(.is-exploring) .hero-copy { margin-inline: 16px; }
}

/* 新增留言入口后，窄屏页眉分为品牌/语言与导航两行，保留全部入口。 */
@media (max-width: 540px) {
  .site-header { height: auto; min-height: 104px; display: grid; grid-template-columns: 1fr auto; gap: 0; padding-top: 12px; padding-bottom: 6px; }
  .header-links { display: contents; }
  .site-header .brand { grid-column: 1; grid-row: 1; }
  .site-header .language-switch { grid-column: 2; grid-row: 1; justify-self: end; }
  .site-header .about-link:not(.guestbook-link) { grid-column: 1; grid-row: 2; justify-self: start; }
  .site-header .guestbook-link { grid-column: 2; grid-row: 2; justify-self: end; }
  :lang(en) .site-header .about-link { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
}
