/* ============================================================
   WFUI Components  v1.0  ·  "VOID SIGNAL" 虚空信号
   ------------------------------------------------------------
   依赖 tokens.css。全部组件类名以 .wf- 前缀隔离，
   可整包拷贝进任何项目而不污染宿主样式。
   组件清单：
     wf-shell / wf-nav        —— 页面骨架与顶部导航
     wf-kpi                   —— 指标条
     wf-panel                 —— 切角括号面板（核心容器）
     wf-chip / wf-chip-btn    —— 徽章 / 筛选片
     wf-era--*                —— 遗物纪元徽章
     wf-timer                 —— 倒计时（data-remain 驱动）
     wf-tag / wf-tag--steel   —— 任务类型 / 钢铁路径标签
     wf-fissure               —— 裂隙列表行
     wf-world / wf-ring       —— 开放世界周期卡 + 环形进度
     wf-invasion / wf-bar     —— 入侵行 / 进度条
     wf-challenge             —— 电波挑战行
     wf-input / wf-btn        —— 表单
     wf-skeleton / wf-empty   —— 加载骨架 / 空状态
   ============================================================ */

/* ---------- 基础 ---------- */
.wf-shell {
  max-width: var(--wf-max-w);
  margin: 0 auto;
  padding: 0 var(--wf-space-5) var(--wf-space-8);
}

.wf-body {
  font-family: var(--wf-font-body);
  background:
    radial-gradient(1100px 520px at 72% -8%, var(--wf-teal-dim), transparent 60%),
    radial-gradient(900px 480px at 12% 0%, var(--wf-accent-dim), transparent 55%),
    linear-gradient(180deg, var(--wf-nebula-veil), var(--wf-nebula-veil)),
    var(--wf-nebula) center 18% / cover no-repeat,
    var(--wf-bg);
  background-attachment: fixed;
  color: var(--wf-text);
  min-height: 100dvh;
}

/* 极淡扫描线氛围层 */
.wf-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(150, 168, 196, 0.022) 3px 4px);
  z-index: 0;
}

/* ---------- 顶部导航 ---------- */
.wf-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--wf-glass);
  border-bottom: 1px solid var(--wf-border);
}

.wf-nav__inner {
  max-width: var(--wf-max-w);
  margin: 0 auto;
  padding: 0 var(--wf-space-5);
  height: 60px;
  display: flex;
  align-items: center;
  gap: var(--wf-space-5);
}

.wf-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--wf-font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.12em;
  color: var(--wf-text);
  text-decoration: none;
  text-transform: uppercase;
}

.wf-brand svg { width: 22px; height: 22px; color: var(--wf-accent); }

.wf-brand small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--wf-text-faint);
  margin-left: 2px;
}

.wf-nav__links { display: flex; gap: 2px; margin-left: auto; }

.wf-nav__links a {
  font-family: var(--wf-font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--wf-text-dim);
  text-decoration: none;
  padding: 6px 12px;
  border-bottom: 2px solid transparent;
  transition: color var(--wf-dur-fast) var(--wf-ease-out), border-color var(--wf-dur-fast);
}

.wf-nav__links a:hover { color: var(--wf-accent-strong); }
.wf-nav__links a.is-active { color: var(--wf-accent); border-bottom-color: var(--wf-accent); }

.wf-nav__meta {
  display: flex;
  align-items: center;
  gap: var(--wf-space-3);
  margin-left: var(--wf-space-4);
}

.wf-platform {
  font-family: var(--wf-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--wf-teal);
  border: 1px solid var(--wf-teal);
  padding: 2px 10px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

/* 呼吸直播点 */
.wf-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--wf-text-dim);
  white-space: nowrap;
}

.wf-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wf-live);
  animation: wf-breathe 2.4s ease-in-out infinite;
}

@keyframes wf-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(127, 216, 143, 0.45); opacity: 1; }
  50%      { box-shadow: 0 0 0 6px rgba(127, 216, 143, 0); opacity: 0.65; }
}

