/* ===========================================================
   JDB电子官方 · orbit-jdb.com.cn · /assets/site.css
   共享外壳：reset / tokens / 排版 / 头部轨道 / 页脚 / 通用组件
   =========================================================== */

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

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

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

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

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

a { color: inherit; }

button { font: inherit; color: inherit; background: none; border: 0; }

main { display: block; }

/* ---------- 2. tokens ---------- */
:root {
  --deep: #061A2E;
  --abyss: #0C2B47;
  --slate: #2E3C46;
  --bone: #F3EFE4;
  --cyan: #3BE3EA;
  --coral: #FF6A4D;
  --moss: #78945F;
  --clay: #C36B4C;
  --mist: #92A7B4;

  --rail-w: 124px;
  --shell-max: 1180px;
  --gutter: clamp(18px, 4.2vw, 48px);

  --r-xl: 28px;
  --r-l: 20px;
  --r-m: 14px;
  --r-s: 9px;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Noto Sans Mono", "Courier New", monospace;

  --line-soft: rgba(146, 167, 180, 0.18);
  --line-cyan: rgba(59, 227, 234, 0.36);

  --shadow-lift: 0 22px 48px -30px rgba(0, 0, 0, 0.95);
  --glow-cyan: 0 0 0 1px rgba(59, 227, 234, 0.5), 0 0 30px -8px rgba(59, 227, 234, 0.55);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.012em;
  color: var(--bone);
  background-color: var(--deep);
  background-image:
    radial-gradient(120% 82% at 84% -12%, rgba(59, 227, 234, 0.16), transparent 58%),
    radial-gradient(92% 64% at 4% 108%, rgba(195, 107, 76, 0.14), transparent 62%),
    linear-gradient(180deg, #071E34 0%, #061A2E 46%, #05172a 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--bone);
}

h1 { font-size: clamp(2rem, 5.2vw, 3.75rem); line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 1.8vw, 1.375rem); letter-spacing: 0.05em; }
h4 { font-size: 1rem; letter-spacing: 0.08em; }

p { text-wrap: pretty; }

strong { font-weight: 700; color: #fff; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--cyan);
}

::selection {
  background: var(--cyan);
  color: var(--deep);
}

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

/* ---------- 4. 无障碍工具 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--coral);
  color: #08131F;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 16px 34px -18px rgba(255, 106, 77, 0.95);
  transition: transform 0.22s ease;
}

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

/* ---------- 5. 头部：移动端顶部条 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px var(--gutter);
  background: linear-gradient(180deg, rgba(12, 43, 71, 0.94), rgba(6, 26, 46, 0.92));
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
}

.rail__top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

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

.brand__mark {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 18px -6px rgba(59, 227, 234, 0.8);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand__line {
  display: none;
  font-size: 0.6875rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--mist);
}

/* 移动导航按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 9px 15px;
  border: 1px solid var(--line-cyan);
  border-radius: 999px;
  background: rgba(59, 227, 234, 0.09);
  color: var(--bone);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(59, 227, 234, 0.18);
  border-color: var(--cyan);
}

.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.26s cubic-bezier(0.22, 0.9, 0.24, 1), opacity 0.2s ease;
}

.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 移动端路径面板 */
.site-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 75;
  max-height: 84vh;
  overflow-y: auto;
  padding: 22px var(--gutter) calc(26px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #0C2B47 0%, #061A2E 100%);
  border-top: 1px solid var(--line-cyan);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -34px 64px -22px rgba(0, 0, 0, 0.9);
  transform: translateY(104%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 0.9, 0.24, 1), visibility 0.4s;
}

.site-header[data-open] .site-nav {
  transform: translateY(0);
  visibility: visible;
}

.site-nav__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  color: var(--clay);
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--r-m);
  color: var(--bone);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-nav__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: var(--cyan);
  transform: translateY(-50%);
  transition: height 0.24s ease;
}

.site-nav__link:hover {
  background: rgba(59, 227, 234, 0.1);
  border-color: rgba(59, 227, 234, 0.34);
  color: #fff;
}

