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

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

body {
  margin: 0;
  padding-top: var(--fy-header-h);
  min-height: 100vh;
  background-color: var(--fy-void);
  background-image:
    repeating-linear-gradient(90deg, rgba(36, 51, 77, 0.26) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(36, 51, 77, 0.14) 0 1px, transparent 1px 88px);
  color: var(--fy-text);
  font-family: var(--fy-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; }

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

::selection {
  background: var(--fy-lime);
  color: #060B14;
}

/* ============ 2. Tokens ============ */
:root {
  --fy-void: #060B14;
  --fy-panel: #0E1729;
  --fy-panel-2: #111D33;
  --fy-line: #24334D;
  --fy-blue: #1E6BFF;
  --fy-cyan: #38D6FF;
  --fy-lime: #B8FF3D;
  --fy-orange: #FF7A2F;
  --fy-text: #EAF1FF;
  --fy-muted: #8FA3C4;
  --fy-lime-mist: rgba(184, 255, 61, 0.12);
  --fy-cyan-mist: rgba(56, 214, 255, 0.09);
  --fy-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --fy-header-h: 72px;
  --fy-header-h-compact: 56px;
  --fy-shell: 1320px;
  --fy-sans: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --fy-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ============ 3. Typography ============ */
.fy-display {
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.fy-title {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.fy-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.3;
}

.fy-lede {
  max-width: 38em;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--fy-text);
}

.fy-body {
  max-width: 40em;
  font-size: 16px;
  line-height: 1.75;
  color: var(--fy-muted);
}

.fy-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fy-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fy-cyan);
}

.fy-label::before {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
}

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

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

.fy-rule {
  height: 1px;
  margin: 0;
  background: var(--fy-line);
}

/* ============ 4. Skip link ============ */
.fy-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--fy-lime);
  color: #060B14;
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 0.18s var(--fy-ease);
}

.fy-skip:focus {
  transform: none;
  outline: 2px solid var(--fy-cyan);
  outline-offset: 2px;
}

/* ============ 5. Header ============ */
.fy-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: rgba(6, 11, 20, 0.93);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fy-line);
}

.fy-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  width: 100%;
  max-width: var(--fy-shell);
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 32px);
  height: var(--fy-header-h);
  transition: height 0.24s var(--fy-ease);
}

.fy-header--condensed {
  background: rgba(6, 11, 20, 0.98);
}

.fy-header--condensed .fy-header__inner {
  height: var(--fy-header-h-compact);
}

.fy-header--condensed .fy-here,
.fy-header--condensed .fy-sync__text {
  display: none;
}

.fy-header[data-open] .fy-header__inner {
  height: var(--fy-header-h);
}

/* brand */
.fy-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 44px;
  color: var(--fy-text);
}

.fy-brand__mark {
  position: relative;
  width: 22px;
  height: 26px;
  flex: 0 0 auto;
  background: linear-gradient(160deg, var(--fy-blue), var(--fy-cyan));
  clip-path: polygon(0 0, 100% 0, 100% 62%, 24% 100%, 0 100%);
}

.fy-brand__mark::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 5px;
  width: 9px;
  height: 9px;
  background: var(--fy-lime);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

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

.fy-brand__name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.fy-brand__meta {
  font-family: var(--fy-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fy-muted);
}

.fy-brand--footer {
  min-height: 0;
}

/* current section */
.fy-here {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 1px solid var(--fy-line);
  font-family: var(--fy-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fy-muted);
  line-height: 1.6;
}

.fy-here__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--fy-lime);
  box-shadow: 0 0 0 3px rgba(184, 255, 61, 0.16);
  animation: fy-pulse 2.6s var(--fy-ease) infinite;
}

.fy-here__value {
  color: var(--fy-text);
  letter-spacing: 0.06em;
}

@keyframes fy-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* nav */
.fy-nav {
  margin-left: auto;
  margin-right: auto;
}

