/* 我的工作台 · 原型共享样式 */
:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e6ebf2;
  --line-strong: #d7dee9;
  --ink: #142033;
  --ink-2: #4b5b70;
  --ink-3: #7c8aa0;
  --primary: #2563eb;
  --primary-deep: #1d4ed8;
  --primary-soft: #eaf1ff;
  --green: #16a34a;
  --green-soft: #e8f7ee;
  --orange: #ea580c;
  --orange-soft: #fff2e8;
  --red: #dc2626;
  --red-soft: #fdecec;
  --teal: #0d9488;
  --teal-soft: #e6f7f5;
  --purple: #7c3aed;
  --purple-soft: #f1ebff;
  --gold: #d97706;
  --sidebar: #0b1726;
  --sidebar-2: #0e1d30;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 55, .04), 0 8px 24px rgba(16, 32, 55, .05);
  --shadow-lg: 0 20px 60px rgba(8, 20, 40, .16);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --num: "SF Pro Display", "DIN Alternate", "Bahnschrift", "Roboto", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid rgba(37, 99, 235, .55); outline-offset: 2px; }

/* ---------- 电脑端框架 ---------- */
.pc-layout { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: 236px; display: flex; flex-direction: column;
  color: #c7d2e0;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(37, 99, 235, .28), transparent 55%),
    linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  border-right: 1px solid rgba(255, 255, 255, .06);
}
.brand {
  display: flex; align-items: center; gap: 11px;
  padding: 22px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.brand-mark {
  width: 39px; height: 39px; border-radius: 11px;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 17px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .35);
  flex: 0 0 auto;
}
.brand-text strong { display: block; color: #fff; font-size: 15px; letter-spacing: .04em; }
.brand-text span { display: block; color: #8fa2ba; font-size: 11px; margin-top: 2px; letter-spacing: .12em; }
.side-nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.nav-group { margin-bottom: 14px; }
.nav-label {
  color: #61758f; font-size: 10px; font-weight: 600;
  letter-spacing: .16em; padding: 8px 12px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  height: 40px; padding: 0 12px; margin: 3px 0;
  border-radius: 9px; color: #a9b9cc; font-size: 13px;
  transition: background .15s ease, color .15s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, .055); color: #fff; }
.nav-item.active {
  color: #fff; font-weight: 600;
  background: linear-gradient(90deg, rgba(37, 99, 235, .95), rgba(37, 99, 235, .62));
  box-shadow: 0 8px 20px rgba(37, 99, 235, .22);
}
.nav-icon { width: 18px; height: 18px; flex: 0 0 auto; opacity: .9; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-dot {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: rgba(255, 255, 255, .16);
  color: #fff; font-size: 10px; display: grid; place-items: center;
}
.nav-item.active .nav-dot { background: rgba(255, 255, 255, .24); }
.sidebar-foot { padding: 14px 18px 18px; border-top: 1px solid rgba(255, 255, 255, .07); }
.sidebar-foot .source { font-size: 11px; color: #7f93ab; line-height: 1.7; }
.sidebar-foot .source b { color: #b9c8da; font-weight: 500; }
.sidebar-foot .proto-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  color: #8ea4bd; font-size: 10px; letter-spacing: .08em;
}
.proto-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .14); }

.pc-body { flex: 1; min-width: 0; margin-left: 236px; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: 62px; padding: 0 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.crumb { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12px; min-width: 0; }
.crumb a:hover { color: var(--primary); }
.crumb .crumb-home { display: inline-flex; align-items: center; gap: 5px; }
.crumb .sep { color: #c3ccda; }
.crumb strong { color: var(--ink-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.top-update {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 10px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-3); font-size: 11px; white-space: nowrap;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .12); }
.icon-btn {
  width: 34px; height: 34px; display: inline-grid; place-items: center;
  border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink-2);
  position: relative;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line); }
.icon-btn svg { width: 18px; height: 18px; }
.bell-badge {
  position: absolute; top: 3px; right: 3px; min-width: 14px; height: 14px;
  padding: 0 3px; border-radius: 7px; background: var(--red); color: #fff;
  font-size: 9px; line-height: 14px; text-align: center; border: 2px solid #fff;
}
.user-chip { display: flex; align-items: center; gap: 8px; padding-left: 8px; border-left: 1px solid var(--line); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; font-weight: 700; font-size: 12px;
}
.user-chip span { font-size: 12px; color: var(--ink-2); }

.page { width: 100%; max-width: 1560px; margin: 0 auto; padding: 24px 26px 46px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.page-head h1 { font-size: 25px; line-height: 1.25; letter-spacing: -.025em; font-weight: 700; }
.page-sub { color: var(--ink-3); font-size: 12.5px; margin-top: 6px; }
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.page-enter { animation: pageIn .28s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ---------- 通用控件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2);
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:hover { border-color: #b9c6d8; color: var(--ink); background: #fbfcfe; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 5px 14px rgba(37, 99, 235, .2); }
.btn.primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); }
.btn.soft { background: var(--primary-soft); border-color: transparent; color: var(--primary-deep); }
.btn.soft:hover { background: #dfe9ff; }
.btn.danger-soft { background: var(--red-soft); border-color: transparent; color: var(--red); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 11.5px; border-radius: 7px; }
.btn.lg { height: 40px; padding: 0 18px; font-size: 13px; }
.btn svg { width: 15px; height: 15px; }
.btn-link { border: 0; background: none; padding: 0; color: var(--primary); font-size: 12px; font-weight: 500; }
.btn-link:hover { text-decoration: underline; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 17px 20px 0;
}
.card-head h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.card-head p { color: var(--ink-3); font-size: 11.5px; margin-top: 4px; }
.card-body { padding: 18px 20px 20px; }
.card-foot { padding: 0 20px 18px; }
.card.tight .card-body { padding-top: 12px; }

.segmented {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px;
}
.seg-btn {
  height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent;
  color: var(--ink-3); font-size: 11.5px; font-weight: 500; transition: .15s;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.active { background: #fff; color: var(--primary-deep); box-shadow: 0 1px 2px rgba(16, 32, 55, .1); font-weight: 600; }

.filter-bar {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px;
  padding: 13px 16px; margin-bottom: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 32, 55, .03);
}
.filter-group { display: flex; flex-direction: column; gap: 5px; }
.filter-group > label { color: var(--ink-3); font-size: 10.5px; font-weight: 500; }
.filter-group .field { height: 34px; min-width: 150px; }
.filter-group .field.wide { min-width: 210px; }
.filter-spacer { flex: 1; }
.range-presets { display: inline-flex; gap: 0; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; height: 34px; }
.range-presets button {
  border: 0; border-right: 1px solid var(--line); background: #fff;
  padding: 0 13px; color: var(--ink-3); font-size: 12px; transition: .15s;
}
.range-presets button:last-child { border-right: 0; }
.range-presets button:hover { color: var(--primary); background: #f7f9ff; }
.range-presets button.active { background: var(--primary); color: #fff; }
.date-sep { color: var(--ink-3); font-size: 12px; align-self: center; padding-top: 14px; }

.field {
  height: 34px; width: 100%; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: #fff;
  color: var(--ink); font-size: 12.5px; outline: none; transition: border .15s, box-shadow .15s;
}
.field:hover { border-color: #bcc8d8; }
.field:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c8aa0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
textarea.field { height: auto; min-height: 90px; padding: 10px; resize: vertical; line-height: 1.65; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--ink-3); pointer-events: none; }
.input-icon .field { padding-left: 32px; }

.tabs { display: flex; align-items: center; gap: 3px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tab {
  position: relative; border: 0; background: none; padding: 10px 14px 11px;
  color: var(--ink-3); font-size: 12.5px; font-weight: 500;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--primary-deep); font-weight: 600; }
.tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--primary); }
.tab .count { display: inline-block; margin-left: 5px; color: var(--ink-3); font-size: 10.5px; font-weight: 400; }
.tab.active .count { color: var(--primary); }

/* ---------- 页面头部 / 提示条 ---------- */
.hello-line { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.hello-line h1 { font-size: 26px; }
.hello-line h1 em { font-style: normal; color: var(--primary); }
.hello-line .page-sub { margin-top: 6px; }
.today-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 11px; border-radius: 15px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-3); font-size: 11px;
}
.notice {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  padding: 10px 14px; border-radius: 10px;
  background: linear-gradient(90deg, #fff7ed, #fffaf5);
  border: 1px solid #fed7aa; color: #9a3412; font-size: 12px;
}
.notice .notice-icon { width: 22px; height: 22px; border-radius: 50%; background: #ffedd5; display: grid; place-items: center; flex: 0 0 auto; }
.notice .notice-icon svg { width: 13px; height: 13px; }
.notice strong { font-weight: 600; }
.notice .notice-link { margin-left: auto; color: #c2410c; font-weight: 600; white-space: nowrap; }
.notice.info { background: linear-gradient(90deg, #eff6ff, #f8fbff); border-color: #bfdbfe; color: #1e40af; }
.notice.info .notice-icon { background: #dbeafe; }
.notice.info .notice-link { color: #1d4ed8; }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.kpi-card {
  position: relative; overflow: hidden;
  padding: 15px 17px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.kpi-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent, var(--primary)); opacity: .9;
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-label { color: var(--ink-3); font-size: 11.5px; }
.kpi-ico {
  width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent-soft, var(--primary-soft)); color: var(--accent, var(--primary));
}
.kpi-ico svg { width: 14px; height: 14px; }
.kpi-value { font-family: var(--num); font-size: 27px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; white-space: nowrap; }
.kpi-value small { font-family: var(--font); font-size: 12px; color: var(--ink-3); font-weight: 500; margin-left: 3px; letter-spacing: 0; }
.kpi-foot { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 7px; color: var(--ink-3); font-size: 10.5px; }
.kpi-foot .up { color: var(--green); font-weight: 600; }
.kpi-foot .down { color: var(--red); font-weight: 600; }
.kpi-foot .flat { color: var(--ink-3); font-weight: 600; }
.kpi-foot .kpi-link { margin-left: auto; color: var(--primary); }
.kpi-card.accent-green { --accent: var(--green); --accent-soft: var(--green-soft); }
.kpi-card.accent-orange { --accent: var(--orange); --accent-soft: var(--orange-soft); }
.kpi-card.accent-red { --accent: var(--red); --accent-soft: var(--red-soft); }
.kpi-card.accent-teal { --accent: var(--teal); --accent-soft: var(--teal-soft); }
.kpi-card.accent-purple { --accent: var(--purple); --accent-soft: var(--purple-soft); }

/* ---------- 布局网格 ---------- */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.grid-2-equal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-main-side { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr); gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.mb-16 { margin-bottom: 16px; }

/* ---------- 图表 ---------- */
.chart-shell { width: 100%; }
.trend-svg { width: 100%; height: auto; overflow: visible; }
.trend-svg text { font-family: var(--font); fill: #8a98ac; font-size: 10px; }
.trend-svg .grid-line { stroke: #edf1f6; stroke-width: 1; }
.trend-svg .axis-line { stroke: #e4e9f1; stroke-width: 1; }
.trend-svg .line-path { fill: none; stroke: var(--trend-color, var(--primary)); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.trend-svg .area-path { fill: url(#trendFill); }
.trend-svg .point { fill: #fff; stroke: var(--trend-color, var(--primary)); stroke-width: 2; opacity: 0; transition: opacity .15s; }
.trend-svg .last-point { fill: var(--trend-color, var(--primary)); stroke: #fff; stroke-width: 2.5; }
.trend-svg .last-ring { fill: none; stroke: var(--trend-color, var(--primary)); stroke-width: 1.2; opacity: .22; }
.trend-svg .hover-col { fill: transparent; cursor: pointer; }
.trend-svg .hover-col:hover ~ .point, .trend-svg g.point-g:hover .point { opacity: 1; }
.trend-svg .point-g { cursor: pointer; }
.trend-svg .point-g:hover .point { opacity: 1; }
.chart-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--ink-3); font-size: 10.5px; }
.chart-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--ink-3); font-size: 10.5px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 5px; vertical-align: 1px; }

/* 环形图 */
.channel-layout { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 20px; align-items: center; }
.donut-wrap { position: relative; width: 168px; height: 168px; }
.donut-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-svg circle { fill: none; stroke-width: 17; transition: stroke-dasharray .35s ease; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.donut-center .dc-label { color: var(--ink-3); font-size: 10px; }
.donut-center .dc-value { font-family: var(--num); font-size: 17px; font-weight: 700; margin-top: 3px; letter-spacing: -.02em; }
.donut-center .dc-sub { color: var(--ink-3); font-size: 9.5px; margin-top: 2px; }
.channel-legend { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.channel-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; align-items: center; }
.channel-name { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 11.5px; color: var(--ink-2); }
.channel-name .dot { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 auto; }
.channel-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-val { font-family: var(--num); font-size: 11.5px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.channel-pct { font-size: 10px; color: var(--ink-3); font-family: var(--num); }
.channel-bar { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: #f0f3f8; overflow: hidden; }
.channel-bar i { display: block; height: 100%; border-radius: 2px; }

/* 横向占比条 */
.ratio-list { display: flex; flex-direction: column; gap: 14px; }
.ratio-item .ratio-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ratio-name { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.ratio-name .dot { width: 8px; height: 8px; border-radius: 2px; }
.ratio-num { font-family: var(--num); font-size: 12px; font-weight: 600; }
.ratio-num small { color: var(--ink-3); font-size: 10px; font-weight: 400; margin-left: 5px; }
.ratio-track { height: 7px; border-radius: 4px; background: #f1f4f9; overflow: hidden; }
.ratio-track i { display: block; height: 100%; border-radius: 4px; }

/* ---------- 表格 ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th {
  height: 38px; padding: 0 12px; text-align: left; white-space: nowrap;
  color: var(--ink-3); font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  background: #f8fafc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.data-table th:first-child { border-left: 1px solid var(--line); border-radius: 8px 0 0 0; padding-left: 16px; }
.data-table th:last-child { border-right: 1px solid var(--line); border-radius: 0 8px 0 0; }
.data-table td { padding: 11px 12px; border-bottom: 1px solid #eff2f7; vertical-align: middle; }
.data-table td:first-child { padding-left: 16px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr[data-href] { cursor: pointer; }
.data-table tbody tr[data-href]:hover { background: #f8fbff; }
.data-table .num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.data-table .text-right { text-align: right; }
.data-table .nowrap { white-space: nowrap; }
.cell-main { color: var(--ink); font-weight: 500; }
.cell-sub { color: var(--ink-3); font-size: 10.5px; margin-top: 2px; }
.cell-stack { display: flex; flex-direction: column; gap: 2px; }
.cell-inline { display: flex; align-items: center; gap: 9px; }
.cell-link { color: var(--primary); font-weight: 500; }
.row-actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.avatar-sm {
  width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-deep); font-size: 10.5px; font-weight: 700; flex: 0 0 auto;
}
.avatar-sm.green { background: var(--green-soft); color: #15803d; }
.avatar-sm.orange { background: var(--orange-soft); color: #c2410c; }
.avatar-sm.purple { background: var(--purple-soft); color: #6d28d9; }

/* 标签 */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 21px; padding: 0 7px; border-radius: 5px;
  background: #f1f5f9; color: #64748b; font-size: 10.5px; font-weight: 500; white-space: nowrap;
}
.tag.green { background: var(--green-soft); color: #15803d; }
.tag.orange { background: var(--orange-soft); color: #c2410c; }
.tag.red { background: var(--red-soft); color: #b91c1c; }
.tag.blue { background: var(--primary-soft); color: var(--primary-deep); }
.tag.purple { background: var(--purple-soft); color: #6d28d9; }
.tag.teal { background: var(--teal-soft); color: #0f766e; }
.tag.gold { background: #fef3c7; color: #a16207; }
.tag .tag-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag.lg { height: 25px; padding: 0 9px; font-size: 11.5px; }

.up { color: var(--green); font-weight: 600; }
.down { color: var(--red); font-weight: 600; }
.risk-low { color: var(--green); }
.risk-mid { color: var(--orange); }
.risk-high { color: var(--red); }
.risk-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; }
.risk-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px currentColor; opacity: .85; }

/* ---------- 列表 ---------- */
.dash-list { display: flex; flex-direction: column; }
.dash-item { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #eff2f7; }
.dash-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.dash-item:first-child { padding-top: 2px; }
.dash-item-main { min-width: 0; flex: 1; }
.dash-item-title { font-size: 12px; color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-item-sub { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dash-item-amount { font-family: var(--num); font-size: 12.5px; font-weight: 600; text-align: right; white-space: nowrap; }
.dash-item-amount small { display: block; font-family: var(--font); font-size: 10px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.dash-more { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--primary); font-size: 11.5px; font-weight: 500; }
.dash-more:hover { text-decoration: underline; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: .15s;
}
.quick-item:hover { border-color: #bfd3f8; background: #f8fbff; transform: translateY(-1px); }
.quick-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.quick-ico svg { width: 15px; height: 15px; }
.quick-item strong { font-size: 11.5px; font-weight: 600; }
.quick-item span { font-size: 10px; color: var(--ink-3); }

/* ---------- 排名 ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.podium-card {
  position: relative; overflow: hidden; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.podium-card.top-1 { background: linear-gradient(135deg, #0f2a52, #123b76); border-color: #1e4f93; color: #fff; }
.podium-card.top-1 .podium-sub, .podium-card.top-1 .podium-meta { color: #a9c3e8; }
.podium-card.top-3 { background: linear-gradient(135deg, #fffaf0, #fffdf8); border-color: #f3dfb6; }
.podium-head { display: flex; align-items: center; justify-content: space-between; }
.podium-rank { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.podium-card.top-1 .podium-rank { color: #cfe0f8; }
.rank-medal { width: 23px; height: 23px; border-radius: 7px; display: grid; place-items: center; background: #f1f5f9; color: #64748b; font-family: var(--num); font-size: 12px; font-weight: 700; }
.top-1 .rank-medal { background: linear-gradient(135deg, #fbbf24, #d97706); color: #fff; box-shadow: 0 5px 12px rgba(217, 119, 6, .3); }
.top-2 .rank-medal { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #fff; }
.top-3 .rank-medal { background: linear-gradient(135deg, #fcd9a8, #d97706); color: #fff; }
.podium-name { font-size: 14px; font-weight: 600; margin-top: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-sub { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.podium-amount { font-family: var(--num); font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-top: 12px; }
.podium-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink-3); font-size: 10px; margin-top: 6px; }
.podium-meta b { font-family: var(--num); color: var(--ink-2); font-weight: 600; }
.top-1 .podium-meta b { color: #fff; }

/* 进度 / 时效 */
.progress { height: 6px; border-radius: 3px; background: #eef2f7; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 3px; background: var(--primary); }
.progress.green i { background: var(--green); }
.progress.orange i { background: var(--orange); }
.progress.red i { background: var(--red); }
.progress-label { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); margin-top: 4px; }
.overdue-text { color: var(--red); font-weight: 600; }

/* 详情 */
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.detail-title-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.detail-avatar {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, #e8f0ff, #dbe8ff); color: var(--primary-deep);
  font-size: 17px; font-weight: 700; flex: 0 0 auto;
}
.detail-head h1 { font-size: 23px; letter-spacing: -.02em; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.detail-sub { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: var(--ink-3); font-size: 11.5px; margin-top: 5px; }
.detail-sub code { font-family: var(--num); background: #f1f5f9; padding: 2px 6px; border-radius: 4px; color: var(--ink-2); font-size: 10.5px; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 22px; }
.info-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-item label { display: block; color: var(--ink-3); font-size: 10.5px; margin-bottom: 4px; }
.info-item div { color: var(--ink); font-size: 12.5px; font-weight: 500; word-break: break-all; }
.info-item div.mono { font-family: var(--num); font-size: 11.5px; }
.info-note { padding: 10px 12px; border-radius: 8px; background: var(--surface-2); color: var(--ink-3); font-size: 11px; line-height: 1.7; border: 1px dashed var(--line-strong); }

/* 时间线 */
.timeline { position: relative; padding: 2px 0 2px 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 7px; bottom: 10px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -22px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid #cbd5e1; }
.tl-item.done .tl-dot { background: var(--green); border-color: var(--green); }
.tl-item.current .tl-dot { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.tl-item.warn .tl-dot { background: #fff; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(234, 88, 12, .12); }
.tl-title { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-time { font-family: var(--num); color: var(--ink-3); font-size: 10px; font-weight: 400; }
.tl-desc { color: var(--ink-3); font-size: 11px; margin-top: 4px; line-height: 1.65; }
.tl-item.current .tl-title { color: var(--primary-deep); }
.tl-item.warn .tl-title { color: #c2410c; }

/* 风险卡 */
.risk-card { padding: 14px 15px; border-radius: 10px; background: #fbfcfe; border: 1px solid var(--line); }
.risk-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.risk-card-head span { color: var(--ink-3); font-size: 11px; }
.risk-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.risk-metric { text-align: center; padding: 8px 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.risk-metric b { display: block; font-family: var(--num); font-size: 16px; }
.risk-metric span { display: block; font-size: 9.5px; color: var(--ink-3); margin-top: 3px; }

/* 空状态 */
.empty { padding: 32px 16px; text-align: center; color: var(--ink-3); font-size: 12px; }
.empty-ico { width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 12px; background: #f1f5f9; display: grid; place-items: center; color: #94a3b8; }
.empty-ico svg { width: 20px; height: 20px; }

/* Toast / Modal */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 16px);
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 9px;
  background: rgba(15, 27, 45, .94); color: #fff; font-size: 12px;
  box-shadow: 0 12px 30px rgba(8, 20, 40, .2);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .toast-check { color: #4ade80; margin-right: 6px; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 180; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(9, 20, 38, .45); backdrop-filter: blur(2px);
}
.modal-backdrop.show { display: flex; }
.modal {
  width: min(520px, 100%); max-height: 86vh; overflow: auto;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  animation: modalIn .18s ease both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-head p { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.modal-close { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--ink-3); padding: 0 2px; }
.modal-body { padding: 18px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 20px 18px; }
.detail-list { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 14px; font-size: 12px; }
.detail-list dt { color: var(--ink-3); }
.detail-list dd { margin: 0; color: var(--ink); font-weight: 500; word-break: break-all; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-top: 1px solid #eff2f7; }
.pager-info { color: var(--ink-3); font-size: 11px; }
.pager-btns { display: flex; align-items: center; gap: 5px; }
.pager-btn { min-width: 28px; height: 28px; padding: 0 7px; border: 1px solid var(--line); background: #fff; border-radius: 6px; color: var(--ink-2); font-size: 11px; }
.pager-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager-btn:hover:not(.active) { border-color: #b9c6d8; }
.pager-btn:disabled { opacity: .4; }

/* 筛选 chips */
.chip-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.chip {
  height: 27px; padding: 0 10px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--ink-3); font-size: 11px;
}
.chip:hover { border-color: #b9c6d8; color: var(--ink); }
.chip.active { background: var(--primary-soft); border-color: #bfd3f8; color: var(--primary-deep); font-weight: 600; }

/* ---------- 公众号端 ---------- */
.wx-app {
  width: 100%; max-width: 460px; min-height: 100vh; margin: 0 auto;
  background: #f2f4f8; position: relative; padding-bottom: 76px;
  box-shadow: 0 0 50px rgba(13, 27, 48, .12);
}
.wx-status { display: none; }
.wx-status-icons { display: flex; align-items: center; gap: 5px; font-size: 9px; letter-spacing: .04em; }
.wx-status-icons .battery { width: 18px; height: 9px; border: 1px solid #16202e; border-radius: 2px; position: relative; padding: 1px; }
.wx-status-icons .battery::after { content: ""; position: absolute; right: -3px; top: 2px; width: 2px; height: 4px; background: #16202e; border-radius: 0 1px 1px 0; }
.wx-status-icons .battery i { display: block; width: 72%; height: 100%; background: #16202e; border-radius: 1px; }
.wx-nav {
  height: 44px; padding: 0 10px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center; background: #fff; border-bottom: 1px solid #edf0f4;
  position: sticky; top: 0; z-index: 39;
}
.wx-nav-btn { width: 32px; height: 32px; border: 0; background: none; color: #1d2735; display: grid; place-items: center; border-radius: 8px; }
.wx-nav-btn:hover { background: #f3f5f8; }
.wx-nav-btn svg { width: 19px; height: 19px; }
.wx-nav-title { text-align: center; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-account {
  display: flex; align-items: center; gap: 7px; padding: 7px 14px;
  background: #fff; border-bottom: 1px solid #edf0f4; color: #7a8699; font-size: 10px;
}
.wx-account .wx-dot { width: 14px; height: 14px; border-radius: 50%; background: #07c160; display: grid; place-items: center; color: #fff; font-size: 8px; font-weight: 700; }
.wx-account b { color: #405068; font-weight: 500; }
.wx-account .wx-menu-hint { margin-left: auto; color: #9aa6b8; }
.wx-main { padding: 12px 12px 18px; }
.wx-hero { padding: 4px 2px 12px; }
.wx-hero h1 { font-size: 21px; letter-spacing: -.02em; }
.wx-hero h1 em { font-style: normal; color: var(--primary); }
.wx-hero p { color: var(--ink-3); font-size: 11px; margin-top: 4px; }
.wx-date-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.wx-date-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 13px; background: #fff; border: 1px solid var(--line); color: var(--ink-3); font-size: 10px; }
.wx-live { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); font-size: 9.5px; }

.wx-kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.wx-kpi {
  padding: 12px 13px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(16, 32, 55, .03);
}
.wx-kpi .wx-kpi-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink-3); font-size: 10.5px; }
.wx-kpi .wx-kpi-ico { width: 22px; height: 22px; border-radius: 7px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.wx-kpi .wx-kpi-ico svg { width: 12px; height: 12px; }
.wx-kpi .wx-kpi-val { font-family: var(--num); font-size: 21px; font-weight: 700; margin-top: 7px; letter-spacing: -.02em; white-space: nowrap; }
.wx-kpi .wx-kpi-val small { font-family: var(--font); font-size: 10px; color: var(--ink-3); font-weight: 400; margin-left: 2px; }
.wx-kpi .wx-kpi-foot { color: var(--ink-3); font-size: 9.5px; margin-top: 4px; }
.wx-kpi .wx-kpi-foot .up { color: var(--green); font-weight: 600; }
.wx-kpi .wx-kpi-foot .down { color: var(--red); font-weight: 600; }
.wx-kpi.green .wx-kpi-ico { background: var(--green-soft); color: var(--green); }
.wx-kpi.orange .wx-kpi-ico { background: var(--orange-soft); color: var(--orange); }
.wx-kpi.red .wx-kpi-ico { background: var(--red-soft); color: var(--red); }

.wx-card { margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wx-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 13px 0; }
.wx-card-head h2 { font-size: 13px; font-weight: 600; }
.wx-card-head p { font-size: 9.5px; color: var(--ink-3); margin-top: 2px; }
.wx-card-head .wx-more { color: var(--primary); font-size: 10px; font-weight: 500; white-space: nowrap; }
.wx-card-body { padding: 10px 13px 13px; }
.wx-card.tight .wx-card-body { padding-top: 8px; }
.wx-seg { display: inline-flex; padding: 2px; background: #f2f5f9; border-radius: 6px; }
.wx-seg button { border: 0; background: transparent; height: 22px; padding: 0 8px; border-radius: 5px; color: var(--ink-3); font-size: 9.5px; }
.wx-seg button.active { background: #fff; color: var(--primary-deep); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 32, 55, .1); }
.wx-chart svg { width: 100%; height: auto; }

.wx-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wx-quick { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px 8px; border-radius: 9px; border: 1px solid #edf0f5; background: #fbfcfe; }
.wx-quick:hover { background: #f4f8ff; border-color: #ceddf8; }
.wx-quick .qi { width: 27px; height: 27px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.wx-quick .qi svg { width: 14px; height: 14px; }
.wx-quick span { font-size: 9.5px; color: var(--ink-2); }

.wx-list { display: flex; flex-direction: column; }
.wx-row { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #f0f3f7; }
.wx-row:last-child { border-bottom: 0; padding-bottom: 0; }
.wx-row:first-child { padding-top: 0; }
.wx-row-main { flex: 1; min-width: 0; }
.wx-row-title { font-size: 11.5px; color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-row-sub { color: var(--ink-3); font-size: 9.5px; margin-top: 2px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.wx-row-side { text-align: right; flex: 0 0 auto; }
.wx-row-side b { display: block; font-family: var(--num); font-size: 11.5px; }
.wx-row-side span { display: block; color: var(--ink-3); font-size: 9px; margin-top: 2px; }

.wx-tabs { display: flex; align-items: center; gap: 2px; padding: 0 0 2px; overflow-x: auto; }
.wx-tab { border: 0; background: none; padding: 7px 9px; color: var(--ink-3); font-size: 10.5px; white-space: nowrap; position: relative; }
.wx-tab.active { color: var(--primary-deep); font-weight: 600; }
.wx-tab.active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; border-radius: 1px; background: var(--primary); }
.wx-tab .count { margin-left: 3px; font-size: 9px; color: var(--ink-3); }
.wx-tab.active .count { color: var(--primary); }

.wx-filter { display: flex; gap: 6px; margin-bottom: 8px; }
.wx-filter .field { height: 30px; font-size: 10.5px; border-radius: 7px; }
.wx-search { flex: 1; position: relative; }
.wx-search svg { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--ink-3); }
.wx-search .field { padding-left: 26px; }
.wx-filter select.field { width: 104px; flex: 0 0 104px; }

.wx-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f0f3f7;
}
.wx-item:last-child { border-bottom: 0; padding-bottom: 0; }
.wx-item:first-child { padding-top: 0; }
.wx-item-avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-deep); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.wx-item-avatar.green { background: var(--green-soft); color: #15803d; }
.wx-item-avatar.orange { background: var(--orange-soft); color: #c2410c; }
.wx-item-main { flex: 1; min-width: 0; }
.wx-item-title { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-item-sub { color: var(--ink-3); font-size: 9.5px; margin-top: 3px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.wx-item-side { text-align: right; flex: 0 0 auto; }
.wx-item-side b { font-family: var(--num); font-size: 12.5px; }
.wx-item-side span { display: block; color: var(--ink-3); font-size: 9px; margin-top: 2px; }

.wx-rank-row { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #f0f3f7; }
.wx-rank-row:last-child { border-bottom: 0; padding-bottom: 0; }
.wx-rank-row:first-child { padding-top: 0; }
.wx-rank-no { width: 20px; text-align: center; font-family: var(--num); font-size: 11px; color: var(--ink-3); font-weight: 700; flex: 0 0 auto; }
.wx-rank-no.top { color: var(--gold); }
.wx-rank-main { flex: 1; min-width: 0; }
.wx-rank-name { display: block; font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-rank-sub { display: block; color: var(--ink-3); font-size: 9px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-rank-side { text-align: right; flex: 0 0 auto; }
.wx-rank-side b { font-family: var(--num); font-size: 12px; }
.wx-rank-side span { display: block; color: var(--ink-3); font-size: 9px; margin-top: 2px; }

.wx-detail-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px; margin-bottom: 10px; }
.wx-detail-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.wx-detail-title h2 { font-size: 13px; }
.wx-detail-title span { font-size: 10px; color: var(--ink-3); }
.wx-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 12px; }
.wx-info-item label { display: block; color: var(--ink-3); font-size: 9.5px; margin-bottom: 3px; }
.wx-info-item div { font-size: 11px; font-weight: 500; word-break: break-all; }
.wx-info-item div.mono { font-family: var(--num); font-size: 10px; }
.wx-note { padding: 9px 10px; border-radius: 8px; background: #f7f9fc; border: 1px dashed var(--line-strong); color: var(--ink-3); font-size: 10px; line-height: 1.65; }

.wx-timeline { position: relative; padding-left: 19px; }
.wx-timeline::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 8px; width: 1px; background: var(--line); }
.wx-tl-item { position: relative; padding-bottom: 15px; }
.wx-tl-item:last-child { padding-bottom: 0; }
.wx-tl-dot { position: absolute; left: -19px; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid #cbd5e1; }
.wx-tl-item.done .wx-tl-dot { background: var(--green); border-color: var(--green); }
.wx-tl-item.current .wx-tl-dot { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .13); }
.wx-tl-item.warn .wx-tl-dot { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(234, 88, 12, .13); }
.wx-tl-title { font-size: 11px; font-weight: 600; }
.wx-tl-time { color: var(--ink-3); font-size: 9px; margin-top: 2px; }
.wx-tl-desc { color: var(--ink-3); font-size: 9.5px; margin-top: 3px; line-height: 1.6; }

.wx-bottom-note { text-align: center; color: #9aa7b8; font-size: 9px; line-height: 1.7; padding: 14px 0 4px; }
.wx-tabbar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 460px; z-index: 50;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .97); border-top: 1px solid #e7ebf1;
  padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
  backdrop-filter: blur(10px);
}
.wx-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 3px 0; color: #8a97a9; font-size: 9px; }
.wx-tabbar a svg { width: 19px; height: 19px; }
.wx-tabbar a.active { color: var(--primary); font-weight: 600; }
.wx-tabbar a.active svg { stroke-width: 2.3; }

/* ---------- 总入口 ---------- */
.index-page { background: #f3f5f9; min-height: 100vh; }
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(90% 130% at 85% -10%, rgba(37, 99, 235, .55), transparent 58%),
    radial-gradient(60% 90% at 0% 0%, rgba(13, 148, 136, .24), transparent 55%),
    linear-gradient(135deg, #081321 0%, #0c1d33 58%, #10294a 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .32;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.hero-inner { position: relative; max-width: 1210px; margin: 0 auto; padding: 54px 30px 82px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-brand { display: flex; align-items: center; gap: 11px; }
.hero-brand .brand-mark { width: 42px; height: 42px; font-size: 18px; }
.hero-brand strong { display: block; font-size: 16px; letter-spacing: .03em; }
.hero-brand span { display: block; color: #8da6c5; font-size: 10px; letter-spacing: .14em; margin-top: 2px; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #bfd2eb; font-size: 10.5px; letter-spacing: .06em; }
.hero-main { max-width: 760px; margin-top: 52px; }
.hero-kicker { color: #7ea6db; font-size: 11px; letter-spacing: .2em; font-weight: 600; }
.hero h1 { font-size: 54px; line-height: 1.1; letter-spacing: -.04em; margin-top: 12px; font-weight: 700; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #93c5fd, #5eead4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { margin-top: 16px; max-width: 660px; color: #a9bed9; font-size: 14px; line-height: 1.85; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; background: rgba(255, 255, 255, .065); border: 1px solid rgba(255, 255, 255, .09); color: #c5d6eb; font-size: 10.5px; }
.hero-meta b { color: #fff; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 9px; background: #fff; color: #0c1d33; font-size: 12.5px; font-weight: 600;
  border: 1px solid #fff; transition: .15s;
}
.hero-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.hero-btn.ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #d8e4f5; }
.hero-btn svg { width: 16px; height: 16px; }
.hero-stats { position: absolute; right: 30px; bottom: 54px; display: flex; gap: 28px; }
.hero-stat b { display: block; font-family: var(--num); font-size: 25px; font-weight: 700; }
.hero-stat span { display: block; color: #88a3c4; font-size: 10px; margin-top: 3px; letter-spacing: .06em; }

.index-main { position: relative; max-width: 1210px; margin: -38px auto 0; padding: 0 30px 56px; }
.index-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(10, 24, 44, .1); padding: 22px 24px; }
.index-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.index-toolbar h2 { font-size: 18px; letter-spacing: -.02em; }
.index-toolbar p { color: var(--ink-3); font-size: 11.5px; margin-top: 4px; }
.index-filter { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; }
.index-filter button { border: 0; background: transparent; height: 28px; padding: 0 11px; border-radius: 6px; color: var(--ink-3); font-size: 11px; }
.index-filter button.active { background: #fff; color: var(--primary-deep); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 32, 55, .1); }

.index-section { margin-top: 26px; }
.index-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.index-section-head h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.index-section-head h3 .sec-ico { width: 25px; height: 25px; border-radius: 7px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.index-section-head h3 .sec-ico svg { width: 14px; height: 14px; }
.index-section-head p { color: var(--ink-3); font-size: 10.5px; }
.screen-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.screen-card {
  display: flex; flex-direction: column; min-height: 146px; padding: 13px;
  background: #fbfcfe; border: 1px solid var(--line); border-radius: 11px;
  transition: .16s; position: relative;
}
.screen-card:hover { border-color: #b9cff5; background: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 48, 90, .08); }
.screen-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.screen-no { font-family: var(--num); font-size: 10px; color: #9aa8bb; letter-spacing: .05em; }
.screen-device { font-size: 9px; padding: 2px 6px; border-radius: 4px; background: #eef2f7; color: #74839a; }
.screen-card h4 { font-size: 12.5px; margin-top: 9px; line-height: 1.4; }
.screen-card p { color: var(--ink-3); font-size: 10px; line-height: 1.55; margin-top: 4px; flex: 1; }
.screen-link { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-size: 10.5px; font-weight: 600; margin-top: 9px; }
.screen-link svg { width: 12px; height: 12px; }
.screen-arrow { color: #b9c5d6; font-size: 13px; }

.index-note-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-top: 26px; }
.index-note { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.index-note h4 { font-size: 13px; display: flex; align-items: center; gap: 7px; }
.index-note h4 svg { width: 15px; height: 15px; color: var(--primary); }
.index-note ul { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.index-note li { color: var(--ink-2); font-size: 11px; line-height: 1.65; padding-left: 13px; position: relative; }
.index-note li::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: #b9c8db; }
.index-note li b { color: var(--ink); font-weight: 600; }
.index-note.warn { background: #fffaf4; border-color: #f3dfc6; }
.index-note.warn h4 svg { color: var(--orange); }
.index-note.warn li::before { background: #e8b98a; }
.scope-pill { display: inline-block; padding: 1px 6px; border-radius: 4px; background: var(--green-soft); color: #15803d; font-size: 9.5px; font-weight: 600; }
.scope-pill.off { background: #f1f5f9; color: #64748b; }

.cover-table-wrap { margin-top: 12px; overflow-x: auto; }
.cover-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.cover-table th { text-align: left; padding: 8px 9px; background: #f8fafc; color: var(--ink-3); font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cover-table td { padding: 8px 9px; border-bottom: 1px solid #f0f3f7; color: var(--ink-2); vertical-align: top; }
.cover-table td:first-child { color: var(--ink); font-weight: 500; }
.cover-table a { color: var(--primary); }
.cover-table tr:last-child td { border-bottom: 0; }

/* 移动端预览清单 */
.wx-preview-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.wx-preview-card {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 14px 8px 11px; background: #fbfcfe; border: 1px solid var(--line); border-radius: 11px;
  text-align: center; transition: .16s;
}
.wx-preview-card:hover { border-color: #b9cff5; background: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 48, 90, .08); }
.phone-mini { width: 45px; height: 72px; border-radius: 7px; border: 1.5px solid #b9c8db; background: #fff; padding: 5px 4px; position: relative; overflow: hidden; }
.phone-mini::before { content: ""; position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 12px; height: 2px; border-radius: 2px; background: #d5deea; }
.phone-mini .pm-bar { height: 4px; border-radius: 1px; background: #dce5f1; margin-top: 5px; }
.phone-mini .pm-bar.w70 { width: 70%; }
.phone-mini .pm-bar.w50 { width: 50%; }
.phone-mini .pm-block { height: 19px; border-radius: 3px; background: linear-gradient(135deg, #e8f0ff, #dbe8ff); margin-top: 4px; }
.phone-mini .pm-row { display: flex; gap: 2px; margin-top: 3px; }
.phone-mini .pm-row i { flex: 1; height: 10px; border-radius: 2px; background: #edf2f9; }
.wx-preview-card strong { font-size: 10.5px; line-height: 1.35; font-weight: 600; }
.wx-preview-card span { font-size: 9px; color: var(--ink-3); }

.index-footer { max-width: 1210px; margin: 0 auto; padding: 0 30px 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8c99ab; font-size: 10.5px; }
.index-footer b { color: #5d6e84; font-weight: 500; }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
  .screen-grid, .wx-preview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main-side { grid-template-columns: 1fr; }
}
@media (max-width: 1040px) {
  .sidebar { width: 208px; }
  .pc-body { margin-left: 208px; }
  .page { padding: 20px 18px 40px; }
  .grid-2, .grid-2-equal, .grid-3 { grid-template-columns: 1fr; }
  .channel-layout { grid-template-columns: 150px minmax(0, 1fr); }
  .donut-wrap, .donut-svg { width: 150px; height: 150px; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { display: none; }
}
@media (max-width: 820px) {
  .sidebar { position: static; width: 100%; height: auto; }
  .pc-layout { display: block; }
  .pc-body { margin-left: 0; }
  .side-nav { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; }
  .nav-group { display: contents; }
  .nav-label { display: none; }
  .nav-item { height: 36px; white-space: nowrap; padding: 0 10px; }
  .nav-dot { display: none; }
  .sidebar-foot { display: none; }
  .brand { padding: 13px 16px; }
  .topbar { padding: 0 14px; height: 56px; }
  .top-update { display: none; }
  .screen-grid, .wx-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero h1 { font-size: 42px; }
  .hero-inner { padding: 38px 22px 72px; }
  .index-main { padding: 0 18px 44px; }
  .index-note-grid { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; gap: 10px; }
  .head-actions { justify-content: flex-start; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .podium { grid-template-columns: 1fr; }
  .detail-head { flex-direction: column; gap: 12px; }
}
@media (max-width: 620px) {
  .screen-grid, .wx-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 34px; }
  .hero-desc { font-size: 12.5px; }
  .hero-main { margin-top: 38px; }
  .index-panel { padding: 16px; }
  .top-actions .user-chip span { display: none; }
  .page { padding: 16px 12px 36px; }
  .filter-bar { padding: 11px; }
  .filter-group .field { min-width: 130px; }
  .kpi-value { font-size: 23px; }
  .channel-layout { grid-template-columns: 1fr; justify-items: center; }
  .channel-legend { width: 100%; }
  .info-grid, .info-grid.cols-2 { grid-template-columns: 1fr; }
  .hero-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-badge { margin-top: 4px; }
  .index-section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .index-toolbar { align-items: flex-start; }
  .pc-layout .sidebar { position: relative; }
  .topbar { position: relative; }
}
@media (min-width: 461px) {
  .wx-app { min-height: 100vh; }
}
@media (max-width: 460px) {
  .wx-app { max-width: none; box-shadow: none; }
  .wx-tabbar { max-width: none; }
}

/* 打印 */
@media print {
  .sidebar, .topbar, .wx-tabbar, .hero-actions { display: none; }
  .pc-body { margin-left: 0; }
}

/* 公众号菜单 / 消息示意（仅总入口展示，不计业务页面） */
.entry-demo { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 26px; align-items: center; margin-top: 12px; }
.mini-phone {
  width: 280px; border-radius: 18px; border: 1px solid #dfe5ee; background: #ededed;
  box-shadow: 0 14px 30px rgba(16, 32, 55, .09); overflow: hidden;
}
.mini-chat-head { display: flex; align-items: center; gap: 8px; padding: 11px 13px; background: #fff; border-bottom: 1px solid #eceff4; }
.mini-chat-head .mini-logo { width: 27px; height: 27px; border-radius: 8px; background: linear-gradient(135deg, #07c160, #059b4b); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.mini-chat-head b { font-size: 11.5px; }
.mini-chat-head span { display: block; font-size: 8.5px; color: var(--ink-3); margin-top: 1px; }
.mini-chat-body { padding: 13px; min-height: 150px; background: #ededed; }
.mini-bubble { max-width: 88%; padding: 8px 10px; border-radius: 3px 9px 9px 9px; background: #fff; color: #2b3544; font-size: 9.5px; line-height: 1.7; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.mini-bubble b { color: #07a34f; }
.mini-menu { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid #e6e9ef; }
.mini-menu a { padding: 10px 4px; text-align: center; font-size: 9.5px; color: #334155; border-right: 1px solid #eef1f5; }
.mini-menu a:last-child { border-right: 0; }
.mini-menu a:hover { background: #f4fbf7; color: #059b4b; }
.mini-msg { margin-top: 6px; border: 1px solid #dce7df; border-radius: 9px; background: #f6fdf9; padding: 12px 13px; }
.mini-msg .msg-label { color: #078a45; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.mini-msg .msg-title { font-size: 12px; font-weight: 600; margin-top: 5px; }
.mini-msg .msg-text { color: var(--ink-2); font-size: 10.5px; line-height: 1.8; margin-top: 5px; }
.entry-copy h5 { font-size: 12px; margin: 0 0 5px; }
.entry-copy p { color: var(--ink-2); font-size: 10.5px; line-height: 1.75; margin: 0 0 10px; }
.entry-copy code { font-family: var(--num); background: #f1f5f9; padding: 1px 5px; border-radius: 4px; color: #405068; font-size: 9.5px; }
@media (max-width: 760px) {
  .entry-demo { grid-template-columns: 1fr; }
  .mini-phone { width: 100%; max-width: 300px; }
}

/* 登录/账号入口 */
a.user-chip { text-decoration: none; }
a.user-chip:hover span { color: var(--primary); }
.wx-account-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.wx-account-actions a { color: #7a8699; font-size: 10px; }
.wx-account-actions a:hover { color: var(--primary); }
.wx-account-actions a:last-child { color: #b45309; }
