/* ==========================================================================
   澳亚国际 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 页头 / 页脚 / 通用组件
   ========================================================================== */

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

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

body {
  margin: 0;
  background-color: #061726;
  background-image:
    radial-gradient(1000px 520px at 8% -12%, rgba(47, 227, 214, 0.13), transparent 62%),
    radial-gradient(900px 480px at 102% -6%, rgba(255, 106, 61, 0.13), transparent 60%),
    linear-gradient(rgba(27, 63, 92, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 63, 92, 0.22) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  color: #E9F2F8;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.06em;
  color: #E9F2F8;
}

h1 { font-size: clamp(30px, 4.6vw, 52px); }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
h4 { font-size: 17px; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

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

button { font: inherit; color: inherit; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid #2FE3D6;
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* --------------------------------------------------------------------------
   变量
   -------------------------------------------------------------------------- */
:root {
  --abyss: #061726;
  --hull: #0D2439;
  --raise: #123048;
  --line: #1B3F5C;
  --line-soft: rgba(27, 63, 92, 0.62);
  --line-faint: rgba(27, 63, 92, 0.30);

  --coral: #FF6A3D;
  --coral-soft: #FFA98A;
  --cyan: #2FE3D6;
  --teal: #0E9C9A;
  --amber: #FFC857;
  --mint: #4BD08B;
  --alert: #FF5A5A;

  --ink: #E9F2F8;
  --mist: #9BB3C6;
  --deep-ink: #08161F;

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

  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* --------------------------------------------------------------------------
   通用排版工具
   -------------------------------------------------------------------------- */
.mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #0E9C9A;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.annotation {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #9BB3C6;
  user-select: none;
}

/* --------------------------------------------------------------------------
   布局壳与栅格
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.16s ease-out, color 0.16s ease-out,
    border-color 0.16s ease-out, transform 0.16s ease-out, box-shadow 0.16s ease-out;
}

.btn--primary {
  background: var(--coral);
  color: var(--deep-ink);
}
.btn--primary:hover {
  background: var(--coral-soft);
  box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.16);
}

.btn--ghost {
  background: rgba(18, 48, 72, 0.55);
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--quiet {
  min-height: 36px;
  padding-inline: 8px;
  background: transparent;
  color: var(--mist);
}
.btn--quiet:hover { color: var(--coral); }

.btn:active { transform: translateY(1px); }

/* --------------------------------------------------------------------------
   标签 / 筛选片
   -------------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 48, 72, 0.6);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tag--version { color: var(--cyan); border-color: rgba(47, 227, 214, 0.45); }
.tag--new { color: var(--mint); border-color: rgba(75, 208, 139, 0.45); }
.tag--warn { color: var(--amber); border-color: rgba(255, 200, 87, 0.45); }
.tag--alert { color: var(--alert); border-color: rgba(255, 90, 90, 0.45); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 36, 57, 0.7);
  color: var(--mist);
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.16s ease-out, border-color 0.16s ease-out,
    background-color 0.16s ease-out;
}
.chip:hover { color: var(--ink); border-color: var(--coral-soft); }
.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--deep-ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   面板 / 框景
   -------------------------------------------------------------------------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--hull);
}

.panel--raised {
  background: var(--raise);
  box-shadow: var(--shadow);
}

.panel--outline {
  background: transparent;
  border-style: dashed;
  border-color: var(--line-soft);
}

/* --------------------------------------------------------------------------
   章节编号体系
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding-block: clamp(56px, 8vw, 96px);
}

.section-head {
  max-width: 40em;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: rgba(47, 227, 214, 0.38);
  margin-bottom: 10px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.4vw, 36px);
  letter-spacing: 0.06em;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--coral), rgba(255, 106, 61, 0));
}

/* --------------------------------------------------------------------------
   面包屑
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--coral); }

/* --------------------------------------------------------------------------
   正文容器
   -------------------------------------------------------------------------- */
.prose {
  max-width: 40em;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}

.prose > * + * { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 2em 0 0.6em;
}
.prose h3 {
  font-size: 19px;
  margin: 1.6em 0 0.5em;
}
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.1em; }
.prose li { list-style: disc; margin-bottom: 0.45em; }
.prose li::marker { color: var(--coral); }
.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(47, 227, 214, 0.4);
  transition: color 0.16s ease-out, border-color 0.16s ease-out;
}
.prose a:hover {
  color: var(--coral);
  border-bottom-color: var(--coral);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   图片容器基础（页面阶段放置占位图）
   -------------------------------------------------------------------------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--hull);
}

.media-frame::before,
.media-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 169, 138, 0.8);
  z-index: 2;
  pointer-events: none;
}
.media-frame::before {
  top: 8px;
  left: 8px;
  border-right: 0;
  border-bottom: 0;
}
.media-frame::after {
  right: 8px;
  bottom: 8px;
  border-left: 0;
  border-top: 0;
}

.media-frame__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(18, 48, 72, 0.92), rgba(6, 23, 38, 0.96));
  overflow: hidden;
}

.media-frame__inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-frame__cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--line-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

