/* 拼车管理后台样式 —— 现代深色侧栏 + 浅色内容区 */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif; background:#f3f5f9; color:#1f2937; }
:root { --green:#16b364; --green-d:#0e9d55; --ink:#1f2937; --line:#e5e9f0; }

/* 登录 */
.login-wrap { height:100vh; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#0b3d2e 0%,#12633f 50%,#16b364 100%); }
.login-card { width:380px; background:#fff; border-radius:18px; padding:44px 40px; text-align:center;
  box-shadow:0 24px 60px rgba(0,0,0,.35); }
.login-logo { width:64px;height:64px;line-height:64px;margin:0 auto 14px;border-radius:18px;font-size:32px;
  background:linear-gradient(135deg,#16b364,#39d98a); color:#fff; box-shadow:0 8px 20px rgba(22,179,100,.4); }
.login-card h2 { font-size:20px; margin-bottom:4px; }
.login-sub { color:#9aa4b2; font-size:12px; margin-bottom:26px; letter-spacing:1px; }
.login-card input { width:100%; height:44px; border:1px solid var(--line); border-radius:10px; padding:0 14px;
  margin-bottom:14px; font-size:14px; outline:none; }
.login-card input:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(22,179,100,.12); }
.login-msg { color:#e5484d; font-size:13px; min-height:20px; margin-top:10px; }

/* 布局 */
.layout { display:flex; min-height:100vh; }
.sidebar { width:230px; background:#0d2b20; color:#cfe9dc; position:fixed; top:0; bottom:0; display:flex; flex-direction:column; }
.side-brand { padding:22px 20px; font-size:16px; font-weight:600; color:#fff; border-bottom:1px solid rgba(255,255,255,.08); }
.side-brand .dot { display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--green);margin-right:8px;box-shadow:0 0 8px var(--green); }
.sidebar nav { flex:1; overflow-y:auto; padding:10px 0; }
.nav-item { display:flex; align-items:center; gap:10px; padding:12px 22px; cursor:pointer; font-size:14px;
  color:#9fc6b3; border-left:3px solid transparent; transition:.15s; }
.nav-item:hover { background:rgba(255,255,255,.05); color:#fff; }
.nav-item.active { background:rgba(22,179,100,.15); color:#fff; border-left-color:var(--green); }
.nav-group { padding:16px 22px 6px; font-size:11px; color:#5d8a72; letter-spacing:1px; }
.side-foot { padding:16px 22px; border-top:1px solid rgba(255,255,255,.08); }
.side-foot a { color:#9fc6b3; font-size:13px; cursor:pointer; }
.side-foot a:hover { color:#fff; }

.main { flex:1; margin-left:230px; display:flex; flex-direction:column; min-width:0; }
.topbar { height:58px; background:#fff; border-bottom:1px solid var(--line); display:flex; align-items:center;
  justify-content:space-between; padding:0 26px; position:sticky; top:0; z-index:10; }
.page-title { font-size:17px; font-weight:600; }
.clock { color:#6b7280; font-size:13px; }
.content { padding:24px 26px; }

/* 卡片/统计 */
.cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:16px; margin-bottom:20px; }
.stat-card { background:#fff; border-radius:14px; padding:20px; box-shadow:0 1px 3px rgba(16,24,40,.06); }
.stat-card .k { color:#6b7280; font-size:13px; }
.stat-card .v { font-size:28px; font-weight:700; margin-top:8px; color:var(--ink); }
.stat-card .v.green { color:var(--green); }
.panel { background:#fff; border-radius:14px; padding:20px; box-shadow:0 1px 3px rgba(16,24,40,.06); margin-bottom:20px; }
.panel h3 { font-size:15px; margin-bottom:14px; }

/* 表格 */
table.tb { width:100%; border-collapse:collapse; font-size:13px; }
.tb th { text-align:left; color:#6b7280; font-weight:500; padding:10px 12px; background:#f8fafc; border-bottom:1px solid var(--line); white-space:nowrap; }
.tb td { padding:11px 12px; border-bottom:1px solid #eef1f6; vertical-align:middle; }
.tb tr:hover td { background:#f6fbf8; }
.tb .ops { white-space:nowrap; }

/* 徽标 */
.tag { display:inline-block; padding:2px 10px; border-radius:999px; font-size:12px; }
.tag.g { background:#e3f7ec; color:#0e9d55; }
.tag.r { background:#fdecec; color:#d33a3a; }
.tag.y { background:#fff5df; color:#b7791f; }
.tag.b { background:#e8f0fe; color:#3b6fd4; }
.tag.gy { background:#f0f2f5; color:#6b7280; }

/* 按钮 */
.btn-primary { width:100%; height:44px; border:none; border-radius:10px; background:linear-gradient(135deg,var(--green),var(--green-d));
  color:#fff; font-size:15px; cursor:pointer; }
.btn { border:none; border-radius:8px; padding:7px 14px; font-size:13px; cursor:pointer; background:#eef1f6; color:#374151; }
.btn:hover { filter:brightness(.96); }
.btn.g { background:var(--green); color:#fff; }
.btn.r { background:#e5484d; color:#fff; }
.btn.y { background:#f5a623; color:#fff; }
.btn.sm { padding:4px 10px; font-size:12px; }
.toolbar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:14px; }
.toolbar input, .toolbar select { height:34px; border:1px solid var(--line); border-radius:8px; padding:0 10px; font-size:13px; outline:none; }
.tabs { display:flex; gap:6px; margin-bottom:14px; flex-wrap:wrap; }
.tab { padding:6px 16px; border-radius:8px; background:#fff; border:1px solid var(--line); cursor:pointer; font-size:13px; }
.tab.active { background:var(--green); color:#fff; border-color:var(--green); }

/* 表单 */
.form-row { margin-bottom:14px; }
.form-row label { display:block; font-size:13px; color:#4b5563; margin-bottom:6px; }
.form-row input[type=text], .form-row input[type=number], .form-row input[type=password], .form-row textarea, .form-row select {
  width:100%; border:1px solid var(--line); border-radius:8px; padding:9px 12px; font-size:13px; outline:none; font-family:inherit; }
.form-row textarea { min-height:90px; resize:vertical; }
.form-row input:focus, .form-row textarea:focus { border-color:var(--green); }
.switch { position:relative; width:42px; height:22px; background:#d6dbe3; border-radius:999px; cursor:pointer; transition:.2s; display:inline-block; vertical-align:middle; }
.switch::after { content:''; position:absolute; left:2px; top:2px; width:18px; height:18px; border-radius:50%; background:#fff; transition:.2s; }
.switch.on { background:var(--green); }
.switch.on::after { left:22px; }

/* 弹窗 */
.modal { position:fixed; inset:0; background:rgba(13,30,25,.5); display:flex; align-items:center; justify-content:center; z-index:100; }
.modal-box { width:560px; max-width:92vw; max-height:86vh; overflow:auto; background:#fff; border-radius:16px; box-shadow:0 24px 60px rgba(0,0,0,.3); }
.modal-head { display:flex; justify-content:space-between; align-items:center; padding:16px 22px; border-bottom:1px solid var(--line);
  font-size:15px; font-weight:600; position:sticky; top:0; background:#fff; }
.modal-head b { cursor:pointer; color:#9aa4b2; }
.modal-body { padding:20px 22px; }

/* 公告预览 */
.ann-preview { background:linear-gradient(160deg,#0e9d55,#39d98a); border-radius:16px; padding:26px; color:#fff; }
.ann-preview h4 { font-size:18px; margin-bottom:12px; }
.ann-preview p { font-size:14px; line-height:1.8; opacity:.95; white-space:pre-wrap; }

/* 群聊 */
.chat-box { max-height:420px; overflow-y:auto; background:#f3f5f9; border-radius:12px; padding:16px; }
.chat-msg { display:flex; gap:10px; margin-bottom:14px; }
.chat-av { width:36px;height:36px;border-radius:50%;background:#d6dbe3;color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0; }
.chat-bubble { background:#fff; border-radius:10px; padding:9px 13px; font-size:13px; max-width:70%; box-shadow:0 1px 2px rgba(0,0,0,.05); }
.chat-meta { font-size:11px; color:#9aa4b2; margin-bottom:3px; }
.chat-sys { text-align:center; font-size:12px; color:#9aa4b2; margin:10px 0; }
.filtered { color:#d33a3a; }

.toast { position:fixed; top:20px; left:50%; transform:translateX(-50%); background:#123524; color:#fff;
  padding:10px 22px; border-radius:10px; font-size:13px; display:none; z-index:200; box-shadow:0 8px 24px rgba(0,0,0,.25); }
.empty { text-align:center; color:#9aa4b2; padding:40px 0; font-size:13px; }
.img-thumb { width:88px; height:56px; object-fit:cover; border-radius:8px; border:1px solid var(--line); cursor:pointer; }
