:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: #fff9f1;
  background: #183951;
  font-synthesis: none;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.scene { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.scene picture { display: block; width: 100%; height: 100%; }
.scene-art {
  width: 100%; height: 100%; object-fit: cover; object-position: 64% center;
  animation: sea-drift 18s ease-in-out infinite alternate;
  transform-origin: 72% 35%;
}
.scene::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15, 31, 58, .62), rgba(15, 31, 58, .13) 48%, transparent 72%), linear-gradient(0deg, rgba(12, 36, 53, .75), transparent 35%);
}
.page {
  position: relative; width: min(100%, 1536px); min-height: 100svh;
  margin-inline: auto; padding: 28px 48px 22px;
  display: flex; flex-direction: column;
}
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.identity { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; text-shadow: 0 1px 8px #16354b; }
.identity img { width: 32px; height: 32px; object-fit: contain; }
.motion-toggle {
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
  border: 1px solid #ffcda879; border-radius: 50%; background: #183951b8; color: #ffd5ac;
}
.motion-toggle:hover { background: #294d65; }
button:focus-visible { outline: 3px solid #fff0ae; outline-offset: 5px; }
main { width: min(100%, 520px); margin-block: auto; padding-block: 68px 48px; }
.heading { margin-bottom: 30px; text-shadow: 0 2px 20px #18293999; }
.theme { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: #ffcfac; }
.theme span { margin-inline: 9px; color: #ff927c; }
h1 { margin: 0; font-size: 56px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
h1 span { color: #ffaf7c; }
.intro { margin: 16px 0 0; font-size: 15px; line-height: 1.8; color: #fff0df; }
.links { display: grid; gap: 12px; width: min(100% - 20px, 414px); }
.links button {
  position: relative; display: flex; align-items: center; gap: 18px; min-height: 56px;
  width: 100%; padding: 12px 31px 12px 18px; text-align: left;
  background: transparent; border: 0; border-left: 4px solid #ffb18a;
  font-size: 16px; font-weight: 700; isolation: isolate;
}
.links button::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(26, 44, 78, .84); border-block: 1px solid #e2c2a943;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  transition: background-color .2s;
}
.links button:nth-child(2) { margin-left: 4px; }
.links button:nth-child(3) { margin-left: 8px; border-left-color: #ff8e91; }
.links button:nth-child(3)::before { background: #623c50df; }
.links button:nth-child(4) { margin-left: 12px; }
.links button:nth-child(5) { margin-left: 16px; }
.links button:hover::before { background: #3c5976; }
.links button:disabled { cursor: wait; opacity: .7; }
.number { flex: 0 0 22px; color: #ffd3ac; font: 12px ui-monospace, monospace; }
.arrow { margin-left: auto; font-size: 21px; font-weight: 400; color: #ffd3ac; }
#nav-status { margin: 20px 0 0; padding: 12px 16px; background: #243f54; border-left: 3px solid #ffc3a1; color: #fff; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid #d9d8dd40; color: #f3d1b8; font-size: 11px; }
@keyframes sea-drift { from { transform: scale(1.012) translateX(-2px); } to { transform: scale(1.025) translateX(2px); } }
html[data-motion="paused"] .scene-art, html[data-motion="hidden"] .scene-art { animation-play-state: paused; }
@media (min-width: 1600px) { main { padding-block: 90px; } }
@media (max-width: 1000px) and (min-width: 701px) {
  .page { padding-inline: 30px; }
  h1 { font-size: 44px; }
  main { width: 420px; }
  .links { width: 350px; }
}
@media (max-width: 700px) {
  .page { padding: 18px 22px 20px; }
  .scene { position: absolute; height: 650px; }
  .scene picture { height: 460px; }
  .scene-art { object-position: 72% top; transform-origin: 75% 24%; }
  .scene::after { background: linear-gradient(0deg, #183951 20%, rgba(24, 57, 81, .75) 36%, transparent 63%); }
  main { width: 100%; margin-block: 0; padding-block: 164px 34px; }
  .heading { margin-bottom: 23px; }
  .theme { margin-bottom: 9px; font-size: 12px; }
  h1 { font-size: 36px; }
  .intro { font-size: 13px; margin-top: 10px; }
  .links { width: calc(100% - 16px); gap: 10px; }
  .links button { min-height: 54px; padding-left: 13px; gap: 13px; font-size: 15px; }
  footer { margin-top: auto; }
}
@media (max-width: 350px) {
  .page { padding-inline: 16px; }
  h1 { font-size: 32px; }
  main { padding-top: 158px; }
  .links button { gap: 10px; }
  footer { font-size: 10px; }
}
