@charset "UTF-8";

:root {
  color-scheme: light;
  --canvas: #f4f4f2;
  --surface: #ffffff;
  --surface-soft: #e9e9e5;
  --surface-strong: #151515;
  --ink: #151515;
  --ink-soft: #5f5f5a;
  --ink-inverse: #f7f7f3;
  --line: rgba(21, 21, 21, 0.14);
  --line-strong: rgba(21, 21, 21, 0.3);
  --accent: #d81f36;
  --accent-pressed: #b8162a;
  --focus: #2857d9;
  --shadow: 0 28px 80px rgba(35, 35, 30, 0.14);
  --radius-card: 16px;
  --radius-control: 999px;
  --page-pad: clamp(20px, 4vw, 68px);
  --header-height: 72px;
  --max-width: 1480px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Segoe UI Variable", "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0d0d0e;
  --surface: #161617;
  --surface-soft: #202022;
  --surface-strong: #f1f1ed;
  --ink: #f1f1ed;
  --ink-soft: #a4a4a0;
  --ink-inverse: #151515;
  --line: rgba(241, 241, 237, 0.13);
  --line-strong: rgba(241, 241, 237, 0.28);
  --accent: #f04459;
  --accent-pressed: #ce3046;
  --focus: #7da0ff;
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

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

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 120;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink-inverse);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  width: 100%;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--page-pad);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.06em;
}

.brand-copy small {
  color: var(--ink-soft);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 14px;
  font-weight: 650;
}

.site-nav > a {
  position: relative;
  padding: 8px 0;
}

.site-nav > a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease-out);
}

.site-nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.theme-toggle,
.filter-chip,
.dialog-actions button,
.dialog-close {
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: transform 180ms var(--ease-out), border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.theme-toggle {
  min-width: 62px;
  padding: 8px 13px;
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 650;
}

.theme-toggle:hover,
.filter-chip:hover,
.dialog-actions button:hover,
.dialog-close:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.theme-toggle:active,
.filter-chip:active,
.dialog-actions button:active,
.dialog-close:active,
.primary-action:active,
.card-button:active {
  transform: translateY(1px) scale(0.99);
}

main,
.site-footer {
  width: min(100%, var(--max-width));
  margin-inline: auto;
}

.hero {
  display: grid;
  min-height: calc(100dvh - var(--header-height));
  grid-template-columns: minmax(0, 0.86fr) minmax(460px, 1.14fr);
  align-items: center;
  gap: clamp(42px, 7vw, 118px);
  padding: clamp(52px, 8vh, 92px) var(--page-pad) clamp(70px, 10vh, 120px);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(48px, 5.7vw, 86px);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.hero-intro {
  max-width: 34em;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
}

.primary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  padding: 0 22px;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: #ffffff;
  font-weight: 720;
  transition: transform 180ms var(--ease-out), background 180ms ease;
}

.primary-action:hover {
  background: var(--accent-pressed);
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  max-width: 560px;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 58px 0 0;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  padding: 17px 18px 0 0;
}

.hero-stats div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-stats dt {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.hero-gallery {
  position: relative;
  min-height: min(650px, 72vh);
}

.hero-gallery::before {
  position: absolute;
  top: 9%;
  right: 2%;
  width: 65%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.hero-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-card);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.hero-card-main {
  top: 9%;
  left: 2%;
  width: 72%;
  aspect-ratio: 1.52;
  transform: rotate(-3deg);
}

.hero-card-tall {
  right: 0;
  bottom: 3%;
  width: 42%;
  aspect-ratio: 0.72;
  transform: rotate(4deg);
}

.hero-card-accent {
  bottom: 7%;
  left: 8%;
  width: 50%;
  aspect-ratio: 1.52;
  transform: rotate(-7deg);
}

.hero-callout {
  position: absolute;
  top: 2%;
  right: 7%;
  display: grid;
  width: 112px;
  height: 112px;
  place-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  text-align: center;
  transform: rotate(8deg);
}

.hero-callout span {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
}

.hero-callout strong {
  font-size: 38px;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.archive {
  padding: clamp(82px, 10vw, 150px) var(--page-pad);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  max-width: 720px;
  gap: 18px;
  margin-bottom: 42px;
}

.section-heading h2,
.station-copy h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 70px);
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 1;
}

.section-heading p,
.station-copy > p:last-child {
  max-width: 42em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.filter-bar {
  display: flex;
  gap: 9px;
  margin-bottom: 34px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-width: thin;
}

.filter-chip {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 680;
  white-space: nowrap;
}

.filter-chip.is-active {
  border-color: var(--surface-strong);
  background: var(--surface-strong);
  color: var(--ink-inverse);
}

.card-grid {
  columns: 4 260px;
  column-gap: 18px;
}

.card-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
  vertical-align: top;
}

.card-button {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  cursor: zoom-in;
  text-align: left;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.card-button:hover {
  z-index: 2;
  box-shadow: 0 22px 58px rgba(27, 27, 24, 0.18), 0 0 0 1px var(--line);
  transform: translateY(-5px);
}

:root[data-theme="dark"] .card-button:hover {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.46), 0 0 0 1px var(--line);
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--surface-soft);
}

.card-image-wrap.is-error {
  display: grid;
  min-height: 180px;
  place-items: center;
}

.card-image-wrap.is-error::before {
  color: var(--ink-soft);
  content: "图像加载失败";
  font-size: 13px;
}

