:root {
  --ink: #243d38;
  --ink-deep: #1a2e2a;
  --mute: #5d736d;
  --foam: #f3f7f5;
  --paper: #eef4f1;
  --jade: #6f958c;
  --jade-deep: #4d736b;
  --mist: #c5d9d3;
  --dawn: #e8d4b8;
  --dawn-soft: #f4e9d6;
  --line: rgba(36, 61, 56, 0.12);
  --line-strong: rgba(36, 61, 56, 0.2);
  --panel: rgba(255, 255, 255, 0.55);
  --shadow: 0 18px 50px rgba(36, 61, 56, 0.1);
  --radius: 22px;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-latin: "Instrument Serif", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--foam);
  overflow-x: hidden;
}

.page-wash {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 85% 8%, rgba(244, 233, 214, 0.7), transparent 60%),
    radial-gradient(700px 480px at 8% 35%, rgba(197, 217, 211, 0.65), transparent 55%),
    linear-gradient(180deg, #e8f1ee 0%, #f3f7f5 38%, #e7efec 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header,
main,
.site-footer,
.mobile-nav {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 3.5rem);
  backdrop-filter: blur(16px) saturate(1.1);
  background: rgba(243, 247, 245, 0.72);
  border-bottom: 1px solid rgba(36, 61, 56, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-seal {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
}

.nav {
  display: flex;
  gap: clamp(1.1rem, 3vw, 2.2rem);
}

.nav a {
  color: var(--mute);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  transition: color 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink-deep);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  padding: 0;
  place-items: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 0.95rem;
  height: 1.5px;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  position: sticky;
  top: 4.1rem;
  z-index: 35;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 1.25rem 1rem;
  background: rgba(243, 247, 245, 0.95);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a {
  padding: 0.75rem 0.4rem;
  color: var(--mute);
}

.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: grid;
  align-items: start;
  overflow: hidden;
  padding:
    clamp(9rem, 24vh, 15rem)
    clamp(1.25rem, 4vw, 3.5rem)
    clamp(3.5rem, 9vw, 7rem);
}

.hero-art {
  position: absolute;
  inset: 0;
}

.hero-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mist-1 {
  animation: mist-drift 22s ease-in-out infinite alternate;
}

.mist-2 {
  animation: mist-drift 28s ease-in-out infinite alternate-reverse;
}

.wave-a {
  animation: tide 10s ease-in-out infinite alternate;
}

.wave-b {
  animation: tide 13s ease-in-out infinite alternate-reverse;
}

.wave-c {
  animation: tide 16s ease-in-out infinite alternate;
}

.lantern-swing {
  transform-box: fill-box;
  transform-origin: top center;
  animation: sway 4.8s ease-in-out infinite;
}

.l-2 {
  animation-duration: 5.6s;
  animation-delay: -1.4s;
}

.petal {
  animation: float-petal 14s linear infinite;
}

.p2 {
  animation-duration: 18s;
  animation-delay: -4s;
}

.p3 {
  animation-duration: 16s;
  animation-delay: -8s;
}

.p4 {
  animation-duration: 20s;
  animation-delay: -2s;
}

@keyframes mist-drift {
  from {
    transform: translateX(-18px);
  }
  to {
    transform: translateX(28px);
  }
}

@keyframes tide {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3.5deg);
  }
}

@keyframes float-petal {
  0% {
    transform: translate(0, 0);
    opacity: 0.2;
  }
  20% {
    opacity: 0.65;
  }
  100% {
    transform: translate(40px, 120px);
    opacity: 0.1;
  }
}

