:root {
  --high-blue: #0A2846;
  --snow: #F5F8FB;
  --night: #061626;
  --orange: #FF6A1A;
  --cyan: #19E3C4;
  --ice: #B9D6EA;
  --stone: #6F7A85;
  --paper: #EAE4D8;
  --moss: #5F7A5B;
  --clay: #B86B4B;
  --white: #FFFFFF;
  --line-dark: rgba(185, 214, 234, 0.18);
  --line-cyan: rgba(25, 227, 196, 0.32);
  --line-light: rgba(10, 40, 70, 0.16);
  --shadow: 0 18px 50px rgba(6, 22, 38, 0.16);
  --font-display: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --shell: min(1440px, calc(100% - 10vw));
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, var(--snow) 0%, #EEF4F8 52%, var(--snow) 100%);
  color: var(--high-blue);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.05;
}

h4 {
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1.1em;
}

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

strong {
  font-weight: 800;
  color: var(--high-blue);
}

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

button {
  color: inherit;
}

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

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

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

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px var(--night);
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 3000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--orange);
  color: var(--night);
  font-weight: 800;
  border: 2px solid var(--night);
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--snow);
  background:
    radial-gradient(circle at 14% 50%, rgba(25, 227, 196, 0.14), transparent 26%),
    linear-gradient(115deg, transparent 0 67%, rgba(255, 106, 26, 0.1) 67% 67.4%, transparent 67.4%),
    repeating-linear-gradient(90deg, transparent 0 95px, rgba(185, 214, 234, 0.05) 96px),
    linear-gradient(90deg, var(--night) 0%, var(--high-blue) 55%, #0C3155 100%);
  border-bottom: 1px solid var(--line-cyan);
  box-shadow: 0 10px 30px rgba(6, 22, 38, 0.14);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 78%, rgba(185, 214, 234, 0.06) 78% 78.3%, transparent 78.3%),
    linear-gradient(35deg, transparent 0 14%, rgba(25, 227, 196, 0.05) 14% 14.3%, transparent 14.3%);
  opacity: 0.9;
}

.site-header__inner {
  position: relative;
  z-index: 1;
  width: var(--shell);
  min-height: 76px;
  margin-inline: auto;
  padding-block: 10px;
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.8fr) auto;
  align-items: center;
  gap: 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-cyan);
  background: linear-gradient(145deg, rgba(25, 227, 196, 0.1), rgba(255, 106, 26, 0.08));
  color: var(--snow);
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.brand-mark:hover {
  border-color: var(--orange);
  background: rgba(255, 106, 26, 0.16);
  transform: translateY(-1px);
}

