:root { --navy:#172b4d; --blue:#1b67d9; --blue-soft:#eaf2ff; --ink:#182230; --muted:#6d7887; --line:#e5eaf0; --canvas:#f4f7fb; --white:#fff; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; min-width:320px; background:var(--canvas); color:var(--ink); font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif; }
button,input,select,textarea { font:inherit; }
.app-shell { max-width:1240px; padding:42px 24px 64px; margin:0 auto; }
.login-shell { display:grid; min-height:100vh; place-items:center; padding:24px; background:linear-gradient(135deg,#edf4ff,#f8fbff 52%,#e5f0ff); }
.login-card { width:min(440px,100%); padding:38px; background:var(--white); border:1px solid var(--line); border-radius:16px; box-shadow:0 22px 60px #172b4d1c; }.login-card h1 { font-size:27px; }.login-form { display:grid; gap:17px; margin-top:28px; }.login-form label { display:grid; gap:8px; color:#334155; font-size:14px; font-weight:700; }.login-form input { padding:11px; }.full-button { width:100%; margin-top:5px; }.demo-note { margin-top:24px; padding:11px; border-radius:8px; background:#fff6df; color:#735009; font-size:13px; line-height:1.7; }.demo-note code { font-weight:700; }
.topbar { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin-bottom:30px; }
.header-actions { display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:9px; }.user-chip { display:grid; min-width:80px; padding:5px 10px; border-left:1px solid var(--line); color:var(--navy); font-size:13px; }.user-chip span { margin-top:2px; color:var(--muted); font-size:12px; }.text-button { border:0; background:transparent; color:var(--muted); cursor:pointer; }.text-button:hover { color:var(--blue); }
.module-tabs { display:flex; gap:6px; margin-bottom:20px; padding:5px; width:max-content; max-width:100%; background:#eaf0f8; border-radius:9px; }.tab-button { padding:9px 16px; border:0; border-radius:6px; background:transparent; color:var(--muted); cursor:pointer; font-weight:700; }.tab-button.active { background:#fff; color:var(--blue); box-shadow:0 2px 7px #23385122; }.module-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:4px 0 20px; }.module-heading h2 { color:var(--navy); }.module-heading p { margin-top:6px; color:var(--muted); }.date-filter { padding:9px 10px; }
h1,h2,p { margin:0; } h1 { color:var(--navy); font-size:30px; letter-spacing:.02em; } h2 { font-size:22px; }
.eyebrow { margin-bottom:8px; color:var(--blue); font-size:12px; font-weight:700; letter-spacing:.08em; } .subtitle { margin-top:10px; color:var(--muted); }
.primary-button,.secondary-button { border:0; border-radius:8px; padding:10px 16px; cursor:pointer; font-weight:700; }
.primary-button { background:var(--blue); color:#fff; box-shadow:0 6px 14px #1b67d933; } .primary-button:hover { background:#1059c6; }
.secondary-button { color:var(--ink); background:#edf1f6; } .secondary-button:hover { background:#e1e8f0; }
.metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:20px; }
.metrics article,.content-card { background:var(--white); border:1px solid var(--line); border-radius:12px; box-shadow:0 4px 18px #21304d0a; }
.metrics article { min-height:112px; padding:23px; } .metrics span { display:block; color:var(--muted); font-size:14px; } .metrics strong { display:block; margin-top:9px; color:var(--navy); font-size:31px; }
.content-card { overflow:hidden; } .toolbar { display:flex; justify-content:space-between; gap:14px; padding:18px; border-bottom:1px solid var(--line); }
.search-field { display:flex; align-items:center; gap:8px; min-width:min(450px,100%); padding:0 12px; background:#f7f9fc; border:1px solid var(--line); border-radius:8px; color:var(--muted); }
.search-field input { width:100%; border:0; outline:0; padding:10px 0; background:transparent; } select,input,textarea { border:1px solid #cfd8e3; border-radius:7px; outline-color:var(--blue); }
.toolbar select { padding:9px 10px; background:#fff; } .table-wrap { overflow:auto; } table { width:100%; min-width:780px; border-collapse:collapse; } th,td { padding:15px 18px; text-align:left; border-bottom:1px solid var(--line); font-size:14px; } th { color:var(--muted); background:#fbfcfe; font-size:13px; font-weight:600; } td:first-child { color:var(--navy); font-weight:700; }
.status { display:inline-block; padding:4px 9px; border-radius:999px; font-size:12px; font-weight:700; } .status-重点跟进 { color:#ab5700; background:#fff0d7; } .status-正常合作 { color:#117643; background:#dbf5e7; } .status-潜在客户 { color:#2d62b2; background:#e5efff; } .status-暂停合作 { color:#6b7280; background:#eceff3; }
.action-button { border:0; background:transparent; color:var(--blue); cursor:pointer; font-weight:700; } .action-button + .action-button { margin-left:10px; color:#c44343; }.empty-state { padding:42px; text-align:center; color:var(--muted); }
dialog { width:min(680px,calc(100% - 32px)); border:0; border-radius:14px; padding:0; box-shadow:0 20px 70px #0d1f3b55; } dialog::backdrop { background:#172b4d88; } dialog form { padding:24px; }.dialog-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:22px; }.icon-button { border:0; background:transparent; color:var(--muted); font-size:28px; line-height:1; cursor:pointer; }.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }.form-grid label { display:grid; gap:7px; color:#334155; font-size:14px; font-weight:700; }.form-grid em { color:#ce3447; font-style:normal; }.form-grid input,.form-grid select,.form-grid textarea { width:100%; padding:10px; color:var(--ink); background:#fff; font-weight:400; }.full-width { grid-column:1/-1; }.dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; }
.form-error { margin:0; color:#b42338; font-size:13px; }.user-create { padding:18px; border:1px solid var(--line); border-radius:10px; background:#fbfcfe; }.user-create h3,.user-list-wrap h3 { margin:0 0 15px; color:var(--navy); font-size:16px; }.compact-grid { margin-bottom:14px; }.user-list-wrap { margin-top:24px; }.user-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 0; border-bottom:1px solid var(--line); }.user-row:last-child { border-bottom:0; }.user-row small { display:block; margin-top:3px; color:var(--muted); }.user-status { color:#117643; font-size:13px; }.user-status.disabled { color:#9a5b00; }.small-button { padding:6px 9px; border:1px solid #d6deea; border-radius:6px; background:#fff; color:var(--blue); cursor:pointer; font-size:12px; }
@media (max-width:680px) { .app-shell { padding:26px 15px; }.topbar { flex-direction:column; }.header-actions { justify-content:flex-start; }.metrics { grid-template-columns:1fr; }.toolbar { flex-direction:column; }.search-field { min-width:0; }.form-grid { grid-template-columns:1fr; }.full-width { grid-column:auto; } }
