/* ==========================================================================
   乐游看台 /assets/site.css — 共享外壳与基础组件
   ========================================================================== */

:root {
  --ink: #0A1B26;
  --deep: #0E3B3C;
  --grass: #1E7A4B;
  --lime: #5FD48C;
  --orange: #FF6A2B;
  --sand: #FFB27A;
  --concrete: #B9B6AD;
  --ash: #EDEAE2;
  --paper: #FBF8F2;
  --indigo: #322A52;
  --amber: #F2C14E;
  --wine: #7A2233;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-data: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --edge: 3px;
  --shadow-hard: 8px 8px 0 var(--concrete);
  --shadow-press: 4px 4px 0 var(--concrete);
  --radius-pill: 999px;
  --shell-max: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease-out: cubic-bezier(.2, .7, .3, 1);
}

/* -------- reset -------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.005em;
  font-style: italic;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

a { color: var(--grass); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }

button { font: inherit; color: inherit; }

table { border-collapse: collapse; width: 100%; }

hr { height: 3px; border: 0; margin: 0; background: var(--concrete); }

::selection { background: var(--orange); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

#main-content { scroll-margin-top: 96px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* -------- skip link -------- */
.skip-link {
  position: absolute;
  top: -96px;
  left: 12px;
  z-index: 900;
  display: inline-block;
  padding: 12px 22px;
  background: var(--orange);
  color: var(--ink);
  border: var(--edge) solid var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 17px;
  letter-spacing: .06em;
  text-decoration: none;
  box-shadow: var(--shadow-press);
  transition: top .18s var(--ease-out);
}
.skip-link:focus,
.skip-link:focus-visible { top: 12px; color: var(--ink); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  padding: 12px clamp(10px, 2vw, 24px) 10px;
  background: transparent;
  border-bottom: var(--edge) solid transparent;
  transition: background .24s var(--ease-out),
              border-color .24s var(--ease-out),
              padding .24s var(--ease-out);
}

.site-header[data-condensed] {
  padding-block: 6px;
  background: var(--paper);
  border-bottom-color: var(--ink);
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 8px clamp(10px, 1.4vw, 18px);
  background: var(--ink);
  border: var(--edge) solid var(--concrete);
  box-shadow: var(--shadow-hard);
  transition: max-width .28s var(--ease-out),
              box-shadow .28s var(--ease-out),
              padding .28s var(--ease-out);
}

.site-header[data-condensed] .site-header__bar {
  max-width: 1120px;
  padding-block: 6px;
  box-shadow: var(--shadow-press);
}

/* -------- brand -------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 2px;
  text-decoration: none;
  color: var(--paper);
}
.brand:hover { color: var(--paper); }

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: var(--grass);
  color: var(--paper);
  border: 2px solid var(--lime);
  box-shadow: 3px 3px 0 var(--lime);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 24px;
  line-height: 1;
  transform: skewX(-6deg);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 22px;
  letter-spacing: .06em;
  color: var(--paper);
  white-space: nowrap;
}

.brand__tagline {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--concrete);
  white-space: nowrap;
}

/* -------- nav toggle -------- */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--concrete);
  color: var(--paper);
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}
.nav-toggle:hover,
.nav-toggle:focus-visible { border-color: var(--lime); color: var(--lime); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: background .16s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease-out);
}
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* -------- nav -------- */
.site-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.site-nav__item { display: flex; }

.site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 14px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--paper);
  font-size: 15px;
  letter-spacing: .04em;
  white-space: nowrap;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.site-nav__link:hover {
  background: var(--deep);
  border-color: var(--lime);
  color: var(--paper);
}

.site-nav__link[aria-current="page"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  font-weight: 700;
}

/* -------- header actions -------- */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  background: var(--paper);
  color: var(--ink);
  border: var(--edge) solid var(--ink);
  box-shadow: 6px 6px 0 var(--concrete);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 18px;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .14s var(--ease-out),
              box-shadow .14s var(--ease-out),
              background .14s ease,
              color .14s ease;
}

.btn:hover {
  color: var(--ink);
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--concrete);
}

