:root {
  --bg: #eef4fb;
  --panel: rgba(255,255,255,0.9);
  --panel-strong: #ffffff;
  --line: #d9e4f2;
  --text: #17324d;
  --muted: #6f84a0;
  --primary: #1f6feb;
  --primary-dark: #1657ba;
  --success: #1e9b6b;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow: 0 18px 50px rgba(32, 67, 116, 0.12);
  --radius: 20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: var(--text); background: radial-gradient(circle at top left, #ffffff 0, #eff5fc 30%, #e9f1fb 100%); }
body { min-height: 100vh; }
a { color: inherit; }
.layout { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar { padding: 24px 18px; background: linear-gradient(180deg, #103a71 0%, #1e5cb7 100%); color: #fff; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; padding: 10px 10px 22px; border-bottom: 1px solid rgba(255,255,255,0.16); margin-bottom: 18px; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(145deg, #7cc4ff, #d7f0ff); display: grid; place-items: center; color: #113968; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); }
.brand-logo { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; background: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); }
.brand svg, .brand-logo { flex: 0 0 auto; }
.brand h1 { font-size: 16px; margin: 0; line-height: 1.35; }
.brand p { margin: 4px 0 0; font-size: 12px; opacity: .8; }
.nav-group { margin-top: 18px; }
.nav-title { font-size: 12px; letter-spacing: .12em; opacity: .72; margin: 0 12px 10px; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; margin: 8px 0; border-radius: 14px; color: rgba(255,255,255,0.92); text-decoration: none; background: rgba(255,255,255,0.06); transition: .2s ease; }
.nav-item.active, .nav-item:hover { background: rgba(255,255,255,0.16); transform: translateX(2px); }
.nav-dot { width: 10px; height: 10px; border-radius: 50%; background: #9ed0ff; box-shadow: 0 0 0 4px rgba(158,208,255,0.15); }
.sidebar-card { margin-top: 18px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12); }
.sidebar-card h3 { margin: 0 0 8px; font-size: 14px; }
.sidebar-card p { margin: 0; font-size: 12px; line-height: 1.7; opacity: .82; }
.content { padding: 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.topbar h2 { margin: 0; font-size: 26px; }
.topbar .subtitle { margin-top: 6px; color: var(--muted); font-size: 14px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { border: 0; border-radius: 14px; padding: 12px 16px; font-weight: 600; cursor: pointer; transition: .2s ease; box-shadow: 0 10px 24px rgba(31,111,235,0.15); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn:hover { transform: translateY(-1px); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.card { background: var(--panel); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.7); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat { padding: 20px; }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { margin-top: 10px; font-size: 30px; font-weight: 800; }
.stat .meta { margin-top: 10px; font-size: 12px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-bottom: 18px; }
.panel { padding: 22px; }
.panel h3 { margin: 0 0 14px; font-size: 18px; }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap: 12px; margin-bottom: 16px; }
.panel-head p { margin: 0; color: var(--muted); font-size: 13px; }
.filters { display:flex; flex-wrap:wrap; gap: 10px; margin-bottom: 16px; }
.input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #fff; color: var(--text); outline: none; }
textarea { min-height: 110px; resize: vertical; }
.field-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display:flex; flex-direction:column; gap: 8px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); }
.form-actions { display:flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.table-wrap { overflow:auto; border-radius: 16px; border: 1px solid var(--line); }
table { width:100%; border-collapse: collapse; min-width: 980px; background: #fff; }
thead th { text-align:left; background: #f6f9fe; font-size: 13px; color: #56708e; padding: 14px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody td { padding: 15px 14px; border-bottom: 1px solid #edf2f8; font-size: 14px; vertical-align: top; }
tbody tr:hover { background: #fbfdff; }
.tag { display:inline-flex; align-items:center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag.success { background:#e8f7f1; color: var(--success); }
.tag.warning { background:#fff4e5; color: var(--warning); }
.tag.danger { background:#feecec; color: var(--danger); }
.tag.blue { background:#e7f0ff; color: var(--primary); }
.op-list { display:flex; flex-wrap:wrap; gap: 8px; }
.chip { padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--text); }
.timeline { display:grid; gap: 12px; }
.timeline-item { display:flex; gap: 12px; align-items:flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); margin-top: 5px; box-shadow: 0 0 0 6px rgba(31,111,235,0.10); }
.timeline-item h4 { margin: 0 0 4px; font-size: 14px; }
.timeline-item p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.section-title { display:flex; align-items:center; justify-content:space-between; gap: 10px; margin: 10px 0 14px; }
.section-title h3 { margin: 0; }
.section-title span { color: var(--muted); font-size: 12px; }
.footer-note { margin-top: 18px; padding: 16px 18px; background: rgba(255,255,255,0.72); border: 1px dashed #c9d8eb; border-radius: 16px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.badge-row { display:flex; flex-wrap:wrap; gap: 8px; margin-top: 8px; }
.hero { padding: 24px; }
.link-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.link-card { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; }
.link-card h3 { margin: 0 0 8px; }
.link-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
@media (max-width: 1200px) { .layout { grid-template-columns: 1fr; } .sidebar { position: relative; height: auto; } .stats, .grid-2, .link-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .content { padding: 16px; } .stats, .grid-2, .field-grid, .link-grid { grid-template-columns: 1fr; } .topbar { flex-direction: column; align-items: flex-start; } }
