/* ============================================================
   FG电子狂欢 · /assets/site.css
   共享外壳：重置 / 变量 / 中文排版 / 悬浮胶囊导航 / 页脚 / 通用组件
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, li, h1, h2, h3, h4 { overflow-wrap: break-word; }

/* ---------- 2. 变量 ---------- */
:root {
  --fg-ink: #07080F;
  --fg-stage: #111522;
  --fg-stage-2: #0A0C16;
  --fg-paper: #F4E9D4;
  --fg-brown: #1B120E;
  --fg-cyan: #2FF3FF;
  --fg-violet: #9A5CFF;
  --fg-magenta: #FF2DAA;
  --fg-lime: #A8FF3E;
  --fg-coral: #FF6A3D;
  --fg-mist: #9AA7C2;

  --fg-line: rgba(154, 167, 194, .20);
  --fg-line-strong: rgba(47, 243, 255, .55);
  --fg-glow-cyan: 0 0 26px -8px rgba(47, 243, 255, .85);
  --fg-glow-violet: 0 0 26px -8px rgba(154, 92, 255, .85);

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

  --fg-wrap: 1240px;
  --fg-gutter: clamp(16px, 4vw, 40px);
  --fg-radius: 14px;
  --fg-radius-sm: 8px;
  --fg-radius-pill: 999px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--fg-ink);
  background-image:
    radial-gradient(58% 42% at 10% -4%, rgba(154, 92, 255, .22), transparent 72%),
    radial-gradient(46% 38% at 92% 2%, rgba(47, 243, 255, .16), transparent 72%),
    radial-gradient(38% 30% at 50% 104%, rgba(255, 45, 170, .12), transparent 74%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--fg-paper);
  font-family: var(--fg-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  font-family: var(--fg-font-display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: .02em;
  color: var(--fg-paper);
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); }

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

.fg-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 跳转链接 ---------- */
.fg-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 400;
  padding: 10px 18px;
  border-radius: var(--fg-radius-pill);
  background: var(--fg-cyan);
  color: var(--fg-ink);
  font-family: var(--fg-font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  transform: translateY(-220%);
  transition: transform .2s ease;
}
.fg-skip:focus,
.fg-skip:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--fg-paper);
  outline-offset: 3px;
}

/* ---------- 5. 滚动进度光带 ---------- */
.fg-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 300;
  background: linear-gradient(90deg, var(--fg-cyan), var(--fg-violet) 55%, var(--fg-magenta));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  will-change: transform;
}

/* ---------- 6. 悬浮胶囊导航 ---------- */
.fg-header {
  position: sticky;
  top: 14px;
  z-index: 120;
  padding: 0 clamp(8px, 2vw, 20px);
  transition: top .28s ease;
}

.fg-header__pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: var(--fg-wrap);
  margin-inline: auto;
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--fg-line);
  border-radius: var(--fg-radius-pill);
  background: linear-gradient(118deg, rgba(17, 21, 34, .95) 0%, rgba(7, 8, 15, .93) 62%, rgba(17, 21, 34, .95) 100%);
  box-shadow:
    0 20px 54px -30px rgba(0, 0, 0, .96),
    inset 0 1px 0 rgba(244, 233, 212, .07);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  transition: padding .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.fg-header__pill::after {
  content: "";
  position: absolute;
  inset-inline: 22px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 243, 255, .55), rgba(154, 92, 255, .45), transparent);
  pointer-events: none;
}

.fg-header.is-compact { top: 6px; }
.fg-header.is-compact .fg-header__pill {
  padding-block: 6px;
  border-color: rgba(47, 243, 255, .22);
  box-shadow:
    0 22px 46px -32px rgba(0, 0, 0, .95),
    0 0 30px -20px rgba(154, 92, 255, .9),
    inset 0 1px 0 rgba(244, 233, 212, .05);
}
.fg-header.is-compact .fg-brand__mark { width: 28px; height: 28px; font-size: 11px; }

/* 品牌标 */
.fg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--fg-paper);
}
.fg-brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-family: var(--fg-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--fg-ink);
  background: linear-gradient(135deg, var(--fg-cyan), var(--fg-violet));
  box-shadow: 0 0 0 1px rgba(47, 243, 255, .40), 0 0 22px -6px var(--fg-cyan);
  transition: width .28s ease, height .28s ease, font-size .28s ease;
}
.fg-brand__text {
  font-family: var(--fg-font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .05em;
  white-space: nowrap;
}

/* 主导航 */
.fg-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}
.fg-nav__list {
  display: flex;
  align-items: center;
  gap: 3px;
}
.fg-nav__item { display: flex; }