.btn:active {
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 var(--concrete);
}

.btn--primary {
  background: var(--orange);
  border-color: var(--ink);
  color: var(--ink);
}
.btn--primary:hover { background: var(--sand); color: var(--ink); }

.btn--ghost {
  background: transparent;
  border-color: var(--concrete);
  color: var(--paper);
}
.btn--ghost:hover { background: var(--deep); color: var(--paper); }

.btn--sm {
  min-height: 42px;
  padding: 6px 16px;
  font-size: 16px;
}

.site-header .btn {
  box-shadow: 3px 3px 0 rgba(185, 182, 173, .45);
}
.site-header .btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(185, 182, 173, .45);
}

.site-footer .btn {
  margin-top: 22px;
  box-shadow: 6px 6px 0 rgba(185, 182, 173, .3);
}
.site-footer .btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 rgba(185, 182, 173, .3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--ink);
  color: var(--paper);
  border-top: 8px solid var(--grass);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.9fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(32px, 4vw, 48px);
}

.site-footer__lead { min-width: 0; }

.site-footer__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: .95;
  letter-spacing: .02em;
  color: var(--paper);
  text-shadow: 3px 3px 0 var(--grass);
}

.site-footer__line {
  margin: 14px 0 0;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  min-width: 0;
}

.footer-col { min-width: 0; }

.footer-col__title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: var(--edge) solid var(--grass);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 19px;
  letter-spacing: .08em;
  color: var(--paper);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-col__link {
  display: inline-block;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  color: var(--concrete);
  font-size: 15px;
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease;
}
.footer-col__link:hover,
.footer-col__link:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--orange);
}

.site-footer__contact {
  min-width: 0;
  padding-left: clamp(16px, 2vw, 24px);
  border-left: var(--edge) solid rgba(185, 182, 173, .28);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-list__label {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
}

.contact-list__value {
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 20px var(--gutter) 40px;
  border-top: 2px solid rgba(185, 182, 173, .3);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--concrete);
}

.site-footer__copy,
.site-footer__legal { margin: 0; }

.site-footer__meta {
  flex: 1 1 100%;
  margin: 0;
  max-width: 78ch;
  line-height: 1.9;
  color: #8f8c85;
}

/* ==========================================================================
   Layout basics
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
}

.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

@media (max-width: 899px) {
  .grid--12 { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .04em;
  color: #5a666d;
}

.breadcrumb__link {
  color: var(--grass);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .16s ease, color .16s ease;
}
.breadcrumb__link:hover { border-bottom-color: var(--orange); color: var(--ink); }

.breadcrumb__sep { color: var(--concrete); }

.breadcrumb__current { color: var(--ink); font-weight: 700; }

/* ==========================================================================
   Section heads & display titles
   ========================================================================== */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-head__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--grass);
}
.section-head__kicker::before {
  content: "";
  flex: 0 0 auto;
  width: 28px;
  height: 3px;
  background: var(--orange);
}

.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--ink);
}

.title-xl {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(34px, 8.5vw, 112px);
  line-height: .9;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.title-lg {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(26px, 4vw, 56px);
  line-height: .98;
  letter-spacing: -.015em;
  text-wrap: balance;
}

/* ==========================================================================
   Tags & data
   ========================================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--ash);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--grass { background: var(--grass); border-color: var(--grass); color: var(--paper); }
.tag--orange { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.tag--amber { background: var(--amber); border-color: var(--ink); color: var(--ink); }

.data-value {
  display: inline-block;
  font-family: var(--font-data);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Panels & bands
   ========================================================================== */
.panel {
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--paper);
  border: var(--edge) solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.panel--dark { background: var(--deep); border-color: var(--concrete); color: var(--paper); }
.panel--ink { background: var(--ink); border-color: var(--concrete); color: var(--paper); }
.panel--indigo { background: var(--indigo); border-color: var(--concrete); color: var(--paper); }

.panel--dark .section-head__title,
.panel--ink .section-head__title,
.panel--indigo .section-head__title,
.panel--dark .title-lg,
.panel--ink .title-lg,
.panel--indigo .title-lg { color: var(--paper); }

.panel--dark .section-head__kicker,
.panel--ink .section-head__kicker,
.panel--indigo .section-head__kicker { color: var(--lime); }

.band { width: 100%; }
.band--grass { background: var(--grass); color: var(--paper); }
.band--deep { background: var(--deep); color: var(--paper); }
.band--ash { background: var(--ash); color: var(--ink); }
.band--indigo { background: var(--indigo); color: var(--paper); }

.slant-band {
  padding-block: clamp(32px, 5vw, 64px);
  background: var(--indigo);
  color: var(--paper);
  clip-path: polygon(0 0, 100% 2.4vw, 100% 100%, 0 calc(100% - 2.4vw));
}

/* ==========================================================================
   Figure / image container
   ========================================================================== */
.figure { margin: 0; }

.figure__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--deep);
  border: var(--edge) solid var(--concrete);
  box-shadow: var(--shadow-hard);
}

