@charset "UTF-8";

:root {
    --ink: #333;
    --muted: #777;
    --line: #e5e7e9;
    --paper: #f6f7f8;
    --accent: #0e8271;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 14px;
    color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
a { color: var(--accent); text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible {
    outline: 2px solid #78b8ae;
    outline-offset: 3px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 24px; font-weight: 600; margin-bottom: 10px; }
h2 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
small { font-size: 12px; }
.muted { color: var(--muted); line-height: 1.8; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 200px;
    background: #fff;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 28px 0 20px;
    z-index: 2;
}
.brand-mark { display: block; padding: 0 24px; color: #333; font-size: 18px; font-weight: 600; white-space: nowrap; }
.sidebar nav { display: grid; margin-top: 35px; }
.sidebar nav a { display: flex; padding: 14px 24px; border-left: 3px solid transparent; color: #555; }
.sidebar nav a:hover { background: #f6f7f8; }
.sidebar nav a.active { color: var(--accent); background: #eef6f4; border-left-color: var(--accent); }
.sidebar nav a.mobile-account { display: none; }
.sidebar-bottom { display: flex; align-items: center; gap: 12px; margin: auto 20px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.sidebar-bottom strong { display: block; font-size: 12px; font-weight: 500; }
.sidebar-bottom a { display: block; margin-top: 6px; font-size: 12px; }
.sidebar-bottom form { margin-left: auto; }
.logout { padding: 6px 0; border: 0; background: none; color: #777; font-size: 12px; }
.workspace { margin-left: 200px; }
.topbar { height: 56px; padding: 0 32px; border-bottom: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: space-between; color: #666; font-size: 12px; }
.divider { padding: 0 12px; color: #bbb; }
.server-clock { color: #888; font-size: 12px; }
.content { max-width: 1600px; margin: auto; padding: 30px 32px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-heading p { margin-bottom: 0; font-size: 13px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding: 10px 16px; border: 1px solid transparent; border-radius: 2px; font-size: 13px; font-weight: 500; }
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: #096e60; }
.secondary { border-color: #dcdfe3; background: #fff; color: #555; }
.secondary:hover { border-color: #999; }
.full { width: 100%; justify-content: space-between; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.metric { padding: 22px; background: #fff; border: 1px solid var(--line); }
.metric > span { color: #666; font-size: 13px; }
.metric strong { display: block; margin: 14px 0 10px; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.metric small { color: #888; font-size: 12px; line-height: 1.7; }
.panel { margin-bottom: 20px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 24px; }
.panel-heading p { margin: 0; color: #888; font-size: 12px; line-height: 1.8; }
.panel-heading h2 { margin-bottom: 7px; }
.panel-heading > a { font-size: 12px; }
.panel-heading.slim { padding: 16px 24px; border-top: 1px solid var(--line); }
.chip { color: #888; font-size: 12px; white-space: nowrap; }
.overview-grid { display: block; }
.chart { height: 220px; display: flex; justify-content: space-around; padding: 8px 30px 24px; }
.chart-column { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 11%; color: #888; }
.chart-column strong { color: #555; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.bar-track { flex: 1; display: flex; align-items: flex-end; width: 26px; border-bottom: 1px solid var(--line); }
.bar { width: 100%; min-height: 2px; background: #70b5a8; }
.bar-0 { height: 2px; background: #e4ebe8; }
.bar-1 { height: 10%; }.bar-2 { height: 20%; }.bar-3 { height: 30%; }
.bar-4 { height: 40%; }.bar-5 { height: 50%; }.bar-6 { height: 60%; }
.bar-7 { height: 70%; }.bar-8 { height: 80%; }.bar-9 { height: 90%; }
.bar-10 { height: 100%; background: var(--accent); }

.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { padding: 13px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f7f8f9; color: #777; font-size: 12px; font-weight: 500; white-space: nowrap; }
td { padding: 16px 20px; border-bottom: 1px solid #eee; vertical-align: top; }
td strong { font-size: 12px; font-weight: 500; line-height: 1.8; }
td small { display: block; margin-top: 4px; color: #888; font-size: 12px; line-height: 1.7; }
tbody tr:hover { background: #fafbfb; }
.nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; }
.category { color: #555; font-size: 12px; }
details { position: relative; }
summary { color: var(--accent); cursor: pointer; font-size: 12px; white-space: nowrap; list-style: none; }
details pre { width: 420px; max-width: 65vw; margin: 14px 0 0; padding: 16px; background: #f6f7f8; color: #666; font: 12px/1.8 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty { padding: 50px 20px; color: #888; text-align: center; }
.empty h3 { margin-bottom: 10px; color: #666; font-size: 14px; font-weight: 500; }
.empty p { font-size: 12px; line-height: 1.9; }
.empty a { font-size: 12px; }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 15px; padding: 22px 24px; }
label { display: block; color: #555; font-size: 12px; }
input, select { display: block; width: 100%; max-width: 100%; min-height: 40px; margin-top: 9px; padding: 10px 12px; border: 1px solid #dcdfe3; border-radius: 2px; background: #fff; color: #333; font-size: 13px; }
input:focus, select:focus { border-color: #66a99b; }
select { min-width: 120px; }
input[type=date] { width: 148px; }
.search { flex: 1; min-width: 180px; }
.reset { padding: 12px 0; color: #777; font-size: 12px; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; color: #888; font-size: 12px; }
.pagination small { font-size: 12px; }
.pagination div { display: flex; align-items: center; gap: 20px; }
.prose { padding: 28px; line-height: 1.95; }
.prose h2 { margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #666; font-size: 13px; }
.prose li { margin-bottom: 10px; }
.prose code { padding: 3px 6px; background: #f3f5f5; color: #3e7065; font-size: 12px; overflow-wrap: anywhere; }
.alert { margin-bottom: 20px; padding: 14px 18px; border: 1px solid #cce2d4; background: #eff7f1; color: #38734d; font-size: 13px; line-height: 1.8; }
.alert.error { border-color: #ecd1cb; background: #fdf3f1; color: #a65b52; }
.account { max-width: 600px; }
.account label { margin-bottom: 20px; }
.account input { max-width: 390px; }
footer { display: flex; justify-content: space-between; gap: 15px; margin: 30px 0 0; color: #999; font-size: 12px; line-height: 1.8; }

.login-body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 32px 24px;
    background: #fff;
}
.login-form { width: 480px; max-width: 100%; }
.login-form label { margin-bottom: 26px; color: #555; font-size: 14px; line-height: 1.6; }
.login-form input { height: 56px; margin-top: 10px; padding: 12px 14px; font-size: 15px; }
.login-form .button { height: 56px; margin-top: 10px; padding: 0 22px; font-size: 15px; }
.login-note { margin: 30px 0 0; color: #999; font-size: 12px; line-height: 1.8; text-align: center; }

@media (max-width: 1150px) {
    .content { padding: 25px; }
    .topbar { padding: 0 25px; }
    .metrics { gap: 12px; }
    .metric { padding: 18px; }
    .metric strong { font-size: 25px; }
    td, th { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 800px) {
    .sidebar { position: static; display: block; width: auto; padding: 20px 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .brand-mark { padding: 0; font-size: 18px; }
    .sidebar nav { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 18px; }
    .sidebar nav a { padding: 12px 10px; border-left: 0; border-bottom: 2px solid transparent; font-size: 12px; }
    .sidebar nav a.active { border-bottom-color: var(--accent); }
    .sidebar nav a.mobile-account { display: flex; }
    .sidebar-bottom { display: none; }
    .workspace { margin-left: 0; }
    .topbar { height: 48px; padding: 0 16px; }
    .server-clock { font-size: 10px; }
    .content { padding: 24px 16px; }
    .page-heading h1 { font-size: 22px; }
    .page-heading > .button { display: none; }
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .metric small { font-size: 11px; }
    .filters { gap: 13px; padding: 18px; }
    .filters label { flex: 1; min-width: 130px; }
    input[type=date] { width: 100%; }
    .panel-heading { padding: 20px 18px; }
    .chart { height: 190px; }
    footer { display: block; }
    footer span { display: block; margin-top: 7px; }
    .pagination { gap: 12px; padding: 16px; }
    .pagination div { gap: 10px; }
}
