:root { --ink:#17212b; --muted:#697783; --line:#dbe2e7; --paper:#fff; --canvas:#f5f7f8; --nav:#15242e; --brand:#0d8a75; --brand-dark:#087160; --warning:#b25d12; --danger:#bd3945; --radius:7px; }
* { box-sizing:border-box; }
body { margin:0; font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif; color:var(--ink); background:var(--canvas); font-size:14px; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
.auth { min-height:100vh; display:grid; grid-template-columns:minmax(280px, 470px) minmax(360px, 1fr); }
.auth-aside { background:var(--nav); color:white; display:flex; flex-direction:column; justify-content:space-between; padding:48px; }
.brand { display:flex; align-items:center; gap:11px; font-size:20px; font-weight:700; }
.brand-mark { width:32px; height:32px; display:grid; place-items:center; border-radius:6px; color:#123; background:#d9eee8; font-weight:900; }
.auth-aside h1 { font-size:32px; line-height:1.25; max-width:330px; margin:0; letter-spacing:0; }
.auth-aside p { color:#b9c8cf; max-width:350px; line-height:1.8; }
.auth-main { display:grid; place-items:center; padding:30px; }
.auth-card { width:min(390px, 100%); }
.auth-card h2 { margin:0 0 8px; font-size:26px; }
.muted { color:var(--muted); }
.field { display:grid; gap:7px; margin:16px 0; font-weight:600; }
input,select,textarea { width:100%; min-height:40px; border:1px solid var(--line); border-radius:5px; background:#fff; padding:8px 10px; color:var(--ink); }
textarea { resize:vertical; line-height:1.55; }
input:focus,select:focus,textarea:focus { border-color:var(--brand); outline:3px solid #d9eee8; }
.primary,.secondary,.danger { border:0; border-radius:5px; min-height:40px; padding:0 15px; font-weight:700; }
.primary { background:var(--brand); color:white; } .primary:hover { background:var(--brand-dark); }
.secondary { background:#e9eef1; color:#263640; } .danger { background:#fde9ea; color:var(--danger); }
.wide { width:100%; }.text-button { border:0; padding:0; color:var(--brand-dark); background:transparent; font-weight:700; }
.shell { min-height:100vh; display:grid; grid-template-columns:232px 1fr; }
.sidebar { background:var(--nav); color:#eaf0f2; padding:20px 12px; display:flex; flex-direction:column; gap:26px; }
.sidebar .brand { padding:0 8px; font-size:16px; }.sidebar .brand-mark { width:28px; height:28px; }
.nav { display:grid; gap:4px; }.nav button { text-align:left; border:0; background:transparent; color:#c7d2d7; padding:11px 12px; border-radius:5px; }.nav button.active,.nav button:hover { background:#23424a; color:#fff; }
.nav .nav-section { color:#8399a2; text-transform:uppercase; font-size:11px; padding:14px 12px 5px; letter-spacing:0; }
.user-card { margin-top:auto; padding:12px; background:#203741; border-radius:6px; display:grid; gap:3px; }.user-card strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.user-card span { color:#a9bbc2; font-size:12px; }
.content { min-width:0; }.topbar { height:65px; padding:0 30px; display:flex; align-items:center; justify-content:space-between; background:white; border-bottom:1px solid var(--line); }.topbar h1 { margin:0; font-size:18px; }.view { padding:26px 30px 50px; max-width:1480px; }
.view-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-end; margin-bottom:20px; }.view-head h2 { margin:0 0 6px; font-size:24px; }.view-head p { margin:0; color:var(--muted); }
.filters { display:flex; flex-wrap:wrap; gap:9px; align-items:flex-end; background:var(--paper); border:1px solid var(--line); padding:13px; border-radius:var(--radius); margin-bottom:18px; }.filters label { display:grid; gap:5px; color:var(--muted); font-size:12px; }.filters input,.filters select { min-width:138px; min-height:36px; }.filters .primary { min-height:36px; }
.stat-grid { display:grid; grid-template-columns:repeat(4,minmax(150px,1fr)); gap:12px; margin-bottom:18px; }.stat { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:17px; }.stat .label { color:var(--muted); font-size:12px; }.stat strong { display:block; font-size:25px; margin-top:9px; letter-spacing:0; }
.grid-two { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr); gap:18px; }.panel { background:#fff; border:1px solid var(--line); border-radius:var(--radius); }.panel-head { padding:15px 16px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:10px; }.panel-head h3 { margin:0; font-size:15px; }.panel-body { padding:15px 16px; }.table-wrap { overflow-x:auto; }.data-table { border-collapse:collapse; width:100%; min-width:630px; }.data-table th { background:#f5f7f8; color:#5e6c75; font-size:12px; font-weight:600; }.data-table th,.data-table td { padding:11px 12px; text-align:left; border-bottom:1px solid #eef1f3; white-space:nowrap; }.data-table td.ellipsis { max-width:220px; overflow:hidden; text-overflow:ellipsis; }.data-table tr:last-child td { border-bottom:0; }.align-right { text-align:right !important; }.empty { color:var(--muted); text-align:center; padding:32px !important; }
.bar-chart { min-height:267px; display:flex; gap:12px; align-items:flex-end; padding:18px 2px 26px; overflow-x:auto; }.bar-group { height:220px; min-width:48px; flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:8px; }.bar { background:var(--brand); width:28px; max-width:70%; min-height:3px; border-radius:3px 3px 0 0; }.bar-group small { color:var(--muted); font-size:11px; white-space:nowrap; }.bar-group em { color:#3e515a; font-size:11px; font-style:normal; white-space:nowrap; }
.rank-list { list-style:none; padding:0; margin:0; }.rank-list li { padding:12px 0; border-bottom:1px solid #edf0f2; display:grid; grid-template-columns:25px 1fr auto; gap:8px; align-items:center; }.rank-list li:last-child { border-bottom:0; }.rank-num { color:var(--brand-dark); font-weight:700; }.rank-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.rank-value { font-weight:700; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.form-grid .field { margin:0; }.action-row { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; }.notice { padding:11px 13px; border-radius:5px; background:#edf7f4; color:#176755; margin:12px 0; }.notice.error { background:#fcedee; color:#a32e38; }.upload-zone { border:1px dashed #a9bdc3; background:#f8fafb; padding:28px; text-align:center; border-radius:6px; }.upload-zone input { max-width:360px; margin:12px auto; }.role-badge { display:inline-block; padding:3px 7px; font-size:12px; border-radius:999px; background:#e7f1ef; color:#146655; }.role-badge.admin { background:#e9edf7; color:#344f8e; }.role-badge.data { background:#fdf0e3; color:#a15e19; }
@media (max-width: 900px) { .auth { grid-template-columns:1fr; }.auth-aside { min-height:225px; padding:30px; }.auth-aside h1 { font-size:26px; }.shell { grid-template-columns:1fr; }.sidebar { display:none; }.topbar,.view { padding-left:18px; padding-right:18px; }.stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.grid-two { grid-template-columns:1fr; } }
@media (max-width: 540px) { .view { padding-top:18px; }.view-head { align-items:flex-start; flex-direction:column; }.stat-grid { grid-template-columns:1fr 1fr; }.stat { padding:13px; }.stat strong { font-size:20px; }.form-grid { grid-template-columns:1fr; }.filters label,.filters input,.filters select { width:100%; }.filters { display:grid; grid-template-columns:1fr; } }