.hero-copy {
  position: relative;
  max-width: 36rem;
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker {
  margin: 0 0 0.8rem;
  color: var(--jade-deep);
  letter-spacing: 0.22em;
  font-size: 0.95rem;
}

.hero-kicker em {
  font-family: var(--font-latin);
  font-style: italic;
  font-weight: 400;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 13vw, 8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.12em;
  color: var(--ink-deep);
  text-shadow: 0 12px 40px rgba(255, 255, 255, 0.35);
}

.hero-lead {
  margin: 0.85rem 0 1.6rem;
  max-width: 28rem;
  color: var(--mute);
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  font-weight: 300;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-primary {
  background: linear-gradient(135deg, #5f857c, #3f655e);
  color: #f7fbf9;
  box-shadow: 0 10px 28px rgba(63, 101, 94, 0.28);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 14px 34px rgba(63, 101, 94, 0.36);
}

.btn-ghost {
  border-color: rgba(36, 61, 56, 0.18);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(77, 115, 107, 0.45);
  background: rgba(255, 255, 255, 0.7);
}

.btn-soft {
  width: 100%;
  border-color: rgba(36, 61, 56, 0.12);
  background: rgba(243, 247, 245, 0.8);
  color: var(--mute);
}

.berth-body .btn {
  width: 100%;
}

.section {
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 4vw, 3.5rem);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.2rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--jade-deep);
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  font-weight: 500;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: var(--ink-deep);
}

.section h2 span {
  color: var(--jade-deep);
  font-weight: 500;
}

.section-desc {
  margin: 1rem 0 0;
  color: var(--mute);
  line-height: 1.9;
  font-weight: 300;
  max-width: 34rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.7rem;
}

.filter {
  border: 1px solid transparent;
  background: transparent;
  color: var(--mute);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.filter:hover,
.filter.is-active {
  border-color: rgba(77, 115, 107, 0.35);
  color: var(--ink-deep);
  background: rgba(255, 255, 255, 0.65);
}

.berth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.berth {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(36, 61, 56, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.berth:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 115, 107, 0.28);
  box-shadow: 0 24px 60px rgba(36, 61, 56, 0.14);
}

.berth.is-hidden {
  display: none;
}

.berth-media {
  position: relative;
  height: 168px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.berth-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.berth:hover .berth-cover {
  transform: scale(1.04);
}

.berth-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(180deg, transparent 55%, rgba(36, 61, 56, 0.08));
}

.berth-glyph {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.12em;
  color: rgba(26, 46, 42, 0.28);
}

.tone-a {
  background: linear-gradient(145deg, #cfe0db, #9fbfb6);
}

.tone-b {
  background: linear-gradient(145deg, #e8efe8, #b7c9b8);
}

.tone-c {
  background: linear-gradient(145deg, #dde8e4, #8eaea6);
}

.tone-d {
  background: linear-gradient(145deg, #efe6d8, #c8b79a);
}

.tone-e {
  background: linear-gradient(145deg, #d8e6e8, #9bb4b6);
}

.tone-f {
  background: linear-gradient(145deg, #e4ebe4, #a8c0b0);
}

.tone-g {
  background: linear-gradient(145deg, #ebe4de, #c4b0a4);
}

.tone-h {
  background: linear-gradient(145deg, #d9e5e1, #7f9f97);
}

.tone-i {
  background: linear-gradient(145deg, #dce8e3, #9fbfb6);
}

.tone-j {
  background: linear-gradient(145deg, #e4ebe4, #a8c0b0);
}

.tone-k {
  background: linear-gradient(145deg, #ebe6dc, #b5c4b0);
}

.berth-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.3rem 1.35rem;
  flex: 1;
}

.berth-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.berth-body p {
  margin: 0;
  color: var(--mute);
  line-height: 1.75;
  font-weight: 300;
  flex: 1;
}

.tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(77, 115, 107, 0.25);
  color: var(--jade-deep);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.45);
}

.tag-accent {
  border-color: rgba(184, 154, 106, 0.4);
  color: #8a6d3d;
  background: rgba(244, 233, 214, 0.55);
}

.berth--signal {
  background:
    linear-gradient(155deg, rgba(244, 233, 214, 0.55), rgba(197, 217, 211, 0.35)),
    rgba(255, 255, 255, 0.55);
  justify-content: center;
}

.berth--signal .berth-body {
  justify-content: center;
  min-height: 100%;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.challenge {
  padding-top: 1rem;
}

.challenge-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.4rem;
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  border: 1px solid rgba(36, 61, 56, 0.1);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.7), rgba(214, 230, 224, 0.45)),
    rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.challenge-meta {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.6rem 0 1.6rem;
  padding: 0;
}

.challenge-meta li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 0.2rem;
  border-top: 1px solid var(--line);
}

.challenge-meta strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.challenge-meta span {
  color: var(--mute);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.challenge-board {
  border: 1px solid rgba(36, 61, 56, 0.1);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.3rem;
  background: rgba(255, 255, 255, 0.55);
}

.board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.board-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.board-note {
  color: var(--mute);
  font-size: 0.78rem;
}

.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.board-list li {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem 0.65rem;
  border-radius: 14px;
  background: rgba(238, 244, 241, 0.75);
}

.rank {
  font-family: var(--font-display);
  color: var(--jade-deep);
  letter-spacing: 0.08em;
}

.name {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.board-list .board-diff {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(77, 115, 107, 0.28);
  background: rgba(255, 255, 255, 0.6);
  color: var(--jade-deep);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.35;
  white-space: nowrap;
}

.score {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.board-empty {
  margin: 1rem 0 0;
  color: var(--mute);
  font-size: 0.88rem;
  line-height: 1.65;
  font-weight: 300;
}

.board-empty[hidden],
.board-list[hidden] {
  display: none;
}

.voyage-list {
  display: grid;
  gap: 0;
}

.voyage {
  display: grid;
  grid-template-columns: 3.8rem 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1.35rem 0.2rem;
  border-bottom: 1px solid var(--line);
}

.voyage:first-child {
  border-top: 1px solid var(--line);
}

.voyage-code {
  font-family: var(--font-latin);
  font-size: 1.7rem;
  font-style: italic;
  color: var(--jade);
}

.voyage h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.voyage p {
  margin: 0;
  color: var(--mute);
  line-height: 1.7;
  font-weight: 300;
}

.voyage-status {
  color: #8a6d3d;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.contact-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.8rem;
  align-items: start;
}

.mail-link {
  display: inline-block;
  margin-top: 1.4rem;
  color: var(--jade-deep);
  font-family: var(--font-latin);
  font-size: 1.45rem;
  font-style: italic;
  border-bottom: 1px solid rgba(77, 115, 107, 0.35);
  transition: color 0.25s ease;
}

.mail-link:hover {
  color: var(--ink-deep);
}

.contact-form {
  display: grid;
  gap: 0.95rem;
  padding: 1.5rem;
  border: 1px solid rgba(36, 61, 56, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form label span {
  font-size: 0.86rem;
  color: var(--mute);
  letter-spacing: 0.08em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(36, 61, 56, 0.12);
  border-radius: 14px;
  background: rgba(243, 247, 245, 0.8);
  color: var(--ink);
  padding: 0.85rem 0.95rem;
  outline: none;
  resize: vertical;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(77, 115, 107, 0.45);
  box-shadow: 0 0 0 4px rgba(111, 149, 140, 0.15);
}

.form-note {
  min-height: 1.25rem;
  margin: 0;
  color: var(--jade-deep);
  font-size: 0.88rem;
}

.site-footer {
  display: grid;
  gap: 0.7rem;
  padding: 2.8rem clamp(1.25rem, 4vw, 3.5rem) 3.2rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand strong {
  display: block;
  color: var(--ink-deep);
  font-family: var(--font-display);
  letter-spacing: 0.14em;
}

.footer-brand p,
.footer-note,
.footer-copy,
.footer-links {
  margin: 0;
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  font-size: 0.84rem;
  color: rgba(93, 115, 109, 0.7);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.1rem;
  font-size: 0.84rem;
  color: rgba(93, 115, 109, 0.7);
}

.footer-links a {
  color: rgba(93, 115, 109, 0.78);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--jade-deep);
  border-bottom-color: rgba(77, 115, 107, 0.35);
  outline: none;
}

.footer-beian {
  font-size: 0.8rem;
  color: rgba(93, 115, 109, 0.7);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-beian--gongan {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-beian--gongan img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.footer-beian:hover,
.footer-beian:focus-visible {
  color: var(--jade-deep);
  border-bottom-color: rgba(77, 115, 107, 0.35);
  outline: none;
}

.toast {
  position: fixed;
  left: 50%;
  top: 1.25rem;
  bottom: auto;
  transform: translateX(-50%);
  z-index: 200;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(77, 115, 107, 0.25);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

@media (max-width: 980px) {
  .berth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .challenge-panel,
  .contact-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .berth-grid {
    grid-template-columns: 1fr;
  }

  .challenge-meta {
    grid-template-columns: 1fr;
  }

  .voyage {
    grid-template-columns: 2.8rem 1fr;
  }

  .voyage-status {
    grid-column: 2;
  }

  .hero {
    min-height: 92svh;
    align-items: start;
    padding-top: clamp(7rem, 18vh, 10rem);
  }

  .hero h1 {
    letter-spacing: 0.08em;
  }
}

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