.fy-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.fy-nav__item { flex: 0 0 auto; }

.fy-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--fy-muted);
  border: 1px solid transparent;
  transition: color 0.2s var(--fy-ease), background-color 0.2s var(--fy-ease), border-color 0.2s var(--fy-ease);
}

.fy-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--fy-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--fy-ease);
}

.fy-nav__link:hover {
  color: var(--fy-text);
}

.fy-nav__link:hover::after {
  transform: scaleX(1);
}

.fy-nav__link[aria-current="page"] {
  color: var(--fy-lime);
  background: var(--fy-lime-mist);
  border-color: rgba(184, 255, 61, 0.3);
}

.fy-nav__link[aria-current="page"]::after {
  background: var(--fy-lime);
  transform: scaleX(1);
}

/* tools */
.fy-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.fy-index-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 8px;
  border: 1px solid var(--fy-line);
  color: var(--fy-text);
  font-size: 13px;
  transition: border-color 0.2s var(--fy-ease), background-color 0.2s var(--fy-ease), color 0.2s var(--fy-ease);
}

.fy-index-btn:hover {
  border-color: var(--fy-cyan);
  background: var(--fy-cyan-mist);
  color: var(--fy-cyan);
}

.fy-index-btn__key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--fy-line);
  background: var(--fy-cyan-mist);
  font-family: var(--fy-mono);
  font-size: 12px;
  color: var(--fy-cyan);
}

.fy-index-btn__label {
  white-space: nowrap;
}

.fy-sync {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--fy-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fy-muted);
  white-space: nowrap;
  line-height: 1.6;
}

.fy-sync__dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  background: var(--fy-cyan);
}

.fy-sync__time {
  color: var(--fy-text);
  font-variant-numeric: tabular-nums;
}

.fy-burger {
  display: none;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--fy-line);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fy-text);
  transition: border-color 0.2s var(--fy-ease), color 0.2s var(--fy-ease);
}

.fy-burger:hover {
  border-color: var(--fy-cyan);
  color: var(--fy-cyan);
}

.fy-burger__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.fy-burger__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--fy-ease), opacity 0.22s var(--fy-ease);
}

.fy-header[data-open] .fy-burger {
  border-color: var(--fy-lime);
  color: var(--fy-lime);
}

.fy-header[data-open] .fy-burger__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.fy-header[data-open] .fy-burger__bars span:nth-child(2) {
  opacity: 0;
}

.fy-header[data-open] .fy-burger__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* progress */
.fy-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
}

.fy-progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--fy-blue), var(--fy-cyan) 68%, var(--fy-lime));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.12s linear;
}

/* ============ 6. Index panel ============ */
.fy-index {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(14px, 8vh, 92px) clamp(12px, 4vw, 32px) 40px;
  background: rgba(3, 6, 12, 0.84);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}

.fy-index[hidden] {
  display: none;
}

.fy-index__dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  padding: clamp(16px, 3vw, 28px);
  background: var(--fy-panel);
  border: 1px solid var(--fy-line);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.62);
}

.fy-index__dialog::before,
.fy-index__dialog::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--fy-lime);
  pointer-events: none;
}

.fy-index__dialog::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.fy-index__dialog::after {
  right: -1px;
  bottom: -1px;
  border-top: 0;
  border-left: 0;
}

.fy-index__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fy-line);
}

.fy-index__title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.fy-index__hint {
  margin-right: auto;
  font-family: var(--fy-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fy-muted);
  line-height: 1.6;
}

.fy-index__close {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--fy-line);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fy-muted);
  transition: color 0.18s var(--fy-ease), border-color 0.18s var(--fy-ease);
}

.fy-index__close:hover {
  color: var(--fy-orange);
  border-color: var(--fy-orange);
}

.fy-index__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--fy-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fy-cyan);
}