.wf-theme-toggle {
  background: none;
  border: 1px solid var(--wf-border);
  color: var(--wf-text-dim);
  width: 32px;
  height: 32px;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: color var(--wf-dur-fast), border-color var(--wf-dur-fast);
}
.wf-theme-toggle:hover { color: var(--wf-accent); border-color: var(--wf-accent-border); }
.wf-theme-toggle svg { width: 16px; height: 16px; }

/* ---------- 指标条 KPI ---------- */
.wf-kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--wf-space-3);
  margin: var(--wf-space-5) 0;
}

.wf-kpi {
  position: relative;
  background: color-mix(in srgb, var(--wf-surface) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--wf-border);
  padding: 12px 16px;
  clip-path: polygon(var(--wf-chamfer) 0, 100% 0, 100% calc(100% - var(--wf-chamfer)), calc(100% - var(--wf-chamfer)) 100%, 0 100%, 0 var(--wf-chamfer));
  transition: transform var(--wf-dur-fast) var(--wf-ease-out), border-color var(--wf-dur-fast);
}

.wf-kpi:hover { transform: translateY(-2px); border-color: var(--wf-border-strong); }
.wf-kpi:active { transform: scale(0.98); }

.wf-kpi__value {
  font-family: var(--wf-font-num);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--wf-accent-strong);
}

.wf-kpi__label {
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--wf-text-dim);
}

.wf-kpi__value small { font-size: 14px; color: var(--wf-text-dim); font-weight: 600; }

/* ---------- 核心面板：边框 + 金色括角（星云之上的微玻璃） ---------- */
.wf-panel {
  position: relative;
  background: color-mix(in srgb, var(--wf-surface) 93%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--wf-border);
  box-shadow: var(--wf-shadow-sm);
}

.wf-panel::before,
.wf-panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 1;
}

.wf-panel::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--wf-accent);
  border-left: 2px solid var(--wf-accent);
}

.wf-panel::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--wf-accent);
  border-right: 2px solid var(--wf-accent);
}

.wf-panel__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--wf-border);
  background: linear-gradient(90deg, var(--wf-accent-dim), transparent 42%);
}

.wf-panel__title {
  font-family: var(--wf-font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--wf-text);
}

.wf-panel__en {
  font-family: var(--wf-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--wf-text-faint);
}

.wf-panel__head-extra { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.wf-panel__body { position: relative; }

/* ---------- 徽章 / 筛选片 ---------- */
.wf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wf-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 10px;
  border: 1px solid var(--wf-border-strong);
  color: var(--wf-text-dim);
  white-space: nowrap;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.wf-chip-btn {
  font-family: var(--wf-font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 4px 16px;
  background: transparent;
  border: 1px solid var(--wf-border);
  color: var(--wf-text-dim);
  cursor: pointer;
  transition: all var(--wf-dur-fast) var(--wf-ease-out);
}

.wf-chip-btn:hover { color: var(--wf-text); border-color: var(--wf-border-strong); }

.wf-chip-btn.is-active {
  background: var(--wf-accent);
  border-color: var(--wf-accent);
  color: var(--wf-text-on-accent);
}

.wf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--wf-border);
}

/* ---------- 纪元徽章（左侧色条标识） ---------- */
.wf-era {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 3px 12px 3px 10px;
  border-left: 3px solid var(--era, var(--wf-text-dim));
  background: color-mix(in srgb, var(--era, #888) 12%, transparent);
  font-family: var(--wf-font-display);
  line-height: 1.1;
  min-width: 64px;
}

.wf-era b { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; color: var(--era, var(--wf-text)); }
.wf-era span { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--wf-text-faint); }

.wf-era--lith     { --era: var(--wf-era-lith); }
.wf-era--meso     { --era: var(--wf-era-meso); }
.wf-era--neo      { --era: var(--wf-era-neo); }
.wf-era--axi      { --era: var(--wf-era-axi); }
.wf-era--requiem  { --era: var(--wf-era-requiem); }
.wf-era--omnia    { --era: var(--wf-era-omnia); }

/* ---------- 倒计时 ---------- */
.wf-timer {
  font-family: var(--wf-font-num);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--wf-accent-strong);
  background: var(--wf-surface-2);
  border: 1px solid var(--wf-border);
  padding: 2px 12px;
  font-variant-numeric: tabular-nums;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  white-space: nowrap;
}