/* --------------------------------------------------------------------------
   页头
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 23, 38, 0.94);
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -120px;
  z-index: 120;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--coral);
  color: var(--deep-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: top 0.16s ease-out;
}
.skip-link:focus { top: 0; }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--cyan));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.1s linear;
  z-index: 5;
}

.site-header__primary { position: relative; }

.header-primary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding-block: 14px;
}

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

.brand__mark {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(140deg, rgba(255, 106, 61, 0.26), rgba(47, 227, 214, 0.16));
}

.brand__mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(233, 242, 248, 0.16);
  border-radius: 5px;
}

.brand__mark-core {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.2);
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  line-height: 1.3;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
  line-height: 1.4;
}

.status-line {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 16px;
  border: 1px solid var(--line-faint);
  border-radius: 999px;
  background: rgba(13, 36, 57, 0.7);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
  white-space: nowrap;
}

.status-lamp {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(47, 227, 214, 0.14);
  animation: lamp 2.8s ease-in-out infinite;
}

@keyframes lamp {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.header-utils {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.util-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mist);
  font-size: 14px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.16s ease-out, border-color 0.16s ease-out,
    background-color 0.16s ease-out;
}
.util-link:hover {
  color: var(--ink);
  border-color: var(--coral-soft);
  background: rgba(255, 106, 61, 0.08);
}

.util-link--accent {
  color: var(--cyan);
  border-color: rgba(47, 227, 214, 0.45);
}
.util-link--accent:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--deep-ink);
}

.site-header__nav {
  position: relative;
  border-top: 1px solid var(--line-faint);
  background: rgba(13, 36, 57, 0.62);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 58px;
}

.nav-code {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid rgba(14, 156, 154, 0.5);
  border-radius: 4px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.primary-nav { flex: 1 1 auto; min-width: 0; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 16px 2px;
  color: var(--mist);
  font-size: 15px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.16s ease-out;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.16s ease-out;
}

.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--coral);
}

.nav-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--deep-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background-color 0.16s ease-out, box-shadow 0.16s ease-out;
}
.nav-cta:hover {
  background: var(--coral-soft);
  box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.16);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--mist);
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.16s ease-out, border-color 0.16s ease-out;
}

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

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.16s ease-out, opacity 0.16s ease-out;
}

.nav-toggle[aria-expanded="true"] {
  color: var(--coral);
  border-color: var(--coral-soft);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 140px);
  background: linear-gradient(180deg, rgba(13, 36, 57, 0.9), rgba(6, 23, 38, 0.98));
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 106, 61, 0.6),
    rgba(47, 227, 214, 0.5),
    transparent
  );
}

.footer-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.6fr)
    minmax(0, 0.85fr)
    minmax(0, 0.85fr)
    minmax(0, 1.3fr);
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px);
}

.brand--footer { margin-bottom: 16px; }

.footer-intro {
  max-width: 34em;
  margin: 0 0 14px;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.75;
}

.footer-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--teal);
}

.footer-col__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--teal);
}

.footer-list {
  display: grid;
  gap: 9px;
}

.footer-list a {
  display: inline-block;
  color: var(--mist);
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease-out, border-color 0.16s ease-out;
}
.footer-list a:hover {
  color: var(--ink);
  border-bottom-color: var(--coral);
}

.contact-list {
  display: grid;
  gap: 0;
  margin-bottom: 16px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding-block: 8px;
  border-bottom: 1px dashed var(--line-faint);
}

.contact-label {
  color: var(--mist);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.contact-value {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  word-break: break-word;
}

.contact-value.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.contact-note {
  margin: 0;
  color: var(--mist);
  font-size: 13px;
  line-height: 1.7;
}

.footer-bar {
  border-top: 1px solid var(--line-faint);
}

.footer-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 20px;
}

.footer-copy {
  margin: 0;
  color: var(--mist);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-links a {
  color: var(--mist);
  font-size: 13px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease-out, border-color 0.16s ease-out;
}
.legal-links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* --------------------------------------------------------------------------
   回到顶部（由脚本创建）
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 70;
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 36, 57, 0.95);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: color 0.16s ease-out, border-color 0.16s ease-out;
}
.to-top.is-shown { display: inline-flex; }
.to-top:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* --------------------------------------------------------------------------
   显现
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .nav-list { gap: 14px; }
  .nav-link { font-size: 14px; }
  .status-line__text { font-size: 11px; }
}

@media (max-width: 1000px) {
  .header-primary { grid-template-columns: auto 1fr; }
  .status-line { display: none; }
  .header-utils { justify-self: end; }
}

@media (max-width: 900px) {
  body { background-size: auto, auto, 48px 48px, 48px 48px; }

  .nav-code { display: none; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { flex: 1 1 auto; }
  .nav-cta { margin-left: auto; }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 6px var(--gutter) 22px;
    background: var(--hull);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li + li { border-top: 1px solid var(--line-faint); }

  .nav-link {
    display: block;
    padding: 14px 0;
    font-size: 16px;
  }

  .nav-link::after { bottom: 10px; }

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

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

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

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

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

  .header-primary { padding-block: 12px; }
  .header-utils { gap: 8px; }
  .util-link { min-height: 32px; padding: 0 12px; font-size: 13px; }
  .nav-cta { min-height: 32px; padding: 0 13px; font-size: 13px; }

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

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }

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

  .contact-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }

  .media-frame__cap { flex-direction: column; gap: 4px; }

  .to-top { right: 12px; bottom: 12px; padding: 0 14px; }
}

/* --------------------------------------------------------------------------
   降低动态效果
   -------------------------------------------------------------------------- */
@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;
  }

  .status-lamp { animation: none; opacity: 1; }

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

  .nav-link:hover,
  .nav-link[aria-current="page"] { color: var(--coral); }

  .btn:active { transform: none; }
}