.fg-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--fg-radius-pill);
  color: var(--fg-mist);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .22s ease;
}
.fg-nav__index {
  font-family: var(--fg-font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--fg-coral);
  opacity: .85;
  transition: color .18s ease;
}
.fg-nav__link:hover {
  color: var(--fg-paper);
  background: rgba(47, 243, 255, .08);
  border-color: rgba(47, 243, 255, .22);
}
.fg-nav__link:hover .fg-nav__index { color: var(--fg-cyan); }
.fg-nav__link:focus-visible {
  outline: 2px solid var(--fg-cyan);
  outline-offset: 2px;
}

.fg-nav__link--cta {
  padding: 9px 16px;
  font-family: var(--fg-font-display);
  font-weight: 800;
  color: var(--fg-ink);
  background: linear-gradient(100deg, var(--fg-cyan), var(--fg-violet));
  box-shadow: 0 0 26px -9px rgba(47, 243, 255, .95);
}
.fg-nav__link--cta .fg-nav__index { color: rgba(7, 8, 15, .62); }
.fg-nav__link--cta:hover {
  color: var(--fg-ink);
  background: linear-gradient(100deg, var(--fg-lime), var(--fg-cyan));
  border-color: transparent;
  box-shadow: 0 0 30px -6px rgba(168, 255, 62, .85);
}
.fg-nav__link--cta:hover .fg-nav__index { color: rgba(7, 8, 15, .62); }

/* 当前栏目 */
.fg-nav__link[aria-current="page"] {
  color: var(--fg-cyan);
  border-color: var(--fg-line-strong);
  background: rgba(47, 243, 255, .10);
  box-shadow: var(--fg-glow-cyan);
}
.fg-nav__link[aria-current="page"] .fg-nav__index { color: var(--fg-lime); }
.fg-nav__link--cta[aria-current="page"] {
  color: var(--fg-ink);
  border-color: transparent;
  background: linear-gradient(100deg, var(--fg-lime), var(--fg-cyan));
}
.fg-nav__link--cta[aria-current="page"] .fg-nav__index { color: rgba(7, 8, 15, .62); }

/* 汉堡按钮 */
.fg-nav-toggle {
  display: none;
  flex: 0 0 auto;
  margin-left: auto;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--fg-line);
  border-radius: var(--fg-radius-pill);
  color: var(--fg-paper);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.fg-nav-toggle:hover { border-color: var(--fg-line-strong); color: var(--fg-cyan); }
.fg-nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s ease, opacity .18s ease;
}
.fg-header[data-open] .fg-nav-toggle {
  color: var(--fg-cyan);
  border-color: var(--fg-line-strong);
  background: rgba(47, 243, 255, .10);
}
.fg-header[data-open] .fg-nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.fg-header[data-open] .fg-nav-toggle__bar:nth-child(2) { opacity: 0; }
.fg-header[data-open] .fg-nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 7. 页脚 ---------- */
.fg-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 128px);
  padding-block: clamp(40px, 6vw, 74px) 26px;
  border-top: 1px solid var(--fg-line);
  background: linear-gradient(180deg, rgba(17, 21, 34, 0) 0%, rgba(17, 21, 34, .92) 34%, var(--fg-stage-2) 100%);
  overflow: hidden;
}
.fg-footer::before {
  content: "";
  position: absolute;
  inset-inline: -8%;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--fg-cyan) 22%, var(--fg-violet) 56%, var(--fg-magenta) 82%, transparent 100%);
  opacity: .75;
  pointer-events: none;
}
.fg-footer__inner {
  width: 100%;
  max-width: var(--fg-wrap);
  margin-inline: auto;
  padding-inline: var(--fg-gutter);
}
.fg-footer__grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) repeat(3, minmax(104px, .75fr)) minmax(230px, 1.15fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.fg-footer__sig {
  font-family: var(--fg-font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .05em;
  color: var(--fg-paper);
}
.fg-footer__line {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--fg-mist);
}
.fg-footer__contact {
  display: grid;
  gap: 7px;
  margin-top: 20px;
}
.fg-footer__contactitem {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 13.5px;
  color: rgba(244, 233, 212, .84);
}
.fg-footer__contactkey {
  min-width: 42px;
  font-family: var(--fg-font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--fg-violet);
}

.fg-footer__coltitle {
  margin-bottom: 14px;
  font-family: var(--fg-font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-mist);
}
.fg-footer__list {
  display: grid;
  gap: 10px;
}
.fg-footer__link {
  display: inline-block;
  padding-bottom: 2px;
  font-size: 14.5px;
  color: rgba(244, 233, 212, .82);
  background-image: linear-gradient(90deg, var(--fg-cyan), var(--fg-violet));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: color .2s ease, background-size .24s ease;
}
.fg-footer__link:hover,
.fg-footer__link:focus-visible {
  color: var(--fg-paper);
  background-size: 100% 1px;
}

/* 版本核对卡 */
.fg-version {
  position: relative;
  padding: 18px;
  border: 1px solid var(--fg-line);
  border-radius: 12px;
  background:
    linear-gradient(152deg, rgba(47, 243, 255, .08) 0%, rgba(154, 92, 255, .07) 52%, rgba(7, 8, 15, .55) 100%);
  overflow: hidden;
}
.fg-version::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, transparent 48%, rgba(47, 243, 255, .30) 50%, rgba(47, 243, 255, .05) 100%);
  pointer-events: none;
}
.fg-version__label {
  font-family: var(--fg-font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-mist);
}
.fg-version__code {
  margin-top: 8px;
  font-family: var(--fg-font-mono);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: .04em;
  color: var(--fg-cyan);
  text-shadow: 0 0 22px rgba(47, 243, 255, .55);
}
.fg-version__note {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--fg-mist);
}
.fg-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(47, 243, 255, .45);
  border-radius: var(--fg-radius-pill);
  font-family: var(--fg-font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--fg-cyan);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .22s ease;
}
.fg-copy:hover {
  background: rgba(47, 243, 255, .12);
  box-shadow: var(--fg-glow-cyan);
}
.fg-copy:focus-visible {
  outline: 2px solid var(--fg-cyan);
  outline-offset: 2px;
}
.fg-copy.is-copied {
  color: var(--fg-lime);
  border-color: rgba(168, 255, 62, .55);
  background: rgba(168, 255, 62, .10);
  box-shadow: 0 0 22px -10px rgba(168, 255, 62, .9);
}