.fy-index__input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--fy-void);
  border: 1px solid var(--fy-line);
  color: var(--fy-text);
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: border-color 0.2s var(--fy-ease);
}

.fy-index__input::placeholder {
  color: #61708c;
}

.fy-index__input:focus {
  border-color: var(--fy-cyan);
  outline: 2px solid var(--fy-cyan);
  outline-offset: 0;
}

.fy-index__list {
  margin-top: 14px;
  border-top: 1px solid var(--fy-line);
}

.fy-index__item {
  border-bottom: 1px solid var(--fy-line);
}

.fy-index__item[hidden] {
  display: none;
}

.fy-index__link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 8px;
  transition: background-color 0.18s var(--fy-ease);
}

.fy-index__link:hover,
.fy-index__link:focus-visible {
  background: var(--fy-lime-mist);
}

.fy-index__num {
  font-family: var(--fy-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--fy-muted);
}

.fy-index__name {
  font-size: 15px;
  color: var(--fy-text);
}

.fy-index__route {
  font-family: var(--fy-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fy-muted);
}

.fy-index__empty {
  padding: 16px 8px 4px;
  font-size: 14px;
  color: var(--fy-muted);
}

.fy-index__empty[hidden] {
  display: none;
}

/* ============ 7. Footer ============ */
.fy-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  background:
    linear-gradient(180deg, rgba(14, 23, 41, 0.72) 0%, rgba(6, 11, 20, 1) 78%);
  border-top: 1px solid var(--fy-line);
}

.fy-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--fy-blue) 0 18%, var(--fy-cyan) 18% 21%, var(--fy-line) 21% 100%);
  pointer-events: none;
}

.fy-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.4fr;
  max-width: var(--fy-shell);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 62px) clamp(16px, 3vw, 32px) clamp(22px, 3vw, 38px);
}

.fy-footer__brand {
  min-width: 0;
  padding-right: clamp(14px, 2vw, 30px);
}

.fy-footer__claim {
  margin-top: 14px;
  max-width: 24em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fy-muted);
}

.fy-footer__clock {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--fy-line);
  background: var(--fy-lime-mist);
}

.fy-footer__clock-label {
  font-family: var(--fy-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fy-lime);
}

.fy-footer__clock-value {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--fy-muted);
}

.fy-footer__col {
  min-width: 0;
  padding-left: clamp(14px, 2vw, 26px);
  border-left: 1px solid var(--fy-line);
}

.fy-footer__title {
  margin-bottom: 12px;
  font-family: var(--fy-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fy-cyan);
}

.fy-footer__list {
  display: grid;
  gap: 8px;
}

.fy-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fy-muted);
  transition: color 0.18s var(--fy-ease);
}

.fy-footer__link::before {
  content: "";
  width: 6px;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
  transition: width 0.18s var(--fy-ease);
}

.fy-footer__link:hover {
  color: var(--fy-lime);
}

.fy-footer__link:hover::before {
  width: 12px;
}

.fy-footer__list--contact {
  gap: 10px;
}

.fy-footer__list--contact li {
  display: grid;
  gap: 1px;
}

.fy-footer__key {
  font-family: var(--fy-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fy-muted);
}

.fy-footer__val {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fy-text);
  word-break: break-word;
}

.fy-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  max-width: var(--fy-shell);
  margin: 0 auto;
  padding: 16px clamp(16px, 3vw, 32px) 30px;
  border-top: 1px solid var(--fy-line);
  font-family: var(--fy-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  line-height: 1.7;
  color: var(--fy-muted);
}

.fy-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fy-footer__icp {
  color: var(--fy-text);
}

.fy-footer__dot {
  color: var(--fy-line);
}

