/* ============================================================
   博鱼官方站 · 共享站点样式 /assets/site.css
   水下光栅框架：刻度边框 + 深蓝层次 + 奶油纸画布
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --deep: #0B2B45;
  --abyss: #071C2E;
  --cream: #F6F1E4;
  --silver: #C9D6E0;
  --mist: #E8EEF3;
  --coral: #E85D3F;
  --coral-deep: #B83A22;
  --sand: #D9A441;
  --ink: #2B2118;
  --aqua: #7FB3C8;
  --teal: #2E7D6B;

  --line-strong: rgba(11, 43, 69, 0.2);
  --line-soft: rgba(11, 43, 69, 0.1);
  --line-light: rgba(201, 214, 224, 0.24);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-2xl: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  --fs-3xl: clamp(2rem, 1.5rem + 2.6vw, 3rem);
  --fs-4xl: clamp(2.5rem, 1.7rem + 4vw, 4rem);
  --fs-5xl: clamp(2.9rem, 1.8rem + 6vw, 4.5rem);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1280px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --shadow-float: 0 18px 44px -26px rgba(7, 28, 46, 0.6);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

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

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
}

[hidden] { display: none !important; }

/* ---------- 3. 基础中文排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-underline-offset: 0.22em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: inherit;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

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

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

/* ---------- 4. 布局基元 ---------- */
.u-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.section--cream { background-color: var(--cream); color: var(--ink); }
.section--mist { background-color: var(--mist); color: var(--ink); }
.section--deep { background-color: var(--deep); color: var(--mist); }
.section--abyss { background-color: var(--abyss); color: var(--mist); }

.blueprint-grid {
  background-image:
    linear-gradient(to right, rgba(11, 43, 69, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 43, 69, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
}

.section--deep.blueprint-grid,
.section--abyss.blueprint-grid {
  background-image:
    linear-gradient(to right, rgba(201, 214, 224, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201, 214, 224, 0.12) 1px, transparent 1px);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background-color: currentColor;
  opacity: 0.18;
}

/* ---------- 5. 头部框架 ---------- */
.frame-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--deep);
  color: var(--mist);
  border-bottom: 1px solid rgba(201, 214, 224, 0.24);
  box-shadow: 0 2px 0 rgba(7, 28, 46, 0.3);
}

.frame-header__ticks {
  height: 9px;
  background-color: var(--abyss);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(201, 214, 224, 0.45) 0 1px,
    transparent 1px 26px
  );
  border-bottom: 1px solid rgba(201, 214, 224, 0.16);
}

.frame-header__rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding-block: 0.7rem;
}

.frame-header__notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.42rem;
  border-top: 1px solid rgba(201, 214, 224, 0.14);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(201, 214, 224, 0.74);
}

.notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.notice__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(232, 93, 63, 0.22);
}

.notice__coord {
  white-space: nowrap;
  opacity: 0.75;
}

.progress {
  height: 2px;
  background-color: rgba(201, 214, 224, 0.14);
  overflow: hidden;
}

.progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background-image: linear-gradient(90deg, var(--aqua), var(--coral));
  transition: width 0.12s linear;
}

/* 跳过导航 */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.5rem;
  z-index: 120;
  transform: translateY(-180%);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  background-color: var(--cream);
  color: var(--deep);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  box-shadow: var(--shadow-float);
  transition: transform 0.22s ease;
}

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

/* 品牌舱 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
  flex: none;
}

.brand__mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 13px;
  overflow: hidden;
  background-image: linear-gradient(150deg, var(--cream), var(--silver));
  box-shadow: inset 0 0 0 1px rgba(11, 43, 69, 0.2);
}

.brand__mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 74% 28%, var(--coral) 0 4.5px, transparent 4.5px),
    repeating-linear-gradient(116deg, transparent 0 6px, rgba(11, 43, 69, 0.55) 6px 7px);
}

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

.brand__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.brand__tag {
  margin-top: 0.22rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: rgba(201, 214, 224, 0.78);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(201, 214, 224, 0.45);
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--coral);
  background-color: rgba(232, 93, 63, 0.14);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background-color: var(--silver);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) 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(-5px) rotate(-45deg);
}

.nav-toggle__label { line-height: 1; }

/* 导航 */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__item { display: block; }

.nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.48rem 0.82rem;
  border-radius: var(--radius-pill);
  color: rgba(232, 238, 243, 0.88);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.nav__link:hover {
  background-color: rgba(201, 214, 224, 0.14);
  color: #FFFFFF;
}

.nav__index {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--aqua);
}

.nav__link[aria-current="page"] {
  background-color: var(--cream);
  color: var(--deep);
  box-shadow: inset 0 0 0 1px rgba(232, 93, 63, 0.55);
}

.nav__link[aria-current="page"] .nav__index {
  color: var(--coral-deep);
}

.nav__cta { flex: none; }

/* ---------- 6. 页脚 ---------- */
.frame-footer {
  position: relative;
  background-color: var(--abyss);
  color: var(--mist);
  overflow: hidden;
}

.frame-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(201, 214, 224, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201, 214, 224, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
}

.frame-footer__arc {
  position: relative;
  z-index: 1;
  height: clamp(26px, 4vw, 54px);
  background-color: var(--cream);
  border-radius: 0 0 100% 100% / 0 0 100% 100%;
}

.frame-footer__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 2.6fr) minmax(0, 1.6fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(1.8rem, 4vw, 3rem) clamp(1.6rem, 3.5vw, 2.6rem);
}

.frame-footer__lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.brand--footer { color: var(--cream); }

.frame-footer__note {
  max-width: 30ch;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: rgba(232, 238, 243, 0.72);
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.2rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(201, 214, 224, 0.35);
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--mist);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.top-link:hover {
  border-color: var(--coral);
  background-color: rgba(232, 93, 63, 0.16);
  color: var(--cream);
}

.top-link__arrow {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1;
  color: var(--coral);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
}

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

.footer-col__title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.footer-col__index {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--coral);
}

.footer-col__list {
  display: grid;
  gap: 0.5rem;
}

.footer-link {
  color: rgba(232, 238, 243, 0.78);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-link:hover {
  color: var(--cream);
  border-bottom-color: rgba(232, 93, 63, 0.8);
}

.footer-link--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

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

.footer-contact__list {
  display: grid;
  gap: 0.72rem;
  font-size: 0.88rem;
}

.footer-contact__list > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: baseline;
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: rgba(201, 214, 224, 0.62);
  white-space: nowrap;
}

.footer-contact__value {
  color: var(--mist);
  word-break: break-word;
}

.frame-footer__base {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(201, 214, 224, 0.16);
  background-color: rgba(7, 28, 46, 0.55);
}

.frame-footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-block: 1rem;
  font-size: 0.78rem;
  color: rgba(232, 238, 243, 0.66);
}

.frame-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.frame-footer__dot { opacity: 0.55; }

.frame-footer__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: rgba(201, 214, 224, 0.55);
}

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

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

.btn--coral {
  background-color: var(--coral);
  color: var(--deep);
}