.fg-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--fg-line);
}
.fg-footer__note {
  font-family: var(--fg-font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .03em;
  color: var(--fg-mist);
}

/* ---------- 8. 通用容器与分区 ---------- */
.fg-wrap {
  width: 100%;
  max-width: var(--fg-wrap);
  margin-inline: auto;
  padding-inline: var(--fg-gutter);
}
.fg-section { padding-block: clamp(48px, 7vw, 96px); }
.fg-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 32px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.fg-section__title {
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: .01em;
}

/* ---------- 9. 等宽索引与导语 ---------- */
.fg-mono {
  font-family: var(--fg-font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
}
.fg-eyebrow {
  font-family: var(--fg-font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-violet);
}

/* ---------- 10. 按钮 ---------- */
.fg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--fg-radius-pill);
  font-family: var(--fg-font-display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: .02em;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}
.fg-btn:active { transform: translateY(1px); }
.fg-btn--primary {
  color: var(--fg-ink);
  background: linear-gradient(100deg, var(--fg-cyan), var(--fg-violet));
  box-shadow: 0 0 30px -12px rgba(47, 243, 255, .9);
}
.fg-btn--primary:hover {
  background: linear-gradient(100deg, var(--fg-lime), var(--fg-cyan));
  box-shadow: 0 0 34px -8px rgba(168, 255, 62, .8);
}
.fg-btn--ghost {
  color: var(--fg-paper);
  border-color: var(--fg-line);
  background: rgba(17, 21, 34, .55);
}
.fg-btn--ghost:hover {
  color: var(--fg-cyan);
  border-color: var(--fg-line-strong);
  box-shadow: var(--fg-glow-cyan);
}

/* ---------- 11. 标签 ---------- */
.fg-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-family: var(--fg-font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: .08em;
  white-space: nowrap;
}
.fg-tag--cyan { color: var(--fg-cyan); }
.fg-tag--violet { color: var(--fg-violet); }
.fg-tag--magenta { color: var(--fg-magenta); background: rgba(255, 45, 170, .10); }
.fg-tag--lime { color: var(--fg-lime); }
.fg-tag--solid {
  color: var(--fg-ink);
  background: var(--fg-cyan);
  border-color: transparent;
}

/* ---------- 12. 面包屑 ---------- */
.fg-breadcrumb { padding-block: 20px 0; }
.fg-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--fg-font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--fg-mist);
}
.fg-breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fg-breadcrumb__list li + li::before {
  content: "/";
  color: var(--fg-coral);
  opacity: .7;
}
.fg-breadcrumb__list a { color: var(--fg-mist); }
.fg-breadcrumb__list a:hover { color: var(--fg-cyan); }
.fg-breadcrumb__list [aria-current="page"] { color: var(--fg-paper); }

/* ---------- 13. 网格 ---------- */
.fg-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.fg-col-3 { grid-column: span 3; }
.fg-col-4 { grid-column: span 4; }
.fg-col-5 { grid-column: span 5; }
.fg-col-6 { grid-column: span 6; }
.fg-col-7 { grid-column: span 7; }
.fg-col-8 { grid-column: span 8; }
.fg-col-9 { grid-column: span 9; }
.fg-col-12 { grid-column: span 12; }

