/* ============================================================
   Status page — 线路状态
   依赖 base.css / pages.css；仅用既有 token，类名统一 .st- 前缀
   结构：总状态条 → 4 个数字 → 核心服务 → 9 条线路 → 历史事件
   ============================================================ */

/* ---------- 页头 ---------- */
.status-1108 .st-eyebrow{margin-top:24px}
.status-1108 .st-stamp{font-family:var(--f-mono);font-size:12px;line-height:20px;color:var(--ink-3);white-space:nowrap}
.status-1108 .st-stamp .mono{font-size:12px;color:var(--ink-2)}

/* ---------- 概览 ---------- */
.status-1108 .st-strip{align-items:center}
.status-1108 .st-stats{margin-top:24px}

/* ---------- 区块 ---------- */
.status-1108 .st-block{margin-top:32px}
.status-1108 .st-row{margin-bottom:24px;align-items:flex-end}
.status-1108 .st-hd{min-width:0}
.status-1108 .st-hd .sec2-sub{margin-top:8px;max-width:620px}
.status-1108 .st-row .sec2-title{margin-top:0}
.status-1108 .st-row-note{flex:none;font-size:14px;line-height:22px;color:var(--ink-3);white-space:nowrap}

/* ---------- 数据表（核心服务 / 中转线路共用） ---------- */
.status-1108 .st-panel .table-wrap{overflow-x:auto}
.status-1108 .st-table{min-width:0;table-layout:fixed}
.status-1108 .st-table thead th{padding-left:10px;padding-right:10px}
.status-1108 .st-table tbody td{padding:16px 10px}
.status-1108 .st-table tbody tr:hover td{background:var(--soft-2)}
.status-1108 .st-table thead th:first-child,
.status-1108 .st-table tbody td:first-child{padding-left:16px}
.status-1108 .st-table thead th:last-child,
.status-1108 .st-table tbody td:last-child{padding-right:16px}
.status-1108 .st-table .uptime{gap:1px}
.status-1108 .st-table .uptime i{min-width:1px;border-radius:1px}