.btn--coral:hover { background-color: #F0704F; }

.btn--deep {
  background-color: var(--deep);
  color: var(--cream);
}

.btn--deep:hover { background-color: #103A5C; }

.btn--ghost {
  background-color: transparent;
  border-color: rgba(201, 214, 224, 0.45);
  color: var(--cream);
}

.btn--ghost:hover {
  border-color: var(--coral);
  background-color: rgba(232, 93, 63, 0.14);
}

.btn--sand {
  background-color: var(--sand);
  color: var(--ink);
}

.btn--sand:hover { background-color: #E7B457; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.26rem 0.72rem;
  border: 1px solid rgba(11, 43, 69, 0.16);
  border-radius: var(--radius-pill);
  background-color: rgba(201, 214, 224, 0.3);
  color: var(--deep);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.pill--coral {
  background-color: var(--coral);
  border-color: transparent;
  color: var(--deep);
}

.pill--sand {
  background-color: var(--sand);
  border-color: rgba(43, 33, 24, 0.2);
  color: var(--ink);
}

.pill--ghost {
  background-color: transparent;
  border-color: rgba(201, 214, 224, 0.42);
  color: var(--cream);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aqua);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background-color: currentColor;
  opacity: 0.85;
}

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

/* ---------- 8. 面包屑与正文 ---------- */
.breadcrumbs {
  font-size: var(--fs-sm);
  color: rgba(11, 43, 69, 0.72);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumbs__link {
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 43, 69, 0.28);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.breadcrumbs__link:hover {
  color: var(--coral-deep);
  border-bottom-color: var(--coral-deep);
}

.breadcrumbs__sep {
  font-family: var(--font-mono);
  opacity: 0.5;
}

.breadcrumbs__current {
  font-weight: 700;
  color: var(--deep);
}

.breadcrumbs--light { color: rgba(232, 238, 243, 0.74); }

.breadcrumbs--light .breadcrumbs__link {
  border-bottom-color: rgba(232, 238, 243, 0.35);
}

.breadcrumbs--light .breadcrumbs__link:hover { color: var(--coral); }

.breadcrumbs--light .breadcrumbs__current { color: var(--cream); }

.prose {
  max-width: 72ch;
}

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

.prose h2,
.prose h3 {
  margin-top: 1.7em;
  color: var(--deep);
}

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

.prose ol { list-style: decimal; }

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

.prose a {
  color: var(--coral-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* ---------- 9. 通用面板 / 时间轴 / 筛选 ---------- */
.panel {
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background-color: #FFFFFF;
  color: var(--ink);
}

.panel--sand {
  background-color: var(--sand);
  border-color: rgba(43, 33, 24, 0.2);
  color: var(--ink);
}

.panel--deep {
  background-color: var(--deep);
  border-color: rgba(201, 214, 224, 0.24);
  color: var(--mist);
}

.timeline {
  display: grid;
  gap: 1.35rem;
}

.timeline__item {
  position: relative;
  padding-left: 2rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(232, 93, 63, 0.14);
}

.timeline__item::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5rem;
  bottom: -1.35rem;
  width: 1px;
  background-color: rgba(11, 43, 69, 0.2);
}

.section--deep .timeline__item::after,
.section--abyss .timeline__item::after {
  background-color: rgba(201, 214, 224, 0.28);
}

.timeline__item:last-child::after { display: none; }

.timeline__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--deep);
}

.section--deep .timeline__title,
.section--abyss .timeline__title { color: var(--cream); }

.timeline__meta {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--aqua);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.4rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background-color: rgba(201, 214, 224, 0.3);
}

.filter-btn {
  padding: 0.4rem 0.95rem;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--deep);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-btn:hover { background-color: rgba(11, 43, 69, 0.1); }

.filter-btn[aria-pressed="true"] {
  background-color: var(--deep);
  color: var(--cream);
}

/* ---------- 10. 图框基础规则 ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-image: linear-gradient(155deg, rgba(127, 179, 200, 0.42), rgba(11, 43, 69, 0.94));
  box-shadow: var(--shadow-float), inset 0 0 0 1px rgba(201, 214, 224, 0.3);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(232, 238, 243, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(232, 238, 243, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
}

.media-frame > img,
.media-frame > svg,
.media-frame > picture,
.media-frame__fill {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--3x2 { aspect-ratio: 3 / 2; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--free { aspect-ratio: auto; }

.media-frame__label {
  position: absolute;
  z-index: 2;
  left: 0.9rem;
  bottom: 0.9rem;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  background-color: rgba(7, 28, 46, 0.74);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

/* ---------- 11. 显现动效 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.7, 0.25, 1);
}

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

/* ---------- 12. 响应式 ---------- */
@media (min-width: 1200px) {
  body::before,
  body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 12px;
    pointer-events: none;
    background-image: repeating-linear-gradient(
      180deg,
      rgba(11, 43, 69, 0.16) 0 1px,
      transparent 1px 18px
    );
  }

  body::before { left: 0; }
  body::after { right: 0; }
}

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

  .frame-footer__lead { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

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

  .nav {
    order: 3;
    flex-basis: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    margin-left: 0;
    padding: 0.8rem 0 0.4rem;
    border-top: 1px solid rgba(201, 214, 224, 0.18);
  }

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

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.22rem;
  }

  .nav__link {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-md);
    background-color: rgba(201, 214, 224, 0.08);
    font-size: 0.95rem;
  }

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

  .nav__cta {
    width: 100%;
    padding: 0.8rem 1rem;
  }

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

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

@media (max-width: 720px) {
  .notice__coord { display: none; }

  .frame-header__notice { font-size: 0.68rem; }

  .brand__tag { display: none; }

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

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

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

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

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

  .frame-footer__base-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

/* ---------- 13. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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

  .btn:hover { transform: none; }
}
