/* ==========================================================================
   slot-city-benchi.com.cn — /assets/site.css
   共享外壳：tokens / reset / 排版 / 头部 / 页脚 / 通用组件
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --ink-900: #070B1A;
  --ink-800: #0E1A33;
  --ink-700: #16294D;
  --steel: #8A97A8;
  --snow: #E6ECF5;
  --neon: #FF4D9A;
  --amber: #F2A93B;
  --violet: #B8A7FF;
  --brown: #3A2A1E;
  --cream: #F4E9D8;
  --gold: #6B542F;

  --line-soft: rgba(138, 151, 168, 0.16);
  --line: rgba(138, 151, 168, 0.26);
  --line-hard: rgba(184, 167, 255, 0.42);
  --glass: rgba(14, 26, 51, 0.66);

  --shell: 1180px;
  --gutter: clamp(18px, 4.2vw, 52px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

ul[class],
ol[class],
nav ul,
footer ul,
header ul {
  list-style: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--violet);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--snow);
}

::selection {
  background: rgba(255, 77, 154, 0.32);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    linear-gradient(to right, rgba(138, 151, 168, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(138, 151, 168, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  color: var(--snow);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--snow);
}

h1 {
  font-size: clamp(32px, 4.4vw, 52px);
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
}

h3 {
  font-size: clamp(18px, 2vw, 23px);
}

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

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 0.6rem 1rem;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--brown);
  outline-color: var(--neon);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: transparent;
  background-image: linear-gradient(
    180deg,
    rgba(7, 11, 26, 0.96) 0%,
    rgba(7, 11, 26, 0.82) 58%,
    rgba(7, 11, 26, 0) 100%
  );
  border-bottom: 1px solid transparent;
  transition: background-color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.site-header.is-scrolled {
  background-color: rgba(14, 26, 51, 0.96);
  background-image: none;
  border-bottom-color: var(--line-hard);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  backdrop-filter: blur(12px) saturate(115%);
}

.utility-bar {
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.utility-bar__inner {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  padding-block: 0.4rem;
}

.utility-bar__note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--steel);
  white-space: nowrap;
}

.utility-bar__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}

.utility-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.utility-bar__label {
  color: rgba(138, 151, 168, 0.68);
}

.utility-bar__value {
  color: var(--cream);
  letter-spacing: 0.04em;
}

.utility-bar__link {
  color: var(--violet);
  text-decoration: none;
  letter-spacing: 0.1em;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.utility-bar__link:hover,
.utility-bar__link:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.status-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 3px rgba(255, 77, 154, 0.18);
}

.status-dot--amber {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.18);
}

.status-dot--pulse {
  animation: dot-pulse 2.6s var(--ease) infinite;
}

@keyframes dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(255, 77, 154, 0.2);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 77, 154, 0.04);
  }
}

.masthead {
  position: relative;
}

.masthead__inner {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding-block: clamp(10px, 1.5vw, 16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--snow);
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  color: var(--snow);
}

.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream);
  background: linear-gradient(150deg, var(--ink-700) 0%, rgba(22, 41, 77, 0.22) 100%);
  border: 1px solid var(--line-hard);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 74% 100%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.brand__name {
  font-size: 16.5px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.brand__sub {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 0.8rem;
  background: rgba(22, 41, 77, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--snow);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--violet);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bars span:nth-child(2) {
  width: 70%;
  align-self: flex-end;
}

.nav-toggle__text {
  letter-spacing: 0.16em;
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(230, 236, 245, 0.76);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--snow);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
  transform: scaleX(1);
}

.site-nav__link[aria-current="page"] {
  color: var(--cream);
}

.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--amber);
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.58rem 1.05rem;
  background: var(--neon);
  color: #12060F;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 88% 100%, 0 100%);
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.site-nav__cta:hover,
.site-nav__cta:focus-visible {
  background: var(--amber);
  color: #12060F;
  transform: translateY(-1px);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(138, 151, 168, 0.12);
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--neon) 55%, var(--amber));
  transition: width 0.12s linear;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  color: var(--cream);
  border-top: 1px solid var(--gold);
  background-color: var(--brown);
  background-image:
    linear-gradient(to right, rgba(244, 233, 216, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 233, 216, 0.05) 1px, transparent 1px),
    radial-gradient(130% 110% at 50% 0%, #3A2A1E 0%, #241A13 62%, #191210 100%);
  background-size: 56px 56px, 56px 56px, auto;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding-block: clamp(44px, 6vw, 76px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.2fr 0.8fr;
  gap: clamp(24px, 3.4vw, 52px);
  align-items: start;
}

.footer-brand__mark {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}

.footer-brand__name {
  margin-bottom: 0.6rem;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.footer-brand__lede {
  max-width: 34ch;
  margin-bottom: 1rem;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(244, 233, 216, 0.7);
}

.footer-brand__icp {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.footer-col__title {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 233, 216, 0.55);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 14px;
}

.footer-list__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(244, 233, 216, 0.45);
}

.footer-mono {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: var(--cream);
  word-break: break-word;
}

.footer-link {
  color: rgba(244, 233, 216, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.6rem;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 1.1rem;
  border-top: 1px solid rgba(107, 84, 47, 0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(244, 233, 216, 0.55);
}

.footer-bottom__copy,
.footer-bottom__note {
  margin: 0;
}

.footer-bottom__top {
  color: var(--amber);
  text-decoration: none;
  letter-spacing: 0.1em;
  border-bottom: 1px solid transparent;
}

.footer-bottom__top:hover,
.footer-bottom__top:focus-visible {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

.to-top {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  background: rgba(14, 26, 51, 0.92);
  border: 1px solid var(--line-hard);
  border-radius: var(--radius);
  color: var(--snow);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.to-top[hidden] {
  display: none;
}

.to-top:hover,
.to-top:focus-visible {
  border-color: var(--neon);
  color: var(--cream);
  transform: translateY(-2px);
}

.to-top__mark {
  color: var(--neon);
}

/* ---------- 通用布局 ---------- */
.shell {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.shell--narrow {
  width: min(760px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.prose {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(230, 236, 245, 0.88);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--snow);
}

.prose h3 {
  margin-top: 1.8em;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--cream);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose strong {
  color: var(--snow);
}

.prose a {
  color: var(--violet);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn--primary {
  background: var(--neon);
  color: #12060F;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 90% 100%, 0 100%);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--amber);
  color: #12060F;
}

.btn--ghost {
  background: transparent;
  color: var(--snow);
  border-color: var(--line);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--cream);
  border-color: var(--violet);
  background: rgba(184, 167, 255, 0.08);
}

.btn--quiet {
  background: rgba(22, 41, 77, 0.55);
  color: var(--cream);
}

.btn--quiet:hover,
.btn--quiet:focus-visible {
  background: var(--ink-700);
  color: var(--snow);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid var(--line);
  border-radius: 1px;
}

.tag--neon {
  color: var(--neon);
  border-color: rgba(255, 77, 154, 0.45);
  background: rgba(255, 77, 154, 0.08);
}

.tag--amber {
  color: var(--amber);
  border-color: rgba(242, 169, 59, 0.45);
  background: rgba(242, 169, 59, 0.08);
}

.tag--violet {
  color: var(--violet);
  border-color: rgba(184, 167, 255, 0.45);
}

.tag--cream {
  color: var(--brown);
  background: var(--cream);
  border-color: var(--cream);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 26px;
  height: 1px;
  background: var(--neon);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding-block: clamp(14px, 2vw, 22px);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--steel);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(138, 151, 168, 0.5);
}

.breadcrumb__link {
  color: rgba(230, 236, 245, 0.7);
  text-decoration: none;
}

.breadcrumb__link:hover,
.breadcrumb__link:focus-visible {
  color: var(--amber);
}

.breadcrumb__current {
  color: var(--cream);
}

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--ink-800) 0%, var(--ink-900) 100%);
  background-image:
    linear-gradient(to right, rgba(138, 151, 168, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(138, 151, 168, 0.07) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px;
}

.media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}