.wf-timer.is-urgent {
  color: var(--wf-danger);
  border-color: var(--wf-danger);
  background: var(--wf-danger-dim);
  animation: wf-urgent 1.2s ease-in-out infinite;
}

@keyframes wf-urgent {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

/* ---------- 标签 ---------- */
.wf-tag {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--wf-text-dim);
  border: 1px solid var(--wf-border);
  padding: 1px 8px;
  white-space: nowrap;
}

.wf-tag--steel {
  color: var(--wf-danger);
  border-color: var(--wf-danger);
  font-weight: 700;
  background: var(--wf-danger-dim);
}

.wf-tag--railjack {
  color: var(--wf-teal);
  border-color: var(--wf-teal);
  background: var(--wf-teal-dim);
  font-weight: 700;
}

/* ---------- 派系点 ---------- */
.wf-faction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--wf-text-dim);
  white-space: nowrap;
}

.wf-faction i {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--fc, var(--wf-text-faint));
  flex: none;
}

.wf-faction--grineer  { --fc: var(--wf-faction-grineer); }
.wf-faction--corpus   { --fc: var(--wf-faction-corpus); }
.wf-faction--infested { --fc: var(--wf-faction-infested); }
.wf-faction--corrupted{ --fc: var(--wf-faction-corrupted); }
.wf-faction--oryx     { --fc: var(--wf-faction-oryx); }

/* ---------- 裂隙 / 风暴列表行 ---------- */
.wf-fissure {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: var(--wf-space-4);
  align-items: center;
  padding: 13px 20px;
  border-top: 1px solid var(--wf-border);
  transition: background var(--wf-dur-fast);
}

.wf-fissure:first-child { border-top: none; }
.wf-fissure:hover { background: var(--wf-surface-2); }

.wf-fissure.is-hidden { display: none; }

.wf-fissure__loc { min-width: 0; }