/* ============ 8. Layout & content components ============ */
.fy-container {
  width: 100%;
  max-width: var(--fy-shell);
  margin: 0 auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

.fy-section {
  padding-block: clamp(40px, 6vw, 84px);
  border-top: 1px solid var(--fy-line);
}

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

.fy-grid--split {
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
}

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

.fy-grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* buttons */
.fy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--fy-line);
  background: transparent;
  color: var(--fy-text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--fy-ease), border-color 0.2s var(--fy-ease), background-color 0.2s var(--fy-ease);
}

.fy-btn:hover {
  border-color: var(--fy-cyan);
  color: var(--fy-cyan);
  background: var(--fy-cyan-mist);
}

.fy-btn--primary {
  background: var(--fy-blue);
  border-color: var(--fy-blue);
  color: #FFFFFF;
}

.fy-btn--primary:hover {
  background: #3C82FF;
  border-color: #3C82FF;
  color: #FFFFFF;
}

.fy-btn--lime {
  background: var(--fy-lime);
  border-color: var(--fy-lime);
  color: #060B14;
}

.fy-btn--lime:hover {
  background: #CBFF6B;
  border-color: #CBFF6B;
  color: #060B14;
}

.fy-btn--block {
  width: 100%;
}

/* breadcrumb */
.fy-breadcrumb {
  padding-block: 16px;
  font-family: var(--fy-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--fy-muted);
}

.fy-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

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

.fy-breadcrumb__link {
  transition: color 0.18s var(--fy-ease);
}

.fy-breadcrumb__link:hover {
  color: var(--fy-cyan);
}

.fy-breadcrumb__current {
  color: var(--fy-text);
}

/* card */
.fy-card {
  position: relative;
  padding: clamp(16px, 2vw, 24px);
  background: var(--fy-panel);
  border: 1px solid var(--fy-line);
  transition: border-color 0.24s var(--fy-ease);
}

.fy-card:hover {
  border-color: var(--fy-cyan);
}

.fy-card__label {
  font-family: var(--fy-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fy-muted);
}

.fy-card__title {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.fy-card__body {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--fy-muted);
}

/* chips */
.fy-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--fy-line);
  background: transparent;
  color: var(--fy-muted);
  font-family: var(--fy-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: color 0.18s var(--fy-ease), border-color 0.18s var(--fy-ease), background-color 0.18s var(--fy-ease);
}

.fy-chip:hover {
  color: var(--fy-text);
  border-color: var(--fy-cyan);
}

.fy-chip[aria-pressed="true"] {
  background: var(--fy-lime-mist);
  border-color: rgba(184, 255, 61, 0.45);
  color: var(--fy-lime);
}

/* segmented switch */
.fy-switch {
  display: inline-flex;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--fy-line);
  background: rgba(14, 23, 41, 0.7);
}

.fy-switch__btn {
  position: relative;
  height: 40px;
  padding: 0 18px;
  border: 0;
  background: none;
  color: var(--fy-muted);
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s var(--fy-ease);
}

.fy-switch__btn:hover {
  color: var(--fy-text);
}

.fy-switch__btn[aria-selected="true"] {
  color: var(--fy-text);
}

.fy-switch__btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  background: var(--fy-lime);
}

/* media frame — 页面阶段把 <img> 放进 .fy-media */
.fy-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--fy-line);
  background-color: var(--fy-panel);
  background-image:
    linear-gradient(135deg, rgba(30, 107, 255, 0.22), rgba(6, 11, 20, 0) 62%),
    repeating-linear-gradient(45deg, rgba(36, 51, 77, 0.55) 0 1px, transparent 1px 12px);
}

.fy-media--wide { aspect-ratio: 21 / 9; }
.fy-media--tall { aspect-ratio: 3 / 4; }
.fy-media--square { aspect-ratio: 1 / 1; }

.fy-media--slant {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
}

.fy-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fy-media__tag {
  position: absolute;
  top: 0;
  left: 0;
  padding: 4px 10px;
  background: var(--fy-blue);
  color: #FFFFFF;
  font-family: var(--fy-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fy-media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 12px 10px;
  background: linear-gradient(180deg, rgba(6, 11, 20, 0), rgba(6, 11, 20, 0.88));
  font-family: var(--fy-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fy-text);
}

.fy-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(6, 11, 20, 0.4) 0 1px, transparent 1px 4px);
  opacity: 0.22;
}