.media-frame--wide .media-frame__img {
  aspect-ratio: 21 / 9;
}

.media-frame--tall .media-frame__img {
  aspect-ratio: 4 / 5;
}

.media-frame__caption {
  display: block;
  padding: 0.65rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--steel);
  border-top: 1px solid var(--line-soft);
  background: rgba(7, 11, 26, 0.62);
}

/* ---------- 玻璃浮层 ---------- */
.glass-panel {
  padding: clamp(16px, 2.2vw, 26px);
  background: var(--glass);
  border: 1px solid rgba(184, 167, 255, 0.24);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ---------- 章节跟随（页面使用 data-spy 容器） ---------- */
[data-spy] a {
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

[data-spy] a[aria-current="true"] {
  color: var(--cream);
}

[data-spy] a[aria-current="true"]::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--neon);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .utility-bar {
    display: none;
  }

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

  .masthead__inner {
    min-height: 64px;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem var(--gutter) 1.25rem;
    background: rgba(7, 11, 26, 0.985);
    border-bottom: 1px solid var(--line-hard);
    box-shadow: 0 26px 50px -34px #000;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
      visibility 0.2s linear;
  }

  .site-header[data-open="true"] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__item {
    border-bottom: 1px dashed var(--line-soft);
  }

  .site-nav__link {
    display: block;
    padding: 0.85rem 0 0.85rem 0.9rem;
    font-size: 13.5px;
    letter-spacing: 0.08em;
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    bottom: 0.95rem;
    width: 2px;
    background: transparent;
  }

  .site-nav__link[aria-current="page"]::before {
    background: var(--neon);
  }

  .site-nav__cta {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    justify-content: center;
    clip-path: none;
    border-radius: var(--radius);
  }

  .brand__sub {
    letter-spacing: 0.18em;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
    background-size: 48px 48px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 12.5px;
  }

  .brand__name {
    font-size: 15px;
  }

  .brand__sub {
    font-size: 8.5px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .footer-bottom__note {
    letter-spacing: 0.06em;
  }

  .to-top {
    padding: 0.5rem 0.7rem;
    font-size: 10px;
  }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .status-dot--pulse {
    animation: none;
  }
}