.site-nav__link[aria-current="page"] {
  background: rgba(59, 227, 234, 0.15);
  border-color: rgba(59, 227, 234, 0.6);
  color: #fff;
  box-shadow: 0 0 26px -12px rgba(59, 227, 234, 0.9);
}

.site-nav__link[aria-current="page"]::before { height: 62%; }

.site-nav__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--clay);
}

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

.site-nav__txt {
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.rail__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 13px 12px;
  border-radius: 999px;
  background: var(--coral);
  color: #08131F;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 18px 34px -20px rgba(255, 106, 77, 0.95);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.rail__cta:hover {
  background: #FF8266;
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -18px rgba(255, 106, 77, 0.95);
}

.rail__foot { display: none; }

/* 阅读进度轨（移动：头部下沿横条） */
.rail__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(146, 167, 180, 0.14);
  pointer-events: none;
}

.rail__progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--coral));
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  transition: transform 0.1s linear;
}

body.nav-open { overflow: hidden; }

/* ---------- 6. 头部：桌面端左侧轨道 ---------- */
@media (min-width: 981px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 24px 0 18px;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, rgba(12, 43, 71, 0.9) 0%, rgba(6, 26, 46, 0.98) 68%, #05172a 100%);
    border-right: 1px solid var(--line-soft);
    border-bottom: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    scrollbar-width: thin;
  }

  .rail__top {
    display: block;
    padding: 0 14px 16px;
    border-bottom: 1px solid var(--line-soft);
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand__name {
    font-size: 0.9375rem;
    letter-spacing: 0.1em;
    white-space: normal;
    line-height: 1.35;
  }

  .brand__line {
    display: block;
    margin-top: 8px;
  }

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    flex: 1 1 auto;
    display: block;
    max-height: none;
    overflow: visible;
    padding: 16px 9px 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .site-nav__title { display: none; }

  .site-nav__list { gap: 4px; }

  .site-nav__link {
    gap: 7px;
    padding: 9px 7px;
    border-radius: 10px;
  }

  .site-nav__num { font-size: 0.5625rem; }

  .site-nav__txt {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
  }

  .rail__cta {
    margin-top: 18px;
    padding: 12px 8px;
    border-radius: 11px;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    line-height: 1.35;
    text-align: center;
  }

  .rail__foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 16px 14px 0;
    border-top: 1px solid var(--line-soft);
  }

  .rail__dot {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--moss);
    box-shadow: 0 0 0 4px rgba(120, 148, 95, 0.16);
  }

  .rail__label {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    line-height: 1.5;
    letter-spacing: 0.08em;
    color: var(--mist);
  }

  .rail__progress {
    left: auto;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3px;
    height: auto;
  }

  .rail__progress-fill {
    background: linear-gradient(180deg, var(--cyan), var(--coral));
    transform: scaleY(var(--p, 0));
    transform-origin: center top;
  }
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 118px);
  overflow: hidden;
  color: var(--bone);
  background: linear-gradient(180deg, #061A2E 0%, #0C2B47 58%, #08203a 100%);
  border-top: 1px solid var(--line-cyan);
}

.footer__arc {
  position: absolute;
  right: -160px;
  bottom: -280px;
  width: min(680px, 104vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(59, 227, 234, 0.18);
  background: radial-gradient(circle at 32% 30%, rgba(59, 227, 234, 0.08), transparent 62%);
  box-shadow:
    0 0 0 48px rgba(59, 227, 234, 0.03),
    0 0 0 118px rgba(195, 107, 76, 0.045);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 4vw, 46px);
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) 0;
}

.footer__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  color: var(--clay);
  margin-bottom: 14px;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0.08em;
  color: var(--bone);
}

.footer__desc {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--mist);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 34px);
}