/* 核心服务 */
.status-1108 .st-svc-table th:first-child{width:46%}
.status-1108 .st-svc-table th:nth-child(2){width:16%}
.status-1108 .st-svc-table th:nth-child(3){width:38%}
.status-1108 .st-svc-name{display:flex;align-items:center;gap:12px;min-width:0}
.status-1108 .st-ic{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;background:var(--tint);border:1px solid var(--brand-line);color:var(--brand);flex:none}
.status-1108 .st-svc-name b{display:block;font-size:15px;line-height:24px;font-weight:600;color:var(--ink)}
.status-1108 .st-svc-name small{display:block;font-size:12px;line-height:18px;color:var(--ink-3)}
.status-1108 .st-pill{background:#fff;border-color:var(--line);color:var(--ink);gap:8px}
.status-1108 .st-pill .dot{width:8px;height:8px}
.status-1108 .st-avail{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
.status-1108 .st-avail-v{flex:none;font-size:14px;line-height:20px;color:var(--ink);font-variant-numeric:tabular-nums}
.status-1108 .st-uptime{flex:1 1 auto;width:auto;min-width:0;max-width:220px;height:24px}

/* 中转线路 */
.status-1108 .st-line-table th:first-child{width:15%}
.status-1108 .st-line-table th:nth-child(2){width:21%}
.status-1108 .st-line-table th:nth-child(3){width:16%}
.status-1108 .st-line-table th:nth-child(4){width:11%}
.status-1108 .st-line-table th:nth-child(5){width:37%}
.status-1108 .st-line{display:flex;align-items:baseline;gap:8px;min-width:0}
.status-1108 .st-line b{font-size:15px;line-height:24px;font-weight:600;color:var(--ink);white-space:nowrap}
.status-1108 .st-code{font-size:12px;line-height:18px;color:var(--ink-3);letter-spacing:.04em}
.status-1108 .st-path{font-size:14px;line-height:24px;color:var(--ink-2);white-space:nowrap}
.status-1108 .st-ar{color:var(--ink-3);margin:0 2px}
.status-1108 .st-lat{white-space:nowrap;font-size:14px;color:var(--ink)}
.status-1108 .st-na{color:var(--ink-3)}
.status-1108 .st-line-table .st-uptime{max-width:200px}
.status-1108 .st-line-table .st-avail{justify-content:flex-end}

/* 图例：沿用 .uptime-legend，色块由本页给出 */
.status-1108 .st-legend{gap:14px;flex:none}
.status-1108 .st-lg{display:inline-block;width:10px;height:10px;border-radius:2px}
.status-1108 .st-lg-ok{background:var(--brand-line)}
.status-1108 .st-lg-warn{background:#E9A23B}
.status-1108 .st-lg-bad{background:var(--off)}
.status-1108 .st-lg-off{background:var(--soft);box-shadow:inset 0 0 0 1px var(--line-3)}

/* 表格脚注 */
.status-1108 .st-panel-foot{gap:24px}
.status-1108 .st-panel-foot p{max-width:760px;line-height:22px}

/* ---------- 历史事件 ---------- */
.status-1108 .st-filter{flex:none}
.status-1108 .st-timeline{
  margin-top:8px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--r);
  overflow:hidden;
}
.status-1108 .st-inc{
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  gap:28px;
  padding:24px 28px;
}
.status-1108 .st-inc + .st-inc{border-top:1px solid var(--line)}
.status-1108 .st-inc[hidden]{display:none}
.status-1108 .st-inc-date{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:2px;
  padding-top:2px;
  text-align:right;
}
.status-1108 .st-inc-day{font-size:20px;line-height:26px;font-weight:500;color:var(--ink);letter-spacing:-.01em}
.status-1108 .st-inc-year{font-size:12px;line-height:16px;color:var(--ink-3);letter-spacing:.06em}
.status-1108 .st-inc-body{position:relative;min-width:0;padding-left:24px;border-left:1px solid var(--line)}
.status-1108 .st-inc-body::before{
  content:"";
  position:absolute;
  left:-4.5px;
  top:9px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--brand);
}
.status-1108 .st-inc-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.status-1108 .st-inc-title{font-size:16px;line-height:26px;font-weight:600;color:var(--ink)}
.status-1108 .st-inc-meta{margin-top:6px;font-size:12px;line-height:18px;color:var(--ink-3);letter-spacing:.02em}
.status-1108 .st-inc-desc{margin-top:8px;max-width:820px;font-size:14px;line-height:24px;color:var(--ink-2)}
.status-1108 .st-inc-empty{padding:32px;text-align:center;font-size:14px;color:var(--ink-3)}

/* ---------- 页尾 CTA ---------- */
.status-1108 .st-cta-ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:52px;
  padding:0 24px;
  border:1px solid rgba(255,255,255,.45);
  border-radius:var(--r-btn);
  color:#fff;
  font-size:15px;
  font-weight:600;
  white-space:nowrap;
  transition:border-color .16s,background-color .16s;
}
.status-1108 .st-cta-ghost:hover{border-color:#fff;background:rgba(255,255,255,.08);box-shadow:none}

/* ---------- 订阅弹窗 ---------- */
.status-1108 .st-sub-form{display:flex;flex-direction:column;gap:18px}
.status-1108 .st-sub-opts{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.status-1108 .st-sub-opts legend{padding:0;margin-bottom:6px;font-size:14px;line-height:24px;font-weight:600;color:var(--ink)}
.status-1108 .st-sub-note{font-size:12px;line-height:20px;color:var(--ink-3)}
.status-1108 .st-sub-form .dlg-actions{margin-top:4px}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width:1024px){
  .status-1108 .st-strip{gap:16px}
  .status-1108 .st-row-note{white-space:normal;text-align:right}
  .status-1108 .st-avail{gap:10px}
  .status-1108 .st-svc-table th:first-child{width:44%}
  .status-1108 .st-svc-table th:nth-child(3){width:40%}
}
@media (max-width:860px){
  .status-1108 .st-row{flex-direction:column;align-items:flex-start;gap:16px}
  .status-1108 .st-row-note{text-align:left}
  .status-1108 .st-legend{flex-wrap:wrap}
  .status-1108 .st-filter{align-self:flex-start}
}
@media (max-width:900px){
  /* 表格 → 卡片 */
  .status-1108 .st-panel .table-wrap{overflow:visible}
  .status-1108 .st-table,
  .status-1108 .st-table tbody{display:block}
  .status-1108 .st-table thead{display:none}
  .status-1108 .st-table tbody tr{
    display:grid;
    gap:12px;
    padding:18px;
    border:1px solid var(--line);
    border-radius:var(--r);
    background:#fff;
  }
  .status-1108 .st-table tbody tr + tr{margin-top:12px}
  .status-1108 .st-table tbody td{display:block;padding:0;border:0}
  .status-1108 .st-table thead th:first-child,
  .status-1108 .st-table tbody td:first-child,
  .status-1108 .st-table thead th:last-child,
  .status-1108 .st-table tbody td:last-child{padding-left:0;padding-right:0}
  .status-1108 .st-uptime{gap:1px}
  .status-1108 .st-uptime i{min-width:1px;border-radius:0}
  .status-1108 .st-table tbody tr:hover td,
  .status-1108 .st-table tbody td{background:transparent}
  .status-1108 .st-table tbody tr:hover td{background:transparent}

  /* 核心服务卡 */
  .status-1108 .st-svc-table tbody tr{grid-template-columns:minmax(0,1fr) auto;align-items:center}
  .status-1108 .st-svc-table td:first-child{grid-column:1}
  .status-1108 .st-svc-table td:nth-child(2){grid-column:2;justify-self:end}
  .status-1108 .st-svc-table td:nth-child(3){grid-column:1/-1;padding-top:14px;border-top:1px solid var(--line)}
  .status-1108 .st-svc-table .st-avail{justify-content:space-between;gap:20px}
  .status-1108 .st-svc-table .st-uptime{width:auto;flex:1;max-width:none;height:22px}

  /* 线路卡 */
  .status-1108 .st-line-table tbody tr{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "line state"
      "path path"
      "lat lat"
      "avail avail";
    align-items:center;
  }
  .status-1108 .st-line-table td:nth-child(1){grid-area:line}
  .status-1108 .st-line-table td:nth-child(2){grid-area:path;display:flex;align-items:center;gap:8px;font-size:14px}
  .status-1108 .st-line-table td:nth-child(2)::before{content:"传输路径";font-size:12px;line-height:18px;color:var(--ink-3);flex:none}
  .status-1108 .st-line-table td:nth-child(3){grid-area:state;justify-self:end}
  .status-1108 .st-line-table td:nth-child(4){
    grid-area:lat;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding-top:12px;
    border-top:1px solid var(--line);
  }
  .status-1108 .st-line-table td:nth-child(4)::before{content:"当前延迟";font-size:12px;line-height:18px;color:var(--ink-3)}
  .status-1108 .st-line-table td:nth-child(5){grid-area:avail;display:flex;flex-direction:column;gap:6px;align-items:stretch}
  .status-1108 .st-line-table td:nth-child(5)::before{content:"可用率 / 近 90 天";font-size:12px;line-height:18px;color:var(--ink-3)}
  .status-1108 .st-line-table td:nth-child(4),
  .status-1108 .st-line-table td:nth-child(5){text-align:left}
  .status-1108 .st-line-table .st-avail{flex-direction:row;justify-content:space-between;gap:16px}
  .status-1108 .st-line-table .st-avail-v{order:1}
  .status-1108 .st-line-table .st-uptime{order:2;flex:1;max-width:none;width:auto;height:22px}
  .status-1108 .st-line-table .st-path{white-space:normal}
  .status-1108 .st-panel-foot{flex-direction:column;align-items:flex-start;gap:10px}

}

@media (max-width:760px){
  .status-1108 .st-eyebrow{margin-top:20px}
  .status-1108 .st-stamp{white-space:normal}
  .status-1108 .st-block{margin-top:32px}
  .status-1108 .st-row{margin-bottom:20px}
  .status-1108 .st-row .sec2-title{font-size:24px;line-height:34px}

  /* 历史事件 */
  .status-1108 .st-filter{width:100%;display:flex}
  .status-1108 .st-filter .tab-btn{flex:1;justify-content:center;padding:0 10px}
  .status-1108 .st-timeline{margin-top:16px}
  .status-1108 .st-inc{grid-template-columns:1fr;gap:10px;padding:20px 18px}
  .status-1108 .st-inc-date{flex-direction:row;align-items:baseline;justify-content:flex-start;gap:8px;text-align:left;padding-top:0}
  .status-1108 .st-inc-day{font-size:15px;line-height:24px;font-weight:600;color:var(--ink-3)}
  .status-1108 .st-inc-year{font-size:12px;line-height:16px}
  .status-1108 .st-inc-body{padding-left:16px}
  .status-1108 .st-inc-body::before{left:-4px;top:8px}
  .status-1108 .st-inc-title{font-size:16px;line-height:24px}
  .status-1108 .st-inc-desc{font-size:14px;line-height:23px}

  /* 页尾 CTA：两个动作等宽纵向排列 */
  .status-1108 .cta-band .cta-actions{display:flex;flex-direction:column;width:100%;gap:12px}
  .status-1108 .cta-band .cta-actions .btn-white{width:100%}
  .status-1108 .st-cta-ghost{width:100%}
}
@media (max-width:420px){
  .status-1108 .st-legend{gap:10px;font-size:12px}
  .status-1108 .st-svc-name b{font-size:14px}
  .status-1108 .st-svc-name small{font-size:12px;line-height:17px}
  .status-1108 .st-inc-top{gap:8px}
  .status-1108 .st-filter .tab-btn{font-size:14px;padding:0 6px}
  .status-1108 .st-filter .tab-btn .n{display:none}
}

/* Live status rendering */

.status-1108 .st-live-uptime i.unknown{background:#e3e5e2}.status-1108 .st-live-uptime i{cursor:default}.status-1108 .st-data-error{padding:12px;color:#8a5800;background:#fff5d6;border-radius:8px;margin-top:16px}

/* Keep all 90 daily cells inside the available table/card width. */
.status-1108 .st-line-table .st-avail{min-width:0;flex-wrap:wrap;gap:8px}
.status-1108 .st-line-table .st-live-uptime{display:grid;grid-template-columns:repeat(90,minmax(0,1fr));align-items:stretch;gap:1px;min-width:0;width:100%;max-width:260px;flex:1 1 140px}
.status-1108 .st-line-table .st-live-uptime i{min-width:0;width:100%;height:100%}
.status-1108 .st-line-table .st-live-uptime i.unknown{background:#e3e5e2}
.status-1108 .st-line-table .st-line{flex-wrap:wrap}
.status-1108 .st-line-table .st-line b{white-space:normal;overflow-wrap:anywhere}
.status-1108 .st-lg-unknown{background:#e3e5e2}
@media(max-width:900px){.status-1108 .st-line-table td:nth-child(2)::before{content:"监测地区"}.status-1108 .st-line-table td:nth-child(4)::before{content:"延迟"}.status-1108 .st-line-table .st-live-uptime{max-width:none;flex-basis:100%;height:24px}}
