/* ================================================================
   功能状态页（服务稳定性）· public/status.css
   —— 2026-09-17 重做：与「蝉脉橙」同一体系（原来是深藏青，像借来的）
   设计要点：
     ① 深色 hero 用项目自己的**暖深色**（首页大卡同款 #2b1a10 → #7a3a12），
        不是外来藏青；橙色高光收口，和白卡片形成"仪表盘 + 说明"的层次。
     ② 列表用**行式**而非宫格：56 个功能用宫格会又长又难扫；
        行式一屏能看更多、每行还能放样本量与时间。
     ③ 移动优先：390px 下不允许横向溢出。中间列 min-width:0，
        长名字省略号；右侧百分比固定宽度不被挤。
     ④ 无任何「绝对定位装饰物」伸到容器外（项目踩过这个坑：会把整页撑宽）。
   ================================================================ */

.fst-wrap { padding: 4px 0 8px; }

/* ---------- ① 顶部总览（暖深色仪表盘） ---------- */
.fst-hero {
  position: relative;
  border-radius: 22px;
  padding: 24px 20px 20px;
  color: #fff;
  background:
    radial-gradient(120% 130% at 50% 0%, #7a3a12 0%, #4a2a15 46%, #2b1a10 100%);
  box-shadow: 0 14px 32px rgba(43, 26, 16, 0.26);
  overflow: hidden;
  margin-bottom: 14px;
}
/* 顶部一道橙色高光，收住"仪表"质感（在 overflow:hidden 内，不会外溢） */
.fst-hero::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, rgba(255,136,69,0) 0%, #ff8845 30%, #f94400 70%, rgba(249,68,0,0) 100%);
}
.fst-ring { position: relative; width: 132px; height: 132px; margin: 2px auto 0; }
.fst-ring svg { width: 132px; height: 132px; transform: rotate(-90deg); display: block; }
.fst-track { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 11; }
.fst-arc { fill: none; stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.22,.8,.28,1); }
.fst-ring-num {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
}
.fst-ring-num b { font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.fst-ring-num i { font-style: normal; font-size: 15px; font-weight: 700; opacity: .8; margin-left: 1px; }
.fst-ring-num small { font-size: 11px; opacity: .72; margin-top: 3px; }

.fst-hero-t { text-align: center; font-size: 17px; font-weight: 800; margin-top: 12px; letter-spacing: .3px; }
.fst-hero-s { text-align: center; font-size: 12.5px; line-height: 1.6; opacity: .82; margin-top: 6px; }

/* 「失败不扣额度」承诺条：状态页最重要的安抚信息 */
.fst-promise {
  display: flex; align-items: center; gap: 7px;
  margin-top: 14px; padding: 9px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px; line-height: 1.5;
}
.fst-promise svg { width: 15px; height: 15px; flex: 0 0 auto; opacity: .95; }
.fst-promise b { font-weight: 800; }

/* ---------- ② 口径切换（近7天 / 今天 / 累计） ---------- */
.fst-seg {
  display: flex; gap: 6px; padding: 4px;
  background: #fff3ea; border-radius: 14px; margin-bottom: 12px;
}
.fst-seg button {
  flex: 1; border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--text2);
  padding: 9px 4px; border-radius: 11px; transition: all .16s;
}
.fst-seg button.on {
  background: #fff; color: var(--primary);
  box-shadow: 0 2px 8px rgba(249, 89, 1, 0.14);
}

/* ---------- ③ 需要留意（有失败时出现） ---------- */
.fst-alert {
  background: #fff7ed; border: 1px solid #ffd9bd; border-radius: 16px;
  padding: 13px 15px; margin-bottom: 14px;
}
.fst-alert-h { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 800; color: #b45309; }
.fst-alert-h svg { width: 16px; height: 16px; flex: 0 0 auto; }
.fst-alert-b { font-size: 12.5px; color: #92400e; line-height: 1.65; margin-top: 7px; }
.fst-alert ul { margin: 6px 0 0; padding-left: 17px; }
.fst-alert li { margin: 3px 0; }

/* ---------- ④ 分板块列表 ---------- */
.fst-sec { margin-bottom: 16px; }
.fst-sec-h {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13.5px; font-weight: 800; color: var(--text);
  padding: 0 3px 8px;
}
.fst-sec-h small { font-size: 11.5px; font-weight: 600; color: var(--text2); }

.fst-card { background: #fff; border-radius: 18px; box-shadow: 0 3px 12px rgba(249, 89, 1, 0.06); overflow: hidden; }

.fst-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid #faf3ec;
}
.fst-row:last-child { border-bottom: 0; }

.fst-dot {
  flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}
.fst-row.warn .fst-dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18); }
.fst-row.bad  .fst-dot { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18); }
.fst-row.none .fst-dot { background: #d6cec6; box-shadow: 0 0 0 3px rgba(214, 206, 198, 0.22); }

.fst-mid { min-width: 0; flex: 1 1 auto; }   /* min-width:0 是长名字不撑宽的关键 */
.fst-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fst-sub { font-size: 11.5px; color: var(--text2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fst-pct {
  flex: 0 0 auto; min-width: 52px; text-align: right;
  font-size: 12px; color: var(--text2); line-height: 1.1;
}
.fst-pct b { font-size: 19px; font-weight: 900; color: var(--text); letter-spacing: -.5px; }
.fst-pct i { font-style: normal; font-size: 11px; font-weight: 700; margin-left: 1px; }
.fst-row.warn .fst-pct b { color: #d97706; }
.fst-row.bad  .fst-pct b { color: #dc2626; }
.fst-row.none .fst-pct b { color: #b9aca1; }
.fst-pct small { display: block; font-size: 10.5px; margin-top: 2px; }

/* ---------- ⑤ 口径说明 / 加载 / 空态 ---------- */
.fst-note {
  background: #fffbf7; border: 1px solid #f6ece2; border-radius: 15px;
  padding: 12px 14px; font-size: 12px; color: var(--text2); line-height: 1.75;
}
.fst-note summary {
  cursor: pointer; font-weight: 800; color: var(--text); font-size: 12.5px;
  list-style: none; display: flex; align-items: center; gap: 6px;
}
.fst-note summary::-webkit-details-marker { display: none; }
.fst-note summary::after { content: '▾'; margin-left: auto; opacity: .55; transition: transform .18s; }
.fst-note[open] summary::after { transform: rotate(180deg); }
.fst-note p { margin-top: 8px; }
.fst-note b { color: var(--text); }

.fst-loading {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 46px 20px; color: var(--text2); font-size: 13px;
}
.fst-spin {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid #ffe1cd; border-top-color: var(--primary);
  animation: fstSpin .8s linear infinite;
}
@keyframes fstSpin { to { transform: rotate(360deg); } }
.fst-err { text-align: center; padding: 34px 20px; }
.fst-err p { color: #dc2626; font-size: 13.5px; font-weight: 700; }
.fst-err small { display: block; color: var(--text2); font-size: 12px; margin-top: 7px; }
.fst-retry {
  margin-top: 14px; border: 0; cursor: pointer; font-family: inherit;
  background: var(--grad); color: #fff; font-size: 13.5px; font-weight: 700;
  padding: 10px 22px; border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .fst-arc { transition: none; }
  .fst-spin { animation: none; }
}
/* 宽屏：一行两列，避免 56 行把页面拉得过长 */
@media (min-width: 900px) {
  .fst-sec .fst-card { display: grid; grid-template-columns: 1fr 1fr; }
  .fst-row:nth-child(odd) { border-right: 1px solid #faf3ec; }
}