/* framed panel with tick rulers */
.fy-frame {
  position: relative;
  padding: clamp(16px, 3vw, 36px);
  border: 1px solid var(--fy-line);
  background: rgba(14, 23, 41, 0.5);
}

.fy-frame::before,
.fy-frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  pointer-events: none;
  background-image: repeating-linear-gradient(180deg, var(--fy-line) 0 1px, transparent 1px 12px);
}

.fy-frame::before { left: -1px; }
.fy-frame::after { right: -1px; }

/* table */
.fy-table {
  width: 100%;
  font-size: 14px;
}

.fy-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--fy-line);
  font-family: var(--fy-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--fy-muted);
}

.fy-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--fy-line);
  color: var(--fy-text);
}

.fy-table tbody tr {
  transition: background-color 0.18s var(--fy-ease);
}

.fy-table tbody tr:hover {
  background: var(--fy-lime-mist);
}

.fy-table__num {
  font-family: var(--fy-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ============ 9. Responsive ============ */
@media (max-width: 1180px) {
  .fy-here { display: none; }
}

@media (max-width: 1024px) {
  :root {
    --fy-header-h: 64px;
    --fy-header-h-compact: 56px;
  }

  .fy-sync { display: none; }
  .fy-burger { display: inline-flex; }

  .fy-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--fy-header-h);
    max-height: calc(100vh - var(--fy-header-h));
    margin: 0;
    padding: 8px clamp(14px, 4vw, 28px) 22px;
    overflow-y: auto;
    background: rgba(8, 14, 26, 0.985);
    border-bottom: 1px solid var(--fy-line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s var(--fy-ease), transform 0.2s var(--fy-ease), visibility 0.2s var(--fy-ease);
  }

  .fy-header[data-open] .fy-nav,
  .fy-nav[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .fy-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .fy-nav__item + .fy-nav__item {
    border-top: 1px solid var(--fy-line);
  }

  .fy-nav__link {
    width: 100%;
    height: auto;
    padding: 13px 6px;
    font-size: 16px;
  }

  .fy-nav__link::after { display: none; }

  .fy-nav__link[aria-current="page"] {
    background: transparent;
    border-color: transparent;
    box-shadow: inset 3px 0 0 var(--fy-lime);
    padding-left: 14px;
  }

  .fy-tools { gap: 8px; }

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

  .fy-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 0;
  }

  .fy-footer__brand {
    grid-column: 1 / -1;
    padding-right: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--fy-line);
  }

  .fy-footer__col {
    padding-left: 0;
    border-left: 0;
  }

  .fy-footer__col:nth-child(even) {
    padding-left: clamp(14px, 3vw, 24px);
    border-left: 1px solid var(--fy-line);
  }
}

@media (max-width: 720px) {
  .fy-brand__meta { display: none; }
  .fy-index-btn { padding: 0 10px 0 6px; }
  .fy-index__link { grid-template-columns: 34px minmax(0, 1fr); }
  .fy-index__route { display: none; }
  .fy-footer__legal { flex-direction: column; }
}

@media (max-width: 620px) {
  .fy-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .fy-footer__brand {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .fy-footer__col,
  .fy-footer__col:nth-child(even) {
    padding-left: 0;
    border-left: 0;
    padding-top: 18px;
    border-top: 1px solid var(--fy-line);
  }

  .fy-burger__label { display: none; }
}

@media (max-width: 420px) {
  .fy-index-btn__label { display: none; }
  .fy-brand__name { font-size: 15px; }
}

/* ============ 10. Motion preferences ============ */
@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;
  }

  .fy-here__dot { animation: none; }
}