/* ---------- 14. 面板 ---------- */
.fg-panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--fg-line);
  border-radius: var(--fg-radius);
  background: linear-gradient(155deg, rgba(17, 21, 34, .96) 0%, rgba(10, 12, 22, .96) 100%);
  transition: border-color .22s ease, box-shadow .22s ease;
}
.fg-panel:hover {
  border-color: rgba(47, 243, 255, .34);
  box-shadow: 0 0 40px -22px rgba(47, 243, 255, .9);
}
.fg-panel--slice {
  border-radius: 0;
  border-bottom: 0;
  border-right: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}
.fg-panel--paper {
  border-radius: 0;
  border-color: rgba(27, 18, 14, .14);
  background: var(--fg-paper);
  color: var(--fg-brown);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}
.fg-panel--paper:hover {
  border-color: rgba(27, 18, 14, .26);
  box-shadow: none;
}

/* ---------- 15. 正文 ---------- */
.fg-prose {
  max-width: 72ch;
  font-size: clamp(15.5px, 1.1vw, 17px);
  line-height: 1.8;
}
.fg-prose p + p { margin-top: 1em; }
.fg-prose h2 { margin-top: 1.6em; font-size: clamp(22px, 2.2vw, 30px); }
.fg-prose h3 { margin-top: 1.4em; font-size: clamp(18px, 1.6vw, 22px); }
.fg-prose ul { list-style: disc; padding-left: 1.2em; }
.fg-prose ul li { margin-top: .4em; }
.fg-prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--fg-coral);
  text-underline-offset: 3px;
}
.fg-prose--paper { color: var(--fg-brown); }

/* ---------- 16. 可复用图片容器 ---------- */
.fg-media {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--fg-radius);
  background: linear-gradient(135deg, #131A2C 0%, #0A0C16 55%, #101322 100%);
}
.fg-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(115deg, rgba(47, 243, 255, .10) 0 1px, transparent 1px 22px),
    radial-gradient(70% 60% at 22% 14%, rgba(154, 92, 255, .30), transparent 70%),
    radial-gradient(60% 55% at 84% 88%, rgba(47, 243, 255, .22), transparent 72%);
}
.fg-media > img,
.fg-media > video,
.fg-media > picture > img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.fg-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid rgba(47, 243, 255, .22);
  border-radius: inherit;
  pointer-events: none;
}
.fg-media--wide { aspect-ratio: 21 / 9; }
.fg-media--square { aspect-ratio: 1 / 1; }
.fg-media--portrait { aspect-ratio: 3 / 4; }
.fg-media__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 4;
}

/* ---------- 17. 平板 ---------- */
@media (max-width: 1080px) {
  .fg-header { top: 10px; }
  .fg-header__pill {
    gap: 10px;
    padding: 8px 8px 8px 14px;
    border-radius: 22px;
  }
  .fg-brand__text { font-size: 15.5px; }

  .fg-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    padding: 10px;
    border: 1px solid var(--fg-line);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(17, 21, 34, .99) 0%, rgba(7, 8, 15, .99) 100%);
    box-shadow: 0 32px 62px -34px rgba(0, 0, 0, .96), var(--fg-glow-violet);
  }
  .fg-header[data-open] .fg-nav { display: flex; }
  .fg-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .fg-nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 15px;
  }
  .fg-nav__link--cta {
    justify-content: center;
    padding: 13px 16px;
  }
  .fg-nav-toggle { display: flex; }

  .fg-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fg-footer__brand { grid-column: 1 / -1; }
  .fg-version { grid-column: 1 / -1; }

  .fg-col-3,
  .fg-col-4,
  .fg-col-5 { grid-column: span 6; }
  .fg-col-7,
  .fg-col-8,
  .fg-col-9 { grid-column: span 12; }
}

/* ---------- 18. 手机 ---------- */
@media (max-width: 640px) {
  .fg-header { top: 8px; }
  .fg-header__pill { padding: 7px 7px 7px 12px; }
  .fg-brand__mark { width: 30px; height: 30px; font-size: 11px; }
  .fg-brand__text { font-size: 14.5px; letter-spacing: .03em; }
  .fg-nav-toggle { width: 40px; height: 40px; }

  .fg-footer__grid { grid-template-columns: 1fr; }
  .fg-footer__base { flex-direction: column; align-items: flex-start; }
  .fg-footer__sig { font-size: 20px; }

  .fg-col-3,
  .fg-col-4,
  .fg-col-5,
  .fg-col-6,
  .fg-col-7,
  .fg-col-8,
  .fg-col-9,
  .fg-col-12 { grid-column: span 12; }

  .fg-section__head { flex-direction: column; align-items: flex-start; }
  .fg-media--wide { aspect-ratio: 16 / 10; }
}

/* ---------- 19. 减弱动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .fg-progress { display: none; }
}