@media (min-width: 560px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.footer__title {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

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

.footer__link {
  display: inline-block;
  padding: 4px 0;
  font-size: 0.9375rem;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer__link:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

.footer__coords {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.coord {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--clay);
  border-radius: var(--r-s);
  background: rgba(46, 60, 70, 0.5);
}

.coord__k {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.coord__v {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--bone);
  overflow-wrap: anywhere;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 20px 0 30px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8125rem;
  color: var(--mist);
}

.footer__copy,
.footer__icp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.footer__tag {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--clay);
}

@media (min-width: 900px) {
  .footer__inner {
    grid-template-columns: minmax(240px, 1fr) minmax(0, 1.4fr);
    column-gap: clamp(32px, 5vw, 84px);
  }

  .footer__head { grid-column: 1; grid-row: 1; }
  .footer__grid { grid-column: 2; grid-row: 1; }
  .footer__coords { grid-column: 1 / -1; }
  .footer__base { grid-column: 1 / -1; }
}

/* ---------- 8. 容器与章节 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(40px, 6vw, 82px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 18px;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  color: var(--clay);
}

.section__num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.lede {
  max-width: 62ch;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.85;
  color: var(--mist);
}

.prose p { max-width: 68ch; margin-bottom: 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin: 1.6em 0 0.6em; }
.prose h3 { margin: 1.4em 0 0.5em; }
.prose ul { max-width: 68ch; }
.prose li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.5em;
  color: var(--mist);
}
.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

/* ---------- 9. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

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

.crumbs a { color: var(--mist); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--bone); }

.crumbs__sep { color: rgba(146, 167, 180, 0.45); }

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--coral);
  color: #08131F;
  box-shadow: 0 18px 34px -22px rgba(255, 106, 77, 0.95);
}

.btn--primary:hover {
  background: #FF8266;
  transform: translateY(-2px);
  box-shadow: 0 24px 42px -20px rgba(255, 106, 77, 0.95);
}

.btn--ghost {
  border-color: var(--line-cyan);
  background: rgba(59, 227, 234, 0.07);
  color: var(--bone);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: #fff;
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.btn--quiet {
  padding: 8px 0;
  border-radius: 0;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.875rem;
}

.btn--quiet:hover { color: #fff; }

/* ---------- 11. 网格与卡片 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.grid > * { grid-column: 1 / -1; }

@media (min-width: 720px) {
  .grid--2 > * { grid-column: span 6; }
  .grid--split > :nth-child(1) { grid-column: span 7; }
  .grid--split > :nth-child(2) { grid-column: span 5; }
}

@media (min-width: 980px) {
  .grid--3 > * { grid-column: span 4; }
}

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  background: linear-gradient(160deg, rgba(46, 60, 70, 0.72), rgba(12, 43, 71, 0.62));
  box-shadow: var(--shadow-lift);
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.card:hover {
  border-color: var(--line-cyan);
  box-shadow: var(--shadow-lift), var(--glow-cyan);
  transform: translateY(-3px);
}

.card__num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--clay);
}

.card__title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.0625rem;
  letter-spacing: 0.05em;
  color: var(--bone);
}

.card__text {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--mist);
}

.card--node { padding-left: clamp(20px, 2.6vw, 30px); }

.card--node::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), transparent);
}

.card--coord {
  border-radius: var(--r-m);
  border-left: 2px solid var(--moss);
  background: rgba(46, 60, 70, 0.46);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--cyan { color: var(--cyan); background: rgba(59, 227, 234, 0.1); }
.tag--coral { color: var(--coral); background: rgba(255, 106, 77, 0.12); }
.tag--moss { color: var(--moss); background: rgba(120, 148, 95, 0.14); }
.tag--clay { color: var(--clay); background: rgba(195, 107, 76, 0.14); }

/* ---------- 12. 图片容器（页面阶段放占位图） ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  background-color: var(--abyss);
  background-image:
    linear-gradient(140deg, rgba(12, 43, 71, 0.95), rgba(6, 26, 46, 0.95)),
    radial-gradient(80% 70% at 18% 8%, rgba(59, 227, 234, 0.22), transparent 60%);
  box-shadow: var(--shadow-lift);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(59, 227, 234, 0.07) 0 1px, transparent 1px 26px);
  mix-blend-mode: screen;
  pointer-events: none;
}

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

.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 4 / 5; }

@media (min-width: 900px) {
  .media--tall { aspect-ratio: 3 / 4; }
}

/* ---------- 13. 滚动显现 ---------- */
.has-js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.has-js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 降低动态偏好 ---------- */
@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;
  }

  .has-js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover,
  .btn:hover,
  .rail__cta:hover,
  .footer__link:hover {
    transform: none;
  }
}