.wf-fissure__loc b {
  display: block;
  font-family: var(--wf-font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--wf-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-fissure__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.wf-fissure__end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wf-fissure__end .wf-faction { display: none; }
@media (min-width: 860px) { .wf-fissure__end .wf-faction { display: inline-flex; } }

/* ---------- 开放世界周期卡 ---------- */
.wf-world {
  display: flex;
  align-items: center;
  gap: var(--wf-space-5);
  padding: var(--wf-space-4) 20px;
  border-top: 1px solid var(--wf-border);
}
.wf-world:first-child { border-top: none; }

.wf-ring {
  --p: 50;
  --ring-color: var(--wf-accent);
  position: relative;
  width: var(--wf-ring-size);
  height: var(--wf-ring-size);
  border-radius: 50%;
  flex: none;
  background: conic-gradient(var(--ring-color) calc(var(--p) * 1%), var(--wf-surface-2) 0);
}

.wf-ring::before {
  content: "";
  position: absolute;
  inset: var(--wf-ring-inset);
  border-radius: 50%;
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
}

.wf-ring__center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.15;
}

.wf-ring__state {
  font-family: var(--wf-font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ring-color);
  letter-spacing: 0.06em;
}

.wf-ring__time {
  font-family: var(--wf-font-num);
  font-size: 13px;
  font-weight: 600;
  color: var(--wf-text-dim);
  font-variant-numeric: tabular-nums;
}

.wf-ring--teal { --ring-color: var(--wf-teal); }

.wf-world__info { min-width: 0; flex: 1; }

.wf-world__name {
  font-family: var(--wf-font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.wf-world__name small { color: var(--wf-text-faint); font-weight: 500; margin-left: 6px; letter-spacing: 0.14em; font-size: 12px; }

.wf-world__next { margin-top: 3px; font-size: 12.5px; color: var(--wf-text-dim); }

.wf-world__note {
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--wf-teal);
  border: 1px dashed color-mix(in srgb, var(--wf-teal) 45%, transparent);
  padding: 2px 10px;
}

/* ---------- 入侵 / 进度条 ---------- */
.wf-invasion {
  padding: 13px 20px;
  border-top: 1px solid var(--wf-border);
}
.wf-invasion:first-child { border-top: none; }

.wf-invasion__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.wf-invasion__head b {
  font-family: var(--wf-font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.wf-invasion__vs { font-size: 12px; color: var(--wf-text-dim); display: inline-flex; align-items: center; gap: 6px; }

.wf-invasion__rewards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.wf-bar {
  --att: var(--wf-faction-infested);
  --def: var(--wf-faction-corpus);
  --pct: 50;
  height: 6px;
  background: linear-gradient(90deg, var(--att) calc(var(--pct) * 1%), var(--def) calc(var(--pct) * 1%));
  position: relative;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

.wf-bar__ticks {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--wf-surface) calc(10% - 1px) 10%);
  opacity: 0.55;
}

.wf-bar--plain { --att: var(--wf-accent); --def: var(--wf-surface-2); height: 8px; }
.wf-bar--danger { --att: var(--wf-danger); }

/* ---------- 电波挑战 ---------- */
.wf-challenge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border-top: 1px solid var(--wf-border);
  font-size: 13.5px;
}
.wf-challenge:first-child { border-top: none; }

.wf-challenge__type {
  flex: none;
  width: 44px;
  text-align: center;
  font-family: var(--wf-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 2px 0;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.wf-challenge__type--daily   { color: var(--wf-teal); background: var(--wf-teal-dim); border: 1px solid var(--wf-teal); }
.wf-challenge__type--weekly  { color: var(--wf-accent); background: var(--wf-accent-dim); border: 1px solid var(--wf-accent-border); }

.wf-challenge__text { flex: 1; min-width: 0; color: var(--wf-text); }
.wf-challenge__stand { font-family: var(--wf-font-num); font-weight: 700; color: var(--wf-accent-strong); white-space: nowrap; }

.wf-subhead {
  padding: 10px 20px 6px;
  font-family: var(--wf-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--wf-text-faint);
  text-transform: uppercase;
}

/* ---------- 突击 / 情报速览 ---------- */
.wf-sortie-task {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 11px 20px;
  border-top: 1px solid var(--wf-border);
  align-items: baseline;
}
.wf-sortie-task:first-child { border-top: none; }

.wf-sortie-task__no {
  font-family: var(--wf-font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--wf-accent);
  border: 1px solid var(--wf-accent-border);
  width: 24px;
  height: 24px;
  display: grid;
  place-content: center;
  transform: rotate(45deg);
}
.wf-sortie-task__no span { transform: rotate(-45deg); }

.wf-sortie-task b { font-family: var(--wf-font-display); font-size: 15px; letter-spacing: 0.04em; }
.wf-sortie-task p { margin: 2px 0 0; font-size: 12.5px; color: var(--wf-text-dim); }

.wf-deal { padding: 16px 20px; display: flex; align-items: center; gap: 16px; }

.wf-deal__pct {
  font-family: var(--wf-font-num);
  font-size: 30px;
  font-weight: 700;
  color: var(--wf-teal);
  flex: none;
  line-height: 1;
}

.wf-deal__pct small { font-size: 14px; }

.wf-deal__old { text-decoration: line-through; color: var(--wf-text-faint); font-size: 12px; margin-left: 6px; }
.wf-price { font-family: var(--wf-font-num); font-weight: 700; color: var(--wf-accent-strong); }

.wf-kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--wf-border); font-size: 13px; }
.wf-kv:first-child { border-top: none; }
.wf-kv dt { color: var(--wf-text-dim); }
.wf-kv dd { color: var(--wf-text); font-weight: 600; margin: 0; }

/* ---------- 表单 ---------- */
.wf-field { display: flex; flex-direction: column; gap: 6px; }

.wf-field label {
  font-family: var(--wf-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--wf-text-dim);
  text-transform: uppercase;
}

.wf-input {
  background: var(--wf-surface-2);
  border: 1px solid var(--wf-border);
  color: var(--wf-text);
  font-family: var(--wf-font-body);
  font-size: 14px;
  padding: 9px 14px;
  outline: none;
  transition: border-color var(--wf-dur-fast);
  width: 100%;
}

.wf-input:focus { border-color: var(--wf-accent); }
.wf-input::placeholder { color: var(--wf-text-faint); }

.wf-btn {
  font-family: var(--wf-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 9px 22px;
  background: var(--wf-accent);
  color: var(--wf-text-on-accent);
  border: none;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: filter var(--wf-dur-fast), transform var(--wf-dur-fast);
}

.wf-btn:hover { filter: brightness(1.08); }
.wf-btn:active { transform: scale(0.97); }

.wf-btn--ghost {
  background: transparent;
  color: var(--wf-text-dim);
  box-shadow: inset 0 0 0 1px var(--wf-border-strong);
}
.wf-btn--ghost:hover { color: var(--wf-accent); }

.wf-collapse-btn {
  font-family: var(--wf-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--wf-accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 20px;
  width: 100%;
  text-align: center;
  border-top: 1px solid var(--wf-border);
  transition: color var(--wf-dur-fast);
}
.wf-collapse-btn:hover { color: var(--wf-accent-strong); }

/* ---------- 状态：骨架 / 空 / 错误 ---------- */
.wf-skeleton {
  background: linear-gradient(90deg, var(--wf-surface-2) 25%, var(--wf-border) 50%, var(--wf-surface-2) 75%);
  background-size: 200% 100%;
  animation: wf-shimmer 1.4s linear infinite;
  min-height: 14px;
  color: transparent !important;
  user-select: none;
}

@keyframes wf-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

.wf-empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--wf-text-faint);
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* ---------- 展开区（折叠行） ---------- */
.wf-collapsed { display: none; }
.wf-collapsed.is-open { display: contents; }
.wf-collapsed.is-open > * { animation: wf-rise var(--wf-dur-slow) var(--wf-ease-out) backwards; }
.wf-collapsed.is-open > *:nth-child(2) { animation-delay: 60ms; }
.wf-collapsed.is-open > *:nth-child(3) { animation-delay: 120ms; }

@keyframes wf-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 页脚 ---------- */
.wf-footer {
  margin-top: var(--wf-space-8);
  padding-top: var(--wf-space-5);
  border-top: 1px solid var(--wf-border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--wf-text-faint);
  letter-spacing: 0.06em;
}

/* ---------- 布局网格 ---------- */
.wf-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--wf-space-4); }

.wf-grid > .col-4 { grid-column: span 4; }
.wf-grid > .col-5 { grid-column: span 5; }
.wf-grid > .col-7 { grid-column: span 7; }
.wf-grid > .col-8 { grid-column: span 8; }
.wf-grid > .col-12 { grid-column: span 12; }

.section-gap { margin-bottom: var(--wf-space-5); }

@media (max-width: 1100px) {
  .wf-kpis { grid-template-columns: repeat(3, 1fr); }
  .wf-grid > .col-4, .wf-grid > .col-5, .wf-grid > .col-7, .wf-grid > .col-8 { grid-column: span 12; }
}

@media (max-width: 640px) {
  .wf-kpis { grid-template-columns: repeat(2, 1fr); }
  .wf-nav__links { display: none; }
  .wf-nav__meta .wf-live { display: none; }
  .wf-fissure { grid-template-columns: 74px 1fr; }
  .wf-fissure__end { grid-column: 2; justify-content: flex-start; }
}

/* ---------- 可访问性 ---------- */
@media (prefers-reduced-motion: reduce) {
  .wf-body *, .wf-body *::before, .wf-body *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:is(.wf-chip-btn, .wf-btn, .wf-collapse-btn, .wf-theme-toggle, .wf-nav__links a):focus-visible,
.wf-input:focus-visible {
  outline: 2px solid var(--wf-accent);
  outline-offset: 2px;
}
