:root { color-scheme: light; --ink:#17233b; --muted:#72809a; --line:#e7ebf3; --primary:#2e73ec; --canvas:#f5f7fc; --panel:#ffffff; --soft:#edf4ff; --shadow:0 18px 46px rgba(38, 68, 122, .10); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
* { box-sizing:border-box; }
body { margin:0; min-width:320px; color:var(--ink); background:var(--canvas); }
button, textarea { font:inherit; }
input { width:100%; font:inherit; }
button { border:0; cursor:pointer; }
.app-shell { min-height:100vh; }
.login-shell { min-height:100vh; display:grid; place-items:center; padding:28px; background:radial-gradient(circle at 15% 10%, #dceaff 0, transparent 30%), linear-gradient(145deg,#f3f6fe,#fff); }
.login-card { width:min(960px,100%); display:grid; grid-template-columns:1.15fr .85fr; overflow:hidden; border:1px solid rgba(255,255,255,.8); border-radius:28px; background:rgba(255,255,255,.88); box-shadow:var(--shadow); backdrop-filter:blur(14px); }
.login-intro { min-height:520px; padding:64px; color:#fff; background:linear-gradient(155deg,#1d4fbb,#4289f6); }
.eyebrow { margin:0 0 20px; opacity:.78; font-size:13px; font-weight:700; letter-spacing:.16em; }
h1,h2,h3,p { margin-top:0; }
.login-intro h1 { max-width:420px; margin-bottom:20px; font-size:48px; line-height:1.18; letter-spacing:-.04em; }
.login-intro p { max-width:390px; color:rgba(255,255,255,.82); font-size:16px; line-height:1.8; }
.login-points { display:grid; gap:13px; margin-top:72px; font-size:14px; color:rgba(255,255,255,.86); }
.login-panel { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:48px 40px; text-align:center; }
.login-panel h2 { margin-bottom:12px; font-size:26px; }
.login-panel p { color:var(--muted); line-height:1.7; }
.primary-button,.outline-button,.text-button { border-radius:12px; transition:transform .16s ease, box-shadow .16s ease; }
.primary-button { padding:13px 22px; color:#fff; background:var(--primary); box-shadow:0 10px 18px rgba(46,115,236,.24); }
.primary-button:hover { transform:translateY(-1px); }
.outline-button { padding:11px 18px; color:var(--primary); border:1px solid #bfd2f6; background:#f8fbff; }
.text-button { padding:8px; color:var(--muted); background:transparent; }
.qr-wrap { width:238px; margin:22px auto; padding:14px; border-radius:20px; border:1px solid var(--line); background:#fff; }
.qr-wrap img { display:block; width:100%; aspect-ratio:1; object-fit:contain; }
.qr-placeholder { display:grid; width:100%; aspect-ratio:1; place-items:center; padding:18px; color:var(--muted); background:repeating-linear-gradient(45deg,#f4f7fc,#f4f7fc 8px,#edf1f7 8px,#edf1f7 16px); border-radius:10px; font-size:13px; line-height:1.6; }
.login-status { min-height:24px; color:var(--muted); font-size:13px; }
.sms-login { display:grid; width:min(350px,100%); gap:12px; margin-top:22px; }
.sms-login input { min-height:46px; padding:12px 13px; border:1px solid #dce4f0; border-radius:12px; color:var(--ink); outline:none; background:#fff; }
.sms-login input:focus { border-color:#8eb3f4; box-shadow:0 0 0 3px #e7f0ff; }
.sms-code-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; }
.sms-login .primary-button { width:100%; }
.mobile-open { margin-top:4px; }
.workspace { min-height:100vh; display:grid; grid-template-columns:248px minmax(0,1fr); }
.sidebar { display:flex; flex-direction:column; gap:24px; padding:28px 18px; color:#eff5ff; background:#172c53; }
.brand { padding:0 12px; font-weight:800; letter-spacing:.01em; font-size:20px; }
.brand small { display:block; margin-top:6px; color:#a8c2e9; font-size:11px; letter-spacing:.12em; }
.nav { display:grid; gap:6px; }
.nav button { width:100%; padding:12px; border-radius:10px; color:#bdd0ee; text-align:left; background:transparent; }
.nav button.active,.nav button:hover { color:#fff; background:rgba(117,169,255,.20); }
.sidebar-foot { margin-top:auto; padding:12px; color:#a8c2e9; font-size:12px; line-height:1.7; }
.main { min-width:0; padding:30px clamp(20px,3vw,48px) 42px; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:28px; }
.topbar h1 { margin:0; font-size:28px; letter-spacing:-.03em; }
.topbar p { margin:7px 0 0; color:var(--muted); font-size:14px; }
.user-chip { display:flex; align-items:center; gap:11px; padding:9px 12px 9px 9px; border:1px solid var(--line); border-radius:999px; background:#fff; }
.avatar { display:grid; width:34px; height:34px; place-items:center; border-radius:50%; color:#2567da; background:#e5efff; font-size:13px; font-weight:800; }
.user-chip span { font-size:13px; }
.view { display:none; }
.view.active { display:block; }
.dashboard-grid { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(290px,.7fr); gap:22px; }
.panel { border:1px solid var(--line); border-radius:18px; background:var(--panel); box-shadow:0 8px 22px rgba(30,51,92,.045); }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:22px 22px 0; }
.panel-head h2 { margin:0; font-size:18px; }
.panel-head p { margin:6px 0 0; color:var(--muted); font-size:13px; }
.stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:22px; }
.stat { min-height:118px; padding:19px; border-radius:14px; background:linear-gradient(145deg,#f7faff,#edf4ff); }
.stat span { display:block; color:var(--muted); font-size:13px; }
.stat strong { display:block; margin-top:14px; color:#2465d7; font-size:25px; letter-spacing:-.04em; }
.agent-list { display:grid; gap:10px; padding:20px 22px 22px; }
.agent-row { display:flex; align-items:center; gap:13px; width:100%; padding:12px; border-radius:13px; color:var(--ink); text-align:left; background:#fff; }
.agent-row:hover,.agent-row.active { background:#f0f5ff; }
.agent-avatar { width:42px; height:42px; border-radius:12px; object-fit:cover; background:#dce9ff; }
.agent-avatar-fallback { display:grid; flex:0 0 42px; place-items:center; color:#2567da; font-size:14px; font-weight:800; }
.agent-name { font-weight:700; }
.agent-desc { overflow:hidden; margin-top:3px; color:var(--muted); font-size:12px; white-space:nowrap; text-overflow:ellipsis; }
.agents-layout { display:grid; grid-template-columns:minmax(250px,.7fr) minmax(0,1.3fr); gap:22px; }
.agent-directory { max-height:calc(100vh - 180px); overflow:auto; }
.chat-panel { display:flex; min-height:560px; flex-direction:column; }
.chat-header { padding:22px; border-bottom:1px solid var(--line); }
.chat-header h2 { margin:0; font-size:20px; }
.chat-header p { margin:6px 0 0; color:var(--muted); font-size:13px; }
.messages { flex:1; min-height:330px; padding:22px; overflow:auto; }
.empty { padding:24px; color:var(--muted); text-align:center; line-height:1.7; }
.message { max-width:78%; margin-bottom:14px; padding:12px 14px; border-radius:14px; color:#2e3b54; background:#f2f5fa; line-height:1.65; white-space:pre-wrap; }
.message.user { margin-left:auto; color:#fff; background:#387cf0; }
.composer { display:flex; gap:10px; padding:16px; border-top:1px solid var(--line); }
.composer textarea { min-height:48px; flex:1; resize:vertical; padding:13px; border:1px solid #dce4f0; border-radius:12px; outline:none; }
.composer textarea:focus { border-color:#8eb3f4; box-shadow:0 0 0 3px #e7f0ff; }
.history-list { display:grid; gap:12px; padding:22px; }
.history-row { padding:16px; border-radius:14px; background:#f8faff; }
.history-row h3 { margin:0; font-size:15px; }
.history-row p { margin:8px 0 0; color:var(--muted); font-size:13px; line-height:1.6; }
.profile-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.profile-card { padding:22px; }
.profile-card h2 { margin-bottom:8px; font-size:17px; }
.profile-card p { margin:0; color:var(--muted); line-height:1.7; font-size:14px; }
.notice { padding:13px 16px; border-radius:12px; color:#4d668d; background:#edf4ff; font-size:13px; line-height:1.6; }
@media (max-width: 1024px) { .workspace { grid-template-columns:80px minmax(0,1fr); } .sidebar { padding:20px 10px; } .brand { padding:0; font-size:0; } .brand small { display:none; } .brand::before { content:"军"; display:grid; width:42px; height:42px; place-items:center; margin:auto; border-radius:12px; color:#fff; background:#3478ef; font-size:18px; } .nav button { padding:12px 4px; text-align:center; font-size:11px; } .sidebar-foot { display:none; } }
@media (max-width: 768px) { .login-card { grid-template-columns:1fr; } .login-intro { min-height:auto; padding:42px 34px; } .login-intro h1 { font-size:36px; } .login-points { margin-top:30px; } .workspace { grid-template-columns:1fr; padding-bottom:70px; } .sidebar { position:fixed; z-index:10; right:0; bottom:0; left:0; display:block; padding:8px; background:#172c53; } .brand,.sidebar-foot { display:none; } .nav { display:grid; grid-template-columns:repeat(4,1fr); gap:3px; } .nav button { padding:10px 2px; } .main { padding:22px 16px; } .topbar { align-items:flex-start; } .topbar h1 { font-size:23px; } .dashboard-grid,.agents-layout { grid-template-columns:1fr; } .agent-directory { max-height:300px; } .profile-grid { grid-template-columns:1fr; } .chat-panel { min-height:530px; } .stats { grid-template-columns:1fr 1fr; } }
@media (max-width: 420px) { .login-shell { padding:16px; } .login-panel { padding:34px 24px; } .topbar { gap:12px; } .topbar p { display:none; } .user-chip span { max-width:80px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; } .stats { grid-template-columns:1fr; } }
