* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #f3f5f9; color: #1f2937; height: 100vh; overflow: hidden;
}

/* ---------- 登录页 ---------- */
.login-page { display: flex; align-items: center; justify-content: center; }
.login-card {
  background: #fff; border-radius: 16px; padding: 48px 40px; width: 360px;
  box-shadow: 0 8px 40px rgba(30, 58, 138, 0.10); text-align: center;
}
.login-logo { font-size: 32px; font-weight: 700; color: #2563eb; }
.login-sub { color: #6b7280; font-size: 13px; margin: 8px 0 28px; }
.login-card input {
  width: 100%; padding: 12px 14px; margin-bottom: 14px; border: 1px solid #d1d5db;
  border-radius: 8px; font-size: 14px; outline: none;
}
.login-card input:focus { border-color: #2563eb; }
.login-card button {
  width: 100%; padding: 12px; background: #2563eb; color: #fff; border: none;
  border-radius: 8px; font-size: 15px; cursor: pointer; font-weight: 600;
}
.login-card button:hover { background: #1d4ed8; }
.login-card button:disabled { opacity: .6; cursor: default; }
.login-error { color: #dc2626; font-size: 13px; margin-top: 12px; min-height: 18px; }

/* ---------- 主界面 ---------- */
.topbar {
  height: 52px; background: #fff; border-bottom: 1px solid #e5e7eb;
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
}
.brand { font-size: 18px; font-weight: 700; color: #2563eb; }
.brand-sub { font-size: 12px; color: #9ca3af; font-weight: 400; margin-left: 6px; }
.topbar-right { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #4b5563; }

.layout { display: flex; height: calc(100vh - 52px); }

.sidebar {
  width: 260px; background: #fff; border-right: 1px solid #e5e7eb;
  padding: 16px 12px; overflow-y: auto; flex-shrink: 0;
}
.sidebar-title { font-size: 13px; font-weight: 600; color: #6b7280; margin-bottom: 10px; padding: 0 6px; }
.meeting-list { list-style: none; }
.meeting-item {
  padding: 10px; border-radius: 8px; cursor: pointer; margin-bottom: 4px;
}
.meeting-item:hover { background: #eff4ff; }
.m-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-meta { font-size: 12px; color: #9ca3af; margin-top: 3px; }
.m-badge { color: #059669; }
.meeting-empty { color: #9ca3af; font-size: 13px; text-align: center; padding: 30px 0; list-style: none; }

.main { flex: 1; display: flex; flex-direction: column; padding: 16px 20px; min-width: 0; }

.recorder-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.recorder-bar input {
  flex: 1; max-width: 420px; padding: 9px 12px; border: 1px solid #d1d5db;
  border-radius: 8px; font-size: 14px; outline: none; background: #fff;
}
.recorder-bar input:focus { border-color: #2563eb; }
.rec-status { font-size: 13px; color: #dc2626; font-weight: 500; }

.btn {
  padding: 9px 18px; border: none; border-radius: 8px; font-size: 14px;
  cursor: pointer; font-weight: 500; white-space: nowrap;
}
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:not(:disabled):hover { background: #1d4ed8; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:not(:disabled):hover { background: #b91c1c; }
.btn-ghost { background: transparent; color: #4b5563; border: 1px solid #d1d5db; }
.btn-sm { padding: 4px 10px; font-size: 12px; background: #eef2ff; color: #2563eb; }
.btn-sm.btn-ghost { background: transparent; color: #9ca3af; }

.panels { display: flex; gap: 16px; flex: 1; min-height: 0; }
.panel {
  flex: 1; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb;
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
}
.panel-head {
  padding: 12px 16px; border-bottom: 1px solid #f0f1f5; font-size: 14px;
  font-weight: 600; color: #374151; display: flex; justify-content: space-between; align-items: center;
}
.panel-actions { display: flex; gap: 6px; }
.timer { color: #dc2626; font-weight: 500; font-size: 13px; }
.panel-body { flex: 1; overflow-y: auto; padding: 16px; }
.empty-hint { color: #9ca3af; font-size: 13px; text-align: center; margin-top: 40px; }

/* 转写样式 */
.t-line { display: flex; gap: 8px; align-items: baseline; margin-bottom: 10px; line-height: 1.7; font-size: 14px; }
.t-time { color: #9ca3af; font-size: 12px; font-family: Consolas, monospace; flex-shrink: 0; }
.t-speaker {
  color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 10px; flex-shrink: 0;
}
.t-text { flex: 1; }
.t-interim { color: #9ca3af; font-style: italic; }

/* 纪要 markdown */
.md { font-size: 14px; line-height: 1.8; }
.md h2 { font-size: 18px; margin: 8px 0 12px; color: #111827; }
.md h3 { font-size: 15px; margin: 14px 0 8px; color: #2563eb; }
.md h4 { font-size: 14px; margin: 10px 0 6px; }
.md ul { padding-left: 20px; margin: 6px 0; }
.md table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 13px; }
.md td { border: 1px solid #e5e7eb; padding: 6px 10px; }
.md tr:first-child td { background: #f8fafc; font-weight: 600; }

@media (max-width: 900px) {
  .sidebar { display: none; }
  .panels { flex-direction: column; }
}
