/* ==========================================================================
   全国公安机关综合研判与执法办案管理系统 (Official Chinese Police Intranet CSS)
   全端适配：重点适配移动端（手机屏幕/微信内置浏览器/Safari/全面屏），兼顾桌面端权威质感
   ========================================================================== */

:root {
  --police-blue: #0F3875;
  --police-dark: #09234b;
  --police-light: #1a4c9c;
  --police-bg: #f0f3f8;
  --police-card: #ffffff;
  --police-border: #cbd5e1;
  --police-gold: #e6a017;
  --police-red: #b91c1c;
  --police-stamp: #dc2626;
  --police-green: #15803d;
  
  --font-serif: "SimSun", "STSong", "Songti SC", "FangSong", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Consolas", "Courier New", monospace;
  
  --safe-bottom: env(safe-area-inset-bottom, 16px);
  --safe-top: env(safe-area-inset-top, 0px);
}

html {
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
  font-family: var(--font-sans);
}

body {
  background-color: var(--police-bg);
  color: #1e293b;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* 消除移动端点击高亮与300ms延迟 */
button, .case-card, .nav-item, .unlocked-keyword-tag, .keyword-btn, .photo-card, .chat-btn, .open-sms-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

button:active, .case-btn:active, .chat-btn:active {
  transform: scale(0.97);
}

/* 全局公安专网安全防伪水印 */
.security-watermark-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='140' viewBox='0 0 280 140'><text x='20' y='70' fill='%23000' font-size='12' font-family='sans-serif' transform='rotate(-20 140 70)'>公安专网内部涉密案卷 · 严禁外泄</text><text x='50' y='95' fill='%23000' font-size='10' font-family='monospace' transform='rotate(-20 140 70)'>GA-NET-SEC-2026</text></svg>");
  background-repeat: repeat;
}

/* ==========================================================================
   1. 登录界面 (Mobile Friendly Login)
   ========================================================================== */
.login-wrap {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #133a75 0%, #081d3d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
  overflow-y: auto;
}

.login-box {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  padding: 28px 24px;
  text-align: center;
  border-top: 5px solid var(--police-blue);
  margin: auto;
}

.login-badge-icon {
  font-size: 42px;
  margin-bottom: 6px;
  display: inline-block;
}

.login-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--police-blue);
  letter-spacing: 1px;
}

.login-subtitle {
  font-size: 0.62rem;
  color: #64748b;
  font-family: var(--font-mono);
  margin-top: 4px;
}

.login-sec-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  background: #fee2e2;
  color: var(--police-red);
  border: 1px solid #fecaca;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: bold;
}

.login-form {
  margin-top: 20px;
  text-align: left;
}

.login-field {
  margin-bottom: 12px;
}

.login-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: bold;
  color: #334155;
  margin-bottom: 5px;
}

.login-field input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #0f172a;
  outline: none;
  transition: 0.2s;
  background: #f8fafc;
}

.login-field input:focus {
  border-color: var(--police-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 56, 117, 0.15);
}

.login-error {
  color: var(--police-red);
  font-size: 0.75rem;
  text-align: center;
  margin-bottom: 10px;
  font-weight: bold;
}

.login-btn {
  width: 100%;
  height: 44px;
  background: var(--police-blue);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 2px;
  box-shadow: 0 4px 14px rgba(15, 56, 117, 0.35);
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-btn:hover {
  background: var(--police-light);
}

.login-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.5;
}

/* ==========================================================================
   2. 主界面公文顶栏与状态栏 (Police Header & Status)
   ========================================================================== */
