* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #1e293b; background: #f1f5f9; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; }

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --orange: #ea580c;
  --bg: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-sub: #64748b;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
}

/* ========== 登录页 ========== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}
.login-box {
  width: 100%;
  max-width: 400px;
  background: #fff;
  padding: 40px 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo h1 { font-size: 24px; color: var(--primary); margin-top: 12px; }
.login-logo p { color: var(--text-sub); font-size: 13px; margin-top: 6px; }
.login-logo .logo-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
  color: #fff;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 6px; font-weight: 500; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: all .2s;
  background: #fff;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all .18s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #d97706; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; padding: 12px 20px; }

.hint-text { text-align: center; margin-top: 16px; font-size: 12px; color: var(--text-sub); }

/* ========== 主布局 ========== */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px;
  background: #0f172a;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
  transition: transform .25s;
}
.sidebar-logo {
  padding: 22px 20px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}
.sidebar-logo h2 { color: #fff; font-size: 15px; font-weight: 600; }
.sidebar-logo p { color: #64748b; font-size: 11px; margin-top: 2px; }

.nav-menu { flex: 1; padding: 14px 10px; overflow-y: auto; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 2px;
  transition: all .15s;
}
.nav-item:hover { background: #1e293b; color: #fff; }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-item .nav-icon { font-size: 16px; width: 20px; text-align: center; }

.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.sidebar-user .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
}
.sidebar-user .user-info strong { display: block; color: #f1f5f9; }
.sidebar-user .user-info span { color: #64748b; font-size: 12px; }
.sidebar-user .logout-btn { margin-left: auto; color: #94a3b8; cursor: pointer; }
.sidebar-user .logout-btn:hover { color: #ef4444; }

.main-content {
  flex: 1;
  margin-left: 220px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar h3 { font-size: 18px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-right .tb-item { color: var(--text-sub); font-size: 13px; }
.mobile-menu-btn {
  display: none;
  background: none; border: none;
  font-size: 22px; color: var(--text);
  padding: 4px 8px;
}
.sidebar-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 45; }

.page-content { flex: 1; padding: 24px; }

/* ========== 卡片 & 通用 ========== */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.card-header h4 { font-size: 16px; font-weight: 600; }
.card-header .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.col { padding: 0 10px; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ========== 数据卡片（仪表盘） ========== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-icon.blue { background: #dbeafe; color: #2563eb; }
.stat-icon.green { background: #dcfce7; color: #16a34a; }
.stat-icon.orange { background: #ffedd5; color: #ea580c; }
.stat-icon.red { background: #fee2e2; color: #dc2626; }
.stat-icon.purple { background: #f3e8ff; color: #9333ea; }
.stat-info .num { font-size: 26px; font-weight: 700; line-height: 1.2; }
.stat-info .label { color: var(--text-sub); font-size: 13px; margin-top: 4px; }

/* ========== 筛选栏 ========== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 16px;
}
.filter-bar .form-group { margin-bottom: 0; min-width: 140px; flex: 1; }
.filter-bar label { display: none; }
.filter-bar .form-control { padding: 8px 12px; }

/* ========== 表格 ========== */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data-table th {
  background: #f8fafc;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.data-table tr:hover td { background: #f8fafc; }
table.data-table .actions-col { display: flex; gap: 6px; flex-wrap: wrap; }

/* ========== 标签 ========== */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}
.tag-primary { background: #dbeafe; color: #1d4ed8; }
.tag-success { background: #dcfce7; color: #15803d; }
.tag-warning { background: #fef3c7; color: #b45309; }
.tag-danger { background: #fee2e2; color: #b91c1c; }
.tag-info { background: #e0e7ff; color: #4338ca; }
.tag-gray { background: #f1f5f9; color: #475569; }
.tag-orange { background: #ffedd5; color: #c2410c; }

/* 任务优先级/状态颜色 */
.priority-high { background: #fee2e2; color: #dc2626; }
.priority-mid { background: #fef3c7; color: #d97706; }
.priority-low { background: #dcfce7; color: #16a34a; }

.status-wait { background: #e0e7ff; color: #4338ca; }
.status-doing { background: #dbeafe; color: #1d4ed8; }
.status-done { background: #dcfce7; color: #15803d; }
.status-overdue { background: #fee2e2; color: #dc2626; }

/* ========== 弹窗 ========== */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: pop .2s ease-out;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h4 { font-size: 16px; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 22px; color: var(--text-sub); line-height: 1; }
.modal-body { padding: 22px; }
.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ========== 详情内容 ========== */
.detail-section { margin-bottom: 18px; }
.detail-section:last-child { margin-bottom: 0; }
.detail-label { font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
.detail-value { font-size: 14px; color: var(--text); line-height: 1.6; white-space: pre-wrap; }

.empty-tip {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-sub);
}
.empty-tip .icon { font-size: 48px; margin-bottom: 12px; opacity: .4; }
.empty-tip p { font-size: 14px; }

/* Toast */
.toast-box {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #0f172a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  animation: slideDown .25s ease-out;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* 日志内容显示 */
.diary-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
  background: #fff;
  transition: all .15s;
}
.diary-card:hover { border-color: #cbd5e1; box-shadow: var(--shadow); }
.diary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.diary-date { font-weight: 600; font-size: 15px; }
.diary-author { color: var(--text-sub); font-size: 13px; }
.diary-section { margin-bottom: 10px; }
.diary-section:last-child { margin-bottom: 0; }
.diary-section-label { font-size: 12px; color: var(--text-sub); margin-bottom: 4px; font-weight: 500; }
.diary-section-value { font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; color: #334155; }

/* 打卡进度样式 */
.task-timeline { border-left: 2px solid var(--border); padding-left: 16px; margin-top: 6px; }
.task-item { margin-bottom: 16px; position: relative; }
.task-item::before {
  content: '';
  position: absolute;
  left: -23px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 2px solid #fff;
}
.task-item.overdue::before { background: var(--danger); }
.task-item.near::before { background: var(--orange); }
.task-item.doing::before { background: var(--primary); }
.task-item.done::before { background: var(--success); }

/* ========== 响应式 ========== */
@media (max-width: 992px) {
  .col-3 { flex: 0 0 50%; max-width: 50%; }
  .col-4 { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); width: 240px; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-mask.show { display: block; }
  .main-content { margin-left: 0; }
  .mobile-menu-btn { display: block; }
  .topbar { padding: 12px 16px; }
  .page-content { padding: 16px; }
  .card { padding: 16px; border-radius: 10px; }
  .col-3, .col-4, .col-6 { flex: 0 0 100%; max-width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 14px; gap: 10px; }
  .stat-icon { width: 42px; height: 42px; font-size: 18px; border-radius: 10px; }
  .stat-info .num { font-size: 22px; }
  .filter-bar { padding: 10px; }
  .filter-bar .form-group { min-width: 100%; }
  .card-header .actions { width: 100%; }
  .card-header .actions .btn { flex: 1; }
  .modal { max-height: 95vh; }
  .modal-body { padding: 16px; }
  table.data-table th, table.data-table td { padding: 10px 8px; font-size: 12px; }
  .topbar h3 { font-size: 16px; }
  .tb-item span.label { display: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .btn { padding: 8px 14px; font-size: 13px; }
}

/* ========== BilzatWork SaaS / Team OS ========== */
.bw-auth .logo-icon {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.bw-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.bw-tab {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: #f8fafc;
  color: var(--text-sub);
  font-weight: 600;
}
.bw-tab.active {
  background: var(--primary);
  color: #fff;
}
.bw-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.bw-tile {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.bw-tile:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.bw-tile h4 { font-size: 15px; margin-bottom: 6px; }
.bw-tile p {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.5;
  min-height: 38px;
  margin-bottom: 10px;
}
.bw-tile-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-sub);
}
.bw-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.bw-track {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: #e2e8f0;
  overflow: hidden;
}
.bw-progress-bar {
  height: 100%;
  border-radius: 99px;
  background: #2563eb;
}
.bw-progress span {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  min-width: 40px;
  text-align: right;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
.tag-gray { background: #f1f5f9; color: #64748b; }

/* ========== SaaS Homepage ========== */
.bw-home-body { background: #0b1220; }
.bw-home {
  min-height: 100vh;
  color: #e8eef8;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(37,99,235,.35), transparent 60%),
    radial-gradient(700px 380px at 90% 8%, rgba(14,165,233,.18), transparent 55%),
    #0b1220;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.bw-home a { color: inherit; }
.bw-wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.bw-home-nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.72);
  border-bottom: 1px solid rgba(148,163,184,.18);
}
.bw-home-nav-inner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.bw-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; }
.bw-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #2563eb; color: #fff; font-weight: 700; font-size: 13px;
}
.bw-home-nav nav { display: flex; gap: 18px; color: #94a3b8; font-size: 14px; }
.bw-home-nav nav a:hover { color: #fff; }
.bw-home-actions { display: flex; gap: 8px; }
.bw-hero { padding: 72px 0 56px; }
.bw-hero-inner { width: min(900px, calc(100% - 40px)); margin: 0 auto; }
.bw-kicker {
  letter-spacing: .14em; font-size: 12px; color: #7dd3fc; margin-bottom: 14px; font-weight: 600;
}
.bw-hero h1 {
  font-size: clamp(32px, 5vw, 52px); line-height: 1.15; font-weight: 700; margin-bottom: 16px;
}
.bw-hero h1 em { font-style: normal; color: #93c5fd; }
.bw-lead {
  max-width: 640px; color: #94a3b8; font-size: 16px; line-height: 1.7; margin-bottom: 28px;
}
.bw-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.bw-hero-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 520px;
}
.bw-hero-metrics div {
  border: 1px solid rgba(148,163,184,.2); border-radius: 12px; padding: 14px 16px; background: rgba(15,23,42,.55);
}
.bw-hero-metrics b { display: block; font-size: 22px; color: #fff; margin-bottom: 4px; }
.bw-hero-metrics span { font-size: 12px; color: #94a3b8; }
.bw-section { padding: 56px 0; }
.bw-section-alt { background: rgba(15,23,42,.55); border-top: 1px solid rgba(148,163,184,.12); border-bottom: 1px solid rgba(148,163,184,.12); }
.bw-section h2 { font-size: 28px; margin-bottom: 8px; }
.bw-sec-sub { color: #94a3b8; margin-bottom: 28px; max-width: 640px; }
.bw-cap-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.bw-cap-grid article {
  border: 1px solid rgba(148,163,184,.18); border-radius: 14px; padding: 18px;
  background: rgba(11,18,32,.65);
}
.bw-cap-grid h3 { font-size: 16px; margin-bottom: 8px; color: #93c5fd; }
.bw-cap-grid p { font-size: 13px; color: #94a3b8; line-height: 1.6; }
.bw-bench-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid rgba(148,163,184,.18); }
.bw-bench { width: 100%; border-collapse: collapse; min-width: 720px; background: rgba(11,18,32,.7); }
.bw-bench th, .bw-bench td {
  padding: 12px 14px; text-align: center; border-bottom: 1px solid rgba(148,163,184,.12); font-size: 13px;
}
.bw-bench th:first-child, .bw-bench td:first-child { text-align: left; color: #cbd5e1; }
.bw-bench thead th { background: rgba(37,99,235,.15); color: #e2e8f0; font-weight: 600; }
.bw-bench .hl { background: rgba(37,99,235,.12); color: #93c5fd; font-weight: 700; }
.bw-legend { margin-top: 12px; font-size: 12px; color: #64748b; }
.bw-saas-row {
  display: grid; grid-template-columns: 1.4fr .9fr; gap: 28px; align-items: center;
}
.bw-saas-list { list-style: none; color: #cbd5e1; font-size: 14px; line-height: 1.9; }
.bw-saas-list li::before { content: "✓ "; color: #60a5fa; font-weight: 700; }
.bw-saas-list code { color: #93c5fd; }
.bw-saas-card {
  border: 1px solid rgba(96,165,250,.35); border-radius: 16px; padding: 24px;
  background: linear-gradient(180deg, rgba(37,99,235,.2), rgba(11,18,32,.9));
}
.bw-plan-name { font-size: 13px; letter-spacing: .08em; color: #93c5fd; margin-bottom: 6px; }
.bw-plan-price { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.bw-saas-card p { color: #94a3b8; font-size: 13px; margin-bottom: 18px; }
.bw-home-foot {
  border-top: 1px solid rgba(148,163,184,.15); padding: 22px 0 36px; color: #64748b; font-size: 13px;
}
.bw-home-foot .bw-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bw-home-foot a { color: #93c5fd; }
.bw-home .btn-outline {
  background: transparent; border-color: rgba(148,163,184,.35); color: #e2e8f0;
}
.bw-home .btn-outline:hover { border-color: #93c5fd; color: #fff; background: rgba(37,99,235,.15); }
@media (max-width: 860px) {
  .bw-home-nav nav { display: none; }
  .bw-saas-row { grid-template-columns: 1fr; }
  .bw-hero-metrics { grid-template-columns: 1fr; max-width: 280px; }
}



/* ===== 团队聊天 ===== */
.bw-chat-card .card-header { align-items: flex-end; }
.bw-chat-hint { font-size: 12px; color: var(--text-sub); font-weight: 400; }
.bw-chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 14px;
  align-items: stretch;
}
.bw-chat-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bw-chat-wrap { display: flex; flex-direction: column; gap: 12px; }
.bw-chat-peer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; border-radius: 10px;
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; font-size: 13px;
}
.bw-chat-peer-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.bw-chat-list {
  height: min(58vh, 520px); overflow-y: auto; padding: 14px 12px;
  background: #f1f5f9; border: 1px solid var(--border); border-radius: 12px;
}
.bw-chat-empty { text-align: center; color: var(--text-sub); padding: 48px 12px; font-size: 14px; }
.bw-chat-row { display: flex; flex-direction: column; margin-bottom: 14px; max-width: 78%; }
.bw-chat-row.mine { margin-left: auto; align-items: flex-end; }
.bw-chat-row.other { margin-right: auto; align-items: flex-start; }
.bw-chat-meta {
  font-size: 12px; margin-bottom: 6px; display: flex; gap: 8px; align-items: center;
}
.bw-chat-author {
  border: 0; background: transparent; padding: 0; cursor: pointer;
  font: inherit; font-weight: 650; color: #0f172a; line-height: 1.2;
}
.bw-chat-author:disabled { cursor: default; color: #1e40af; }
.bw-chat-author:not([disabled]):hover { color: #2563eb; text-decoration: underline; }
.bw-chat-time { color: #64748b; font-size: 11px; font-variant-numeric: tabular-nums; }
.bw-chat-av {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #2563eb; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.bw-chat-av.sm { width: 22px; height: 22px; font-size: 11px; }
.bw-chat-row.other .bw-chat-av { background: #0f766e; }
.bw-chat-bubble {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; box-shadow: var(--shadow); word-break: break-word;
}
.bw-chat-row.mine .bw-chat-bubble { background: #eff6ff; border-color: #bfdbfe; }
.bw-chat-text { font-size: 14px; line-height: 1.55; color: var(--text); }
.bw-chat-caption { margin-top: 6px; font-size: 13px; color: #475569; }
.bw-chat-img { max-width: min(280px, 100%); max-height: 240px; border-radius: 8px; display: block; }
.bw-chat-video { max-width: min(320px, 100%); max-height: 240px; border-radius: 8px; background: #0f172a; display: block; }
.bw-chat-voice { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.bw-chat-voice > span { font-size: 12px; color: var(--text-sub); }
.bw-chat-audio { width: min(240px, 100%); height: 36px; }
#bw-chat-voice.recording { background: #fee2e2; border-color: #f87171; color: #b91c1c; }
.bw-chat-rec-tip { font-size: 12px; color: #dc2626; align-self: center; }
.bw-chat-members {
  border: 1px solid var(--border); border-radius: 12px; background: #fff;
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.bw-chat-members-title {
  padding: 10px 12px; font-size: 13px; font-weight: 650; color: #0f172a;
  border-bottom: 1px solid var(--border); background: #f8fafc;
}
.bw-chat-members-list { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; max-height: min(58vh, 520px); }
.bw-chat-members-empty { color: var(--text-sub); font-size: 12px; padding: 16px 8px; text-align: center; }
.bw-chat-member {
  display: flex; gap: 10px; align-items: center; width: 100%;
  border: 1px solid transparent; background: transparent; border-radius: 10px;
  padding: 8px; text-align: left; cursor: pointer; color: inherit;
}
.bw-chat-member:hover:not(:disabled) { background: #f1f5f9; border-color: #e2e8f0; }
.bw-chat-member.is-active { background: #eff6ff; border-color: #93c5fd; }
.bw-chat-member.is-me { opacity: .72; cursor: default; }
.bw-chat-member-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bw-chat-member-name { font-size: 13px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-chat-member-role { font-size: 11px; color: #64748b; }
.btn-xs { padding: 2px 8px; font-size: 12px; line-height: 1.4; border-radius: 6px; }

/* ===== 实时语音通话 ===== */
.bw-call-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 23, 42, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.bw-call-panel {
  width: min(420px, 100%);
  background: #0f172a; color: #e2e8f0;
  border-radius: 16px; padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.bw-call-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.bw-call-title { font-size: 18px; font-weight: 700; }
.bw-call-sub { font-size: 13px; color: #94a3b8; margin-top: 4px; }
.bw-call-status { font-size: 14px; color: #93c5fd; margin-bottom: 14px; }
.bw-call-peers { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.bw-call-chip {
  background: #1e293b; border: 1px solid #334155; border-radius: 999px;
  padding: 6px 12px; font-size: 12px;
}
.bw-call-chip.me { border-color: #2563eb; color: #93c5fd; }
.bw-call-remote-audio { position: absolute; width: 0; height: 0; opacity: 0; }
.bw-call-panel-wide { width: min(920px, 100%); }
.bw-call-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.bw-call-stage[hidden] { display: none !important; }
.bw-call-remotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.bw-call-tile {
  position: relative;
  background: #020617;
  border: 1px solid #334155;
  border-radius: 12px;
  overflow: hidden;
  min-height: 180px;
  aspect-ratio: 16 / 10;
}
.bw-call-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}
.bw-call-tile-label {
  position: absolute; left: 8px; bottom: 8px;
  background: rgba(15,23,42,.72); color: #e2e8f0;
  font-size: 12px; padding: 2px 8px; border-radius: 999px;
}
.bw-call-tile.local { max-width: 280px; min-height: 140px; }
.bw-chat-compose { display: grid; gap: 8px; }
.bw-chat-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.bw-chat-file-btn { margin: 0; }
@media (max-width: 720px) {
  .bw-chat-layout { grid-template-columns: 1fr; }
  .bw-chat-members { order: -1; }
  .bw-chat-members-list {
    max-height: none; flex-direction: row; overflow-x: auto; overflow-y: hidden;
    padding-bottom: 4px;
  }
  .bw-chat-member { min-width: 148px; flex: 0 0 auto; }
  .bw-chat-list { height: 48vh; }
  .bw-chat-row { max-width: 92%; }
}