.card-image-wrap.is-error .card-image {
  display: none;
}

.card-image-wrap::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 35%);
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.card-button:hover .card-image-wrap::after,
.card-button:focus-visible .card-image-wrap::after {
  opacity: 1;
}

.card-image {
  width: 100%;
  height: auto;
  transition: transform 500ms var(--ease-out);
}

.card-button:hover .card-image {
  transform: scale(1.018);
}

.card-view-label {
  position: absolute;
  right: 13px;
  bottom: 13px;
  z-index: 1;
  padding: 7px 11px;
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.92);
  color: #151515;
  font-size: 12px;
  font-weight: 720;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms var(--ease-out);
}

.card-button:hover .card-view-label,
.card-button:focus-visible .card-view-label {
  opacity: 1;
  transform: translateY(0);
}

.card-caption {
  display: grid;
  gap: 5px;
  padding: 14px 15px 16px;
}

.card-caption strong {
  font-size: 15px;
  line-height: 1.35;
}

.card-caption span {
  color: var(--ink-soft);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.card-item[hidden] {
  display: none;
}

.empty-state {
  margin: 42px 0 0;
  padding: 42px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-card);
  color: var(--ink-soft);
  text-align: center;
}

.station {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(48px, 9vw, 150px);
  padding: clamp(90px, 12vw, 170px) var(--page-pad);
  border-top: 1px solid var(--line);
}

.station-index {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.station-copy > p:last-child {
  margin-top: 28px;
}

.station-details {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.station-details div {
  display: grid;
  grid-template-columns: minmax(100px, 0.45fr) 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.station-details dt {
  color: var(--ink-soft);
  font-size: 13px;
}

.station-details dd {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.station-link {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px var(--page-pad) 42px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer strong {
  color: var(--ink);
}

.card-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
}

.card-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.dialog-shell {
  display: grid;
  min-height: min(720px, calc(100dvh - 32px));
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
}

.dialog-media {
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: clamp(18px, 3vw, 44px);
  overflow: auto;
  background: #090909;
}

.dialog-media img {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 90px);
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.34);
}

.dialog-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 4vw, 48px);
  border-left: 1px solid var(--line);
}

.dialog-close {
  align-self: flex-end;
  padding: 8px 13px;
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 680;
}

.dialog-kicker {
  margin: auto 0 12px;
  color: var(--accent);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.dialog-panel h2 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 50px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.dialog-description {
  margin: 20px 0 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.dialog-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 30px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.dialog-meta div {
  min-width: 0;
}

.dialog-meta dt {
  color: var(--ink-soft);
  font-size: 11px;
}

.dialog-meta dd {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 680;
}

.dialog-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 34px;
}

.dialog-actions button {
  min-height: 44px;
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 680;
}

.noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: 380px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
    gap: 40px;
  }

  .hero-gallery {
    min-height: 550px;
  }

  .card-grid {
    columns: 3 240px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    min-height: var(--header-height);
  }

  .brand-copy small {
    display: none;
  }

  .site-nav > a {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 64px;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(48px, 13vw, 72px);
  }

  .hero-gallery {
    width: min(100%, 650px);
    min-height: 540px;
    margin-inline: auto;
  }

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

  .dialog-shell {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .dialog-media {
    min-height: 52dvh;
    max-height: 62dvh;
  }

  .dialog-media img {
    max-height: 56dvh;
  }

  .dialog-panel {
    padding: 22px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .dialog-kicker {
    margin-top: 30px;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .theme-toggle {
    min-width: 58px;
  }

  .hero {
    gap: 30px;
    padding-top: 48px;
  }

  .hero h1 {
    font-size: clamp(43px, 14.2vw, 62px);
  }

  .hero-intro {
    font-size: 16px;
  }

  .hero-stats {
    margin-top: 42px;
  }

  .hero-stats div {
    padding-right: 9px;
  }

  .hero-stats div + div {
    padding-left: 10px;
  }

  .hero-stats dt {
    font-size: 20px;
  }

  .hero-stats dd {
    font-size: 10px;
  }

  .hero-gallery {
    min-height: 390px;
  }

  .hero-card-main {
    width: 78%;
  }

  .hero-card-tall {
    width: 39%;
  }

  .hero-card-accent {
    bottom: 4%;
    width: 55%;
  }

  .hero-callout {
    width: 78px;
    height: 78px;
  }

  .hero-callout strong {
    font-size: 28px;
  }

  .hero-callout span {
    font-size: 9px;
  }

  .archive,
  .station {
    padding-top: 76px;
    padding-bottom: 86px;
  }

  .card-grid {
    columns: 2 145px;
    column-gap: 12px;
  }

  .card-item {
    margin-bottom: 12px;
  }

  .card-caption {
    padding: 11px 12px 13px;
  }

  .card-caption strong {
    font-size: 13px;
  }

  .card-caption span {
    font-size: 9px;
  }

  .card-view-label {
    display: none;
  }

  .station-details div {
    grid-template-columns: 92px 1fr;
    gap: 14px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }

  .card-dialog {
    width: 100vw;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .dialog-media {
    min-height: 46dvh;
    max-height: 54dvh;
    padding: 14px;
  }

  .dialog-media img {
    max-height: 48dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@supports not (backdrop-filter: blur(18px)) {
  .site-header {
    background: var(--canvas);
  }
}