.figure__media.is-placeholder {
  background-image:
    repeating-linear-gradient(135deg,
      rgba(251, 248, 242, .07) 0 12px,
      transparent 12px 24px);
}

.figure__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.figure--tall .figure__media { aspect-ratio: 3 / 4; }
.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }

.figure__caption {
  margin-top: 12px;
  padding-left: 10px;
  border-left: var(--edge) solid var(--orange);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .03em;
  line-height: 1.7;
  color: #5a666d;
}

.figure__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
}

/* ==========================================================================
   Filter bar
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  min-height: 44px;
  padding: 8px 18px;
  background: var(--paper);
  border: var(--edge) solid var(--ink);
  box-shadow: 4px 4px 0 var(--concrete);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 16px;
  letter-spacing: .05em;
  cursor: pointer;
  transition: transform .14s var(--ease-out),
              box-shadow .14s var(--ease-out),
              background .14s ease,
              color .14s ease;
}

.filter-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--concrete);
}

.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--orange);
}

.filter-item[data-filter-hidden] { display: none !important; }

.filter-item.is-entering {
  animation: ly-filter-in .18s var(--ease-out) both;
}

@keyframes ly-filter-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Reveal (progressive enhancement)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .48s var(--ease-out), transform .48s var(--ease-out);
}

.js [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive — header
   ========================================================================== */
@media (max-width: 1199px) {
  .site-nav__link { padding-inline: 10px; font-size: 14px; }
  .brand__tagline { display: none; }
}

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  .brand { order: 1; flex: 1 1 auto; }
  .site-header__actions { order: 2; }
  .nav-toggle { order: 3; }

  .site-header__secondary { display: none; }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: -3px;
    right: -3px;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    max-height: min(72vh, 540px);
    overflow-y: auto;
    padding: 12px;
    background: var(--ink);
    border: var(--edge) solid var(--concrete);
    box-shadow: var(--shadow-hard);
  }

  .site-nav[data-open] { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .site-nav__item { width: 100%; }

  .site-nav__link {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding: 10px 16px;
    border-radius: 0;
    border-color: transparent;
    font-size: 17px;
    white-space: normal;
  }

  .site-nav__link:hover { border-color: var(--lime); }
}

@media (max-width: 560px) {
  .brand__mark { width: 38px; height: 38px; font-size: 20px; }
  .brand__name { font-size: 19px; letter-spacing: .04em; }
  .btn--sm { min-height: 40px; padding-inline: 12px; font-size: 15px; }
  .site-header__bar { gap: 8px; }
}

@media (max-width: 379px) {
  .site-header__actions { display: none; }
}

/* ==========================================================================
   Responsive — footer
   ========================================================================== */
@media (max-width: 1099px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__lead { grid-column: 1 / -1; }
  .site-footer__contact {
    grid-column: 1 / -1;
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: var(--edge) solid rgba(185, 182, 173, .28);
  }
}

@media (max-width: 640px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__bottom { gap: 6px 20px; }
}

@media (max-width: 419px) {
  .site-footer__cols { grid-template-columns: minmax(0, 1fr); }
  .slant-band { clip-path: none; }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .filter-item.is-entering { animation: none !important; }
}
