/* 汇赛通 HST · 设计系统 */
:root {
  --brand-50:#eef4ff; --brand-100:#dbe6ff; --brand-200:#bccffe; --brand-300:#8fb0fc;
  --brand-400:#5c88f7; --brand-500:#3468f1; --brand-600:#1f4fe0; --brand-700:#1a3fb4;
  --brand-800:#18358f; --brand-900:#142a6b;
  --cyan-500:#0ea5b7; --cyan-600:#0b8fa0;
  --ink-900:#0f172a; --ink-800:#1a2338; --ink-700:#2b3548;
  --gray-900:#0f172a; --gray-700:#334155; --gray-600:#475569; --gray-500:#64748b;
  --gray-400:#94a3b8; --gray-300:#cbd5e1; --gray-200:#e2e8f0; --gray-100:#f1f5f9; --gray-50:#f7f9fc;
  --green:#0f9d58; --green-bg:#e7f6ee; --green-ink:#0b7a44;
  --amber:#d98511; --amber-bg:#fdf3e2; --amber-ink:#a8630a;
  --red:#dc3545; --red-bg:#fdecee; --red-ink:#b02a37;
  --blue:#2563eb; --blue-bg:#e8f0fe; --blue-ink:#1a49c9;
  --purple:#7c4dff; --purple-bg:#f0ebff; --purple-ink:#5a2fd6;
  --teal:#0d9488; --teal-bg:#e4f5f3; --teal-ink:#0b6e66;
  --r-sm:6px; --r-md:10px; --r-lg:14px; --r-xl:20px;
  --sh-1:0 1px 2px rgba(15,23,42,.05);
  --sh-2:0 2px 8px rgba(15,23,42,.06);
  --sh-3:0 8px 28px rgba(15,23,42,.10);
  --sh-4:0 18px 50px rgba(15,23,42,.16);
  --sidebar-w:232px;
  --font:"PingFang SC","Microsoft YaHei","Hiragino Sans GB","Segoe UI",Roboto,-apple-system,sans-serif;
}
* { box-sizing:border-box; margin:0; padding:0; }
html,body { height:100%; }
body {
  font-family:var(--font); font-size:14px; color:var(--gray-700);
  background:var(--gray-50); -webkit-font-smoothing:antialiased;
}
a { color:inherit; text-decoration:none; }
button,input,select,textarea { font-family:inherit; font-size:inherit; outline:none; }
::-webkit-scrollbar { width:8px; height:8px; }
::-webkit-scrollbar-thumb { background:#c9d3e0; border-radius:8px; }
::-webkit-scrollbar-thumb:hover { background:#a9b6c9; }
::-webkit-scrollbar-track { background:transparent; }

/* ============ 布局 ============ */
.layout { display:flex; min-height:100vh; }
.sidebar {
  width:var(--sidebar-w); flex:0 0 var(--sidebar-w); position:sticky; top:0; height:100vh;
  background:linear-gradient(178deg,#111e3f 0%,#16264f 48%,#1b2f63 100%);
  color:#c7d3ea; display:flex; flex-direction:column; z-index:60;
}
.sb-brand { padding:20px 20px 16px; display:flex; align-items:center; gap:11px; border-bottom:1px solid rgba(255,255,255,.08); }
.sb-logo {
  width:38px; height:38px; border-radius:11px; flex:0 0 38px;
  background:linear-gradient(135deg,#3b74ff,#00c2d1);
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:17px; font-weight:700;
  box-shadow:0 6px 18px rgba(59,116,255,.45);
}
.sb-title { font-size:16px; font-weight:700; color:#fff; letter-spacing:.5px; }
.sb-sub { font-size:11px; color:#7f92b8; margin-top:2px; letter-spacing:1.4px; }
.sb-nav { flex:1; overflow-y:auto; padding:12px 10px 20px; }
.sb-nav::-webkit-scrollbar-thumb { background:rgba(255,255,255,.14); }
.sb-group { font-size:11px; color:#64789f; padding:14px 12px 7px; letter-spacing:1px; font-weight:600; }
.sb-item {
  display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:9px;
  cursor:pointer; font-size:13.5px; color:#c2cee6; transition:.16s; margin-bottom:2px; position:relative;
}
.sb-item:hover { background:rgba(255,255,255,.08); color:#fff; }
.sb-item.active { background:linear-gradient(90deg,rgba(59,116,255,.95),rgba(37,158,180,.75)); color:#fff; box-shadow:0 4px 14px rgba(37,90,220,.35); }
.sb-item .ico { width:18px; text-align:center; font-size:14px; opacity:.9; }
.sb-item .txt { flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sb-badge {
  background:#e5484d; color:#fff; font-size:11px; min-width:18px; height:18px; border-radius:9px;
  display:flex; align-items:center; justify-content:center; padding:0 5px; font-weight:600;
}
.sb-item.active .sb-badge { background:rgba(255,255,255,.28); }
.sb-foot { padding:12px 14px; border-top:1px solid rgba(255,255,255,.08); font-size:11.5px; color:#6f83a8; line-height:1.7; }

.main { flex:1; min-width:0; display:flex; flex-direction:column; }
.topbar {
  height:60px; background:#fff; border-bottom:1px solid var(--gray-200); display:flex; align-items:center;
  padding:0 22px; gap:14px; position:sticky; top:0; z-index:50;
}
.crumb { font-size:13px; color:var(--gray-500); }
.crumb b { color:var(--gray-900); font-weight:600; }
.tb-search { flex:1; max-width:340px; position:relative; }
.tb-search input {
  width:100%; height:36px; border:1px solid var(--gray-200); border-radius:10px; padding:0 12px 0 34px;
  background:var(--gray-50); transition:.15s;
}
.tb-search input:focus { border-color:var(--brand-400); background:#fff; box-shadow:0 0 0 3px rgba(52,104,241,.12); }
.tb-search .mag { position:absolute; left:11px; top:9px; color:var(--gray-400); font-size:14px; }
.tb-right { margin-left:auto; display:flex; align-items:center; gap:8px; }
.icon-btn {
  width:36px; height:36px; border-radius:10px; border:1px solid var(--gray-200); background:#fff;
  cursor:pointer; color:var(--gray-600); position:relative; transition:.15s; font-size:15px;
  display:flex; align-items:center; justify-content:center;
}
.icon-btn:hover { border-color:var(--brand-300); color:var(--brand-600); background:var(--brand-50); }
.dot { position:absolute; top:7px; right:8px; width:7px; height:7px; border-radius:50%; background:#e5484d; border:1.5px solid #fff; }
.user-chip { display:flex; align-items:center; gap:9px; padding:5px 12px 5px 6px; border-radius:10px; cursor:pointer; transition:.15s; }
.user-chip:hover { background:var(--gray-50); }
.avatar { width:30px; height:30px; border-radius:50%; background:linear-gradient(135deg,#3b74ff,#7c4dff); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12.5px; font-weight:600; flex:0 0 30px; }
.avatar.sm { width:26px; height:26px; flex:0 0 26px; font-size:11px; }
.avatar.lg { width:52px; height:52px; flex:0 0 52px; font-size:18px; border-radius:14px; }
.uname { font-size:13px; color:var(--gray-900); font-weight:600; line-height:1.2; }
.urole { font-size:11px; color:var(--gray-500); }

.view { padding:20px 22px 40px; flex:1; min-width:0; animation:fadeUp .28s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* ============ 通用块 ============ */
.page-head { display:flex; align-items:flex-start; gap:14px; margin-bottom:16px; flex-wrap:wrap; }
.page-title { font-size:20px; font-weight:700; color:var(--gray-900); letter-spacing:.3px; }
.page-desc { font-size:13px; color:var(--gray-500); margin-top:5px; }
.page-actions { margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }

.card { background:#fff; border:1px solid var(--gray-200); border-radius:var(--r-lg); box-shadow:var(--sh-1); }
.card-head { padding:14px 18px; border-bottom:1px solid var(--gray-100); display:flex; align-items:center; gap:10px; }
.card-title { font-size:14.5px; font-weight:700; color:var(--gray-900); }
.card-sub { font-size:12px; color:var(--gray-500); }
.card-head .extra { margin-left:auto; display:flex; gap:8px; align-items:center; }
.card-body { padding:16px 18px; }
.card-body.tight { padding:10px 18px 14px; }
.grid { display:grid; gap:14px; }
.g2 { grid-template-columns:repeat(2,1fr); }
.g3 { grid-template-columns:repeat(3,1fr); }
.g4 { grid-template-columns:repeat(4,1fr); }
.g5 { grid-template-columns:repeat(5,1fr); }
.g-2-1 { grid-template-columns:2fr 1fr; }
.g-1-2 { grid-template-columns:1fr 2fr; }
@media (max-width:1240px){ .g4,.g5{grid-template-columns:repeat(2,1fr);} .g-2-1,.g-1-2,.g3{grid-template-columns:1fr;} }

/* ============ 按钮 ============ */
.btn {
  height:34px; padding:0 14px; border-radius:9px; border:1px solid var(--gray-300); background:#fff;
  color:var(--gray-700); cursor:pointer; font-size:13px; display:inline-flex; align-items:center;
  justify-content:center; gap:6px; transition:.15s; white-space:nowrap; font-weight:500;
}
.btn:hover { border-color:var(--brand-400); color:var(--brand-600); background:var(--brand-50); }
.btn.primary { background:linear-gradient(135deg,var(--brand-500),var(--brand-600)); border-color:transparent; color:#fff; box-shadow:0 3px 10px rgba(31,79,224,.28); }
.btn.primary:hover { filter:brightness(1.08); color:#fff; }
.btn.cyan { background:linear-gradient(135deg,#0ea5b7,#0b8fa0); border-color:transparent; color:#fff; }
.btn.cyan:hover { filter:brightness(1.08); color:#fff; }
.btn.danger { color:var(--red); border-color:#f3c3c8; background:#fff; }
.btn.danger:hover { background:var(--red-bg); border-color:var(--red); color:var(--red); }
.btn.sm { height:28px; padding:0 10px; font-size:12.5px; border-radius:7px; }
.btn.lg { height:40px; padding:0 20px; font-size:14px; }
.btn.ghost { border-color:transparent; background:transparent; }
.btn.ghost:hover { background:var(--gray-100); border-color:transparent; color:var(--gray-900); }
.btn:disabled { opacity:.5; cursor:not-allowed; }
.btn-group { display:inline-flex; border:1px solid var(--gray-200); border-radius:9px; overflow:hidden; }
.btn-group .btn { border:none; border-radius:0; height:32px; }
.btn-group .btn + .btn { border-left:1px solid var(--gray-200); }
.btn-group .btn.active { background:var(--brand-50); color:var(--brand-600); }

/* ============ 表单 ============ */
.field { display:flex; flex-direction:column; gap:5px; }
.field > label { font-size:12.5px; color:var(--gray-600); font-weight:500; }
.field > label .req { color:var(--red); margin-left:2px; }
.inp, .sel, .ta {
  height:36px; border:1px solid var(--gray-300); border-radius:9px; padding:0 11px; background:#fff;
  color:var(--gray-900); transition:.15s; width:100%;
}
.ta { height:auto; padding:9px 11px; resize:vertical; line-height:1.6; min-height:78px; }
.inp:focus, .sel:focus, .ta:focus { border-color:var(--brand-400); box-shadow:0 0 0 3px rgba(52,104,241,.12); }
.sel { appearance:none; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4.5L6 8.5L10 4.5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>"); background-repeat:no-repeat; background-position:right 11px center; padding-right:28px; }
.filter-bar { display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end; }
.filter-bar .field { min-width:150px; }
.switch { width:40px; height:22px; border-radius:11px; background:var(--gray-300); position:relative; cursor:pointer; transition:.2s; flex:0 0 40px; }
.switch::after { content:""; position:absolute; width:18px; height:18px; border-radius:50%; background:#fff; top:2px; left:2px; transition:.2s; box-shadow:0 1px 3px rgba(0,0,0,.2); }
.switch.on { background:var(--brand-500); }
.switch.on::after { left:20px; }
.check { width:17px; height:17px; border:1.5px solid var(--gray-300); border-radius:5px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; color:transparent; transition:.13s; flex:0 0 17px; font-size:11px; }
.check.on { background:var(--brand-500); border-color:var(--brand-500); color:#fff; }
.check.part { border-color:var(--brand-500); color:var(--brand-500); background:#fff; }

/* ============ 表格 ============ */
.tbl-wrap { overflow-x:auto; }
table.tbl { width:100%; border-collapse:collapse; font-size:13px; min-width:840px; }
table.tbl th {
  text-align:left; padding:11px 14px; background:var(--gray-50); color:var(--gray-600); font-weight:600;
  font-size:12.5px; white-space:nowrap; border-bottom:1px solid var(--gray-200); position:sticky; top:0; z-index:2;
}
table.tbl td { padding:11px 14px; border-bottom:1px solid var(--gray-100); color:var(--gray-700); vertical-align:middle; }
table.tbl tbody tr { transition:.12s; }
table.tbl tbody tr:hover { background:#f8fbff; }
table.tbl tbody tr.sel { background:var(--brand-50); }
table.tbl .num { font-variant-numeric:tabular-nums; }
.cell-main { color:var(--gray-900); font-weight:600; }
.cell-sub { font-size:11.5px; color:var(--gray-500); margin-top:2px; }
.row-acts { display:flex; gap:5px; justify-content:flex-end; }
.link { color:var(--brand-600); cursor:pointer; font-size:12.5px; }
.link:hover { text-decoration:underline; }
.link.gray { color:var(--gray-500); }
.link.danger { color:var(--red); }
.sortable { cursor:pointer; user-select:none; }
.sortable:hover { color:var(--brand-600); }
.sortable::after { content:"↕"; font-size:10px; margin-left:4px; opacity:.45; }
.sortable.asc::after { content:"↑"; opacity:1; color:var(--brand-600); }
.sortable.desc::after { content:"↓"; opacity:1; color:var(--brand-600); }

/* ============ 徽标 ============ */
.tag { display:inline-flex; align-items:center; gap:4px; height:22px; padding:0 8px; border-radius:6px; font-size:11.5px; font-weight:600; white-space:nowrap; }
.tag.gray { background:var(--gray-100); color:var(--gray-600); }
.tag.blue { background:var(--blue-bg); color:var(--blue-ink); }
.tag.green { background:var(--green-bg); color:var(--green-ink); }
.tag.amber { background:var(--amber-bg); color:var(--amber-ink); }
.tag.red { background:var(--red-bg); color:var(--red-ink); }
.tag.purple { background:var(--purple-bg); color:var(--purple-ink); }
.tag.teal { background:var(--teal-bg); color:var(--teal-ink); }
.tag.plain { background:transparent; border:1px solid var(--gray-200); color:var(--gray-600); }
.tag-dot { width:6px; height:6px; border-radius:50%; display:inline-block; }

/* 状态点 */
.st { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; white-space:nowrap; }
.st i { width:7px; height:7px; border-radius:50%; flex:0 0 7px; }
.st.pending i { background:var(--amber); } .st.pending { color:var(--amber-ink); }
.st.ok i { background:var(--green); } .st.ok { color:var(--green-ink); }
.st.bad i { background:var(--red); } .st.bad { color:var(--red-ink); }
.st.info i { background:var(--blue); } .st.info { color:var(--blue-ink); }
.st.mute i { background:var(--gray-400); } .st.mute { color:var(--gray-500); }
.st.pur i { background:var(--purple); } .st.pur { color:var(--purple-ink); }

/* ============ 统计卡 ============ */
.kpi {
  background:#fff; border:1px solid var(--gray-200); border-radius:var(--r-lg); padding:16px 17px;
  position:relative; overflow:hidden; box-shadow:var(--sh-1); transition:.18s; cursor:default;
}
.kpi:hover { box-shadow:var(--sh-3); transform:translateY(-2px); }
.kpi::before { content:""; position:absolute; right:-24px; top:-24px; width:88px; height:88px; border-radius:50%; background:var(--kc,var(--brand-50)); opacity:.55; }
.kpi-top { display:flex; align-items:center; gap:9px; position:relative; }
.kpi-ico { width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:16px; color:#fff; background:var(--kg,linear-gradient(135deg,#3b74ff,#1f4fe0)); flex:0 0 34px; }
.kpi-label { font-size:12.5px; color:var(--gray-500); font-weight:500; }
.kpi-val { font-size:26px; font-weight:700; color:var(--gray-900); margin-top:11px; line-height:1; font-variant-numeric:tabular-nums; position:relative; }
.kpi-val small { font-size:13px; font-weight:600; color:var(--gray-500); margin-left:3px; }
.kpi-foot { margin-top:9px; font-size:12px; color:var(--gray-500); display:flex; align-items:center; gap:6px; position:relative; }
.trend { font-weight:700; font-size:12px; display:inline-flex; align-items:center; gap:2px; }
.trend.up { color:#d33a3a; } .trend.down { color:var(--green); }

/* ============ 进度条 ============ */
.pbar { height:6px; border-radius:3px; background:var(--gray-200); overflow:hidden; }
.pbar > i { display:block; height:100%; border-radius:3px; background:linear-gradient(90deg,var(--brand-400),var(--brand-600)); }
.pbar.g > i { background:linear-gradient(90deg,#34c77b,#0f9d58); }
.pbar.a > i { background:linear-gradient(90deg,#f5b53d,#d98511); }
.pbar.r > i { background:linear-gradient(90deg,#f0737c,#dc3545); }
.pbar.t > i { background:linear-gradient(90deg,#22b8cf,#0d9488); }

/* ============ 抽屉 / 弹窗 / Toast ============ */
.mask { position:fixed; inset:0; background:rgba(15,23,42,.42); z-index:200; animation:fade .18s ease; }
@keyframes fade { from{opacity:0} to{opacity:1} }
.drawer { position:fixed; top:0; right:0; bottom:0; width:min(680px,94vw); background:#fff; z-index:210; box-shadow:var(--sh-4); display:flex; flex-direction:column; animation:slideIn .24s cubic-bezier(.2,.8,.3,1); }
@keyframes slideIn { from{transform:translateX(40px);opacity:.4} to{transform:none;opacity:1} }
.drawer.wide { width:min(920px,96vw); }
.drawer-head { padding:16px 20px; border-bottom:1px solid var(--gray-200); display:flex; align-items:center; gap:12px; }
.drawer-body { flex:1; overflow-y:auto; padding:18px 20px; }
.drawer-foot { padding:13px 20px; border-top:1px solid var(--gray-200); display:flex; gap:9px; justify-content:flex-end; background:var(--gray-50); }
.x-btn { width:30px; height:30px; border-radius:8px; border:none; background:var(--gray-100); cursor:pointer; color:var(--gray-600); font-size:16px; line-height:1; }
.x-btn:hover { background:var(--gray-200); color:var(--gray-900); }
.modal { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); width:min(560px,94vw); background:#fff; border-radius:var(--r-lg); z-index:210; box-shadow:var(--sh-4); animation:pop .2s cubic-bezier(.2,.8,.3,1); }
@keyframes pop { from{transform:translate(-50%,-46%) scale(.96);opacity:0} to{transform:translate(-50%,-50%) scale(1);opacity:1} }
.toast-wrap { position:fixed; top:16px; left:50%; transform:translateX(-50%); z-index:400; display:flex; flex-direction:column; gap:9px; align-items:center; }
.toast { background:#fff; border:1px solid var(--gray-200); border-left:3px solid var(--brand-500); border-radius:10px; padding:11px 16px; box-shadow:var(--sh-3); font-size:13px; color:var(--gray-800); display:flex; align-items:center; gap:9px; animation:tin .26s ease; min-width:230px; }
@keyframes tin { from{opacity:0;transform:translateY(-12px)} to{opacity:1;transform:none} }
.toast.ok { border-left-color:var(--green); } .toast.warn { border-left-color:var(--amber); } .toast.err { border-left-color:var(--red); }

/* ============ 组件杂项 ============ */
.tabs { display:flex; gap:2px; border-bottom:1px solid var(--gray-200); margin-bottom:0; overflow-x:auto; }
.tab { padding:9px 15px; font-size:13.5px; color:var(--gray-600); cursor:pointer; border-bottom:2px solid transparent; white-space:nowrap; transition:.15s; font-weight:500; }
.tab:hover { color:var(--brand-600); }
.tab.active { color:var(--brand-600); border-bottom-color:var(--brand-500); font-weight:600; }
.tab .n { font-size:11.5px; background:var(--gray-100); color:var(--gray-600); border-radius:8px; padding:1px 6px; margin-left:5px; }
.tab.active .n { background:var(--brand-50); color:var(--brand-600); }

.seg { display:inline-flex; background:var(--gray-100); border-radius:9px; padding:3px; gap:2px; }
.seg > div { padding:5px 13px; border-radius:7px; font-size:12.5px; color:var(--gray-600); cursor:pointer; transition:.15s; white-space:nowrap; }
.seg > div.active { background:#fff; color:var(--gray-900); font-weight:600; box-shadow:var(--sh-1); }

.pager { display:flex; align-items:center; gap:8px; padding:13px 18px; border-top:1px solid var(--gray-100); flex-wrap:wrap; }
.pager .info { font-size:12.5px; color:var(--gray-500); margin-right:auto; }
.pg { min-width:30px; height:30px; padding:0 8px; border-radius:7px; border:1px solid var(--gray-200); background:#fff; cursor:pointer; font-size:12.5px; color:var(--gray-700); }
.pg:hover { border-color:var(--brand-400); color:var(--brand-600); }
.pg.active { background:var(--brand-500); border-color:var(--brand-500); color:#fff; font-weight:600; }
.pg:disabled { opacity:.4; cursor:not-allowed; }

.empty { padding:52px 20px; text-align:center; color:var(--gray-400); }
.empty .e-ico { font-size:40px; opacity:.35; margin-bottom:10px; }
.empty .e-txt { font-size:13.5px; }

.dl { display:grid; grid-template-columns:96px 1fr; gap:11px 14px; font-size:13px; }
.dl dt { color:var(--gray-500); }
.dl dd { color:var(--gray-900); word-break:break-all; }
.sec-title { font-size:13.5px; font-weight:700; color:var(--gray-900); margin:4px 0 12px; display:flex; align-items:center; gap:8px; }
.sec-title::before { content:""; width:3px; height:13px; border-radius:2px; background:var(--brand-500); }
.hr { height:1px; background:var(--gray-100); margin:16px 0; }

.timeline { position:relative; padding-left:20px; }
.timeline::before { content:""; position:absolute; left:5px; top:6px; bottom:6px; width:1.5px; background:var(--gray-200); }
.tl-item { position:relative; padding-bottom:16px; }
.tl-item:last-child { padding-bottom:0; }
.tl-item::before { content:""; position:absolute; left:-18.5px; top:4px; width:9px; height:9px; border-radius:50%; background:var(--gray-300); border:2px solid #fff; box-shadow:0 0 0 1px var(--gray-200); }
.tl-item.hi::before { background:var(--brand-500); box-shadow:0 0 0 1px var(--brand-300); }
.tl-t { font-size:13px; color:var(--gray-900); font-weight:600; }
.tl-d { font-size:12px; color:var(--gray-500); margin-top:3px; }
.tl-time { font-size:11.5px; color:var(--gray-400); }

.rank-list { display:flex; flex-direction:column; gap:9px; }
.rank-item { display:flex; align-items:center; gap:11px; padding:8px 10px; border-radius:10px; transition:.14s; cursor:pointer; }
.rank-item:hover { background:var(--gray-50); }
.rank-no { width:22px; height:22px; border-radius:6px; background:var(--gray-100); color:var(--gray-600); font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; flex:0 0 22px; }
.rank-no.t1 { background:linear-gradient(135deg,#ffd76a,#f0a800); color:#fff; }
.rank-no.t2 { background:linear-gradient(135deg,#dfe4ea,#b3bac5); color:#fff; }
.rank-no.t3 { background:linear-gradient(135deg,#f0b98a,#c97c41); color:#fff; }
.rank-name { flex:1; font-size:13px; color:var(--gray-800); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rank-val { font-size:12.5px; font-weight:700; color:var(--gray-900); font-variant-numeric:tabular-nums; }

.todo-item { display:flex; align-items:center; gap:11px; padding:11px 4px; border-bottom:1px dashed var(--gray-200); }
.todo-item:last-child { border-bottom:none; }
.todo-ico { width:30px; height:30px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:14px; flex:0 0 30px; }
.todo-main { flex:1; min-width:0; }
.todo-t { font-size:13px; color:var(--gray-900); font-weight:500; }
.todo-s { font-size:11.5px; color:var(--gray-500); margin-top:2px; }

.chip { display:inline-flex; align-items:center; gap:5px; height:26px; padding:0 10px; border-radius:13px; background:var(--gray-100); color:var(--gray-600); font-size:12px; cursor:pointer; transition:.14s; }
.chip:hover { background:var(--brand-50); color:var(--brand-600); }
.chip.on { background:var(--brand-500); color:#fff; }
.chips { display:flex; gap:7px; flex-wrap:wrap; }

.mono { font-family:"SF Mono",Consolas,"Courier New",monospace; font-size:12.5px; letter-spacing:.2px; }
.muted { color:var(--gray-500); }
.right { text-align:right; }
.center { text-align:center; }
.b { font-weight:700; color:var(--gray-900); }
.flex { display:flex; align-items:center; gap:8px; }
.wrap { flex-wrap:wrap; }
.ml-auto { margin-left:auto; }
.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt20{margin-top:20px}
.mb8{margin-bottom:8px}.mb12{margin-bottom:12px}.mb16{margin-bottom:16px}
.fade-in { animation:fadeUp .3s ease; }

/* 赛事卡片 */
.ev-card { background:#fff; border:1px solid var(--gray-200); border-radius:var(--r-lg); overflow:hidden; transition:.2s; cursor:pointer; display:flex; flex-direction:column; }
.ev-card:hover { box-shadow:var(--sh-3); transform:translateY(-3px); border-color:var(--brand-200); }
.ev-cover { height:92px; position:relative; display:flex; align-items:flex-end; padding:10px 13px; }
.ev-cover .lv { background:rgba(255,255,255,.94); color:var(--gray-900); font-size:11px; font-weight:700; padding:2px 8px; border-radius:20px; }
.ev-cover .st-pill { position:absolute; top:10px; right:11px; background:rgba(255,255,255,.94); border-radius:20px; padding:2px 9px; font-size:11px; font-weight:700; }
.ev-body { padding:12px 14px 14px; flex:1; display:flex; flex-direction:column; }
.ev-name { font-size:14px; font-weight:700; color:var(--gray-900); line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:40px; }
.ev-meta { font-size:11.5px; color:var(--gray-500); margin-top:7px; display:flex; flex-direction:column; gap:3px; }
.ev-foot { margin-top:11px; padding-top:10px; border-top:1px solid var(--gray-100); display:flex; align-items:center; justify-content:space-between; }
.ev-fee { font-size:15px; font-weight:700; color:var(--red); }
.ev-fee.free { color:var(--green); }

/* 步骤条 */
.steps { display:flex; align-items:center; gap:0; padding:6px 0 2px; }
.step { display:flex; align-items:center; gap:9px; }
.step .s-dot { width:26px; height:26px; border-radius:50%; background:var(--gray-100); color:var(--gray-500); display:flex; align-items:center; justify-content:center; font-size:12.5px; font-weight:700; flex:0 0 26px; }
.step.done .s-dot { background:var(--green); color:#fff; }
.step.cur .s-dot { background:var(--brand-500); color:#fff; box-shadow:0 0 0 4px rgba(52,104,241,.16); }
.step .s-t { font-size:12.5px; color:var(--gray-500); white-space:nowrap; }
.step.cur .s-t { color:var(--gray-900); font-weight:600; }
.step.done .s-t { color:var(--gray-700); }
.step-line { flex:1; height:2px; background:var(--gray-200); margin:0 10px; min-width:22px; }
.step-line.done { background:var(--green); }

/* 图表容器 */
.chart { width:100%; }
.chart text { font-family:var(--font); }
.legend { display:flex; gap:14px; flex-wrap:wrap; font-size:12px; color:var(--gray-600); }
.legend i { width:9px; height:9px; border-radius:3px; display:inline-block; margin-right:5px; }

/* 看板 */
.kanban { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.kb-col { background:var(--gray-50); border:1px solid var(--gray-200); border-radius:var(--r-lg); display:flex; flex-direction:column; min-height:320px; }
.kb-head { padding:11px 13px; border-bottom:1px solid var(--gray-200); display:flex; align-items:center; gap:7px; font-size:13px; font-weight:700; color:var(--gray-800); }
.kb-body { padding:10px; display:flex; flex-direction:column; gap:9px; flex:1; }
.kb-card { background:#fff; border:1px solid var(--gray-200); border-radius:var(--r-md); padding:11px 12px; box-shadow:var(--sh-1); cursor:pointer; transition:.15s; }
.kb-card:hover { box-shadow:var(--sh-2); border-color:var(--brand-200); }
@media (max-width:1240px){ .kanban { grid-template-columns:repeat(2,1fr); } }

/* ============ 门户端 ============ */
.portal-top {
  position:sticky; top:0; z-index:80; height:64px; background:rgba(255,255,255,.92);
  backdrop-filter:saturate(160%) blur(10px); border-bottom:1px solid var(--gray-200);
  display:flex; align-items:center; padding:0 5%; gap:22px;
}
.pt-nav { display:flex; gap:22px; font-size:14px; color:var(--gray-600); }
.pt-nav span { cursor:pointer; transition:.15s; }
.pt-nav span:hover, .pt-nav span.on { color:var(--brand-600); font-weight:600; }
.hero { padding:52px 5% 40px; background:linear-gradient(135deg,#12203f 0%,#1b3a7a 52%,#0e6f8c 100%); color:#fff; position:relative; overflow:hidden; }
.hero::after { content:""; position:absolute; width:420px; height:420px; border-radius:50%; background:rgba(255,255,255,.05); right:-110px; top:-150px; }
.hero h1 { font-size:32px; font-weight:700; letter-spacing:.5px; line-height:1.35; }
.hero p { margin-top:12px; font-size:14.5px; color:#c5d6f5; max-width:620px; line-height:1.8; }
.hero-stats { display:flex; gap:38px; margin-top:28px; flex-wrap:wrap; position:relative; }
.hero-stat b { font-size:26px; display:block; font-variant-numeric:tabular-nums; }
.hero-stat span { font-size:12.5px; color:#a9c0e6; }
.hero-search { margin-top:26px; display:flex; gap:9px; max-width:620px; position:relative; }
.hero-search input { flex:1; height:46px; border-radius:12px; border:none; padding:0 16px; font-size:14px; }
.hero-search .btn { height:46px; padding:0 26px; font-size:14.5px; }
.p-wrap { padding:26px 5% 60px; }
.p-sec-head { display:flex; align-items:center; margin:26px 0 14px; }
.p-sec-head h2 { font-size:19px; font-weight:700; color:var(--gray-900); }
.p-sec-head .more { margin-left:auto; font-size:13px; color:var(--brand-600); cursor:pointer; }
.p-foot { background:var(--ink-900); color:#93a4c0; padding:34px 5% 26px; font-size:12.5px; line-height:2; }
.p-foot b { color:#fff; font-size:14px; }
.filter-row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:16px; }
.filter-row .fl { font-size:12.5px; color:var(--gray-500); margin-right:2px; }
.form-card { background:#fff; border:1px solid var(--gray-200); border-radius:var(--r-lg); padding:26px; box-shadow:var(--sh-2); }
.fsec { margin-bottom:22px; }
.fsec h3 { font-size:14.5px; font-weight:700; color:var(--gray-900); margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.fsec h3::before { content:""; width:3px; height:14px; border-radius:2px; background:var(--brand-500); }
.fgrid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
@media (max-width:760px){ .fgrid{grid-template-columns:1fr} .g2,.g3,.g4,.g5{grid-template-columns:1fr} .kanban{grid-template-columns:1fr} }
.member-row { border:1px solid var(--gray-200); border-radius:var(--r-md); padding:13px 14px; margin-bottom:10px; background:var(--gray-50); }
.succ-icon { width:76px; height:76px; border-radius:50%; background:var(--green-bg); color:var(--green); display:flex; align-items:center; justify-content:center; font-size:38px; margin:0 auto 16px; }
