:root {
  color-scheme: light;
  --ink: #102b33;
  --soft: #526669;
  --paper: #f5f4ed;
  --line: #d7ddD6;
  --harbor: #0b2833;
  --signal: #b6efca;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #00816a; outline-offset: 4px; }
.shell { width: min(1112px, calc(100% - 64px)); margin-inline: auto; }
#links, #about { scroll-margin-top: 24px; }

.masthead { color: #e6f4ee; background: var(--harbor); border-bottom: 1px solid #35515a; }
.masthead-inner { min-height: 73px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.brand img { display: block; border-radius: 6px; }
.masthead nav { margin-left: auto; display: flex; gap: 28px; }
.masthead nav a { font-size: .875rem; text-decoration: none; }
.masthead nav a:hover, .footer a:hover { text-decoration: underline; }
.clock { min-width: 88px; padding-left: 17px; border-left: 1px solid #567077; color: var(--signal); font: .9rem ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.hero { isolation: isolate; overflow: hidden; color: #effbf5; background: linear-gradient(110deg, #0b2833 22%, #143b43 72%, #174c49); }
.hero-inner { position: relative; min-height: 372px; display: flex; align-items: center; }
.hero-copy { z-index: 1; padding-block: 62px; }
.eyebrow { color: var(--signal); font-size: .9rem; font-weight: 650; letter-spacing: .13em; }
h1 { margin-top: 14px; font-size: clamp(3.2rem, 8vw, 6.4rem); line-height: 1.14; letter-spacing: .045em; }
.intro { margin-top: 19px; max-width: 30rem; color: #c8dcd7; line-height: 1.75; }
.jump { display: inline-flex; align-items: center; min-height: 44px; margin-top: 25px; padding: 9px 17px; border-radius: 5px; background: var(--signal); color: #102b30; font-weight: 700; text-decoration: none; }
.jump:hover { background: #d1f6da; }

.hero-art { position: absolute; inset: 0 0 0 38%; pointer-events: none; overflow: hidden; }
.rings { position: absolute; inset: 0; background: repeating-radial-gradient(circle at 58% 47%, transparent 0 34px, #b6efca25 35px 36px, transparent 37px 63px); mask-image: radial-gradient(ellipse at 58% 47%, #000 34%, transparent 76%); }
.beam { position: absolute; left: 58%; top: 31%; width: 45%; height: 33%; background: linear-gradient(90deg, #d6ffb1b8, #b8ffbd14); clip-path: polygon(0 26%, 100% 0, 100% 79%, 0 32%); }
.beacon { position: absolute; left: calc(58% - 49px); top: 34%; width: 98px; height: 168px; background: #bbecce; clip-path: polygon(50% 0, 78% 12%, 78% 17%, 71% 17%, 71% 29%, 77% 29%, 77% 34%, 66% 34%, 82% 86%, 100% 91%, 100% 96%, 0 96%, 0 91%, 18% 86%, 34% 34%, 23% 34%, 23% 29%, 29% 29%, 29% 17%, 22% 17%, 22% 12%); }
.beacon i { position: absolute; inset: 18% 39% auto; height: 10%; background: #153f43; }
.water { position: absolute; left: 23%; right: 4%; top: calc(34% + 163px); height: 55px; background: repeating-linear-gradient(transparent 0 8px, #b6efca48 9px 10px, transparent 11px 15px); mask-image: radial-gradient(ellipse at top, #000 13%, transparent 73%); }

.directory { padding-top: 44px; }
.section-title { margin-bottom: 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
h2 { font-size: 1.55rem; line-height: 1.3; }
.section-title p, .entry p, .about p { color: var(--soft); line-height: 1.7; }
.entries { margin: 0; padding: 0; list-style: none; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fdfcf7; }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr) 128px; gap: 24px; align-items: center; padding: 22px 24px; }
.entry + .entry { border-top: 1px solid var(--line); }
.entry h3 { margin-bottom: 4px; font-size: 1.12rem; }
.entry p { font-size: .9rem; }
.address { display: flex; align-items: center; min-width: 0; gap: 10px; justify-content: space-between; padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 5px; }
.address span { min-width: 0; overflow-wrap: anywhere; font-size: .875rem; color: var(--soft); }
.address button { padding: 7px 10px; min-height: 36px; border: 0; border-radius: 4px; background: #e2efe6; color: #215346; cursor: pointer; white-space: nowrap; font-size: .875rem; }
.address button:disabled { opacity: .63; cursor: default; }
.entry-action { text-align: right; font-size: .875rem; color: var(--soft); }
.entry-action a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px 12px; border-radius: 5px; background: #174e43; color: white; text-decoration: none; font-weight: 650; }
.entry-action a:hover { background: #0c362f; }
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; margin-block: 34px; padding: 24px; background: #e7ede5; border-radius: 8px; }
.about h2 { font-size: 1.18rem; }
.footer { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--soft); }
.toast { position: fixed; z-index: 2; right: 20px; bottom: 20px; max-width: calc(100% - 40px); padding: 12px 17px; border-radius: 6px; color: white; background: var(--harbor); opacity: 0; pointer-events: none; transition: opacity .16s ease; }
.toast.visible { opacity: 1; }

@media (max-width: 800px) {
  .entry { grid-template-columns: minmax(0, 1fr) 116px; gap: 10px 14px; padding: 18px; }
  .entry-copy { grid-column: 1 / -1; }
  .about { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 540px) {
  .shell { width: calc(100% - 32px); }
  .masthead-inner { min-height: 63px; gap: 10px; }
  .masthead nav { gap: 12px; }
  .masthead nav a { padding-block: 10px; }
  .clock { display: none; }
  .hero-inner { min-height: 325px; }
  .hero-copy { padding-block: 38px; }
  .hero-art { inset: 0 -35% 0 16%; opacity: .35; }
  .intro { max-width: 17rem; }
  .section-title { align-items: start; flex-direction: column; gap: 7px; }
  .directory { padding-top: 28px; }
  .entry { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px; }
  .about { margin-block: 24px; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
}
