@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  --uc-bg: #eef2f8;
  --uc-side: #10182a;
  --uc-side-2: #0c1322;
  --uc-blue: #2f6bff;
  --uc-blue-2: #1f5eff;
  --uc-blue-soft: #eef4ff;
  --uc-text: #0f172a;
  --uc-muted: #8a94a6;
  --uc-line: #e6ebf2;
  --uc-card: #ffffff;
  --uc-ok: #22c55e;
  --uc-warn: #f59e0b;
  --uc-danger: #ef4444;
  --uc-radius: 14px;
  --uc-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(24, 39, 75, 0.06);
  --uc-shadow-hover: 0 8px 28px rgba(24, 39, 75, 0.1);
  --uc-font: "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--uc-font);
  color: var(--uc-text);
  background:
    radial-gradient(1100px 420px at 8% -8%, rgba(47, 107, 255, 0.09), transparent 55%),
    radial-gradient(900px 360px at 92% 0%, rgba(56, 189, 248, 0.07), transparent 50%),
    var(--uc-bg);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--uc-blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--uc-blue-2); }
button, input, select, textarea { font: inherit; }

.uc-shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.uc-side {
  background:
    radial-gradient(320px 220px at 20% 0%, rgba(47,107,255,.22), transparent 60%),
    linear-gradient(180deg, var(--uc-side) 0%, var(--uc-side-2) 100%);
  color: #c7d0e0;
  padding: 0 0 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,.04);
}
.uc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  padding: 0 18px;
  background: linear-gradient(135deg, #3b82f6 0%, #2f6bff 55%, #1d4ed8 100%);
  color: #fff;
  font-weight: 750;
  font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 24px rgba(47,107,255,.18);
}
.uc-brand .dot {
  width: 24px; height: 24px; border-radius: 8px;
  background: rgba(255,255,255,.22);
  display: grid; place-items: center; font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.uc-nav-group { padding: 16px 14px 4px; }
.uc-nav-group h4 {
  margin: 0 8px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #6f7c95;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.uc-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b7c0d4;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  margin-bottom: 2px;
  font-size: 13.5px;
  font-weight: 500;
  transition: .15s ease;
}
.uc-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.uc-nav a.active {
  background: linear-gradient(90deg, rgba(47,107,255,.28), rgba(47,107,255,.12));
  color: #fff;
  box-shadow: inset 3px 0 0 #93b4ff;
}
.uc-nav .ico {
  width: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .9;
  font-size: 14px;
  line-height: 1;
}

/* Main */
.uc-main { min-width: 0; display: flex; flex-direction: column; }
.uc-top {
  height: 60px;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid rgba(230,235,242,.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
.uc-top-logo {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #2f6bff, #6ea8ff);
  display: grid; place-items: center; color: #fff; font-weight: 750; font-size: 13px;
  box-shadow: 0 6px 14px rgba(47,107,255,.28);
}
.uc-top-links { display: flex; align-items: center; gap: 18px; }
.uc-top-links a { color: #4b5568; font-size: 13px; font-weight: 550; }
.uc-top-links a:hover { color: var(--uc-blue); }
.uc-userchip {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: #f5f7fb;
  border: 1px solid #e8eef7;
  color: #334155;
  font-size: 13px;
  font-weight: 550;
}
.uc-userchip .ava {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(145deg, #3b82f6, #2563eb); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  box-shadow: 0 4px 10px rgba(37,99,235,.25);
}

.uc-body { padding: 20px 22px 36px; }

/* Cards / widgets */
.uc-card {
  background: var(--uc-card);
  border-radius: 16px;
  box-shadow: var(--uc-shadow);
  border: 1px solid rgba(230,235,242,.95);
}
.uc-card-hd {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 50px;
  padding: 0 16px;
  border-bottom: 1px solid var(--uc-line);
  font-size: 14px; font-weight: 700;
  background: linear-gradient(180deg, #fbfcfe, #fff);
  color: var(--uc-text);
}
.uc-card-hd a { font-size: 12px; font-weight: 500; }
.uc-card-bd { padding: 16px; }
.uc-card > .uc-card-bd:has(.uc-table) { padding: 0; }

.uc-dash {
  display: grid;
  grid-template-columns: 1.55fr .9fr;
  gap: 14px;
  align-items: start;
}
.uc-col { display: grid; gap: 14px; }

.uc-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}
.uc-avatar {
  width: 78px; height: 78px; border-radius: 50%;
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  color: #fff; font-size: 28px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(37,99,235,.25);
}
.uc-profile-meta { display: grid; gap: 6px; font-size: 13px; color: #64748b; }
.uc-profile-meta b { color: var(--uc-text); font-weight: 600; }
.uc-profile-meta .row { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.uc-veri { display: flex; gap: 8px; margin-top: 4px; }
.uc-veri span {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; color: #fff;
  background: #cbd5e1;
}
.uc-veri span.on { background: var(--uc-ok); }
.uc-agent-btn {
  margin-top: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 6px;
  border: 1px solid #dbe4ff; background: #f5f8ff; color: var(--uc-blue);
  font-size: 12px; cursor: pointer;
}
.uc-aff-banner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 12px;
  background: linear-gradient(105deg, #1d6fff 0%, #3b8bff 48%, #5aa2ff 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(37, 99, 235, .22);
  transition: transform .15s ease, box-shadow .15s ease;
  overflow: hidden;
  position: relative;
}
.uc-aff-banner::after {
  content: "";
  position: absolute;
  right: -40px; top: -50px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.uc-aff-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, .28);
  color: #fff;
}
.uc-aff-banner-main { position: relative; z-index: 1; min-width: 0; flex: 1; }
.uc-aff-banner-title {
  font-size: 20px; font-weight: 700; letter-spacing: .02em; line-height: 1.35;
}
.uc-aff-banner-sub {
  margin-top: 6px; font-size: 13px; opacity: .92; line-height: 1.5;
}
.uc-aff-banner-btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 14px; padding: 8px 18px;
  background: #fff; color: #1677ff; border-radius: 8px;
  font-size: 13px; font-weight: 700;
}
.uc-aff-banner-feats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 10px; align-content: center; flex: 0 1 auto;
}
.uc-aff-feat {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 12px 12px 11px;
  backdrop-filter: blur(4px);
}
.uc-aff-feat b {
  display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px;
}
.uc-aff-feat span {
  display: block; font-size: 12px; opacity: .9; line-height: 1.4;
}
@media (max-width: 900px) {
  .uc-aff-banner { flex-direction: column; gap: 14px; }
  .uc-aff-banner-feats { grid-template-columns: 1fr; width: 100%; }
}
.uc-quick {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--uc-line);
}
.uc-quick a, .uc-quick button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px;
  border: 1px solid var(--uc-line);
  background: #f8fafc;
  color: #475569;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 12px;
  cursor: pointer;
}
.uc-quick a:hover { border-color: #c7d7ff; color: var(--uc-blue); background: #f5f8ff; }

.uc-balance .amt {
  font-size: 36px; font-weight: 700; color: var(--uc-blue);
  letter-spacing: .02em; line-height: 1.1;
}
.uc-balance .label { color: var(--uc-muted); font-size: 13px; margin-top: 4px; }
.uc-balance .actions { margin-top: 12px; }
.uc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; border: 1px solid transparent; cursor: pointer; box-sizing: border-box;
  background: linear-gradient(180deg, #4f84ff, var(--uc-blue));
  color: #fff;
  border-radius: 10px; height: 36px; padding: 0 16px; font-size: 13px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(47,107,255,.22);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.uc-btn:hover {
  background: linear-gradient(180deg, #3b76ff, var(--uc-blue-2));
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(47,107,255,.28);
  color: #fff;
}
.uc-btn.ghost {
  background: #fff; color: var(--uc-blue);
  border-color: #c7d7ff;
  box-shadow: none;
}
.uc-btn.ghost:hover {
  background: var(--uc-blue-soft);
  border-color: #93b4ff;
  transform: none;
  box-shadow: none;
}
.uc-btn.sm { height: 32px; padding: 0 12px; font-size: 12px; font-weight: 600; box-shadow: none; }
/* 与后台统一的列表分页（app.js renderListPager） */
.list-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  color: var(--uc-muted);
  font-size: 13px;
}
.list-pager .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--uc-line);
  background: #fff;
  color: var(--uc-text);
  cursor: pointer;
  font-size: 12px;
}
.list-pager .btn:hover { border-color: #94a3b8; }
.list-pager .btn:disabled { opacity: .45; cursor: not-allowed; }
.list-pager .btn.sm { height: 30px; }
.list-pager .btn.outline { background: #fff; }
.list-pager .input {
  border: 1px solid var(--uc-line);
  border-radius: 8px;
  background: #fff;
  color: var(--uc-text);
}
.list-pager-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.list-pager-jump .input {
  width: 72px;
  height: 30px;
  padding: 0 8px;
}
.list-pager-size {
  width: auto;
  min-width: 110px;
  height: 30px;
  padding: 0 8px;
}
.uc-btn.danger { background: var(--uc-danger); }
.uc-finance-mini {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--uc-line);
}
.uc-finance-mini div { font-size: 12px; color: var(--uc-muted); }
.uc-finance-mini b { display: block; margin-top: 4px; color: var(--uc-text); font-size: 16px; }

.uc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow: hidden;
}
.uc-stats .item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100px;
  padding: 18px 14px;
  border-right: 1px solid var(--uc-line);
  text-align: center;
  transition: background .15s ease;
}
.uc-stats .item:hover { background: #f7faff; }
.uc-stats .item:last-child { border-right: 0; }
.uc-stats .n { font-size: 28px; font-weight: 800; color: var(--uc-text); letter-spacing: -.02em; }
.uc-stats .t { font-size: 12px; color: var(--uc-muted); margin-top: 4px; font-weight: 550; }
.uc-stats .sub { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.uc-stats a { font-size: 12px; }

.uc-mid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
}
.uc-gauge {
  display: grid; place-items: center; padding: 8px 0 4px;
}
.uc-gauge svg { width: 140px; height: 90px; }
.uc-gauge .score {
  margin-top: -28px; text-align: center;
}
.uc-gauge .score b { font-size: 28px; color: var(--uc-warn); }
.uc-gauge .score span { display: block; font-size: 12px; color: var(--uc-muted); }
.uc-prod-list { list-style: none; margin: 0; padding: 0; }
.uc-prod-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px;
}
.uc-prod-list li:last-child { border-bottom: 0; }
.uc-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px;
  background: #94a3b8;
}
.uc-dot.ok { background: var(--uc-ok); }
.uc-dot.warn { background: var(--uc-warn); }
.uc-dot.bad { background: var(--uc-danger); }