.brand-mark__glyph {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark__line {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 8px;
  height: 1px;
  background: var(--orange);
  transform: rotate(-14deg);
  transform-origin: center;
}

.brand-copy {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 8px;
  min-width: 0;
}

.brand-name {
  grid-column: 1;
  color: var(--snow);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-sub {
  grid-column: 2;
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  line-height: 1;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-transform: uppercase;
  opacity: 0.8;
}

.current-index {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.current-index__label {
  color: #8FA7BA;
}

.current-index__value {
  color: var(--orange);
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  align-self: stretch;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(25, 227, 196, 0.4) rgba(255, 255, 255, 0.06);
}

.nav-list::-webkit-scrollbar {
  height: 3px;
}

.nav-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.nav-list::-webkit-scrollbar-thumb {
  background: rgba(25, 227, 196, 0.4);
}

.nav-item {
  flex: 0 0 auto;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 14px 12px;
  border-left: 1px solid rgba(185, 214, 234, 0.14);
  color: var(--ice);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nav-item:last-child .nav-link {
  border-right: 1px solid rgba(185, 214, 234, 0.14);
}

.nav-link:hover {
  color: var(--snow);
  background: rgba(25, 227, 196, 0.08);
}

.nav-index {
  color: #8FA7BA;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-link[aria-current="page"] {
  color: var(--snow);
  background: linear-gradient(180deg, rgba(255, 106, 26, 0.12), rgba(255, 106, 26, 0.02));
  box-shadow: inset 0 -2px 0 var(--orange);
}

.nav-link[aria-current="page"] .nav-index {
  color: var(--orange);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.copy-email {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(185, 214, 234, 0.26);
  background: rgba(6, 22, 38, 0.16);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.copy-email:hover {
  color: var(--snow);
  border-color: var(--cyan);
  background: rgba(25, 227, 196, 0.08);
}

.copy-email__label {
  display: inline-block;
  white-space: nowrap;
}

.copy-email__status {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.copy-email__status:empty {
  display: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: var(--night);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.header-cta:hover {
  background: var(--night);
  color: var(--snow);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(185, 214, 234, 0.28);
  background: rgba(6, 22, 38, 0.22);
  color: var(--snow);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.nav-toggle:hover {
  border-color: var(--cyan);
  background: rgba(25, 227, 196, 0.08);
}

.nav-toggle__bars {
  display: grid;
  gap: 5px;
  width: 18px;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  height: 2px;
  background: rgba(185, 214, 234, 0.08);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  box-shadow: 0 0 12px rgba(25, 227, 196, 0.55);
  transition: width 0.1s linear;
}

.site-footer {
  position: relative;
  overflow: hidden;
  color: var(--snow);
  background:
    radial-gradient(circle at 10% 10%, rgba(25, 227, 196, 0.12), transparent 25%),
    radial-gradient(circle at 85% 0%, rgba(255, 106, 26, 0.1), transparent 28%),
    linear-gradient(135deg, var(--night) 0%, var(--high-blue) 62%, #0C3358 100%);
  border-top: 1px solid var(--line-cyan);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  pointer-events: none;
  background:
    linear-gradient(145deg, transparent 0 30%, rgba(185, 214, 234, 0.055) 30% 30.5%, transparent 30.5%),
    linear-gradient(35deg, transparent 0 48%, rgba(25, 227, 196, 0.06) 48% 48.5%, transparent 48.5%),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(185, 214, 234, 0.045) 120px);
}

.footer-shell {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 0.75fr 1.15fr;
  align-items: start;
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line-dark);
}

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

.footer-column--brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-cyan);
  background: linear-gradient(145deg, rgba(25, 227, 196, 0.12), rgba(255, 106, 26, 0.1));
  color: var(--snow);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

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

.footer-brand__name {
  margin: 0;
  color: var(--snow);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.footer-brand__text {
  max-width: 30ch;
  margin: 10px 0 0;
  color: var(--ice);
  font-size: 0.9rem;
  line-height: 1.75;
}

.footer-note {
  max-width: 36ch;
  margin: 0;
  color: #92A7B9;
  font-size: 0.72rem;
  line-height: 1.65;
}

.footer-heading {
  margin: 0 0 18px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  color: var(--ice);
  font-size: 0.88rem;
  line-height: 1.45;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.footer-link:hover {
  color: var(--snow);
  border-bottom-color: var(--orange);
  transform: translateX(2px);
}

.footer-contact {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: var(--ice);
  font-size: 0.78rem;
  line-height: 1.55;
}

.contact-label {
  padding-top: 2px;
  color: #8FA7BA;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.contact-value {
  min-width: 0;
  color: var(--ice);
  overflow-wrap: anywhere;
}

.contact-value--email {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.contact-value--email .copy-email__status {
  font-size: 0.62rem;
}

.footer-copy-email {
  padding: 0;
  border: 0;
  border-bottom: 1px dashed rgba(185, 214, 234, 0.42);
  background: transparent;
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-copy-email:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-legal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
}

.footer-legal__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #8FA7BA;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.footer-legal__row .footer-link {
  color: #AEC3D1;
  font-size: 0.64rem;
}

.footer-legal__row .footer-link:hover {
  color: var(--snow);
}

.footer-legal__sep {
  color: rgba(185, 214, 234, 0.34);
}

.footer-meta {
  margin: 0;
  color: #8FA7BA;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.5;
  text-align: right;
}

.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.page-shell--narrow {
  max-width: 980px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.grid-span-2 { grid-column: span 2; }
.grid-span-3 { grid-column: span 3; }
.grid-span-4 { grid-column: span 4; }
.grid-span-5 { grid-column: span 5; }
.grid-span-6 { grid-column: span 6; }
.grid-span-7 { grid-column: span 7; }
.grid-span-8 { grid-column: span 8; }
.grid-span-9 { grid-column: span 9; }
.grid-span-10 { grid-column: span 10; }
.grid-span-11 { grid-column: span 11; }
.grid-span-12 { grid-column: span 12; }

.prose {
  max-width: 70ch;
  color: var(--high-blue);
  font-size: 1rem;
  line-height: 1.8;
}

.prose p {
  margin-bottom: 1.2em;
}

.prose :is(h2, h3) {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

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

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose a {
  color: var(--high-blue);
  border-bottom: 1px solid var(--orange);
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--orange);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.section-lede {
  max-width: 62ch;
  color: #3F5366;
  font-size: 1.02rem;
  line-height: 1.8;
}

.section-rule {
  margin: clamp(32px, 5vw, 64px) 0;
  border: 0;
  border-top: 1px solid var(--line-light);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--orange);
  color: var(--night);
  border-color: var(--orange);
}

.button--primary:hover {
  background: var(--high-blue);
  color: var(--snow);
  border-color: var(--cyan);
}

.button--ghost {
  background: transparent;
  color: var(--high-blue);
  border-color: var(--high-blue);
}

.button--ghost:hover {
  background: var(--high-blue);
  color: var(--snow);
  border-color: var(--high-blue);
}

.button--light {
  background: var(--snow);
  color: var(--high-blue);
  border-color: var(--snow);
}

.button--light:hover {
  background: var(--cyan);
  color: var(--night);
  border-color: var(--cyan);
}

.data-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid rgba(10, 40, 70, 0.18);
  background: var(--ice);
  color: var(--high-blue);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.data-chip--accent {
  background: var(--orange);
  color: var(--night);
  border-color: var(--orange);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(25, 227, 196, 0.15);
}

.status-dot--orange {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.14);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-light);
  background: transparent;
  color: var(--high-blue);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.filter-chip:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.filter-chip[aria-pressed="true"] {
  background: var(--high-blue);
  color: var(--snow);
  border-color: var(--high-blue);
}

.breadcrumb {
  padding: clamp(16px, 2.5vw, 28px) 0 0;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: #A7B5C1;
}

.breadcrumb__link {
  color: var(--high-blue);
  border-bottom: 1px solid transparent;
}

.breadcrumb__link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.media-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 180px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-light);
  background:
    linear-gradient(135deg, rgba(10, 40, 70, 0.08), rgba(185, 214, 234, 0.4)),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(10, 40, 70, 0.08) 48px),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(10, 40, 70, 0.06) 48px);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: auto -10% -22% -10%;
  height: 55%;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 40%, rgba(25, 227, 196, 0.16) 40% 41%, transparent 41%),
    linear-gradient(35deg, transparent 0 55%, rgba(255, 106, 26, 0.14) 55% 56%, transparent 56%);
}

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

.media-frame--square {
  aspect-ratio: 1;
}

.media-frame--portrait {
  min-height: 280px;
  aspect-ratio: 4 / 5;
}

.media-frame__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__label {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(25, 227, 196, 0.3);
  background: var(--night);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
}

@media (max-width: 1080px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 72px;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    padding: 8px;
    border: 1px solid var(--line-cyan);
    border-top: 0;
    background: linear-gradient(180deg, var(--night), var(--high-blue));
    box-shadow: 0 26px 50px rgba(6, 22, 38, 0.38);
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav .nav-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    padding-bottom: 2px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .site-nav .nav-item {
    scroll-snap-align: start;
  }

  .site-nav .nav-link {
    padding: 14px 16px;
    border-left: 0;
    border-right: 1px solid rgba(185, 214, 234, 0.12);
    background: rgba(255, 255, 255, 0.015);
    font-size: 0.86rem;
  }

  .site-nav .nav-item:first-child .nav-link {
    border-left: 1px solid rgba(185, 214, 234, 0.12);
  }

  .header-tools {
    justify-self: end;
  }
}

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

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

  .footer-column--brand .footer-note {
    max-width: 50ch;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  [class*="grid-span-"] {
    grid-column: 1 / -1;
  }

  .site-header__inner {
    min-height: 64px;
    gap: 8px;
  }

  .brand-lockup {
    gap: 9px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .brand-sub {
    display: none;
  }

  .current-index {
    gap: 5px;
    margin-top: 3px;
    font-size: 0.52rem;
  }

  .header-tools {
    gap: 6px;
  }

  .copy-email {
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.58rem;
  }

  .header-cta {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .nav-toggle {
    min-height: 34px;
    padding: 0 9px;
  }

  .footer-shell {
    padding-top: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-column--brand {
    grid-column: auto;
  }

  .footer-brand__mark {
    width: 48px;
    height: 48px;
  }

  .footer-legal__row {
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .current-index {
    display: none;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .copy-email__label {
    font-size: 0;
  }

  .copy-email__label::after {
    content: "邮箱";
    font-size: 0.58rem;
  }

  .copy-email__status {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    padding: 3px 6px;
    border: 1px solid var(--cyan);
    background: var(--night);
    box-shadow: 0 8px 20px rgba(6, 22, 38, 0.3);
  }

  .header-cta {
    padding: 0 8px;
  }

  .nav-toggle__label {
    display: none;
  }

  .footer-brand {
    gap: 12px;
  }

  .footer-brand__body {
    flex: 1;
  }

  .contact-line {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .footer-legal__row .footer-link {
    font-size: 0.62rem;
  }
}

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

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

  .header-cta:hover,
  .footer-link:hover,
  .brand-mark:hover,
  .button:hover {
    transform: none;
  }

  .scroll-progress__bar {
    transition: none;
  }
}