.main-system {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  background: linear-gradient(180deg, #0F3875 0%, #0a2754 100%);
  color: #fff;
  padding: 0.65rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border-bottom: 3px solid var(--police-gold);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-emblem {
  font-size: 28px;
  flex-shrink: 0;
}

.header-main-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.header-node-tag {
  font-size: 0.62rem;
  background: var(--police-gold);
  color: #1e293b;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: bold;
}

.header-en-title {
  font-size: 0.6rem;
  opacity: 0.8;
  font-family: var(--font-mono);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-action-btn {
  background: #183e6d;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.72rem;
  transition: 0.2s;
  white-space: nowrap;
}

.top-action-btn:hover {
  background: #255594;
}

.import-btn {
  background: #854d0e;
  border-color: #ca8a04;
  color: #fef08a;
  font-weight: bold;
}

.import-btn:hover {
  background: #a16207;
}

.user-info-bar {
  background: #e2e8f0;
  padding: 6px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #cbd5e1;
  font-size: 0.78rem;
}

.user-role {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.user-badge {
  background: var(--police-blue);
  color: white;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.72rem;
}

.user-badge.gf {
  background: #9d174d;
  color: #fdf2f8;
}

.net-tag {
  font-size: 0.68rem;
  color: #64748b;
  font-family: var(--font-mono);
}

.logout-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.progress-indicator {
  font-size: 0.72rem;
  color: var(--police-blue);
  font-weight: bold;
  font-family: var(--font-mono);
}

.logout-btn, .delete-save-btn {
  background: #fff;
  border: 1px solid var(--police-blue);
  color: var(--police-blue);
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.72rem;
  transition: 0.2s;
  white-space: nowrap;
}

.delete-save-btn {
  border-color: var(--police-red);
  color: var(--police-red);
}

.delete-save-btn:hover {
  background: var(--police-red);
  color: #fff;
}

.logout-btn:hover {
  background: var(--police-blue);
  color: #fff;
}

/* ==========================================================================
   3. 布局骨架 (Responsive Layout)
   ========================================================================== */
.main-wrapper {
  display: flex;
  max-width: 1440px;
  width: 100%;
  margin: 0.8rem auto;
  padding: 0 1rem;
  gap: 1rem;
  flex: 1;
}

.info-sidebar {
  width: 270px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  height: fit-content;
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
}

.side-title {
  background: var(--police-blue);
  color: #fff;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.sidebar-toggle-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s;
}

.side-content {
  padding: 14px;
  font-size: 0.78rem;
  color: #334155;
  line-height: 1.6;
}

.side-content.collapsed {
  display: none;
}

.side-content h4 {
  margin: 12px 0 6px;
  color: var(--police-blue);
  font-size: 0.82rem;
  border-left: 3px solid var(--police-blue);
  padding-left: 6px;
}

.side-content ul, .side-content ol {
  padding-left: 1.2rem;
}

.side-content li {
  margin-bottom: 4px;
}

.right-content {
  flex: 1;
  min-width: 0;
}

/* ==========================================================================
   4. 待办案件列表视图 (Case List Grid)
   ========================================================================== */
.case-list-section {
  background: #fff;
  border-radius: 10px;
  padding: 1.2rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid #cbd5e1;
}

.case-list-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 6px;
}

.case-list-title {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--police-blue);
}

.case-list-hint {
  font-size: 0.72rem;
  color: #64748b;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.case-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #cbd5e1;
  border-top: 4px solid var(--police-blue);
  position: relative;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 56, 117, 0.15);
  border-color: var(--police-blue);
}

.case-card.solved {
  background: #f0fdf4;
  border-color: #86efac;
  border-top-color: #16a34a;
}

.case-card.locked {
  opacity: 0.65;
  cursor: not-allowed;
  background: #f8fafc;
  border-top-color: #94a3b8;
}

.case-card.locked:hover {
  transform: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.case-code {
  font-size: 0.68rem;
  color: #64748b;
  font-family: var(--font-mono);
}

.case-name {
  font-size: 0.98rem;
  font-weight: bold;
  margin: 6px 0;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.case-desc {
  font-size: 0.75rem;
  color: #475569;
  margin-bottom: 14px;
  line-height: 1.5;
  flex: 1;
}

.case-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.pass-badge {
  background: #16a34a;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: bold;
}

.locked-badge {
  background: #64748b;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.65rem;
}

.case-btn {
  background: var(--police-blue);
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: bold;
  transition: 0.2s;
  white-space: nowrap;
}

.case-btn:hover {
  background: var(--police-light);
}

.case-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

/* ==========================================================================
   5. 案件研判指挥台 (Investigation Area)
   ========================================================================== */
.investigation-area {
  background: #fff;
  border-radius: 10px;
  padding: 1.2rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid #cbd5e1;
}

.investigation-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 10px;
}

.back-to-list-btn {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  color: var(--police-blue);
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: bold;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.back-to-list-btn:hover {
  background: #cbd5e1;
}

.case-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.case-active-name {
  font-weight: bold;
  color: var(--police-blue);
  font-size: 0.95rem;
}

.case-active-code {
  font-size: 0.72rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.investigation-layout {
  display: flex;
  gap: 1.2rem;
}

.nav-sidebar {
  width: 190px;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
  height: fit-content;
}

.nav-item {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.82rem;
  color: #334155;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item:hover {
  background: #e2e8f0;
}

.nav-item.active {
  background: var(--police-blue);
  color: #ffffff;
}

.investigation-content {
  flex: 1;
  min-width: 0;
}

.module-container {
  display: none;
}

.module-container.active {
  display: block;
}

/* ==========================================================================
   Tab 1: 案件详情与勘查笔录
   ========================================================================== */
.case-detail-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #cbd5e1;
}

.doc-official-title {
  font-size: 0.78rem;
  font-weight: bold;
  color: #64748b;
  text-align: center;
  letter-spacing: 2px;
}

.case-detail-card h3 {
  color: var(--police-blue);
  font-size: 1.05rem;
  text-align: center;
  margin: 4px 0 14px 0;
  font-weight: 800;
  letter-spacing: 1px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  font-size: 0.78rem;
  background: #fff;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.detail-full {
  grid-column: 1 / -1;
}

.detail-label {
  font-weight: bold;
  color: #475569;
}

.detail-val {
  color: #0f172a;
}

.photos-section {
  margin-top: 16px;
}

.section-sub-title {
  font-size: 0.82rem;
  font-weight: bold;
  color: var(--police-blue);
  margin-bottom: 10px;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.photo-card {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.photo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--police-blue);
}

.photo-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #0f172a;
  border-bottom: 1px solid #e2e8f0;
}

.photo-meta {
  padding: 8px 10px;
  font-size: 0.72rem;
  flex: 1;
}

.photo-title {
  font-weight: bold;
  color: #0f172a;
  margin-bottom: 3px;
}

.photo-desc-brief {
  color: #64748b;
  line-height: 1.4;
}

.clue-progress-wrap {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.progress-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.progress-label {
  color: #475569;
  font-weight: 600;
}

.progress-ratio {
  color: var(--police-blue);
  font-weight: bold;
  font-family: var(--font-mono);
}

.progress-container {
  background: #e2e8f0;
  border-radius: 12px;
  height: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1d4e89 0%, #0F3875 100%);
  border-radius: 12px;
  transition: width 0.4s ease;
}

/* ==========================================================================
   Tab 2: 物证查询与线索检索
   ========================================================================== */
.search-unlock {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 16px;
}

.search-title {
  color: var(--police-blue);
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 4px;
}

.search-hint {
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 12px;
}

.search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.search-box input {
  flex: 1;
  min-width: 140px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 24px;
  font-size: 0.85rem;
  outline: none;
  background: #fff;
}

.search-box input:focus {
  border-color: var(--police-blue);
}

.search-box button {
  background: var(--police-blue);
  color: white;
  border: none;
  height: 42px;
  padding: 0 20px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: bold;
  transition: 0.2s;
  white-space: nowrap;
}

.search-box button:hover {
  background: var(--police-light);
}

.search-result-box {
  min-height: 20px;
  margin-bottom: 12px;
}

.search-hit-card {
  background: #ffffff;
  border-radius: 6px;
  padding: 14px;
  border-left: 4px solid var(--police-blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  font-size: 0.8rem;
  line-height: 1.6;
}

.search-miss-card {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.75rem;
}

.unlocked-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.unlocked-title {
  font-size: 0.78rem;
  font-weight: bold;
  color: var(--police-blue);
  margin-bottom: 10px;
}

.unlocked-history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.unlocked-keyword-tag {
  background: #e2e8f0;
  color: var(--police-blue);
  border: 1px solid #cbd5e1;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
}

.unlocked-keyword-tag:hover {
  background: #cbd5e1;
}

.unlocked-keyword-tag.active {
  background: var(--police-blue);
  color: white;
  border-color: var(--police-blue);
}

.unlocked-detail-area {
  padding: 12px 14px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.6;
}

.interact-link-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  background: var(--police-blue);
  color: white;
  border-radius: 16px;
  font-size: 0.72rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
}

.interact-link-btn:hover {
  background: var(--police-light);
}

/* ==========================================================================
   Tab 3: 人物档案与讯问室
   ========================================================================== */
.character-section {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 16px;
}

.section-header-row {
  margin-bottom: 12px;
}

.character-title {
  color: var(--police-blue);
  font-size: 0.95rem;
  font-weight: bold;
}

.character-hint {
  font-size: 0.72rem;
  color: #64748b;
}

.character-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.character-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  transition: 0.2s;
  flex-wrap: wrap;
  gap: 10px;
}

.character-item:hover {
  border-color: var(--police-blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.character-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.character-avatar {
  width: 46px;
  height: 46px;
  background: var(--police-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid #cbd5e1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.character-avatar.locked-avatar {
  background: #334155;
  border: 2px dashed #64748b;
  color: #94a3b8;
}

.character-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.character-name-title .character-name {
  font-weight: bold;
  font-size: 0.9rem;
  color: #0f172a;
}

.character-name-title .character-role {
  font-size: 0.72rem;
  color: #64748b;
}

.chat-btn {
  background: var(--police-blue);
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: bold;
  transition: 0.2s;
  white-space: nowrap;
}

.chat-btn:hover {
  background: var(--police-light);
}

.empty-list {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
  font-size: 0.8rem;
  background: #fff;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
}

/* ==========================================================================
   讯问室弹窗 (Interrogation Room Modal)
   ========================================================================== */
.character-dialog-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 12px;
}

.character-dialog {
  width: 100%;
  max-width: 580px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.character-dialog-header {
  background: var(--police-blue);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.character-dialog-header h3 {
  font-size: 0.9rem;
  font-weight: bold;
}

.character-dialog-close {
  cursor: pointer;
  font-size: 26px;
  padding: 0 6px;
}

.suspect-defense-bar-wrap {
  background: #1e293b;
  color: #e2e8f0;
  padding: 8px 14px;
  font-size: 0.75rem;
}

.defense-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.defense-val {
  color: #ef4444;
  font-weight: bold;
  font-family: var(--font-mono);
}

.defense-track {
  background: #334155;
  height: 6px;
  border-radius: 6px;
  overflow: hidden;
}

.defense-fill {
  background: linear-gradient(90deg, #22c55e 0%, #ef4444 100%);
  height: 100%;
  transition: width 0.5s ease;
}

.character-dialog-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #f8fafc;
  min-height: 180px;
  max-height: 320px;
}

.character-message {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}

.character-message.user {
  align-items: flex-end;
}

.character-message.character {
  align-items: flex-start;
}

.message-text {
  max-width: 85%;
  padding: 8px 12px;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.character-message.user .message-text {
  background: var(--police-blue);
  color: white;
  border-radius: 14px 14px 2px 14px;
}

.character-message.character .message-text {
  background: #e2e8f0;
  color: #0f172a;
  border-radius: 14px 14px 14px 2px;
}

.character-dialog-input {
  padding: 12px 14px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.keyword-select-hint {
  font-size: 0.72rem;
  font-weight: bold;
  color: var(--police-blue);
  margin-bottom: 6px;
}

.keyword-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 36px;
  max-height: 100px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.keyword-btn {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 0.72rem;
  cursor: pointer;
  color: var(--police-blue);
  font-weight: bold;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
}

.keyword-btn:hover {
  background: var(--police-blue);
  color: white;
}

/* ==========================================================================
   Tab 5: 结案报告审查 (Quiz Section)
   ========================================================================== */
.quiz-section {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 16px;
}

.quiz-header-row {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.quiz-title {
  color: var(--police-blue);
  font-size: 0.95rem;
  font-weight: bold;
}

.quiz-hint {
  font-size: 0.72rem;
  color: #64748b;
}

.quiz-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}

.quiz-q {
  font-size: 0.82rem;
  font-weight: bold;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-opt-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #334155;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  transition: 0.2s;
}

.quiz-opt-label:hover {
  background: #f1f5f9;
}

.quiz-action-bar {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-btn {
  background: var(--police-blue);
  color: white;
  border: none;
  padding: 9px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: bold;
  transition: 0.2s;
}

.primary-btn:hover {
  background: var(--police-light);
}

.quiz-feedback {
  font-size: 0.78rem;
  font-weight: bold;
  line-height: 1.5;
}

/* ==========================================================================
   6. 悬浮警务加密协同短信 (SMS)
   ========================================================================== */
.sms-float {
  position: fixed;
  bottom: 80px;
  right: 18px;
  width: 360px;
  height: 480px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 1500;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

.sms-header {
  background: var(--police-blue);
  color: white;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sms-title {
  font-size: 0.82rem;
  font-weight: bold;
}

.sms-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.sms-contacts {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.contact-list {
  width: 88px;
  background: #f1f5f9;
  border-right: 1px solid #cbd5e1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}

.contact-item {
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.68rem;
  color: #334155;
  transition: 0.2s;
  word-break: break-all;
}

.contact-item:hover {
  background: #e2e8f0;
}

.contact-item.active {
  background: var(--police-blue);
  color: white;
  font-weight: bold;
}

.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}

.chat-header {
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--police-blue);
}

.chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
}

.chat-input-area {
  display: flex;
  padding: 8px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  gap: 6px;
}

.chat-input-area input {
  flex: 1;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  font-size: 0.75rem;
  outline: none;
}

.chat-input-area button {
  background: var(--police-blue);
  color: white;
  border: none;
  padding: 0 14px;
  border-radius: 18px;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: bold;
}

.open-sms-btn {
  position: fixed;
  bottom: calc(18px + var(--safe-bottom));
  right: 18px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--police-blue);
  color: white;
  box-shadow: 0 6px 18px rgba(15, 56, 117, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 1400;
  transition: transform 0.2s;
}

.open-sms-btn:active {
  transform: scale(0.92);
}

/* ==========================================================================
   7. 全屏高清物证灯箱 (Forensic Lightbox)
   ========================================================================== */
.lightbox-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  padding: 16px;
}

.lightbox-box {
  background: #ffffff;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.lightbox-header {
  background: var(--police-blue);
  color: white;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lightbox-title {
  font-size: 0.88rem;
  font-weight: bold;
}

.lightbox-close {
  cursor: pointer;
  font-size: 1.3rem;
  padding: 0 6px;
}

.lightbox-body {
  padding: 14px;
  background: #0f172a;
  text-align: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lightbox-img {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.lightbox-desc {
  color: #e2e8f0;
  font-size: 0.78rem;
  margin-top: 12px;
  text-align: left;
  line-height: 1.6;
  background: #1e293b;
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 3px solid var(--police-gold);
}

/* ==========================================================================
   8. 专属红头表彰令与公章 (Commendation & Official Seal)
   ========================================================================== */
.commendation-card {
  max-width: 600px;
  width: 100%;
  background: #fff;
  border: 2px solid var(--police-red);
  padding: 30px 24px;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: auto;
}

.comm-header {
  border-bottom: 2px solid var(--police-red);
  padding-bottom: 10px;
  text-align: center;
}

.comm-red-title {
  color: var(--police-red);
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-serif);
  letter-spacing: 3px;
}

.comm-serial {
  font-size: 0.72rem;
  color: #64748b;
  font-family: var(--font-mono);
  margin-top: 4px;
}

.comm-main-title {
  font-size: 1.05rem;
  font-weight: bold;
  color: #0f172a;
  text-align: center;
  margin: 16px 0 10px 0;
}

.comm-expert-name {
  font-size: 0.88rem;
  font-weight: bold;
  color: #0f172a;
  margin-bottom: 10px;
}

.comm-text-body {
  font-size: 0.82rem;
  line-height: 1.8;
  color: #1e293b;
  font-family: var(--font-serif);
  background: #fff5f5;
  border: 1px solid #fed7d7;
  padding: 14px;
  border-radius: 6px;
  white-space: pre-wrap;
}

.comm-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  flex-wrap: wrap;
  gap: 12px;
}

.comm-org-sign {
  font-weight: bold;
  font-size: 0.82rem;
}

.comm-date-sign {
  font-size: 0.72rem;
  color: #64748b;
  font-family: var(--font-mono);
}

.official-red-stamp {
  width: 90px;
  height: 90px;
  border: 2px solid var(--police-stamp);
  border-radius: 50%;
  color: var(--police-stamp);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: bold;
  font-family: var(--font-serif);
  transform: rotate(-12deg);
  opacity: 0.85;
}

.official-red-stamp .star {
  font-size: 16px;
  line-height: 1;
  color: var(--police-stamp);
}

.comm-btn-wrap {
  margin-top: 20px;
  text-align: center;
}

.comm-close-btn {
  background: var(--police-red);
  color: white;
  border: none;
  padding: 8px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: bold;
  transition: 0.2s;
}

.comm-close-btn:hover {
  background: #991b1b;
}

.unlock-banner {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--police-blue);
  color: #fff;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  z-index: 5000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  text-align: center;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unlock-banner.show {
  opacity: 1;
  top: 70px;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   9. 移动端专门响应式深度适配 (Mobile Media Queries)
   重点优化：手机竖屏、微信小程序/内置浏览器、iPhone/Android
   ========================================================================== */
@media (max-width: 768px) {
  .main-wrapper {
    flex-direction: column;
    padding: 0 0.6rem;
    margin: 0.5rem auto;
    gap: 0.8rem;
  }

  .header {
    padding: 0.5rem 0.8rem;
  }
  .header-main-title {
    font-size: 0.95rem;
  }
  .header-en-title {
    display: none;
  }
  .header-emblem {
    font-size: 24px;
  }
  .top-action-btn {
    padding: 3px 8px;
    font-size: 0.68rem;
  }

  .user-info-bar {
    padding: 5px 10px;
    font-size: 0.72rem;
  }
  .net-tag {
    display: none;
  }

  .info-sidebar {
    width: 100%;
  }
  .side-title {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .case-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .case-list-section {
    padding: 0.8rem;
  }

  .investigation-area {
    padding: 0.8rem;
  }
  .investigation-layout {
    flex-direction: column;
    gap: 0.8rem;
  }
  .nav-sidebar {
    width: 100%;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
  }
  .nav-sidebar::-webkit-scrollbar {
    display: none;
  }
  .nav-item {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 0.78rem;
    border-bottom: 2px solid transparent;
    border-right: none;
    justify-content: center;
  }
  .nav-item.active {
    background: transparent;
    color: var(--police-blue);
    border-bottom: 3px solid var(--police-blue);
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .photos-grid {
    grid-template-columns: 1fr;
  }
  .photo-thumb {
    height: 180px;
  }

  .sms-float {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
    bottom: calc(75px + var(--safe-bottom));
    height: 70vh;
    max-height: 520px;
  }
  .contact-list {
    width: 72px;
  }
  .contact-item {
    font-size: 0.62rem;
    padding: 8px 2px;
  }

  .character-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 12px;
  }
  .character-dialog-messages {
    min-height: 160px;
    max-height: 260px;
  }
  .keyword-btn {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  .character-item {
    padding: 10px 12px;
  }

  .search-box input {
    font-size: 0.8rem;
    height: 38px;
  }
  .search-box button {
    height: 38px;
    font-size: 0.75rem;
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .header-main-title {
    font-size: 0.88rem;
  }
  .login-box {
    padding: 22px 18px;
  }
  .login-title {
    font-size: 1.1rem;
  }
  .case-name {
    font-size: 0.92rem;
  }
  .open-sms-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
    bottom: calc(14px + var(--safe-bottom));
    right: 14px;
  }
}

/* ==========================================================================
   10. 电子人民警察工作证 (Electronic Police ID Card)
   ========================================================================== */
.police-id-btn {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  color: #fff;
  border: 1px solid #f87171;
  padding: 2px 8px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(185, 28, 28, 0.3);
  transition: all 0.2s ease;
}
.police-id-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.police-card-outer {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border: 2px solid #b91c1c;
  animation: commSlideIn 0.35s ease-out;
  margin: auto;
}

.police-card-header {
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  color: #ffffff;
  padding: 18px 16px 12px;
  text-align: center;
  position: relative;
  border-bottom: 3px solid #f59e0b;
}

.police-card-header .card-emblem {
  font-size: 36px;
  margin-bottom: 2px;
}
.police-card-header .card-gov-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 2px;
  font-family: var(--font-serif);
}
.police-card-header .card-type-title {
  font-size: 0.92rem;
  font-weight: bold;
  color: #fef08a;
  margin-top: 2px;
  letter-spacing: 1px;
}
.police-card-header .card-en {
  font-size: 0.55rem;
  opacity: 0.8;
  font-family: var(--font-mono);
  margin-top: 4px;
}

.police-card-body {
  padding: 20px 16px;
  display: flex;
  gap: 16px;
  background: #fff;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 12px 12px;
  position: relative;
}

.police-photo-box {
  width: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.police-photo-inner {
  width: 100px;
  height: 130px;
  background: linear-gradient(180deg, #1e3a8a 0%, #0f172a 100%);
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.police-photo-avatar {
  font-size: 52px;
}

.card-stamp-mark {
  margin-top: 8px;
  color: #b91c1c;
  border: 1.5px solid #b91c1c;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: bold;
  font-family: var(--font-serif);
  letter-spacing: 1px;
  transform: rotate(-5deg);
}

.police-meta-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  font-size: 0.76rem;
}

.meta-row {
  display: flex;
  align-items: baseline;
}
.meta-label {
  color: #64748b;
  width: 72px;
  flex-shrink: 0;
}
.meta-val {
  color: #0f172a;
  font-weight: bold;
  flex: 1;
}

.police-card-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 12px 16px;
}

.card-achieve-title {
  font-size: 0.72rem;
  font-weight: bold;
  color: #b45309;
  margin-bottom: 4px;
}
.card-achieve-content {
  font-size: 0.72rem;
  color: #334155;
  line-height: 1.5;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 12px;
}

.police-id-close-btn {
  width: 100%;
  height: 38px;
  background: #0F3875;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
}
.police-id-close-btn:hover {
  background: #1a4c9c;
}

/* ==========================================================================
   11. 真实案情时间轴 (Crime Scene Timeline)
   ========================================================================== */
.timeline-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.case-timeline-list {
  position: relative;
  margin-top: 12px;
  padding-left: 18px;
}

.case-timeline-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #cbd5e1;
}

.timeline-item {
  position: relative;
  margin-bottom: 14px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -18px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--police-blue);
  box-shadow: 0 0 0 2px rgba(15, 56, 117, 0.15);
}

.timeline-item.highlight .timeline-dot {
  border-color: #b91c1c;
  background: #fee2e2;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.25);
}

.timeline-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.2s;
}
.timeline-card:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-color: #94a3b8;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.timeline-time-badge {
  font-size: 0.68rem;
  font-weight: bold;
  color: var(--police-blue);
  background: #e0f2fe;
  padding: 1px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.timeline-clue-chip {
  font-size: 0.65rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 1px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
.timeline-clue-chip:hover {
  background: #fde047;
}

.timeline-title {
  font-size: 0.82rem;
  font-weight: bold;
  color: #0f172a;
  margin-bottom: 3px;
}

.timeline-desc {
  font-size: 0.74rem;
  color: #475569;
  line-height: 1.5;
}

/* ==========================================================================
   12. 手机端快速提取线索栏 (Quick Clue Chips)
   ========================================================================== */
.quick-clues-section {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.quick-clues-label {
  font-size: 0.72rem;
  font-weight: bold;
  color: #0369a1;
  margin-bottom: 6px;
  display: block;
}

.quick-clues-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-clue-chip {
  background: #ffffff;
  color: #0369a1;
  border: 1px solid #7dd3fc;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.74rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.quick-clue-chip:hover, .quick-clue-chip:active {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
  transform: scale(0.96);
}

.quick-clue-chip.unlocked {
  background: #f0fdf4;
  color: #166534;
  border-color: #86efac;
}

/* 侧边栏折叠箭头动效 */
.side-title {
  user-select: none;
}
.side-toggle-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.info-sidebar.collapsed .side-toggle-arrow {
  transform: rotate(-90deg);
}
.info-sidebar.collapsed .side-content {
  display: none;
}

/* 移动端全面优化 */
@media (max-width: 768px) {
  /* 解决移动端输入框在 iOS Safari 自动缩放问题 */
  input[type="text"], input[type="password"] {
    font-size: 16px !important;
  }
  
  .police-card-outer {
    max-width: 95vw;
  }
  .police-card-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .police-meta-box {
    text-align: left;
    width: 100%;
  }

  .quick-clue-chip {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
}



/* ==========================================================================
   AI 智脑与自由审讯交互组件样式
   ========================================================================== */
.ai-status-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid #16a34a;
  border-radius: 9999px;
  font-size: 0.72rem;
  padding: 2px 10px;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.3);
}

.suspect-free-ask-box {
  margin: 10px 0;
  background: #0f172a;
  border: 1px solid #1e3a8a;
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: inset 0 0 10px rgba(15, 23, 42, 0.8);
}

.ai-ask-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ai-ask-title {
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.ai-model-tag {
  color: #4ade80;
  font-size: 0.7rem;
  background: #1e293b;
  border: 1px solid #334155;
  padding: 2px 8px;
  border-radius: 4px;
}

.ai-ask-input-wrap {
  display: flex;
  gap: 8px;
}

.suspect-ask-input {
  flex: 1;
  background: #020617;
  border: 1px solid #0284c7;
  color: #f8fafc;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.suspect-ask-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.suspect-ask-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid #38bdf8;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s, opacity 0.2s;
}

.suspect-ask-btn:hover {
  opacity: 0.95;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.suspect-ask-btn:active {
  transform: scale(0.96);
}

.ai-thinking-msg {
  opacity: 0.8;
  font-style: italic;
  animation: pulseOpacity 1.5s infinite;
}

@keyframes pulseOpacity {
  0% { opacity: 0.5; }
  50% { opacity: 0.9; }
  100% { opacity: 0.5; }
}

@media (max-width: 768px) {
  .ai-status-pill {
    display: none;
  }
  .suspect-free-ask-box {
    padding: 8px;
  }
  .ai-ask-title {
    font-size: 0.72rem;
  }
  .suspect-ask-input {
    font-size: 16px !important; /* 防止 iOS 自动缩放 */
    padding: 6px 10px;
  }
  .suspect-ask-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}


/* ==========================================================================
   迷雾推演与逐步破案核心样式 (Fog of Investigation)
   ========================================================================== */

/* 时间线密级封存态 */
.timeline-item.timeline-locked {
  opacity: 0.65;
  filter: grayscale(0.5);
  transition: opacity 0.3s, filter 0.3s;
}

.timeline-item.timeline-locked:hover {
  opacity: 0.85;
  filter: grayscale(0.2);
}

.timeline-dot.locked {
  background: #334155 !important;
  color: #94a3b8;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: #475569 !important;
}

.timeline-card.locked-card {
  background: #0b1120 !important;
  border: 1px dashed #334155 !important;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
}

.timeline-time-badge.locked-badge {
  background: #1e293b !important;
  color: #94a3b8 !important;
  border: 1px solid #334155;
}

.timeline-lock-tip {
  font-size: 0.72rem;
  color: #f59e0b;
  font-weight: 500;
  margin-left: 8px;
}

.timeline-title-locked {
  font-size: 0.95rem;
  font-weight: bold;
  color: #64748b;
  margin: 6px 0;
  letter-spacing: 0.5px;
}

.timeline-desc-locked {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.6;
  font-style: italic;
}

/* 办案指引：新线索涌现动态样式 */
.quick-clue-chip.emerged {
  background: #0f172a;
  border: 1px solid #38bdf8;
  color: #38bdf8;
  animation: chipPulse 2s infinite ease-in-out;
}

.quick-clue-chip.emerged:hover {
  background: #0284c7;
  color: #ffffff;
}

@keyframes chipPulse {
  0% { box-shadow: 0 0 0 rgba(56, 189, 248, 0); }
  50% { box-shadow: 0 0 10px rgba(56, 189, 248, 0.6); }
  100% { box-shadow: 0 0 0 rgba(56, 189, 248, 0); }
}

/* 嫌疑人身份锁定前迷雾状态 */
.character-item.locked-suspect {
  background: #0f172a;
  border: 1px dashed #334155;
  opacity: 0.85;
}

.locked-avatar {
  background: #1e293b !important;
  color: #64748b !important;
  border: 1px dashed #475569 !important;
}

.disabled-btn {
  background: #1e293b !important;
  color: #64748b !important;
  border: 1px solid #334155 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.suspect-tag {
  display: inline-block;
  font-size: 0.68rem;
  background: #b91c1c;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}


/* ==========================================================================
   物证封存袋与主办侦查员研判大纲样式
   ========================================================================== */

/* 物证照片封存机密态 */
.photo-card.photo-locked {
  background: #0b1120 !important;
  border: 1px dashed #334155 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  cursor: not-allowed;
  transition: all 0.2s ease;
}

.photo-card.photo-locked:hover {
  border-color: #f59e0b !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.photo-locked-box {
  text-align: center;
  padding: 16px 12px;
}

.photo-lock-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
  opacity: 0.85;
}

.photo-lock-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: bold;
  background: #1e293b;
  color: #f59e0b;
  border: 1px solid #78350f;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.photo-lock-title {
  font-size: 0.85rem;
  font-weight: bold;
  color: #94a3b8;
  margin-bottom: 4px;
}

.photo-lock-hint {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.5;
}

/* 主办侦查员研判大纲卡片 */
.investigation-memo-card {
  background: linear-gradient(135deg, #0b1528 0%, #0f172a 100%);
  border: 1px solid #1e3a8a;
  border-left: 4px solid #38bdf8;
  border-radius: 6px;
  padding: 12px 14px;
  box-shadow: inset 0 0 12px rgba(15, 23, 42, 0.8);
}

.memo-title {
  font-size: 0.82rem;
  font-weight: bold;
  color: #38bdf8;
  margin-bottom: 6px;
}

.memo-content {
  font-size: 0.84rem;
  color: #e2e8f0;
  line-height: 1.65;
  margin-bottom: 6px;
}

.memo-foot {
  font-size: 0.72rem;
  color: #64748b;
  font-style: italic;
}


/* ==========================================================================
   人民检察院移送审查起诉前置法治门禁样式
   ========================================================================== */
.prosecution-gate-card {
  background: #0b1120;
  border: 1px solid #7f1d1d;
  border-left: 5px solid #dc2626;
  border-radius: 6px;
  padding: 20px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  margin-bottom: 20px;
}

.gate-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.gate-stamp {
  background: #7f1d1d;
  color: #fecaca;
  font-size: 0.72rem;
  font-weight: bold;
  padding: 2px 8px;
  border: 1px solid #ef4444;
  border-radius: 3px;
  letter-spacing: 1px;
}

.gate-title {
  font-size: 1.05rem;
  font-weight: bold;
  color: #fca5a5;
  letter-spacing: 0.5px;
}

.gate-law-quote {
  font-size: 0.82rem;
  color: #94a3b8;
  background: #020617;
  border-left: 3px solid #64748b;
  padding: 8px 12px;
  line-height: 1.6;
  margin-bottom: 16px;
  border-radius: 0 4px 4px 0;
}

.gate-check-title {
  font-size: 0.85rem;
  font-weight: bold;
  color: #e2e8f0;
  margin-bottom: 10px;
}

.gate-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.gate-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  padding: 6px 12px;
  border-radius: 4px;
}

.gate-check-item.passed {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.gate-check-item.pending {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.gate-check-item .check-icon {
  font-weight: bold;
  font-size: 0.95rem;
}

.gate-instruction {
  font-size: 0.8rem;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  padding: 10px 14px;
  border-radius: 4px;
  line-height: 1.6;
}


/* ==========================================================================
   专案侦查证据链推演脑图 (Evidence Logic Topology Board)
   ========================================================================== */
.evidence-topology-board {
  background: radial-gradient(circle at top, #0f1c3f 0%, #060b18 100%);
  border: 1px solid #1e3a8a;
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.board-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.board-tag {
  background: #1e3a8a;
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid #0284c7;
}

.board-title {
  font-size: 0.92rem;
  font-weight: bold;
  color: #f8fafc;
  letter-spacing: 0.5px;
}

.board-stages-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.stage-col {
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.stage-title {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 500;
}

.stage-card {
  border-radius: 6px;
  padding: 12px 10px;
  transition: all 0.3s ease;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.stage-card.card-dim {
  background: #0b1120;
  border: 1px dashed #334155;
  color: #64748b;
  opacity: 0.6;
}

.stage-card.card-lit {
  background: linear-gradient(135deg, #0f274a 0%, #0c1a30 100%);
  border: 1px solid #38bdf8;
  color: #e2e8f0;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.card-icon {
  font-size: 1.2rem;
}

.card-text {
  font-size: 0.78rem;
  font-weight: 600;
}

.stage-arrow {
  color: #38bdf8;
  font-size: 1.1rem;
  font-weight: bold;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .stage-arrow {
    display: none;
  }
  .stage-col {
    min-width: 45%;
    margin-bottom: 8px;
  }
}


/* ==========================================================================
   专案侦查证据链推演脑图 (Evidence Logic Topology Board)
   ========================================================================== */


/* ==========================================================================
   司法鉴定科学检验工作台与送检受控门禁 (Forensics Lab & Workbench)
   ========================================================================== */
.forensic-lab-gate {
  background: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 22px;
  color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.lab-gate-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.lab-gate-badge {
  background: #991b1b;
  color: #fef2f2;
  font-size: 0.72rem;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.lab-gate-title {
  font-size: 0.95rem;
  font-weight: bold;
  color: #f8fafc;
}

.lab-gate-law {
  background: rgba(15, 23, 42, 0.7);
  border-left: 3px solid #0284c7;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 16px;
  border-radius: 0 4px 4px 0;
}

.lab-gate-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(30, 41, 59, 0.6);
  border: 1px dashed #475569;
  border-radius: 6px;
  padding: 16px;
}

.lab-gate-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.lab-gate-info {
  flex: 1;
}

.lab-gate-target {
  font-size: 0.9rem;
  color: #38bdf8;
  margin-bottom: 6px;
}

.lab-gate-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 10px;
}

.lab-gate-action-tip {
  font-size: 0.82rem;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  line-height: 1.6;
}

/* 激活的工作台卡片 */
.forensic-workbench-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.fw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}

.fw-title {
  color: #0F3875;
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 4px;
}

.fw-meta {
  font-size: 0.75rem;
  color: #64748b;
}

.fw-action-btn {
  border: none;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fw-action-btn.active-btn {
  background: #0F3875;
  color: #ffffff;
}

.fw-action-btn.active-btn:hover {
  background: #1e40af;
}

.fw-action-btn.waiting-btn {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.fw-action-btn.waiting-btn:hover {
  background: #e2e8f0;
}

.afis-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.afis-panel {
  background: #0f172a;
  border-radius: 6px;
  padding: 14px;
  border: 1px solid #334155;
  text-align: center;
}

.panel-tag {
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.tag-blue { color: #38bdf8; }
.tag-green { color: #4ade80; }
.tag-amber { color: #fbbf24; }

.panel-img-wrap {
  background: #000;
  border-radius: 4px;
  padding: 4px;
  margin-bottom: 8px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fw-img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 2px;
}

.afis-empty-placeholder {
  padding: 30px 10px;
  color: #94a3b8;
}

.placeholder-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.placeholder-text {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 500;
}

.placeholder-sub {
  font-size: 0.72rem;
  color: #f87171;
  margin-top: 6px;
}

.panel-note {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* 鉴定意见书 */
.afis-result-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.7;
}

.afis-result-box.result-matched {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.afis-result-box.result-unmatched {
  background: #fefce8;
  border: 1px solid #fde047;
  color: #854d0e;
}

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
  padding-bottom: 6px;
}

.cert-code {
  font-size: 0.72rem;
  font-family: monospace;
  color: #64748b;
}

.cert-seal {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.seal-box {
  display: inline-block;
  padding: 4px 12px;
  border: 2px solid #dc2626;
  color: #dc2626;
  font-weight: bold;
  font-size: 0.75rem;
  border-radius: 4px;
  transform: rotate(-3deg);
}

.cert-sign {
  font-size: 0.72rem;
  color: #64748b;
}

/* 手机取证分析 */
.phone-forensics-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
}

.phone-img-card {
  text-align: center;
}

.img-sub {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 6px;
  display: block;
}

.phone-sec-viewer {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 14px;
  font-size: 0.8rem;
}

.sec-nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.phone-sec-btn {
  padding: 5px 12px;
  background: #e2e8f0;
  color: #334155;
  border: none;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.phone-sec-btn.active {
  background: #0F3875;
  color: #ffffff;
  font-weight: bold;
}

.sec-content-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 12px;
  min-height: 160px;
  line-height: 1.7;
}

.sec-alert-title {
  font-weight: bold;
  color: #0F3875;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.record-row {
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
}

.r-time {
  font-family: monospace;
  color: #64748b;
  margin-right: 6px;
}

.sms-quote-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 8px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.sec-summary-tip {
  margin-top: 10px;
  font-size: 0.75rem;
  color: #64748b;
  border-top: 1px dashed #e2e8f0;
  padding-top: 6px;
}

@media (max-width: 768px) {
  .afis-split-grid {
    grid-template-columns: 1fr;
  }
  .phone-forensics-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   执法办案区双录同步审讯室 (Professional Interrogation Room Pro)
   ========================================================================== */
.character-dialog.interrogation-room-pro {
  max-width: 680px;
  background: #0b1120;
  border: 1px solid #1e3a8a;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  color: #f1f5f9;
}

.interrogation-room-pro .character-dialog-header {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  border-bottom: 2px solid #0284c7;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-cctv-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: pulse-rec 1s infinite alternate;
}

@keyframes pulse-rec {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

.rec-title {
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: #f8fafc;
}

.header-right-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-clock {
  font-family: monospace;
  font-size: 0.75rem;
  color: #38bdf8;
  background: rgba(15, 23, 42, 0.8);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #0369a1;
}

/* CCTV & Polygraph 双录监视器面板 */
.interrogation-cctv-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
  padding: 10px 14px;
  background: #020617;
  border-bottom: 1px solid #1e293b;
}

@media (max-width: 600px) {
  .interrogation-cctv-panel {
    grid-template-columns: 1fr;
  }
}

.cctv-video-box {
  background: #000;
  border: 1px solid #334155;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.cctv-hud-top {
  display: flex;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.8);
  padding: 3px 8px;
  font-size: 0.68rem;
  color: #94a3b8;
  font-family: monospace;
  z-index: 2;
}

.cctv-screen-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  background: #050a14;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.suspect-cctv-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) brightness(0.95);
}

.cctv-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.5;
}

.cctv-hud-bottom {
  display: flex;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.85);
  padding: 4px 8px;
  font-size: 0.7rem;
  color: #e2e8f0;
  border-top: 1px solid #1e293b;
  z-index: 2;
}

.suspect-name-badge {
  font-weight: bold;
  color: #facc15;
}

.restraint-badge {
  color: #4ade80;
  font-size: 0.65rem;
}

/* 生理测谎仪表 */
.polygraph-telemetry-box {
  background: #090e1a;
  border: 1px solid #1e3a8a;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.poly-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: bold;
}

.bpm-val {
  font-family: monospace;
  color: #ef4444;
  font-weight: bold;
  font-size: 0.85rem;
  text-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.ecg-canvas-wrap {
  width: 100%;
  height: 48px;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 4px;
  margin: 4px 0;
  overflow: hidden;
}

.poly-status-row {
  display: flex;
  align-items: center;
  font-size: 0.7rem;
  margin-bottom: 4px;
}

.stress-badge {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: bold;
}

.stress-badge.calm {
  background: #14532d;
  color: #4ade80;
}

.stress-badge.tense {
  background: #713f12;
  color: #facc15;
}

.stress-badge.broken {
  background: #7f1d1d;
  color: #fca5a5;
  animation: pulse-broken 0.8s infinite alternate;
}

@keyframes pulse-broken {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

/* 讯问笔录纸张质感与水印 */
.police-transcript-paper {
  background: #080d1a !important;
  border-bottom: 1px solid #1e293b;
  position: relative;
  min-height: 220px;
  max-height: 360px;
}

.police-transcript-paper::before {
  content: "《公安机关讯问笔录》· 办案专网同步双录流水 · 严禁泄密";
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  font-size: 1.1rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 4px;
}

.character-message.user .message-text {
  background: linear-gradient(135deg, #0369a1 0%, #0f3875 100%);
  color: #f8fafc;
  border: 1px solid #38bdf8;
  border-radius: 12px 12px 2px 12px;
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.3);
}

.character-message.character .message-text {
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #475569;
  border-radius: 12px 12px 12px 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* 物证质证卡片化 */
.keyword-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.keyword-btn {
  background: #0f172a;
  border: 1px solid #0284c7;
  color: #e2e8f0;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.keyword-btn:hover:not(:disabled) {
  background: #0369a1;
  color: #fff;
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.keyword-btn.presented-stamp {
  background: #1e293b !important;
  color: #94a3b8 !important;
  border: 1px dashed #64748b !important;
  cursor: not-allowed !important;
  opacity: 0.75;
}

.keyword-btn.presented-stamp::after {
  content: " [已在卷]";
  color: #ef4444;
  font-weight: bold;
  font-size: 0.7rem;
}

/* ==========================================================================
   公安机关起诉意见书装订卷宗卡片 (真实公安刑侦红头卷宗质感)
   ========================================================================== */
.prosecution-dossier-card {
  position: relative;
  background: #fdfbf7;
  color: #1e293b;
  border: 2px solid #cbd5e1;
  border-top: 6px solid #b91c1c;
  border-radius: 8px;
  padding: 24px 28px;
  margin-top: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), inset 0 0 40px rgba(241, 245, 249, 0.6);
  font-family: 'SimSun', 'STSong', 'Microsoft YaHei', serif;
  overflow: hidden;
}

.dossier-ribbon {
  position: absolute;
  top: 12px;
  right: -30px;
  background: #15803d;
  color: #fff;
  font-size: 0.72rem;
  font-weight: bold;
  padding: 4px 32px;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
}

.dossier-head {
  text-align: center;
  border-bottom: 2px solid #b91c1c;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.dossier-national-emblem {
  font-size: 2.2rem;
  margin-bottom: 4px;
}

.dossier-main-title {
  font-size: 1.35rem;
  font-weight: bold;
  color: #b91c1c;
  letter-spacing: 2px;
  font-family: 'SimHei', 'Microsoft YaHei', sans-serif;
}

.dossier-sub-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #0f172a;
  letter-spacing: 3px;
  margin-top: 4px;
}

.dossier-number {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 6px;
  font-family: 'Microsoft YaHei', sans-serif;
}

.dossier-section {
  margin-bottom: 16px;
  text-align: left;
}

.dossier-sec-title {
  font-size: 0.95rem;
  font-weight: bold;
  color: #0F3875;
  margin-bottom: 6px;
  font-family: 'SimHei', 'Microsoft YaHei', sans-serif;
}

.dossier-sec-content {
  font-size: 0.88rem;
  line-height: 1.8;
  color: #334155;
  text-indent: 2em;
}

.dossier-clues-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 6px;
}

.dossier-tag {
  display: inline-block;
  font-size: 0.76rem;
  background: #ffffff;
  color: #0F3875;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Microsoft YaHei', sans-serif;
  font-weight: 500;
}

.dossier-footer {
  position: relative;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
}

.dossier-conclusion {
  font-size: 0.88rem;
  line-height: 1.8;
  color: #1e293b;
  text-indent: 2em;
  font-weight: 500;
  margin-bottom: 16px;
}

.dossier-signatures {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.8;
  text-align: right;
  padding-right: 40px;
  font-family: 'Microsoft YaHei', sans-serif;
}

.dossier-seal-badge {
  position: absolute;
  bottom: 0px;
  right: 25px;
  pointer-events: none;
}

.seal-circle {
  width: 96px;
  height: 96px;
  border: 3px solid #dc2626;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  font-weight: bold;
  font-size: 11px;
  transform: rotate(-15deg);
  opacity: 0.85;
  box-shadow: inset 0 0 8px rgba(220, 38, 38, 0.2);
  text-shadow: 0 0 1px rgba(220, 38, 38, 0.4);
}

/* ==========================================================================
   口供突破提取新线索气泡与徽章样式 (由供到证系统)
   ========================================================================== */
.confession-clue-pill {
  display: inline-block;
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: #f0fdf4;
  font-weight: bold;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 4px;
  margin-top: 6px;
  border: 1px solid #4ade80;
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.4);
}

.badge-confession {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: bold;
  background: #fef08a;
  color: #854d0e;
  border: 1px solid #ca8a04;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

.view-transcript-btn {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #38bdf8;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  cursor: pointer;
  margin-right: 8px;
  transition: all 0.2s ease;
}

.view-transcript-btn:hover {
  background: #0369a1;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.reset-case-btn {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.reset-case-btn:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #f87171;
}

.view-reconstruction-doc-btn {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  color: #ffffff;
  border: 1px solid #f87171;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.4);
  transition: all 0.2s;
}

.view-reconstruction-doc-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

.suspect-confession-stream {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #ef4444;
  border-left: 4px solid #dc2626;
  border-radius: 6px;
  padding: 12px 14px;
  margin-top: 6px;
}

.suspect-confession-stream .confession-speaker {
  color: #fca5a5;
  font-weight: bold;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.suspect-confession-stream .confession-quote {
  color: #f8fafc;
  font-size: 0.88rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 10px;
}

.suspect-confession-stream .confession-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   现场讯问笔录法定卷宗调阅模态框样式 (真实公安规范卷宗)
   ========================================================================== */
.transcript-modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(5px);
  z-index: 999999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.transcript-modal-mask.hidden {
  display: none !important;
}

.transcript-modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #94a3b8;
}

.transcript-modal-header {
  background: #0F3875;
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: bold;
}

.transcript-dialog-close {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 1.2rem;
  cursor: pointer;
}

.transcript-dialog-close:hover {
  color: #ffffff;
}

.transcript-modal-body {
  padding: 24px 32px;
  overflow-y: auto;
  background: #fdfbf7;
  color: #1e293b;
  font-family: 'SimSun', 'STSong', serif;
}

.transcript-paper-head {
  text-align: center;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.transcript-paper-org {
  font-size: 1.05rem;
  color: #0f172a;
  letter-spacing: 2px;
  font-weight: bold;
  font-family: 'SimHei', sans-serif;
}

.transcript-paper-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: #b91c1c;
  letter-spacing: 6px;
  margin-top: 4px;
  font-family: 'SimHei', sans-serif;
}

.transcript-meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  font-size: 0.85rem;
  border: 1px solid #94a3b8;
}

.transcript-meta-table td {
  border: 1px solid #cbd5e1;
  padding: 6px 10px;
  line-height: 1.5;
}

.transcript-notice-box {
  background: #f1f5f9;
  border: 1px dashed #64748b;
  padding: 8px 12px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 16px;
}

.transcript-qa-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.75;
}

.transcript-qa-stream .qa-q {
  color: #0f3875;
  font-weight: bold;
}

.transcript-qa-stream .qa-a {
  color: #1e293b;
  text-indent: 1.5em;
}

.transcript-paper-foot {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.transcript-hand-confirm {
  font-size: 0.85rem;
  font-style: italic;
  color: #475569;
}

.transcript-sign-area {
  position: relative;
  text-align: right;
  font-size: 0.85rem;
  line-height: 2;
  padding-right: 60px;
}

.red-thumb-print {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48px;
  height: 64px;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.85) 0%, rgba(185, 28, 28, 0.7) 70%, rgba(153, 27, 27, 0.4) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  transform: rotate(-10deg);
  opacity: 0.9;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
  text-shadow: 0 0 2px #000;
  letter-spacing: 2px;
}

/* ==========================================================================
   顶层执法讯问笔录与案情全景认定书模态框 (解决层级遮盖与无响应问题)
   ========================================================================== */
.transcript-modal-mask {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(2, 6, 23, 0.86) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 9999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.transcript-modal-mask.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.transcript-modal-dialog {
  background: #fcfbf9 !important;
  color: #1e293b !important;
  width: 95% !important;
  max-width: 880px !important;
  max-height: 90vh !important;
  border-radius: 8px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  z-index: 10000000 !important;
  animation: modalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.transcript-modal-header {
  background: #0f3875 !important;
  color: #ffffff !important;
  padding: 12px 18px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-bottom: 3px solid #b91c1c !important;
  flex-shrink: 0 !important;
}

.transcript-dialog-title {
  font-size: 1rem !important;
  font-weight: bold !important;
  letter-spacing: 1px !important;
}

.transcript-dialog-close {
  background: none !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 1.25rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  transition: background 0.15s ease !important;
}

.transcript-dialog-close:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.transcript-modal-body {
  padding: 22px 26px !important;
  overflow-y: auto !important;
  flex: 1 !important;
  font-family: 'SimSun', 'STSong', serif !important;
  line-height: 1.75 !important;
  background: #fdfdfc !important;
}





/* ==========================================================================
   全国公安特勤刑侦合成作战中枢导航条 (Special Ops Police Command Hub)
   ========================================================================== */
.police-special-ops-hub {
  background: linear-gradient(135deg, #09182b 0%, #0f2746 50%, #0d1b2a 100%);
  border-top: 1px solid #1e3a5f;
  border-bottom: 2px solid #2563eb;
  padding: 10px 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  margin-bottom: 12px;
}
.special-ops-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.special-ops-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ops-badge-icon {
  font-size: 1.2rem;
}
.ops-main-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #93c5fd;
  letter-spacing: 0.8px;
}
.ops-sub-title {
  font-size: 0.72rem;
  color: #94a3b8;
}
.special-ops-actions {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: #1e3a5f transparent;
  align-items: center;
}
.special-ops-actions::-webkit-scrollbar {
  height: 5px;
}
.special-ops-actions::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 3px;
}
.ops-hub-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 7px;
  padding: 7px 14px;
  color: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.ops-hub-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.45);
  filter: brightness(1.15);
}
.ops-hub-icon {
  font-size: 1.15rem;
}
.ops-hub-name {
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}
.ops-hub-tag {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  white-space: nowrap;
}

.hub-btn-room { background: #78350f !important; border-color: #b45309 !important; color: #fef08a !important; }
.hub-btn-autopsy { background: #0369a1 !important; border-color: #38bdf8 !important; color: #e0f2fe !important; }
.hub-btn-sketch { background: #854d0e !important; border-color: #f59e0b !important; color: #fef9c3 !important; }
.hub-btn-manhunt { background: #991b1b !important; border-color: #ef4444 !important; color: #fee2e2 !important; }
.hub-btn-bigdata { background: #0284c7 !important; border-color: #38bdf8 !important; color: #f0f9ff !important; }
.hub-btn-mobile { background: #334155 !important; border-color: #64748b !important; color: #f8fafc !important; }
.hub-btn-chronicle { background: #6b21a8 !important; border-color: #a855f7 !important; color: #faf5ff !important; }

@media (max-width: 768px) {
  .police-special-ops-hub {
    padding: 8px 10px;
  }
  .ops-main-title {
    font-size: 0.82rem;
  }
  .ops-sub-title {
    display: none;
  }
  .ops-hub-btn {
    padding: 6px 10px;
    min-height: 38px;
    gap: 6px;
  }
  .ops-hub-name {
    font-size: 0.8rem;
  }
  .ops-hub-tag {
    display: none;
  }
}

/* ==========================================================================
   绝对取消正文关键词高亮：纯正警务案卷公文墨色 (Official Docket Strict Styling)
   ========================================================================== */
.reading-prose,
.reading-prose *,
.clue-document-text,
.clue-document-text *,
.narrative-keyword,
.red-clue,
#caseDetailGrid .detail-val,
#caseDetailGrid .detail-val *,
#unlockedDetailDisplay,
#unlockedDetailDisplay *,
.reading-document,
.reading-document * {
  color: #1e293b !important;
  font-weight: 400 !important;
  background: transparent !important;
  border: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.reading-document-head h3,
.clue-document-heading h3,
.reading-document h3,
.detail-full h3 {
  font-weight: 700 !important;
  color: #0f2b48 !important;
  font-size: 1.15rem !important;
}


/* ==========================================================================
   全局浅色高质感警务系统优化 (Global Light Law-Enforcement Polish)
   ========================================================================== */

/* 1. 彻底隐藏警衔难度选择器 */
#gameDifficultySelect,
.game-difficulty-wrap,
span:has(> #gameDifficultySelect) {
  display: none !important;
}

/* 2. 次级状态栏浅色纯正质感 */
.user-info-bar {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

.user-badge {
  background: #1e3a8a !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  padding: 3px 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.police-id-btn {
  background: #ffffff !important;
  color: #1e40af !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  padding: 3px 8px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  transition: all 0.15s ease !important;
}
.police-id-btn:hover {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
}

.net-tag {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 4px !important;
  padding: 2px 8px !important;
  font-size: 11px !important;
}

.ai-status-pill {
  background: #f0fdf4 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 4px !important;
  padding: 2px 8px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.progress-indicator {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 4px !important;
  padding: 2px 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.delete-save-btn {
  background: #ffffff !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  padding: 3px 8px !important;
  font-size: 11px !important;
}
.delete-save-btn:hover {
  background: #f1f5f9 !important;
  color: #334155 !important;
}

.logout-btn {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
  border-radius: 4px !important;
  padding: 3px 8px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}
.logout-btn:hover {
  background: #fee2e2 !important;
}

/* 3. 双轨时空推演盘：强制浅色高品质公文风 */
.spatio-dial-box {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-left: 4px solid #1d4ed8 !important;
  border-radius: 8px !important;
  padding: 18px 20px !important;
  color: #1e293b !important;
  margin: 16px 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}

.spatio-dial-box h4 {
  color: #0f172a !important;
}

.spatio-dial-box small {
  color: #64748b !important;
}

/* 4. 讯问室弹窗：升级为现代化浅色执法办案大厅风格 */
.character-dialog.interrogation-room-pro {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18) !important;
  color: #1e293b !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.interrogation-room-pro .character-dialog-header {
  background: linear-gradient(90deg, #1e3a8a 0%, #1d4ed8 100%) !important;
  border-bottom: 2px solid #3b82f6 !important;
  color: #ffffff !important;
}

.interrogation-cctv-panel {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.cctv-video-box {
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
}

.polygraph-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  color: #1e293b !important;
}

.poly-hud-top {
  color: #475569 !important;
  font-weight: 600 !important;
}

.ecg-canvas-wrap {
  background: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 4px !important;
}

.police-transcript-paper {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
}

.police-transcript-paper::before {
  color: rgba(0, 0, 0, 0.035) !important;
}

.character-message.character .message-text {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px 8px 8px 2px !important;
  line-height: 1.6 !important;
}

.character-message.user .message-text {
  background: #1e40af !important;
  color: #ffffff !important;
  border-radius: 8px 8px 2px 8px !important;
  line-height: 1.6 !important;
}

.suspect-defense-bar-wrap {
  background: #f8fafc !important;
  color: #1e293b !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
}

.suspect-defense-track {
  background: #e2e8f0 !important;
  border-radius: 4px !important;
}

.character-dialog-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

.character-dialog-footer input {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
}
.character-dialog-footer input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15) !important;
}

/* 5. 划词侦查气泡与手记抽屉浅色美化 */
.reading-selection-popup {
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
}

.reading-selection-popup button {
  background: #f8fafc !important;
  color: #1e293b !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
  transition: all 0.15s ease !important;
}
.reading-selection-popup button:hover {
  background: #1e40af !important;
  border-color: #1e40af !important;
  color: #ffffff !important;
}

.notebook-floating-btn {
  background: #ffffff !important;
  color: #1e40af !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 24px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}
.notebook-floating-btn:hover {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12) !important;
}

.notebook-drawer-dialog {
  background: #ffffff !important;
}

.notebook-header {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.notebook-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #1e40af !important;
  border-radius: 6px !important;
}

/* 6. 案卷卡片与研判主工作区质感 */
.case-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
}
.case-card:hover {
  transform: translateY(-2px) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
}

.case-btn {
  background: #1e3a8a !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
  transition: background 0.15s ease !important;
}
.case-btn:hover {
  background: #1d4ed8 !important;
}

.info-sidebar {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

.side-title {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

.nav-sidebar {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
}

.nav-item.active {
  background: #ffffff !important;
  color: #1e40af !important;
  border-bottom: 3px solid #1e40af !important;
  font-weight: 700 !important;
}

.case-detail-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}


/* ==========================================================================
   刑侦档案馆 · 五大维度硬核质感升华体系 (5-Dimension Immersion & Texture)
   ========================================================================== */

/* -------------------------------------------------------------
 * 维度一：真实纸张纤维微肌理与装订孔 (Tactile Dossier Paper)
 * ------------------------------------------------------------- */
.case-detail-card,
.reading-document,
.field-order,
.clue-document,
.timeline-card {
  background-color: #fdfbf7 !important;
  background-image: 
    radial-gradient(#e5dec9 0.75px, transparent 0.75px),
    radial-gradient(#eae4d5 0.75px, #fdfbf7 0.75px) !important;
  background-size: 28px 28px !important;
  background-position: 0 0, 14px 14px !important;
  border: 1px solid #ded5c2 !important;
  box-shadow: 0 3px 14px rgba(45, 30, 15, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  border-radius: 6px !important;
  position: relative !important;
}

/* 案卷左侧防伪穿线装订孔 */
.case-detail-card::before,
.reading-document::before {
  content: "" !important;
  position: absolute !important;
  left: 10px !important;
  top: 30px !important;
  bottom: 30px !important;
  width: 8px !important;
  background: 
    radial-gradient(circle at 4px 12px, #cec3ad 3px, transparent 3.5px),
    radial-gradient(circle at 4px 50%, #cec3ad 3px, transparent 3.5px),
    radial-gradient(circle at 4px calc(100% - 12px), #cec3ad 3px, transparent 3.5px) !important;
  pointer-events: none !important;
  opacity: 0.65 !important;
}

/* 公安机关红头文件规范双横线 (Official Red Header Rule) */
.doc-official-title {
  border-bottom: 3px double #b91c1c !important;
  padding-bottom: 8px !important;
  margin-bottom: 16px !important;
  color: #991b1b !important;
  font-family: "SimSun", "Songti SC", serif !important;
  letter-spacing: 2px !important;
  font-weight: 700 !important;
}

/* 严肃仿宋/楷体公文正文阅读排版 */
.reading-prose,
.clue-document-text,
#caseDetailGrid .detail-val,
.detail-value {
  font-family: "FangSong", "STFangsong", "SimSun", "Songti SC", serif !important;
  font-size: 15.5px !important;
  line-height: 2 !important;
  color: #1e293b !important;
  letter-spacing: 0.4px !important;
  text-align: justify !important;
}

/* -------------------------------------------------------------
 * 维度二：鲜红公章与物证袋封签 (Official Seal & Evidence Bag)
 * ------------------------------------------------------------- */
.official-seal-stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #b91c1c;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  color: #b91c1c;
  font-family: "SimSun", "Songti SC", serif;
  font-weight: 900;
  transform: rotate(-14deg);
  user-select: none;
  box-shadow: inset 0 0 6px rgba(185, 28, 28, 0.2);
  opacity: 0.88;
  position: relative;
  background: rgba(254, 242, 242, 0.4);
}
.official-seal-stamp::before {
  content: "★";
  font-size: 18px;
  color: #b91c1c;
  line-height: 1;
}
.official-seal-stamp .seal-org {
  font-size: 10px;
  letter-spacing: 1px;
}
.official-seal-stamp .seal-action {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: bold;
}

/* 物证袋专用封存标签条 (Evidence Bag Tag) */
.evidence-seal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 3px solid #1e40af;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  color: #334155;
  font-family: monospace;
  margin-bottom: 10px;
}
.evidence-seal-barcode {
  display: inline-block;
  height: 12px;
  width: 42px;
  background: repeating-linear-gradient(90deg, #1e293b, #1e293b 1.5px, transparent 1.5px, transparent 3.5px, #1e293b 3.5px, #1e293b 5px, transparent 5px, transparent 6.5px);
  opacity: 0.75;
  vertical-align: middle;
}

/* 刑事摄影照片洗印相纸质感与回形针 */
.sourced-photo,
.reading-photo,
.evidence-photo-card {
  background: #ffffff !important;
  border: 1px solid #ded6c6 !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04) !important;
  border-radius: 4px !important;
  padding: 8px 8px 12px !important;
  position: relative !important;
}
.sourced-photo::after,
.reading-photo::after,
.evidence-photo-card::after {
  content: "📎" !important;
  position: absolute !important;
  top: -8px !important;
  left: 14px !important;
  font-size: 18px !important;
  transform: rotate(-25deg) !important;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.18)) !important;
  pointer-events: none !important;
}

/* -------------------------------------------------------------
 * 维度三：黄色侦查手记便签纸与胶带 (Sticky Notes & Washi Tape)
 * ------------------------------------------------------------- */
.notebook-card {
  background: #fefce8 !important;
  border: 1px solid #fef08a !important;
  border-left: 4px solid #eab308 !important;
  box-shadow: 0 3px 10px rgba(161, 98, 7, 0.08) !important;
  border-radius: 6px !important;
  padding: 12px 14px !important;
  position: relative !important;
}
.notebook-card::before {
  content: "" !important;
  position: absolute !important;
  top: -5px !important;
  left: 42% !important;
  width: 38px !important;
  height: 11px !important;
  background: rgba(254, 240, 138, 0.75) !important;
  border: 1px dashed rgba(202, 138, 4, 0.3) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06) !important;
  transform: rotate(-2.5deg) !important;
}
.notebook-card-text {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: 13.5px !important;
  line-height: 1.65 !important;
  color: #1e293b !important;
}

/* -------------------------------------------------------------
 * 维度四：刑事诉讼法办案流程阶梯导航 (Judicial Pipeline Tracker)
 * ------------------------------------------------------------- */
.judicial-pipeline-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  overflow-x: auto;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.judicial-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  font-weight: 500;
  transition: all 0.2s ease;
}
.judicial-step.active {
  background: #eff6ff;
  color: #1e40af;
  font-weight: 700;
  border: 1px solid #bfdbfe;
}
.judicial-step.done {
  color: #15803d;
  font-weight: 600;
}
.judicial-step.done::after {
  content: "✓";
  font-size: 11px;
  color: #15803d;
}
.judicial-arrow {
  color: #cbd5e1;
  font-size: 10px;
}

/* -------------------------------------------------------------
 * 维度五：警务工作证挂牌徽章 (Police ID Hanging Badge)
 * ------------------------------------------------------------- */
.user-badge {
  background: linear-gradient(135deg, #1e3a8a, #172554) !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  padding: 3px 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 2px 5px rgba(30, 58, 138, 0.25) !important;
  border: 1px solid #3b82f6 !important;
}