.uc-kv { display: grid; gap: 10px; font-size: 13px; }
.uc-kv .row { display: flex; justify-content: space-between; color: #64748b; }
.uc-kv .row b { color: var(--uc-text); font-weight: 600; }
.uc-table-wrap { overflow: auto; }
.uc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.uc-table th {
  text-align: left; color: #64748b; font-weight: 650;
  height: 44px; padding: 0 16px; border-bottom: 1px solid var(--uc-line);
  background: linear-gradient(180deg, #f8fafc, #f4f7fb); white-space: nowrap; vertical-align: middle;
  font-size: 12px; letter-spacing: .02em;
}
.uc-table td {
  height: 50px; padding: 10px 16px; border-bottom: 1px solid #f1f5f9;
  color: #334155; vertical-align: middle;
}
.uc-table tr:last-child td { border-bottom: 0; }
.uc-table tr:hover td { background: #f7faff; }
.uc-status { display: inline-flex; align-items: center; gap: 6px; }

.uc-aff {
  background: linear-gradient(110deg, #1e3a8a 0%, #2563eb 45%, #60a5fa 100%);
  color: #fff; border: 0; overflow: hidden; position: relative;
}
.uc-aff .uc-card-bd { display: grid; grid-template-columns: 1.2fr 2fr; gap: 18px; align-items: center; }
.uc-aff h3 { margin: 0 0 6px; font-size: 20px; }
.uc-aff p { margin: 0; opacity: .9; font-size: 13px; }
.uc-aff-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.uc-aff-feats div {
  background: rgba(255,255,255,.14); border-radius: 10px; padding: 14px;
  font-size: 13px;
}
.uc-aff-feats b { display: block; margin-bottom: 4px; font-size: 14px; }

/* Page common */
.uc-page-hd {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.uc-page-hd h1 {
  margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--uc-text);
}
.uc-page-hd p { margin: 5px 0 0; color: var(--uc-muted); font-size: 13px; line-height: 1.55; max-width: 560px; }
.uc-page-hd .uc-page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Shared hero / KPI / badges — user-center polish primitives */
.uc-hero {
  position: relative; overflow: hidden; border-radius: 18px; padding: 26px 28px 22px; color: #fff;
  background:
    radial-gradient(420px 180px at 90% 0%, rgba(56,189,248,.28), transparent 55%),
    linear-gradient(125deg, #0f3d9e 0%, #1d4ed8 45%, #2f6bff 100%);
  box-shadow: 0 16px 40px rgba(37,99,235,.14);
  margin-bottom: 16px;
}
.uc-hero::after {
  content: ""; position: absolute; left: -36px; bottom: -50px; width: 160px; height: 160px;
  border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none;
}
.uc-hero-inner {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end;
}
.uc-hero h1 {
  margin: 0; font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.03em; color: #fff;
}
.uc-hero p {
  margin: 8px 0 0; max-width: 520px; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.84);
}
.uc-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.uc-hero-tags span {
  display: inline-flex; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 650;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: #fff;
}
.uc-hero-side { text-align: right; }
.uc-hero-side .k { font-size: 12px; color: rgba(255,255,255,.72); font-weight: 600; }
.uc-hero-side .n {
  margin-top: 4px; font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #fff;
}
.uc-hero-side .s { margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.7); }
.uc-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.uc-hero .uc-btn { box-shadow: 0 8px 20px rgba(15,23,42,.18); }
.uc-hero .uc-btn.ghost {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff;
}
.uc-hero .uc-btn.ghost:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4); color: #fff; }
.uc-hero .uc-input {
  background: rgba(255,255,255,.95); border-color: transparent;
  box-shadow: 0 4px 14px rgba(15,23,42,.12);
}
.uc-hero.is-teal {
  background:
    radial-gradient(420px 180px at 90% 0%, rgba(45,212,191,.28), transparent 55%),
    linear-gradient(125deg, #0f766e 0%, #0d9488 45%, #14b8a6 100%);
  box-shadow: 0 16px 40px rgba(13,148,136,.16);
}
.uc-hero.is-slate {
  background:
    radial-gradient(420px 180px at 90% 0%, rgba(148,163,184,.25), transparent 55%),
    linear-gradient(125deg, #0f172a 0%, #1e293b 48%, #334155 100%);
  box-shadow: 0 16px 40px rgba(15,23,42,.18);
}
.uc-hero.is-amber {
  background:
    radial-gradient(420px 180px at 90% 0%, rgba(251,191,36,.28), transparent 55%),
    linear-gradient(125deg, #9a3412 0%, #c2410c 38%, #ea580c 100%);
  box-shadow: 0 16px 40px rgba(194,65,12,.14);
}

.uc-kpi {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px;
}
.uc-kpi.cols-3 { grid-template-columns: repeat(3, 1fr); }
.uc-kpi.cols-2 { grid-template-columns: repeat(2, 1fr); }
.uc-kpi .item {
  background: #fff; border: 1px solid #e8eef8; border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(24,39,75,.04);
}
.uc-kpi .item a { color: inherit; text-decoration: none; display: block; }
.uc-kpi .k { font-size: 12px; color: #94a3b8; font-weight: 600; }
.uc-kpi .v {
  margin-top: 6px; font-size: 22px; font-weight: 800; color: #0f172a; letter-spacing: -.02em;
}
.uc-kpi .item.is-hot .v { color: #dc2626; }
.uc-kpi .item.is-warn .v { color: #d97706; }
.uc-kpi .item.is-ok .v { color: #059669; }
.uc-kpi .item.is-blue .v { color: var(--uc-blue); }
.uc-kpi .sub { margin-top: 4px; font-size: 12px; color: #94a3b8; }

.uc-badge {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; background: #f1f5f9; color: #64748b; white-space: nowrap;
}
.uc-badge.ok, .uc-badge.paid, .uc-badge.active, .uc-badge.completed { background: #ecfdf5; color: #059669; }
.uc-badge.warn, .uc-badge.pending, .uc-badge.unpaid { background: #fffbeb; color: #d97706; }
.uc-badge.bad, .uc-badge.danger, .uc-badge.cancelled, .uc-badge.fraud { background: #fef2f2; color: #dc2626; }
.uc-badge.info, .uc-badge.progress { background: #eff6ff; color: #1d4ed8; }
.uc-badge.muted, .uc-badge.closed { background: #f1f5f9; color: #64748b; }

.uc-panel { margin-bottom: 0; }
.uc-panel + .uc-panel, .uc-card + .uc-card { margin-top: 14px; }
.uc-stack { display: flex; flex-direction: column; gap: 16px; }

.uc-list { display: grid; gap: 0; }
.uc-list-item {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border-bottom: 1px solid #f1f5f9; text-decoration: none; color: inherit;
  transition: background .12s;
}
.uc-list-item:last-child { border-bottom: 0; }
.uc-list-item:hover { background: #f8faff; }
.uc-list-item .title { font-size: 14px; font-weight: 750; color: #0f172a; line-height: 1.4; }
.uc-list-item .meta { margin-top: 4px; font-size: 12.5px; color: #94a3b8; line-height: 1.5; }
.uc-list-item .side { flex-shrink: 0; text-align: right; font-size: 12.5px; color: #64748b; }
.uc-list-item.is-unread { background: #f8faff; }
.uc-list-item.is-unread .title::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--uc-blue); margin-right: 8px; vertical-align: middle;
}

.uc-money { font-variant-numeric: tabular-nums; font-weight: 750; color: #0f172a; }
.uc-money.in { color: #059669; }
.uc-money.out { color: #dc2626; }
.uc-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; font-weight: 700; color: var(--uc-blue);
}

.uc-empty {
  color: var(--uc-muted); font-size: 13px; text-align: center;
  padding: 40px 20px; border: 1px dashed #e2e8f0; border-radius: 14px; background: #fafbfc;
}
.uc-table .uc-empty, td.uc-empty {
  border: 0; background: transparent; border-radius: 0; padding: 36px 16px;
}

.uc-form-card { max-width: 640px; }
.uc-form-wide { max-width: none; }
.uc-section-gap { margin-top: 14px; }

@media (max-width: 960px) {
  .uc-kpi { grid-template-columns: repeat(2, 1fr); }
  .uc-kpi.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .uc-hero-side { text-align: left; }
}
@media (max-width: 640px) {
  .uc-kpi, .uc-kpi.cols-3, .uc-kpi.cols-2 { grid-template-columns: 1fr; }
  .uc-hero { padding: 22px 18px; }
}
.uc-form { display: grid; gap: 12px; max-width: 480px; }
.uc-form label { display: block; font-size: 13px; color: #64748b; margin: 0; font-weight: 550; }
.uc-input, .uc-select, .uc-textarea {
  width: 100%; border: 1px solid #d9e1ec; border-radius: 10px; box-sizing: border-box;
  height: 40px; padding: 0 12px; background: #fff; color: var(--uc-text); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.uc-textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; }
.uc-input:focus, .uc-select:focus, .uc-textarea:focus {
  border-color: #93b4ff; box-shadow: 0 0 0 3px rgba(47,107,255,.12);
}
.uc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.uc-toast {
  position: fixed; left: 50%; top: 50%; right: auto; bottom: auto;
  transform: translate(-50%, -50%); z-index: 9999;
  background: #111827; color: #fff; padding: 16px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 600; line-height: 1.5; text-align: center;
  display: none; max-width: min(480px, 92vw);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .28); pointer-events: none;
}
.uc-toast.show { display: block; }
.uc-toast.err { background: #dc2626; }

.uc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.uc-svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* 云服务器卡片列表（对齐截图：顶色条 + 徽章 + 四宫格 + 底栏） */
.svc-page-desc { margin: 0 0 14px; color: #8a94a6; font-size: 13px; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.svc-grid-dash { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.svc-card {
  position: relative;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: var(--uc-radius);
  box-shadow: var(--uc-shadow);
  padding: 18px 18px 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.svc-card:hover {
  box-shadow: var(--uc-shadow-hover);
  border-color: #d4e0f5;
  transform: translateY(-2px);
}
.svc-card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: #94a3b8;
}
.svc-card.is-ok::before { background: #22c55e; }
.svc-card.is-warn::before { background: #f59e0b; }
.svc-card.is-bad::before,
.svc-card.is-muted::before { background: #94a3b8; }
.svc-card-hd {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.svc-card-hd h3 {
  margin: 0; font-size: 18px; font-weight: 700; color: #1f2a37; line-height: 1.35;
}
.svc-card-hd h3 a { color: inherit; }
.svc-card-hd h3 a:hover { color: var(--uc-blue); }
.svc-sub { margin-top: 4px; font-size: 12px; color: #94a3b8; }
.svc-badge {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.svc-badge.ok { background: #e8f8ef; color: #16a34a; }
.svc-badge.warn { background: #fff7e6; color: #d97706; }
.svc-badge.bad,
.svc-badge.muted { background: #f1f5f9; color: #64748b; }
.svc-info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px;
}
.svc-info span { display: block; font-size: 12px; color: #94a3b8; margin-bottom: 4px; }
.svc-info b {
  display: block; font-size: 14px; color: #1f2a37; font-weight: 600; word-break: break-all;
}
.svc-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--uc-line); margin-top: auto;
}
.svc-foot-actions { display: flex; gap: 8px; }
.svc-tag { font-size: 12px; color: #94a3b8; }

/* ===== 产品详情（对齐魔方财务风格） ===== */
.pd-back { margin-bottom: 10px; }
.pd-back a { color: var(--uc-muted); font-size: 13px; }
.pd-back a:hover { color: var(--uc-blue); }
.pd-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.pd-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-title-row h1 { margin: 0; font-size: 22px; font-weight: 700; }
.pd-sub { margin-top: 6px; font-size: 12px; }
.pd-run {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: #16a34a; font-weight: 600;
}
.pd-run i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; }
.pd-badge {
  display: inline-flex; align-items: center;
  padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: #e8f8ef; color: #16a34a;
}
.pd-badge.warn { background: #fff7e6; color: #d97706; }
.pd-badge.bad { background: #fee2e2; color: #dc2626; }
.pd-head-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-icon-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid #dbe3f0;
  background: #fff; cursor: pointer; font-size: 16px; color: #64748b;
}
.pd-icon-btn:hover { border-color: #93b4ff; color: var(--uc-blue); }
.pd-dropdown { position: relative; }
.pd-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  min-width: 120px; background: #fff; border: 1px solid var(--uc-line);
  border-radius: 10px; box-shadow: var(--uc-shadow); padding: 6px;
}
.pd-menu.show { display: grid; }
.pd-menu button {
  border: 0; background: transparent; text-align: left; padding: 8px 10px;
  border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--uc-text);
}
.pd-menu button:hover { background: #f5f8ff; color: var(--uc-blue); }

.pd-specs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.pd-spec {
  background: #eef5ff; border: 1px solid #d9e8ff; border-radius: 10px;
  padding: 10px 12px; min-height: 64px;
}
.pd-spec span { display: block; font-size: 12px; color: #64748b; margin-bottom: 6px; }
.pd-spec b { font-size: 14px; color: #1e3a8a; font-weight: 700; word-break: break-all; }

.pd-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px; align-items: start;
}
.pd-side { display: grid; gap: 12px; }
.pd-card {
  background: #fff; border: 1px solid var(--uc-line); border-radius: 12px;
  box-shadow: var(--uc-shadow); overflow: hidden;
}
.pd-card-hd {
  display: flex; align-items: center;
  min-height: 44px; padding: 0 16px; font-weight: 700; font-size: 14px;
  border-bottom: 1px solid var(--uc-line);
}
.pd-card-bd { padding: 12px 14px 14px; }
.pd-kv {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  min-height: 36px; padding: 6px 0; font-size: 13px; color: #64748b;
  border-bottom: 1px solid #f1f5f9;
}
.pd-kv:last-child { border-bottom: 0; }
.pd-kv b { color: var(--uc-text); font-weight: 600; text-align: right; }
.pd-pass { display: inline-flex; align-items: center; gap: 8px; }
.pd-link {
  border: 0; background: transparent; color: var(--uc-blue);
  cursor: pointer; font-size: 12px; padding: 0;
}
.pd-traffic {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;
}
.pd-traffic span { display: block; font-size: 12px; color: #94a3b8; }
.pd-traffic b { display: block; margin-top: 4px; font-size: 16px; color: var(--uc-text); }
.pd-bar {
  height: 8px; background: #eef2f7; border-radius: 999px; overflow: hidden;
}
.pd-bar i { display: block; height: 100%; background: var(--uc-blue); border-radius: 999px; }
.pd-price { font-size: 28px; font-weight: 700; color: var(--uc-blue); line-height: 1.1; }
.pd-price small { font-size: 12px; color: var(--uc-muted); font-weight: 500; margin-left: 4px; }
.pd-remain { margin-top: 6px; font-size: 13px; color: #64748b; }

.pd-main {
  background: #fff; border: 1px solid var(--uc-line); border-radius: 12px;
  box-shadow: var(--uc-shadow); min-height: 640px; overflow: hidden;
}
.pd-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--uc-line); padding: 0 8px;
}
.pd-tabs button {
  border: 0; background: transparent; padding: 14px 16px; cursor: pointer;
  font-size: 14px; color: #64748b; position: relative; font-weight: 500;
}
.pd-tabs button.active { color: var(--uc-blue); font-weight: 700; }
.pd-tabs button.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0;
  height: 2px; background: var(--uc-blue); border-radius: 2px;
}
.pd-tabpane { display: none; padding: 14px; }
.pd-tabpane.active { display: block; }
.pd-chart-range {
  display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 12px;
}
.pd-chart-range label { font-size: 12px; color: #64748b; display: grid; gap: 4px; }
.pd-chart-range .uc-input { min-width: 190px; }
.pd-charts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.pd-chart-card {
  border: 1px solid #e8eef7; border-radius: 10px; padding: 10px 10px 4px; background: #fff;
}
.pd-chart-hd { font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 4px; }
.pd-chart { width: 100%; height: 240px; }
.pd-empty { padding: 48px 16px; text-align: center; color: var(--uc-muted); font-size: 13px; }
.uc-note {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #475569;
}
.modal-mask {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 23, 42, .45);
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.uc-modal {
  width: min(420px, 96vw);
  background: #fff;
  border-radius: 12px;
  padding: 18px 18px 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .25);
}
.uc-modal h3 { margin: 0 0 8px; font-size: 16px; }
.muted { color: var(--uc-muted); }

.uc-product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px;
}
.uc-product {
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.uc-product h3 { margin: 0; font-size: 16px; }
.uc-product .price { color: var(--uc-blue); font-size: 24px; font-weight: 700; }
.uc-product .price small { font-size: 12px; color: var(--uc-muted); font-weight: 500; }
.uc-product p { margin: 0; color: #64748b; font-size: 13px; flex: 1; }

@media (max-width: 1200px) {
  .pd-specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .uc-dash, .uc-mid, .uc-aff .uc-card-bd, .uc-svc-grid { grid-template-columns: 1fr; }
  .uc-stats { grid-template-columns: repeat(2, 1fr); }
  .uc-stats .item:nth-child(2) { border-right: 0; }
  .uc-stats .item:nth-child(1),
  .uc-stats .item:nth-child(2) { border-bottom: 1px solid var(--uc-line); }
  .pd-body { grid-template-columns: 1fr; }
  .pd-charts { grid-template-columns: 1fr; }
}
.uc-menu, .uc-mask { display: none; }
.uc-menu {
  width: 40px; height: 40px; border: 1px solid var(--uc-line); border-radius: 10px;
  background: #fff; padding: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.uc-menu span { display: block; width: 16px; height: 2px; background: #334155; border-radius: 2px; }
.uc-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 30; }

@media (max-width: 860px) {
  .uc-shell { grid-template-columns: 1fr; }
  .uc-menu { display: inline-flex; }
  .uc-side {
    position: fixed;
    left: 0; top: 0; z-index: 40;
    width: min(280px, 86vw);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform .2s ease;
  }
  body.uc-nav-open .uc-side { transform: none; }
  body.uc-nav-open .uc-mask { display: block; }
  .uc-top { padding: 0 12px; gap: 8px; }
  .uc-top-links { gap: 8px; min-width: 0; }
  .uc-top-links a.hide-sm { display: none; }
  .uc-userchip span:nth-child(2) {
    max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .uc-body { padding: 12px; }
  .uc-grid-2 { grid-template-columns: 1fr; }
  .uc-profile { grid-template-columns: 1fr; justify-items: start; }
  .pd-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc-table { min-width: 640px; }
  .uc-card-bd:has(.uc-table), .uc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .uc-page-hd, .uc-card-hd { flex-wrap: wrap; gap: 8px; height: auto; min-height: 48px; }
  .pd-tabs { overflow-x: auto; }
  .pd-chart-range .uc-input { min-width: 0; width: 100%; }
}
