:root {
  --paper: #f3f1ec;
  --surface: #ffffff;
  --ink: #17201d;
  --muted: #68716d;
  --line: #d9ddd8;
  --green: #126b57;
  --green-soft: #e7f0ec;
  --coral: #c7553e;
  --gold: #a27624;
  --black: #202624;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Microsoft YaHei", "Segoe UI", sans-serif; }
.masthead { min-height: 164px; display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 30px 40px 26px; color: #fff; background: var(--black); border-bottom: 5px solid var(--green); }
.kicker { margin: 0 0 8px; color: #9bc7b8; font-size: 12px; font-weight: 800; letter-spacing: 0; }
h1 { margin: 0; font-size: 34px; line-height: 1.15; letter-spacing: 0; }
.context { margin: 10px 0 0; color: #c8cecb; font-size: 15px; }
.status-block { display: flex; align-items: center; gap: 11px; min-width: 220px; padding: 12px 14px; border: 1px solid #46504c; border-radius: 6px; background: #2a312f; }
.status-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #e5b24c; box-shadow: 0 0 0 4px rgba(229,178,76,.14); }
.status-block strong, .status-block span { display: block; }
.status-block strong { font-size: 16px; }
.status-block span { margin-top: 4px; color: #b9c0bd; font-size: 13px; }
main { padding: 20px 40px 38px; }
.controlbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 12px; margin: 0 -40px; padding: 14px 40px; background: rgba(243,241,236,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
label span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
select, input { width: 100%; height: 46px; border: 1px solid #cbd0cb; border-radius: 5px; background: #fff; color: var(--ink); padding: 0 12px; font: inherit; font-size: 15px; }
select:focus, input:focus { outline: 2px solid rgba(18,107,87,.2); border-color: var(--green); }
.multi-filter { position: relative; min-width: 0; }
.control-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.multi-trigger { position: relative; width: 100%; height: 46px; padding: 0 42px 0 12px; overflow: hidden; border: 1px solid #cbd0cb; border-radius: 5px; background: #fff; color: var(--ink); text-align: left; text-overflow: ellipsis; white-space: nowrap; font: inherit; font-size: 15px; cursor: pointer; }
.multi-trigger::after { content: ""; position: absolute; top: 17px; right: 16px; width: 8px; height: 8px; border-right: 2px solid #55605b; border-bottom: 2px solid #55605b; transform: rotate(45deg); transition: transform .15s ease; }
.multi-filter.open .multi-trigger::after { top: 21px; transform: rotate(225deg); }
.multi-trigger:focus-visible { outline: 2px solid rgba(18,107,87,.25); border-color: var(--green); }
.multi-menu { display: none; position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 360px; overflow: auto; padding: 8px; background: #fff; border: 1px solid #cbd0cb; border-radius: 6px; box-shadow: 0 14px 28px rgba(23,32,29,.16); }
.multi-filter.open .multi-menu { display: block; }
.multi-option { display: flex; align-items: flex-start; gap: 10px; padding: 9px 8px; border-radius: 4px; color: var(--ink); font-size: 14px; line-height: 1.35; cursor: pointer; }
.multi-option:hover { background: var(--green-soft); }
.multi-option.select-all { position: sticky; top: -8px; z-index: 1; margin: -8px -8px 5px; padding: 11px 16px; background: #f1f4f1; border-bottom: 1px solid var(--line); border-radius: 5px 5px 0 0; font-weight: 800; }
.multi-option input { width: 17px; height: 17px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--green); }
.multi-empty { padding: 16px 10px; color: var(--muted); font-size: 13px; text-align: center; }
.notice { margin: 16px 0; padding: 14px 16px; border-left: 4px solid var(--gold); background: #fff8e8; color: #6c531f; font-size: 14px; line-height: 1.6; }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr 1.12fr; gap: 12px; }
.kpi { min-height: 216px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.kpi-primary { border-top: 4px solid var(--green); padding-top: 15px; }
.kpi-label { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 700; }
.kpi-rate { margin-top: 14px; font-size: 40px; font-weight: 850; line-height: 1; }
.meter { height: 8px; margin: 14px 0 18px; overflow: hidden; background: #e7e9e6; border-radius: 3px; }
.meter span { display: block; width: 0; height: 100%; background: var(--green); }
.kpi-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.kpi-values div { padding: 9px; background: #f6f7f5; border-left: 2px solid #cfd5d1; }
.kpi-values span { display: block; color: var(--muted); font-size: 13px; }
.kpi-values strong { display: block; margin-top: 5px; font-size: 18px; }
.asp-lines { display: grid; gap: 8px; margin-top: 14px; }
.asp-line { display: grid; grid-template-columns: 76px 1fr 1fr; gap: 8px; align-items: center; padding: 9px 10px; background: #f6f7f5; }
.asp-line b { font-size: 14px; }
.asp-line span { color: var(--muted); font-size: 13px; }
.asp-line strong { display: block; margin-top: 3px; color: var(--ink); font-size: 18px; }
.section-band, .detail-section { margin-top: 20px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 11px; }
h2 { margin: 0; font-size: 22px; letter-spacing: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.section-head > span { color: var(--muted); font-size: 14px; }
.group-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.group-item { position: relative; min-height: 126px; padding: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.group-item::after { content: ""; position: absolute; left: 0; bottom: 0; width: var(--weight); height: 4px; background: var(--green); }
.group-item h3 { margin: 0; font-size: 16px; }
.group-item p { margin: 6px 0 14px; color: var(--muted); font-size: 13px; }
.group-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.group-stats span { display: block; color: var(--muted); font-size: 12px; }
.group-stats b { display: block; margin-top: 4px; font-size: 16px; }
.detail-section { padding: 16px 0 0; border-top: 1px solid #cfd4cf; }
.table-wrap { overflow: auto; max-height: 68vh; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; min-width: 1380px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
th, td { padding: 12px 12px; border-bottom: 1px solid #e3e6e2; vertical-align: middle; font-size: 14px; line-height: 1.45; }
th { position: sticky; top: 0; z-index: 2; color: #4f5b56; background: #edf0ed; text-align: left; font-size: 13px; }
th:nth-child(1) { width: 165px; } th:nth-child(2) { width: 330px; }
th.num { width: 108px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: #f1f6f3; }
.group-name { display: block; font-weight: 750; }
.channel-name, .identity { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.product-name { display: -webkit-box; overflow: hidden; font-weight: 700; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.zero { color: #9da4a0; }
.rate-cell { font-weight: 800; color: var(--coral); }
.rate-cell.done { color: var(--green); }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 40px 28px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

@media (max-width: 1100px) {
  .group-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi:last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .masthead { min-height: 0; align-items: stretch; flex-direction: column; padding: 24px 18px; }
  h1 { font-size: 27px; }
  main { padding: 14px 18px 30px; }
  .controlbar { position: static; grid-template-columns: 1fr; margin: 0; padding: 0 0 14px; background: transparent; }
  .kpi-grid, .group-grid { grid-template-columns: 1fr; }
  .kpi:last-child { grid-column: auto; }
  footer { flex-direction: column; padding: 16px 18px 24px; }
}
