/* ===== 医鉴 v3.10 — 专业医疗浅色主题 ===== */
:root {
  --bg-page: #f0f4f8;
  --bg-card: #ffffff;
  --bg-panel: #f7fafc;
  --bg-hover: #eef2f7;
  --sidebar-bg: #1e3a5f;
  --sidebar-hover: #2a4e7c;
  --sidebar-active: #3b82f6;
  --sidebar-text: rgba(255,255,255,0.75);
  --sidebar-text-active: #ffffff;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-soft: #eff6ff;
  --success: #059669;
  --success-soft: #ecfdf5;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --info: #0891b2;
  --info-soft: #ecfeff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-focus: #3b82f6;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
  --card-bg: #ffffff;
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --primary: #2563eb;
  --primary-light: #eff6ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 14px;
  overflow: hidden;
}

.hidden { display: none !important; }
.page { width: 100%; height: 100vh; }
.page.active { display: flex; }

/* ===== 医鉴首页 (Landing Page) v5.78 ===== */
.landing-bg {
  position: relative; width: 100%; min-height: 100vh;
  background: linear-gradient(135deg, #060d1a 0%, #0a1628 40%, #0d1f35 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.landing-bg .bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
/* 装饰光圈 */
.landing-bg::before {
  content: '';
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
  top: -150px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.landing-bg::after {
  content: '';
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  pointer-events: none;
}

.landing-hero {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 32px;
  animation: landingFadeIn 0.8s cubic-bezier(0.16,1,0.3,1);
}
@keyframes landingFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing-logo {
  width: 100px; height: 100px;
  margin-bottom: 32px;
  filter: drop-shadow(0 0 40px rgba(6,182,212,0.25));
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.landing-logo svg { width: 100%; height: 100%; display: block; }

.landing-title {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 16px 0;
}
.landing-title-main {
  font-size: 48px; font-weight: 900; color: #fff;
  letter-spacing: 12px;
  text-shadow: 0 0 40px rgba(6,182,212,0.3);
}
.landing-title-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #06b6d4, #0d9488);
  border-radius: 8px;
  font-size: 14px; font-weight: 800; color: #fff;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(6,182,212,0.35);
  margin-top: 8px;
}

.landing-tagline {
  font-size: 16px; color: rgba(255,255,255,0.5);
  margin: 0 0 36px 0; letter-spacing: 1px;
}

.landing-features-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 40px; justify-content: center;
}
.landing-feat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  background: rgba(6,182,212,0.06);
  border: 1px solid rgba(6,182,212,0.15);
  border-radius: 20px;
  font-size: 13px; color: rgba(255,255,255,0.65);
  transition: all 0.25s;
}
.landing-feat-pill:hover {
  background: rgba(6,182,212,0.12);
  border-color: rgba(6,182,212,0.35);
  color: #fff;
}

.landing-enter-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 48px;
  background: linear-gradient(135deg, #06b6d4, #0d9488);
  border: none; border-radius: 14px;
  font-size: 18px; font-weight: 700; color: #fff;
  letter-spacing: 4px; cursor: pointer;
  box-shadow: 0 8px 32px rgba(6,182,212,0.3), 0 2px 8px rgba(6,182,212,0.15);
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.landing-enter-btn::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.6s;
}
.landing-enter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(6,182,212,0.4), 0 4px 12px rgba(6,182,212,0.2);
}
.landing-enter-btn:hover::before { left: 100%; }
.landing-enter-btn:active { transform: translateY(0); }

.landing-version {
  margin-top: 32px; font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 2px;
}

/* 首页响应式 */
@media (max-width: 768px) {
  .landing-title-main { font-size: 36px; letter-spacing: 8px; }
  .landing-title-badge { width: 30px; height: 30px; font-size: 12px; margin-top: 4px; }
  .landing-tagline { font-size: 14px; margin-bottom: 28px; }
  .landing-logo { width: 80px; height: 80px; margin-bottom: 24px; }
  .landing-features-row { gap: 8px; margin-bottom: 32px; }
  .landing-feat-pill { padding: 6px 14px; font-size: 12px; }
  .landing-enter-btn { padding: 14px 36px; font-size: 16px; letter-spacing: 2px; }
}

/* ===== 登录页 — 医学科技感深色主题 v2.0 ===== */
.login-bg {
  width: 100%; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #060d1a 0%, #0a1628 30%, #0d1f3c 60%, #0f2a4d 100%);
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
/* 背景动态光圈 */
.login-bg::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, rgba(6,182,212,0.04) 40%, transparent 70%);
  top: -200px; left: -200px;
  animation: bgPulse 8s ease-in-out infinite;
  pointer-events: none;
}
.login-bg::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.10) 0%, rgba(99,102,241,0.03) 40%, transparent 70%);
  bottom: -150px; right: -150px;
  animation: bgPulse 10s ease-in-out infinite reverse;
  pointer-events: none;
}
@keyframes bgPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}
/* 网格线装饰 */
.bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(6,182,212,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* 主卡片：玻璃拟态 */
.login-card-v2 {
  width: 100%; max-width: 1060px;
  min-height: 620px;
  display: flex;
  border-radius: 24px;
  overflow: hidden;
  position: relative; z-index: 2;
  box-shadow:
    0 0 0 1px rgba(6,182,212,0.15),
    0 0 60px rgba(6,182,212,0.06),
    0 32px 80px rgba(0,0,0,0.5);
  animation: cardIn 0.7s cubic-bezier(0.16,1,0.3,1);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 左侧品牌面板 */
.login-brand {
  flex: 0 0 420px;
  background: linear-gradient(160deg, #0a1628 0%, #0d2040 40%, #0a2d4d 70%, #073d5a 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 64px 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* 品牌面板装饰点 */
.login-brand::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(6,182,212,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
/* 青绿顶部光晕 */
.login-brand::after {
  content: '';
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.login-brand .brand-glow-bottom {
  position: absolute;
  width: 250px; height: 250px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  bottom: -100px; right: -60px;
  pointer-events: none;
}

.brand-top {
  display: flex; flex-direction: column; align-items: center;
  gap: 28px; margin-bottom: 50px;
  position: relative; z-index: 1;
}
.brand-icon {
  width: 88px; height: 88px;
  background: rgba(168,85,247,0.08);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(168,85,247,0.25);
  box-shadow: 0 0 30px rgba(168,85,247,0.12), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.3s ease;
  position: relative;
}
.brand-icon::before {
  content: '';
  position: absolute; inset: -1px; border-radius: 25px;
  background: linear-gradient(135deg, rgba(168,85,247,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.brand-icon:hover { transform: scale(1.05); }
.brand-icon svg { width: 46px; height: 46px; display: block; position: relative; z-index: 1; }
.brand-title {
  font-size: 30px; font-weight: 800; color: #fff;
  letter-spacing: -0.5px; line-height: 1.3; text-align: center;
  text-shadow: 0 2px 20px rgba(6,182,212,0.2);
}
.brand-title-sup {
  display: inline-block; vertical-align: super;
  font-size: 12px; font-weight: 700; color: #06b6d4;
  background: rgba(6,182,212,0.12);
  padding: 2px 6px; border-radius: 4px;
  margin-left: 6px; letter-spacing: 0.5px;
}
.brand-sub {
  font-size: 13.5px; color: rgba(255,255,255,0.45);
  line-height: 1.7; text-align: center; max-width: 280px;
}

/* 功能特性列表 */
.brand-features {
  display: flex; flex-direction: column; gap: 16px;
  position: relative; z-index: 1; width: 100%;
}
.brand-feat {
  display: flex; align-items: center; gap: 14px;
  font-size: 13.5px; color: rgba(255,255,255,0.7);
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.2s;
}
.brand-feat:hover {
  background: rgba(6,182,212,0.06);
  border-color: rgba(6,182,212,0.15);
  color: rgba(255,255,255,0.9);
}
.brand-feat .feat-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, rgba(6,182,212,0.25) 0%, rgba(6,182,212,0.1) 100%);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 13px;
}

/* 统计数字 */
.brand-stats {
  display: flex; gap: 32px;
  position: relative; z-index: 1;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  width: 100%; justify-content: center;
}
.stat-item { text-align: center; }
.stat-num { font-size: 22px; font-weight: 700; color: #22d3ee; letter-spacing: -0.5px; }
.stat-label { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 2px; }

.brand-version {
  margin-top: 44px; font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 1.5px; position: relative; z-index: 1;
  text-transform: uppercase;
}

/* 右侧表单面板 */
.login-form-col {
  flex: 1; display: flex; flex-direction: column;
  background: #0d1a2e; min-width: 0;
  position: relative;
}
/* 顶部彩带 */
.login-form-col::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #06b6d4 0%, #6366f1 50%, #8b5cf6 100%);
}
.form-card {
  padding: 52px 56px 44px;
  display: flex; flex-direction: column;
  justify-content: center; flex: 1;
}

.form-header { margin-bottom: 36px; }
.form-header h2 {
  font-size: 26px; font-weight: 700; color: #f0f9ff;
  letter-spacing: -0.5px; margin: 0 0 8px;
}
.form-header p {
  font-size: 14px; color: rgba(255,255,255,0.3); margin: 0;
}

/* 表单 */
.login-form-v2 { margin: 0; }
.form-group-v2 { margin-bottom: 18px; position: relative; }
.form-group-v2 label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px; letter-spacing: 0.5px; text-transform: uppercase;
}
.form-group-v2 .input-wrapper { position: relative; }
.form-group-v2 .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 1;
}
.form-group-v2 .input-icon svg { width: 18px; height: 18px; display: block; }
.form-group-v2 input {
  width: 100%; padding: 13px 16px 13px 44px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #e2f0ff; font-size: 14.5px;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}
.form-group-v2 input::placeholder { color: rgba(255,255,255,0.2); font-size: 14px; }
.form-group-v2 input:focus {
  border-color: #06b6d4;
  background: rgba(6,182,212,0.05);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.1);
  color: #fff;
}
.form-group-v2 input:hover:not(:focus) {
  border-color: rgba(255,255,255,0.15);
}

/* 登录按钮 */
.btn-login-v2 {
  width: 100%; padding: 15px; margin-top: 8px;
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 50%, #06b6d4 100%);
  border: none; border-radius: 12px;
  color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  -webkit-appearance: none;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 20px rgba(6,182,212,0.25);
  letter-spacing: 0.5px;
}
.btn-login-v2::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s;
}
.btn-login-v2:hover::before { left: 100%; }
.btn-login-v2 > svg { flex-shrink: 0; }
.btn-login-v2:hover {
  background: linear-gradient(135deg, #0e7490 0%, #06b6d4 100%);
  box-shadow: 0 6px 28px rgba(6,182,212,0.4);
  transform: translateY(-1px);
}
.btn-login-v2:active { transform: translateY(0); box-shadow: none; }

/* 错误提示 */
.login-error-v2 {
  color: #fca5a5; font-size: 13px; margin-top: 12px;
  padding: 12px 16px; background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2); border-radius: 10px;
  display: flex; align-items: center; gap: 8px; line-height: 1.5;
}
.login-error-v2 .err-icon-svg { flex-shrink: 0; width: 16px; height: 16px; }

/* 链接 */
.login-links-v2 {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-pack: justify; -webkit-justify-content: space-between; justify-content: space-between;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  margin-top: 22px; font-size: 13px;
}
.login-links-v2 a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color .15s; font-weight: 500; }
.login-links-v2 a:hover { color: #22d3ee; }
.link-register { color: #22d3ee !important; font-weight: 600; }

/* 注册积分提示 */
.register-points-hint {
  background: rgba(6,182,212,0.06);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 16px;
  font-size: 13px; color: #67e8f9; text-align: center; line-height: 1.6;
}
.register-points-hint strong { color: #22d3ee; font-weight: 700; }

/* 注册警告提示 */
.reg-warning {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 16px;
  font-size: 12px; color: #fcd34d; line-height: 1.6;
}

/* 注册页管理员联系方式 */
.register-contact-info {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 12px 16px;
  background: rgba(245,158,11,0.05);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 10px; font-size: 13px;
}
.register-contact-info .contact-icon { flex-shrink: 0; display: flex; align-items: center; }
.register-contact-info .contact-text { color: #fbbf24; font-weight: 500; white-space: nowrap; }
.register-contact-info .contact-detail { color: #f59e0b; font-weight: 600; word-break: break-all; }

/* 个人收款码上传预览 */
.qr-upload-preview {
  width: 100%; height: 140px;
  background: rgba(255,255,255,0.03); border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.qr-upload-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }

.reg-fields { display: none; }
.reg-fields.active { display: block; }

/* 免责声明 */
.login-disclaimer-v2 {
  padding: 20px 56px 32px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.disclaimer-title {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.2);
  margin-bottom: 10px; letter-spacing: 0.3px;
  display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none;
}
.disclaimer-title .disc-arrow {
  width: 14px; height: 14px; transition: transform 0.2s; color: rgba(255,255,255,0.2);
}
.disclaimer-title .disc-arrow.open { transform: rotate(180deg); }
.disclaimer-list {
  list-style: none; padding: 0; margin: 0;
  font-size: 11.5px; color: rgba(255,255,255,0.18); line-height: 1.9;
}
.disclaimer-list li { position: relative; padding-left: 12px; }
.disclaimer-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: rgba(6,182,212,0.3); }

/* 医院下拉 */
.hospital-dropdown {
  position: absolute; z-index: 100;
  background: #0d1a33; border: 1px solid rgba(6,182,212,0.35);
  border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  max-height: 260px; overflow-y: auto; width: 100%;
  margin-top: 4px;
}
/* 滚动条 */
.hospital-dropdown::-webkit-scrollbar { width: 5px; }
.hospital-dropdown::-webkit-scrollbar-track { background: transparent; }
.hospital-dropdown::-webkit-scrollbar-thumb { background: rgba(6,182,212,0.25); border-radius: 10px; }
/* 下拉项 - JS生成 class=hospital-dropdown-item */
.hospital-dropdown .hospital-dropdown-item {
  padding: 12px 16px; cursor: pointer; font-size: 13.5px; color: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.06); transition: background .15s, color .15s;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.hospital-dropdown .hospital-dropdown-item:hover,
.hospital-dropdown .hospital-dropdown-item.active {
  background: rgba(6,182,212,0.15); color: #fff;
}
.hospital-dropdown .hospital-dropdown-item .province-tag {
  font-size: 11px; color: rgba(6,182,212,0.7); flex-shrink: 0;
  background: rgba(6,182,212,0.08); padding: 2px 8px; border-radius: 4px;
  white-space: nowrap;
}
/* 空结果 */
.hospital-dropdown .hospital-dropdown-empty {
  padding: 18px 16px; text-align: center; font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.hospital-select-wrap { position: relative; }

/* 省份城市选择 */
.province-city-row { display: flex; gap: 10px; }
.province-city-row select { flex: 1; }
.form-select-v2 {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid #334155; background: #1e293b; color: #e2e8f0;
  font-size: 14px; outline: none; transition: .25s; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.form-select-v2:focus { border-color: #06b6d4; box-shadow: 0 0 0 3px rgba(6,182,212,.15); }
.form-select-v2:disabled { opacity: .5; cursor: not-allowed; }

/* ===== 响应式 ===== */
@media(max-width: 900px) {
  .login-bg {
    padding: 20px;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .login-card-v2 {
    flex-direction: column; max-width: 480px; min-height: auto;
    overflow: visible;
  }
  .login-brand {
    flex: none; padding: 44px 32px 36px;
    border-radius: 24px 24px 0 0;
  }
  .brand-top { margin-bottom: 32px; gap: 20px; }
  .brand-icon { width: 70px; height: 70px; border-radius: 18px; }
  .brand-icon svg { width: 38px; height: 38px; }
  .brand-title { font-size: 24px; }
  .brand-sub { font-size: 13px; }
  .brand-features { display: none; }
  .brand-stats { display: none; }
  .brand-version { margin-top: 32px; }
  .login-form-col { overflow: visible; flex: none; }
  .form-card { padding: 36px 28px 32px; min-height: auto; }
  .login-disclaimer-v2 { padding: 16px 28px 28px; border-radius: 0 0 24px 24px; }
}
@media(max-width: 480px) {
  .login-bg { padding: 0; align-items: flex-start; }
  .login-card-v2 {
    border-radius: 0; min-height: 100vh;
    overflow: visible; flex-direction: column;
  }
  .login-brand { border-radius: 0; padding: 36px 20px 28px; }
  .form-card { padding: 28px 20px 24px; min-height: auto; }
  .form-header h2 { font-size: 20px; }
  .login-disclaimer-v2 { padding: 14px 20px 24px; border-radius: 0; }
  .btn-login-v2 { padding: 16px 15px; font-size: 16px; }
}

/* ===== 主布局 ===== */
#main-page { display: flex; }
.sidebar {
  width: 240px; height: 100vh; overflow-y: auto; flex-shrink: 0;
  background: var(--sidebar-bg);
  display: flex; flex-direction: column;
  transition: width var(--transition), transform 0.3s ease;
  position: relative; z-index: 10;
}
.sidebar.collapsed { width: 64px; }
/* 折叠态：仅显示图标，隐藏所有文字 */
.sidebar.collapsed .sidebar-logo { padding: 20px 16px; justify-content: center; }
.sidebar.collapsed .sidebar-logo-text { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 10px 0; margin: 2px 8px; position: relative; }
.sidebar.collapsed .nav-label { display: none; }
.sidebar.collapsed .nav-section { display: none; }
.sidebar.collapsed .sidebar-footer { padding: 14px 8px; text-align: center; }
.sidebar.collapsed .user-detail { display: none; }
.sidebar.collapsed .user-info { justify-content: center; margin-bottom: 8px; }
.sidebar.collapsed .btn-share-sidebar { width: auto; padding: 6px; font-size: 0; border-radius: 7px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); cursor: pointer; transition: var(--transition); margin-bottom: 6px; }
.sidebar.collapsed .btn-share-sidebar:hover { background: rgba(59,130,246,0.25); border-color: rgba(59,130,246,0.4); color: #93c5fd; }
.sidebar.collapsed .btn-share-sidebar svg { width: 18px; height: 18px; }
.sidebar.collapsed .btn-logout { width: auto; padding: 6px 8px; font-size: 0; border-radius: 7px; }
.sidebar.collapsed .btn-logout::after { content: "🚪"; font-size: 16px; line-height: 1; }
/* 折叠态悬停提示 */
.sidebar.collapsed .nav-item:hover::after {
  content: attr(data-label);
  position: absolute; left: 68px; top: 50%; transform: translateY(-50%);
  background: #1e293b; color: #fff; padding: 6px 10px; border-radius: 6px;
  font-size: 12px; white-space: nowrap; z-index: 100; pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 侧边栏遮罩层（移动端弹出时显示） */
.sidebar-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 1998;
  animation: fadeIn 0.25s ease;
}
.sidebar-overlay.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* body 侧边栏打开时，阻止背景内容响应点击 */
body.sidebar-open { overflow: hidden; }

.sidebar-logo {
  padding: 20px 16px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo-icon { width: 32px; height: 32px; flex-shrink: 0; }
.sidebar-logo-text { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; color: #fff; }

.nav-menu { flex: 1; padding: 12px 0; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  cursor: pointer; border-radius: 8px; margin: 2px 8px;
  transition: var(--transition); color: var(--sidebar-text);
  white-space: nowrap; overflow: hidden;
}
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active {
  background: var(--sidebar-active);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59,130,246,0.4);
}
.nav-icon { font-size: 16px; flex-shrink: 0; width: 24px; text-align: center; }
.nav-label { font-size: 13px; font-weight: 500; }
.nav-section { padding: 10px 16px 4px; font-size: 10px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 1px; }

.sidebar-footer { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.user-info { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--sidebar-active); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; color: #fff; }
.user-name { font-size: 13px; font-weight: 600; color: #fff; }
.user-role { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 1px; }
.btn-logout { width: 100%; padding: 7px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); border-radius: 7px; cursor: pointer; font-size: 12px; transition: var(--transition); }
.btn-logout:hover { background: rgba(220,38,38,0.25); border-color: rgba(220,38,38,0.4); color: #fca5a5; }

/* ===== 顶栏 ===== */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; position: relative; }
.topbar {
  height: 58px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.sidebar-toggle { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; padding: 6px 8px; border-radius: 6px; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.sidebar-toggle:hover { color: var(--text-primary); background: var(--bg-hover); }
.sidebar-toggle svg { display: block; }
.breadcrumb { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.token-badge {
  display: flex; align-items: center; gap: 6px; padding: 6px 14px;
  background: var(--accent-soft); border: 1px solid #bfdbfe;
  border-radius: 20px; font-size: 12px; color: var(--accent); font-weight: 600;
}
.token-icon { font-size: 13px; }
.time-display { font-size: 12px; color: var(--text-muted); font-family: "SFMono-Regular", Consolas, monospace; }

/* ===== 页面内容区 ===== */
.page-content { flex: 1; overflow-y: auto; padding: 24px; }

/* ===== 卡片 ===== */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.glass-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 15px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.card-body { padding: 20px; }

/* ===== 统计卡片 ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 28px; }
.stat-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 22px;
  position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-sm);
}
.stat-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.10); transform: translateY(-3px); border-color: #bfdbfe; }
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), #6366f1);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.stat-card.type-success::before { background: linear-gradient(90deg, #10b981, #34d399); }
.stat-card.type-warning::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat-card.type-danger::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.stat-card.type-info::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.stat-card.type-purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.stat-card.type-teal::before { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; font-weight: 600; letter-spacing: 0.3px; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--text-primary); letter-spacing: -1.5px; line-height: 1.1; }
.stat-value.success { color: #059669; }
.stat-value.warning { color: #d97706; }
.stat-value.danger { color: #dc2626; }
.stat-value.info { color: #4f46e5; }
.stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.stat-sub .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.stat-sub .dot.green { background: #10b981; }
.stat-sub .dot.red { background: #ef4444; }
.stat-sub .dot.yellow { background: #f59e0b; }
.stat-trend { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.stat-icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 42px; opacity: 0.06; }
.stat-card.clickable { cursor: pointer; }
.stat-card.clickable:hover { border-color: var(--accent); box-shadow: 0 8px 30px rgba(37,99,235,0.15); }
.stat-card.clickable:active { transform: scale(0.98); }

.stat-card-inner { display: flex; flex-direction: column; height: 100%; }
.stat-card-row { display: flex; align-items: center; gap: 8px; }

/* 双数字并列 */
.stat-dual { display: flex; gap: 20px; align-items: baseline; }
.stat-dual-item { display: flex; flex-direction: column; }
.stat-dual-item .stat-value { font-size: 24px; }
.stat-dual-item .stat-label { font-size: 11px; margin-bottom: 4px; }

/* ===== 图表区 ===== */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
.chart-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.chart-title { font-size: 14px; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.chart-container { height: 200px; position: relative; }
.chart-card-full { grid-column: 1 / -1; }

/* 增强趋势图 */
.trend-chart-wrap { margin-top: 12px; position: relative; }
.trend-chart-wrap canvas { width: 100% !important; border-radius: 8px; }

/* 医院排行卡片增强 */
.ranking-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; margin-bottom: 6px; transition: background 0.2s; }
.ranking-item:hover { background: var(--bg-hover); }
.ranking-item .rank-num { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
.ranking-item .rank-num.gold { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.ranking-item .rank-num.silver { background: linear-gradient(135deg, #94a3b8, #cbd5e1); }
.ranking-item .rank-num.bronze { background: linear-gradient(135deg, #d97706, #f59e0b); }
.ranking-item .rank-num.normal { background: #94a3b8; }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  background: #f8fafc; padding: 11px 14px;
  text-align: left; font-weight: 600;
  color: var(--text-secondary); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}
tbody td { padding: 12px 14px; border-bottom: 1px solid #f3f4f6; color: var(--text-primary); }
tbody tr:hover { background: var(--bg-hover); }
tbody tr:last-child td { border-bottom: none; }

/* 选中行高亮 */
tr.row-selected { background: rgba(37,99,235,0.06) !important; }
tr.row-selected:hover { background: rgba(37,99,235,0.1) !important; }

/* 表格内复选框 */
table input[type="checkbox"] {
  width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent);
}

/* ===== 风险标签 ===== */
.risk-badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; display: inline-block; }
.risk-high { background: var(--danger-soft); color: var(--danger); border: 1px solid #fecaca; }
.risk-mid { background: var(--warning-soft); color: var(--warning); border: 1px solid #fde68a; }
.risk-low { background: var(--info-soft); color: var(--info); border: 1px solid #a5f3fc; }
.risk-pass { background: var(--success-soft); color: var(--success); border: 1px solid #6ee7b7; }

/* ===== 政策解读页 ===== */
.policy-doc-item:hover { background: rgba(6,182,212,0.04) !important; border-color: rgba(6,182,212,0.15) !important; }
#policy-doc-list::-webkit-scrollbar { width: 4px; }
#policy-doc-list::-webkit-scrollbar-thumb { background: rgba(6,182,212,0.15); border-radius: 4px; }
#policy-chat-msgs::-webkit-scrollbar { width: 4px; }
#policy-chat-msgs::-webkit-scrollbar-thumb { background: rgba(6,182,212,0.15); border-radius: 4px; }

/* ===== 理疗单时间验证 ===== */
.physio-time-alert {
  padding: 8px 12px; border-radius: 6px; font-size: 12px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.physio-time-alert-danger {
  background: rgba(220,38,38,0.06); border: 1px solid rgba(220,38,38,0.2);
  color: var(--danger);
}
.physio-time-alert-warning {
  background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.2);
  color: var(--warning);
}
.physio-time-alert-info {
  background: rgba(37,99,235,0.04); border: 1px solid rgba(37,99,235,0.1);
  color: var(--info);
}
.physio-time-grid {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px;
  font-size: 13px;
}
.physio-time-grid > span:nth-child(odd) {
  color: var(--text-muted); white-space: nowrap;
}

/* ===== 上传区 ===== */
.upload-zone {
  border: 2px dashed #d1d5db; border-radius: var(--radius-lg); padding: 40px;
  text-align: center; cursor: pointer; transition: var(--transition);
  background: #fafafa;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.upload-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.45; }
.upload-text { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.upload-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ===== 辅助检查结果 ===== */
.check-result { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-top: 20px; box-shadow: var(--shadow-sm); }
.result-header { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.result-header.pass { background: var(--success-soft); border-bottom: 1px solid #6ee7b7; }
.result-header.low { background: var(--info-soft); border-bottom: 1px solid #a5f3fc; }
.result-header.mid { background: var(--warning-soft); border-bottom: 1px solid #fde68a; }
.result-header.high { background: var(--danger-soft); border-bottom: 1px solid #fecaca; }
.result-score { font-size: 28px; font-weight: 800; }
.result-body { padding: 20px; background: #fff; }
.issue-item { padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; border-left: 3px solid; }
.issue-high { background: #fff5f5; border-color: var(--danger); }
.issue-mid { background: #fffcf0; border-color: var(--warning); }
.issue-low { background: #f0f9ff; border-color: var(--info); }
.issue-rule { font-size: 11px; color: var(--text-muted); margin-bottom: 3px; }
.issue-problem { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.suggestion-list { list-style: none; }
.suggestion-list li { padding: 6px 0; font-size: 13px; color: var(--text-secondary); display: flex; gap: 8px; }
.suggestion-list li::before { content: '→'; color: var(--accent); flex-shrink: 0; }

/* ===== 规则库 ===== */
.rule-badge { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.rule-national { background: var(--info-soft); color: var(--info); border: 1px solid #a5f3fc; }
.rule-beijing { background: var(--accent-soft); color: var(--accent); border: 1px solid #bfdbfe; }
.rule-custom { background: var(--warning-soft); color: var(--warning); border: 1px solid #fde68a; }

/* ===== 表单 ===== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.single { grid-template-columns: 1fr; }
.form-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; display: block; font-weight: 500; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 9px 12px;
  background: #f9fafb; border: 1.5px solid var(--border);
  border-radius: 7px; color: var(--text-primary); font-size: 13px;
  transition: var(--transition); outline: none; font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-focus); background: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-select option { background: #fff; color: var(--text-primary); }

/* ===== 分页 ===== */
.pagination { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 20px; }
.page-btn { padding: 6px 12px; border: 1.5px solid var(--border); background: #fff; color: var(--text-secondary); border-radius: 6px; cursor: pointer; transition: var(--transition); font-size: 13px; }
.page-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.page-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

/* ===== 弹窗 ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-box { background: #fff; border: 1px solid var(--border); border-radius: 16px; width: 500px; max-width: 92vw; max-height: 85vh; display: flex; flex-direction: column; animation: popIn .22s; box-shadow: var(--shadow-md); }
@keyframes popIn { from{opacity:0;transform:scale(0.94)} to{opacity:1;transform:scale(1)} }
.modal-header { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 15px; color: var(--text-primary); }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; padding: 4px; border-radius: 4px; transition: var(--transition); }
.modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; background: #fafafa; border-radius: 0 0 16px 16px; }

/* ===== 法律免责声明弹窗 ===== */
.legal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px); display: flex; align-items: center;
  justify-content: center; z-index: 10000;
  animation: legalFadeIn .35s;
}
@keyframes legalFadeIn { from{opacity:0} to{opacity:1} }
.legal-box {
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; width: 700px; max-width: 94vw;
  max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  animation: legalSlideUp .4s cubic-bezier(0.16,1,0.3,1);
}
@keyframes legalSlideUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
.legal-header {
  padding: 28px 32px 16px; border-bottom: 1px solid var(--border);
  text-align: center; flex-shrink: 0;
}
.legal-header-icon { font-size: 36px; margin-bottom: 8px; }
.legal-header h2 {
  font-size: 18px; font-weight: 700; color: var(--text-primary);
  margin: 0 0 6px;
}
.legal-header-sub {
  font-size: 12.5px; color: var(--text-muted); margin: 0;
  line-height: 1.5;
}
.legal-body {
  flex: 1; overflow-y: auto; padding: 20px 32px;
  background: #fafbfc;
  /* 阅读进度指示 */
  background-image: linear-gradient(to bottom, #fafbfc, #f0f4f8);
}
.legal-body::-webkit-scrollbar { width: 6px; }
.legal-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.legal-body::-webkit-scrollbar-track { background: transparent; }
.legal-content { max-width: 620px; margin: 0 auto; }
.legal-content .legal-preamble {
  font-size: 13px; color: var(--text-secondary); line-height: 1.8;
  margin-bottom: 24px; padding: 14px 16px;
  background: #fff; border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
}
.legal-content h3 {
  font-size: 14px; font-weight: 700; color: var(--text-primary);
  margin: 24px 0 10px; padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}
.legal-content h3:first-of-type { margin-top: 0; }
.legal-content p {
  font-size: 12.5px; color: var(--text-secondary); line-height: 1.85;
  margin: 0 0 10px; text-align: justify;
}
.legal-footer {
  padding: 16px 32px 24px; border-top: 1px solid var(--border);
  flex-shrink: 0; background: #fff;
  border-radius: 0 0 16px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.legal-checkbox-label {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; font-size: 13px; color: var(--text-primary);
  line-height: 1.6; user-select: none;
  padding: 12px 14px; background: var(--accent-soft);
  border-radius: 10px; border: 1px solid #bfdbfe;
  transition: var(--transition);
}
.legal-checkbox-label:hover { background: #dbeafe; border-color: #93c5fd; }
.legal-checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--primary); cursor: pointer;
}
.legal-checkbox-label.checked {
  background: #dcfce7; border-color: #86efac;
}
.btn-legal-confirm {
  width: 100%; padding: 13px; font-size: 15px; font-weight: 600;
  border-radius: 10px; transition: all .2s;
}
.btn-legal-confirm:disabled {
  opacity: 0.45; cursor: not-allowed; filter: grayscale(0.5);
}
.btn-legal-confirm:not(:disabled):hover {
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}

@media (max-width: 768px) {
  .legal-box { max-width: 98vw; max-height: 95vh; border-radius: 12px; }
  .legal-header { padding: 20px 18px 12px; }
  .legal-header h2 { font-size: 16px; }
  .legal-body { padding: 16px 18px; }
  .legal-footer { padding: 12px 18px 20px; }
  .legal-content { max-width: 100%; }
}

/* ===== Toast ===== */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 12px 18px; border-radius: 9px; font-size: 13px;
  border: 1px solid; max-width: 320px;
  animation: toastIn .28s; font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.toast-success { background: var(--success-soft); border-color: #6ee7b7; color: #065f46; }
.toast-error { background: var(--danger-soft); border-color: #fca5a5; color: #991b1b; }
.toast-info { background: var(--accent-soft); border-color: #93c5fd; color: #1e40af; }
.toast-warning { background: var(--warning-soft); border-color: #fcd34d; color: #92400e; }
@keyframes toastIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:translateX(0)} }

/* ===== 进度条 ===== */
.progress-bar { height: 7px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), #06b6d4); transition: width .5s ease; }

/* ===== 开关 ===== */
.toggle { position: relative; width: 40px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #d1d5db; border-radius: 11px; cursor: pointer; transition: var(--transition); }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; top: 2px; left: 2px; background: #fff; border-radius: 50%; transition: var(--transition); box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ===== SVG 简易条形迷你图 ===== */
.mini-chart { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.mini-bar { flex: 1; border-radius: 3px 3px 0 0; background: var(--accent); opacity: 0.5; min-height: 4px; transition: height .4s; }

/* ===== 数字翻牌 ===== */
.count-up { display: inline-block; }

/* ===== 章节标题 ===== */
.section-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.section-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-weight: 400; }

/* ===== 信息行 ===== */
.info-row { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.info-row:last-child { border-bottom: none; }
.info-label { width: 120px; color: var(--text-muted); flex-shrink: 0; }
.info-value { color: var(--text-primary); font-weight: 500; }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.35; }
.empty-text { font-size: 14px; }

/* ===== 加载中 ===== */
.loading-spin { display: inline-block; width: 16px; height: 16px; border: 2px solid #e5e7eb; border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ===== 审查页面布局 v2.0 ===== */
.check-page-layout { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.check-left { min-width: 0; }
.check-right { min-width: 0; }

/* ===== 多图上传文件芯片 ===== */
.multi-upload { border-style: dashed; border-width: 2px; }
.file-chip {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px;
  background: #f9fafb; border: 1px solid var(--border); border-radius: 6px;
  margin-bottom: 6px; font-size: 12px; color: var(--text-primary);
  transition: var(--transition);
}
.file-chip:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ===== 批量审查汇总条 ===== */
.batch-summary { display: flex; gap: 16px; padding: 10px 14px; background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 14px; }
.batch-summary-item { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; }

/* ===== 辅助检查结果紧凑表格 ===== */
.result-table-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.result-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.result-table thead th {
  padding: 8px 12px; text-align: left; font-weight: 600; font-size: 11px;
  color: var(--text-muted); background: #f8fafc; border-bottom: 1px solid var(--border);
  user-select: none; white-space: nowrap;
}
.result-row { transition: background .15s; border-bottom: 1px solid #f3f4f6; }
.result-row:last-child { border-bottom: none; }
.result-row td { padding: 6px 12px; vertical-align: middle; line-height: 1.3; }
.result-row-actionable { cursor: pointer; }
.result-row-actionable:hover { background: #f0f5ff; }
.result-row-num { color: var(--text-muted); font-size: 11px; font-weight: 600; text-align: center; }
.result-row-rxno { font-family: monospace; font-size: 12px; color: var(--accent); font-weight: 600; }

/* ===== 结果卡片网格 ===== */
.result-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 12px; }
.result-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-sm); position: relative; }
.result-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.result-card-header { padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(0,0,0,0.05); }
.result-card-header-pass { background: var(--success-soft); }
.result-card-header-low { background: var(--info-soft); }
.result-card-header-mid { background: var(--warning-soft); }
.result-card-header-high { background: var(--danger-soft); }
.result-card-title { display: flex; align-items: center; gap: 8px; }
.result-card-num { font-weight: 700; font-size: 11px; color: var(--text-muted); background: rgba(0,0,0,0.05); padding: 2px 8px; border-radius: 4px; }
.result-card-rxno { font-weight: 600; font-size: 11px; color: var(--accent); font-family: monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.result-card-body { padding: 12px 14px; }
.result-card-score-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.result-card-score { font-size: 32px; font-weight: 800; line-height: 1; }
.risk-color-pass { color: var(--success); }
.risk-color-low { color: var(--info); }
.risk-color-mid { color: var(--warning); }
.risk-color-high { color: var(--danger); }
.result-card-label { font-size: 13px; font-weight: 600; }
.result-card-summary { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 8px; }
.result-card-issues { margin-top: 4px; }
.result-card-issue { display: flex; align-items: flex-start; gap: 6px; padding: 4px 0; font-size: 11px; border-bottom: 1px dashed #f0f0f0; }
.result-card-issue:last-child { border-bottom: none; }
.issue-rule-code { font-family: monospace; color: var(--text-muted); flex-shrink: 0; font-size: 10px; }

/* ===== 状态标签 ===== */
.status-badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; display: inline-block; }
.status-pass { background: var(--success-soft); color: var(--success); border: 1px solid #6ee7b7; }
.status-warning { background: var(--warning-soft); color: var(--warning); border: 1px solid #fde68a; }
.status-block { background: var(--danger-soft); color: var(--danger); border: 1px solid #fecaca; }
.status-pending { background: #f3f4f6; color: var(--text-muted); border: 1px solid #e5e7eb; }
.status-invalid { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ===== 详情弹窗（宽版） ===== */
.modal-box.modal-wide { width: 750px; max-width: 95vw; }
.detail-container { font-size: 13px; }
.detail-disclaimer { background: #fff3cd; border: 1px solid #ffc107; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; color: #856404; font-weight: 500; text-align: center; }
.detail-section { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #f3f4f6; }
.detail-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.detail-section-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.detail-summary { padding: 10px 14px; background: #f8fafc; border-radius: 8px; color: var(--text-secondary); line-height: 1.6; font-size: 13px; }
.detail-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.detail-info-item { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; background: #f9fafb; border-radius: 6px; }
.detail-label { font-size: 11px; color: var(--text-muted); }
.detail-value { font-size: 13px; color: var(--text-primary); font-weight: 500; }

/* ===== 编辑弹窗 - 问题逐项编辑卡片 ===== */
.edit-issues-list, .edit-suggestions-list { display: flex; flex-direction: column; gap: 8px; }
.edit-issue-empty { color: #94a3b8; font-size: 12px; text-align: center; padding: 12px; border: 1px dashed #e2e8f0; border-radius: 6px; }
.edit-issue-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.edit-issue-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.edit-issue-idx { font-weight: 700; font-size: 13px; color: #1e293b; }
.edit-issue-header-right { display: flex; align-items: center; gap: 8px; }
.edit-issue-page-inline { font-size: 11px; color: #64748b; }
.edit-issue-page-input { border: 1px solid #cbd5e1; border-radius: 4px; padding: 2px 4px; font-size: 12px; text-align: center; }
.edit-issue-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.edit-issue-row { display: flex; gap: 10px; }
.edit-issue-row > div { flex: 1; }
.edit-issue-label { font-size: 11px; color: #64748b; font-weight: 500; margin-bottom: 2px; display: block; }
.form-select-sm, .form-input-sm { font-size: 12px; padding: 4px 8px; }
.btn-sm { font-size: 12px; padding: 4px 10px; }
.btn-del { color: #dc2626; border-color: #fecaca; }
.btn-del:hover { background: #fef2f2; }
.edit-suggestion-card { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; }
.edit-suggestion-card .edit-issue-idx { min-width: 24px; padding-top: 6px; }
.edit-suggestion-card .form-textarea { flex: 1; min-height: 50px; }
.edit-suggestion-card .btn-del { flex-shrink: 0; margin-top: 4px; }

/* ===== 详情弹窗 - 问题卡片式布局 ===== */
.detail-issue-list { display: flex; flex-direction: column; gap: 12px; }
.detail-issue-item { padding: 0; border-radius: 10px; overflow: hidden; border-left: 4px solid; font-size: 13px; line-height: 1.7; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.detail-issue-item:last-child { margin-bottom: 0; }
.detail-issue-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(0,0,0,0.03); border-bottom: 1px solid rgba(0,0,0,0.06); }
.detail-issue-num { font-weight: 700; font-size: 13px; color: #1e293b; white-space: nowrap; }
.detail-issue-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.detail-issue-rule { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: #f1f5f9; color: #64748b; white-space: nowrap; }
.detail-issue-dim { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 4px; background: #eef2ff; color: #4f46e5; white-space: nowrap; }
.detail-issue-page { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: #fef3c7; color: #92400e; white-space: nowrap; }
.detail-issue-sev { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.detail-issue-text { color: #1e293b; font-size: 14px; font-weight: 500; line-height: 1.7; }
.detail-issue-detail { color: #475569; font-size: 13px; line-height: 1.7; padding: 8px 12px; background: #f8fafc; border-radius: 6px; }
.detail-issue-suggestion { color: #0f766e; font-size: 13px; line-height: 1.7; padding: 10px 14px; background: #f0fdfa; border-radius: 6px; border-left: 3px solid #14b8a6; }
.detail-issue-high { border-left-color: #dc2626; }
.detail-issue-high .detail-issue-header { background: #fef2f2; }
.detail-issue-high .detail-issue-sev { background: #fee2e2; color: #dc2626; }
.detail-issue-mid, .detail-issue-yellow { border-left-color: #d97706; }
.detail-issue-mid .detail-issue-header, .detail-issue-yellow .detail-issue-header { background: #fffbeb; }
.detail-issue-mid .detail-issue-sev, .detail-issue-yellow .detail-issue-sev { background: #fef3c7; color: #92400e; }
.detail-issue-low, .detail-issue-blue { border-left-color: #2563eb; }
.detail-issue-low .detail-issue-header, .detail-issue-blue .detail-issue-header { background: #eff6ff; }
.detail-issue-low .detail-issue-sev, .detail-issue-blue .detail-issue-sev { background: #dbeafe; color: #1e40af; }

/* ===== 详情弹窗 - 整改措施卡片 ===== */
.detail-suggestion-list { display: flex; flex-direction: column; gap: 10px; }
.detail-suggestion-item { display: flex; gap: 12px; padding: 14px 16px; background: #f0fdf4; border-radius: 10px; border-left: 4px solid #22c55e; align-items: flex-start; transition: box-shadow 0.15s; }
.detail-suggestion-item:hover { box-shadow: 0 2px 8px rgba(34,197,94,0.15); }
.detail-suggestion-num { flex-shrink: 0; width: 26px; height: 26px; background: #22c55e; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; line-height: 1; }
.detail-suggestion-body { color: #166534; font-size: 14px; line-height: 1.7; flex: 1; padding-top: 2px; }

/* ===== 详情弹窗 - 理疗单执行记录小表格 ===== */
.detail-mini-table-wrap { overflow-x: auto; margin-top: 6px; }
.detail-mini-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.detail-mini-table th { background: #f1f5f9; color: var(--text-muted); font-weight: 600; padding: 7px 10px; text-align: left; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
.detail-mini-table td { padding: 6px 10px; border-bottom: 1px solid #f1f5f9; color: var(--text-primary); }
.detail-mini-table tbody tr:hover { background: #f8fafc; }
.detail-mini-table tbody tr:nth-child(even) { background: #fafafa; }

/* ===== 详情弹窗 - 行内字段 ===== */
.detail-row { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; font-size: 13px; }
.detail-row .detail-label { min-width: 80px; flex-shrink: 0; }

/* ===== 编辑表单 ===== */
.edit-form { font-size: 13px; }
.edit-form .form-label { margin-bottom: 4px; }
.edit-form .form-textarea { min-height: 100px; }

/* ===== 编辑按钮 ===== */
.btn-edit { color: var(--warning) !important; border-color: #fde68a !important; }
.btn-edit:hover { background: var(--warning-soft) !important; }

/* ===== 结果卡片增强 v2.0 ===== */
.result-card {
  animation: cardEnter .35s cubic-bezier(.4,0,.2,1);
  animation-fill-mode: both;
}
.result-card:nth-child(1) { animation-delay: 0.02s; }
.result-card:nth-child(2) { animation-delay: 0.06s; }
.result-card:nth-child(3) { animation-delay: 0.10s; }
.result-card:nth-child(4) { animation-delay: 0.14s; }
.result-card:nth-child(5) { animation-delay: 0.18s; }
.result-card:nth-child(6) { animation-delay: 0.22s; }
.result-card:nth-child(7) { animation-delay: 0.26s; }
.result-card:nth-child(8) { animation-delay: 0.30s; }
.result-card:nth-child(9) { animation-delay: 0.34s; }
.result-card:nth-child(10) { animation-delay: 0.38s; }

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 卡片底部操作区 */
.result-card-footer {
  padding: 8px 14px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  background: #fafafa;
}

/* 已编辑标记 */
.edited-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 7px; border-radius: 10px;
  font-size: 10px; font-weight: 600;
  background: #fef3c7; color: #92400e;
  border: 1px solid #fcd34d;
  margin-left: 6px;
}

/* 无问题状态 */
.no-issues {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; background: var(--success-soft);
  border-radius: 6px; font-size: 11px; color: #065f46;
  border: 1px solid #6ee7b7;
}

/* ===== 骨架屏加载 ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  height: 180px; border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* ============================================================
   世界顶级设计：审查按钮 + 进度交响乐
   ============================================================ */

/* ── 审查按钮 · Obsidian Lux ── */
.btn-review-lux {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  height: 52px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.4px;
  color: #fff;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 40%, #3b82f6 65%, #1e3a5f 100%);
  background-size: 300% 100%;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 2px 12px rgba(37, 99, 235, 0.25),
    0 0 0 0 rgba(37, 99, 235, 0);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    background-position 0.6s ease;
  animation: btnShimmer 4s ease-in-out infinite;
}
.btn-review-lux::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #2563eb, #7c3aed, #ec4899, #2563eb);
  background-size: 400% 400%;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 14px;
}
.btn-review-lux::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-review-lux:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 28px rgba(37, 99, 235, 0.40),
    0 0 0 4px rgba(37, 99, 235, 0.12);
  background-position: 100% 0;
}
.btn-review-lux:hover::before { opacity: 1; }
.btn-review-lux:hover::after { opacity: 1; }
.btn-review-lux:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 2px 8px rgba(37, 99, 235, 0.30),
    0 0 0 2px rgba(37, 99, 235, 0.08);
}
.btn-review-lux:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 1px 6px rgba(37, 99, 235, 0.10);
  animation: none;
  background: linear-gradient(135deg, #94a3b8, #64748b);
  filter: grayscale(0.5);
}
.btn-review-lux .lux-icon {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.4));
}
.btn-review-lux:not(:disabled):hover .lux-icon {
  transform: rotate(-12deg) scale(1.2);
}
.btn-review-lux .lux-text {
  position: relative;
  z-index: 1;
}
/* Ripple */
.btn-review-lux .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: rippleBurst 0.7s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleBurst {
  to { transform: scale(4); opacity: 0; }
}
@keyframes btnShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── 扫描上传按钮 ── */
.btn-scan-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: #06b6d4;
  background: linear-gradient(135deg, #ecfeff, #f0f9ff);
  border: 1.5px solid #67e8f9;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(6, 182, 212, 0.12);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.btn-scan-upload:hover {
  color: #0891b2;
  background: linear-gradient(135deg, #cffafe, #e0f2fe);
  border-color: #06b6d4;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.25);
  transform: translateY(-1px);
}
.btn-scan-upload:active {
  transform: translateY(0) scale(0.97);
}
.btn-scan-upload.scanning {
  color: #0891b2;
  border-color: #06b6d4;
  background: #cffafe;
  cursor: wait;
  animation: scanPulse 1.5s ease-in-out infinite;
}
@keyframes scanPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
}
@media (max-width: 768px) {
  .btn-scan-upload {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 8px;
  }
}

/* ── 进度交响乐容器 · Glass Stage ── */
.progress-orchestra {
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(247,250,252,0.9));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 20px;
  padding: 48px 36px 36px;
  text-align: center;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.04),
    0 0 0 1px rgba(37,99,235,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
  overflow: hidden;
}
.progress-orchestra::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(37,99,235,0.03) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(124,58,237,0.03) 0%, transparent 50%);
  animation: orchestraAmbient 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes orchestraAmbient {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, 1%) rotate(1deg); }
  66% { transform: translate(-1%, -2%) rotate(-1deg); }
}

/* ── 中央旋转器 · Pulse Ring ── */
.pulse-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
}
.pulse-ring-inner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
  animation: pulseBreathe 2s ease-in-out infinite;
}
.pulse-ring-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.15);
  animation: ringExpand 2s ease-in-out infinite;
}
.pulse-ring-orbit:nth-child(2) { animation-delay: 0.5s; }
.pulse-ring-orbit:nth-child(3) { animation-delay: 1.0s; }
.pulse-ring-orbit:nth-child(4) { animation-delay: 1.5s; }
@keyframes pulseBreathe {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(37,99,235,0.3); }
  50% { transform: scale(1.08); box-shadow: 0 8px 32px rgba(37,99,235,0.45); }
}
@keyframes ringExpand {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ── 进度条本体 · Molten Track ── */
.progress-molten-wrap {
  max-width: 480px;
  margin: 0 auto;
}
.progress-molten-track {
  position: relative;
  height: 10px;
  background: linear-gradient(180deg, #e8ecf0 0%, #dde2e7 100%);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.06),
    0 1px 0 rgba(255,255,255,0.9);
}
.progress-molten-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  border-radius: 10px;
  background: linear-gradient(90deg,
    #2563eb 0%, #3b82f6 20%, #6366f1 40%,
    #8b5cf6 60%, #7c3aed 80%, #2563eb 100%
  );
  background-size: 200% 100%;
  animation: moltenFlow 2s linear infinite;
  box-shadow:
    0 0 12px rgba(37, 99, 235, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-molten-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: -100%; bottom: 0;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%
  );
  animation: shimmerSweep 1.5s ease-in-out infinite;
}
@keyframes moltenFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes shimmerSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── 阶段步骤指示器 ── */
.step-indicators {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 500px;
  margin: 18px auto 0;
  padding: 0 4px;
}
.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}
.step-dot::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  transition: background 0.5s ease;
}
.step-dot:last-child::after { display: none; }
.step-dot.completed::after { background: var(--accent); }

.step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  transition: all 0.4s ease;
  z-index: 1;
  position: relative;
}
.step-dot.active .step-circle {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(37,99,235,0.12);
  animation: stepPulse 1.5s ease-in-out infinite;
}
.step-dot.completed .step-circle {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.15);
  animation: stepCompletePop 0.5s ease-out;
}
/* v5.40: 步骤4（结果生成）完成时特殊的完成动画 */
.step-dot#step-stage4.completed .step-circle {
  background: #16a34a;
  border-color: #16a34a;
  box-shadow: 0 0 0 6px rgba(22,163,74,0.25), 0 0 20px rgba(22,163,74,0.12);
  font-weight: 700;
  font-size: 16px;
  animation: stepCompletePop 0.5s ease-out, stepGlow 2s ease-in-out infinite;
}
/* v5.41: 全部完成时容器级样式 */
.step-indicators.all-done {
  position: relative;
}
.step-indicators.all-done::after {
  content: '✅ 审查全部完成';
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
  margin-top: 10px;
  animation: fadeInUp 0.6s ease-out;
}
.step-indicators.all-done .step-dot#step-stage4.completed .step-label {
  color: #16a34a;
  font-weight: 800;
  font-size: 12px;
  animation: pulseLabel 2s ease-in-out infinite;
}
.step-label {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.3s;
  font-weight: 500;
}
.step-dot.active .step-label {
  color: var(--accent);
  font-weight: 700;
}
.step-dot.completed .step-label {
  color: var(--success);
}
/* v5.40: 步骤指示器扫描线动画（处理中时从左到右） */
.step-indicators.processing::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.4;
  animation: stepScanLine 2s ease-in-out infinite;
  z-index: 0;
  border-radius: 2px;
}
@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37,99,235,0.15); }
  50% { box-shadow: 0 0 0 10px rgba(37,99,235,0.05); }
}
@keyframes stepCompletePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@keyframes stepGlow {
  0%, 100% { box-shadow: 0 0 0 6px rgba(22,163,74,0.25), 0 0 20px rgba(22,163,74,0.12); }
  50% { box-shadow: 0 0 0 8px rgba(22,163,74,0.35), 0 0 30px rgba(22,163,74,0.18); }
}
@keyframes pulseLabel {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes stepScanLine {
  0% { left: 5%; opacity: 0; }
  30% { opacity: 0.6; }
  70% { opacity: 0.6; }
  100% { left: 95%; opacity: 0; }
}

/* ── 统计信息栏 ── */
.progress-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.progress-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}
.progress-stats .stat-val {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
}

/* ── 阶段文字动效 ── */
.stage-text-lux {
  font-size: 16px;
  font-weight: 650;
  color: var(--text-primary);
  margin-bottom: 4px;
  position: relative;
  display: inline-block;
}
.stage-text-lux .dot-anim::after {
  content: '';
  animation: ellipsis 1.4s steps(4, end) infinite;
}
@keyframes ellipsis {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

/* ── 旧样式保留（兼容 task-panel 小进度条） ── */
.batch-loading {
  text-align: center; padding: 40px 20px;
}
.batch-loading-spin {
  display: inline-block; width: 36px; height: 36px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite;
  margin-bottom: 12px;
}
.batch-loading-text { font-size: 13px; color: var(--text-secondary); }
.batch-loading-progress { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* ===== 合规预警横幅 ===== */
.compliance-alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; border-radius: 10px; margin-bottom: 14px;
  border: 1px solid; font-size: 13px; line-height: 1.6;
}
.compliance-alert-danger {
  background: #fff5f5; border-color: #fecaca; color: #991b1b;
}
.compliance-alert-warning {
  background: #fffbeb; border-color: #fde68a; color: #92400e;
}
.compliance-alert-info {
  background: var(--info-soft); border-color: #a5f3fc; color: #0e7490;
}
.alert-icon { font-size: 20px; flex-shrink: 0; line-height: 1; }
.alert-content { flex: 1; }
.alert-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.alert-message { font-size: 12px; opacity: 0.85; }
.alert-close {
  background: none; border: none; color: inherit; opacity: 0.5;
  cursor: pointer; font-size: 16px; padding: 2px 6px; border-radius: 4px;
  flex-shrink: 0; transition: var(--transition);
}
.alert-close:hover { opacity: 1; background: rgba(0,0,0,0.06); }

/* ===== 风险等级色带 ===== */
.risk-stripe {
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.risk-stripe-high { background: var(--danger); }
.risk-stripe-mid { background: var(--warning); }
.risk-stripe-low { background: var(--info); }
.risk-stripe-pass { background: var(--success); }

/* ===== 文件芯片增强 ===== */
.file-chip-thumb {
  width: 32px; height: 32px; border-radius: 4px; overflow: hidden;
  background: var(--bg-hover); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.file-chip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-chip-info { flex: 1; min-width: 0; }
.file-chip-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-chip-size { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.file-chip-status { font-size: 10px; margin-top: 2px; }
.file-chip-status.ready { color: var(--success); }
.file-chip-status.error { color: var(--danger); }
.file-chip-status.processing { color: var(--accent); }
.file-chip-remove {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 14px; padding: 4px 6px; border-radius: 4px;
  flex-shrink: 0; transition: var(--transition); line-height: 1;
}
.file-chip-remove:hover { color: var(--danger); background: var(--danger-soft); }

/* PDF徽章 */
.pdf-badge {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 4px;
  letter-spacing: 0.5px;
}

/* ===== 上传区拖拽覆盖层 ===== */
.drag-overlay {
  position: absolute; inset: 0;
  background: rgba(37,99,235,0.06); border: 3px dashed var(--accent);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: var(--accent);
  pointer-events: none; z-index: 10;
}

/* ===== 详情弹窗增强 ===== */
.detail-image-preview {
  position: relative; border-radius: 8px; overflow: hidden;
  background: #1a1a2e; cursor: pointer; text-align: center;
  transition: var(--transition);
}
.detail-image-preview:hover { opacity: 0.92; }
.detail-image-preview img {
  max-width: 100%; max-height: 280px; object-fit: contain; display: block;
}
.detail-image-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
  color: #fff; font-size: 13px; gap: 6px;
}
.detail-image-preview:hover .detail-image-overlay { opacity: 1; }

.detail-page-label {
  text-align: center; font-size: 12px; color: #64748b;
  background: #f1f5f9; padding: 4px 0; border-radius: 6px 6px 0 0;
  font-weight: 500;
}

/* 全屏图片查看 */
.image-fullscreen {
  position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out; animation: fadeIn .2s;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
.image-fullscreen img {
  max-width: 95vw; max-height: 95vh; object-fit: contain;
  border-radius: 4px; box-shadow: 0 8px 48px rgba(0,0,0,0.5);
}
.image-fullscreen-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,0.15); border: none;
  color: #fff; font-size: 24px; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; transition: var(--transition);
}
.image-fullscreen-close:hover { background: rgba(255,255,255,0.25); }

/* ===== 审计项样式 ===== */
.audit-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; background: #f9fafb; border-radius: 6px;
  font-size: 12px; margin-bottom: 4px;
}
.audit-icon { font-size: 14px; flex-shrink: 0; }
.audit-icon.ok { color: var(--success); }
.audit-icon.warn { color: var(--warning); }
.audit-icon.err { color: var(--danger); }
.audit-text { color: var(--text-primary); }

/* ===== 表单增强 ===== */
.form-hint {
  font-size: 11px; color: var(--text-muted);
  margin-top: 4px; line-height: 1.4;
}
.form-section-title {
  font-size: 13px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

/* ===== 选中/活跃卡片 ===== */
.result-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* ===== 标签组 ===== */
.tag-group { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 500;
  background: #f3f4f6; color: var(--text-secondary);
  border: 1px solid var(--border);
}
.tag-danger { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }
.tag-warning { background: var(--warning-soft); color: var(--warning); border-color: #fde68a; }
.tag-success { background: var(--success-soft); color: var(--success); border-color: #6ee7b7; }
.tag-info { background: var(--info-soft); color: var(--info); border-color: #a5f3fc; }

/* ===== 响应式 ===== */
@media(max-width:768px) {
  /* 移动端侧边栏 — 从左侧滑入覆盖，z-index 最高 */
  /* 使用 dvh 解决移动端浏览器地址栏导致的 100vh 溢出问题 */
  .sidebar {
    position: fixed !important; top: 0; left: 0; height: 100vh; height: 100dvh;
    z-index: 1999 !important; transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); width: 280px !important;
    box-shadow: 6px 0 32px rgba(0,0,0,0.35);
    will-change: transform;
    overflow: hidden !important;  /* 侧边栏本身不滚动，由 nav-menu 内部滚动 */
    display: flex !important; flex-direction: column !important;
    padding-bottom: env(safe-area-inset-bottom); /* iPhone 底部安全区 */
  }
  .sidebar.open { transform: translateX(0) !important; }
  .sidebar.collapsed { width: 280px !important; transform: translateX(-100%); }
  .sidebar.collapsed.open { transform: translateX(0) !important; }
  /* 移动端侧边栏：header/footer 固定，nav 菜单内部滚动 */
  .sidebar .sidebar-logo { flex-shrink: 0; }
  .sidebar .nav-menu { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 0; }
  .sidebar .sidebar-footer { flex-shrink: 0; }

  /* 汉堡按钮始终在最顶层可点击 */
  .sidebar-toggle {
    font-size: 22px; padding: 10px; color: var(--text-primary);
    position: relative; z-index: 50;
    -webkit-tap-highlight-color: rgba(0,0,0,0.08);
    touch-action: manipulation;
  }
  .topbar { padding: 0 12px; position: relative; z-index: 20; }
  .topbar-left { gap: 10px; }
  /* 移动端面包屑免责声明缩小字号 */
  .breadcrumb { font-size: 13px; }
  .breadcrumb span { font-size: 10px !important; margin-left: 4px !important; }

  /* 移动端内容区宽度占满，sidebar 浮层不占空间 */
  .main-content { margin-left: 0 !important; flex: 1; }
  .page-content { padding: 16px; }
  
  .chart-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .check-page-layout { grid-template-columns: 1fr; }
  .result-cards-grid { grid-template-columns: 1fr; }
  .modal-box.modal-wide { width: 95vw; margin: 0 8px; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .batch-summary { flex-wrap: wrap; gap: 8px; }
  .batch-summary-item { min-width: calc(50% - 8px); }
  .compliance-alert { flex-direction: column; padding: 12px 14px; }
  .image-fullscreen img { max-width: 98vw; max-height: 90vh; }
  .image-fullscreen-close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 20px; }
  /* 登录页响应式 */
  .login-left { display: none; }
  .login-right { width: 100%; padding: 24px; }
  .login-card { max-width: 100%; padding: 32px 24px; }
}

@media(max-width:480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .result-card-score { font-size: 26px; }
  .result-card-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .batch-summary-item { min-width: 100%; }
}

/* ===== 医生手写体库 ===== */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.doctor-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.doctor-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(26, 110, 255, 0.08);
}

.doctor-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.doctor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.doctor-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.doctor-dept {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.doctor-title-tag {
  margin-left: auto;
  font-size: 11px;
  background: rgba(74, 144, 226, 0.1);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.doctor-card-body {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.doctor-stat {
  text-align: center;
}

.doctor-stat-value {
  font-size: 24px;
  font-weight: 700;
}

.doctor-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

/* ===== 算力耗尽锁定遮罩 ===== */
.token-lock-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  animation: tokenLockFadeIn 0.4s ease;
}
.token-lock-overlay::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.15);
  pointer-events: none;
}
.token-lock-card {
  position: relative; z-index: 1001;
  background: #fff; border-radius: 20px; padding: 48px 40px;
  text-align: center; max-width: 420px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: tokenLockBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.token-lock-icon { font-size: 64px; margin-bottom: 16px; }
.token-lock-title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.token-lock-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.token-lock-balance { display: inline-block; background: #fef2f2; color: var(--danger); padding: 6px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.token-lock-btn { display: inline-block; padding: 12px 36px; font-size: 16px; font-weight: 600; border-radius: 12px; cursor: pointer; transition: all 0.2s; border: none; color: #fff; background: linear-gradient(135deg, var(--accent), #1d4ed8); box-shadow: 0 4px 14px rgba(37,99,235,0.4); }
.token-lock-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.5); }

@keyframes tokenLockFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes tokenLockBounce { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }

/* ===== v5.53: 上传专用模式 - 功能密码锁 ===== */
.func-pwd-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: tokenLockFadeIn 0.3s ease;
}
.func-pwd-box {
  background: #fff; border-radius: 16px; padding: 40px 36px;
  text-align: center; max-width: 400px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: tokenLockBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.func-pwd-icon {
  font-size: 48px; margin-bottom: 16px;
}

/* ===== v5.53: 开关按钮 ===== */
.toggle-switch {
  position: relative; display: inline-block; width: 52px; height: 28px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #cbd5e1; border-radius: 28px;
  transition: 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  height: 22px; width: 22px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: #6366f1; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(24px); }

.doctor-card-actions {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  flex-wrap: wrap;
}

/* 手写体分析区域样式 */
.hw-zone-card {
  background: rgba(26, 110, 255, 0.04);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  transition: all 0.2s;
}

.hw-zone-card.other {
  background: rgba(100, 100, 100, 0.04);
  border-color: var(--border);
}

.hw-sig-match {
  padding: 10px;
  background: rgba(26, 110, 255, 0.03);
  border-radius: 8px;
  margin-top: 8px;
}

/* 响应式: 医生卡片 */
@media(max-width:768px) {
  .doctor-grid {
    grid-template-columns: 1fr;
  }
  
  .doctor-card-actions {
    justify-content: flex-start;
  }
  
  .doctor-card-actions .btn {
    flex: 1;
  }
}

/* ===== 任务面板（浮动） ===== */
.task-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  max-height: 60vh;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
  z-index: 1000;
  overflow: hidden;
  transition: all 0.3s ease;
}

.task-panel.hidden {
  display: none;
}

.task-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  user-select: none;
}

.task-panel-title {
  font-weight: 600;
  font-size: 13px;
  flex: 1;
}

.task-panel-count {
  background: rgba(255,255,255,0.3);
  color: white;
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.task-panel-toggle {
  font-size: 10px;
  opacity: 0.7;
}

.task-panel:not(.expanded) .task-panel-body {
  display: none;
}

.task-panel.expanded .task-panel-body {
  display: block;
}

.task-panel-body {
  padding: 8px;
  max-height: calc(60vh - 42px);
  overflow-y: auto;
}

.task-panel-item {
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}

.task-panel-item-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
}

.task-panel-item-stage {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── 任务面板小进度条（侧栏 task-panel 用） ── */
.task-panel-progress {
  height: 5px;
  background: rgba(0,0,0,0.06);
  border-radius: 5px;
  margin-top: 6px;
  overflow: hidden;
}
.task-panel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 5px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.progress-percent-text { display: none; }

/* 旧审查页面进度区域（保留兼容） */
#async-stage-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: all 0.3s;
}
#async-file-count {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  transition: all 0.3s;
}

/* ── 提交中 loading 动画升级 ── */
.submit-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 20px;
}
.submit-loader .pulse-ring {
  margin-bottom: 0;
}
.submit-loader-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  animation: textFadeIn 0.5s ease;
}
@keyframes textFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.task-panel-item-meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
}

/* 任务通知浮窗 */
.task-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--success);
  border-left: 4px solid var(--success);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  z-index: 1001;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
  cursor: pointer;
  max-width: 380px;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* 任务状态颜色 */
.task-status-completed { border-left: 3px solid var(--success); }
.task-status-failed { border-left: 3px solid var(--danger); }
.task-status-processing { border-left: 3px solid var(--warning); }
.task-status-pending { border-left: 3px solid var(--accent); }
.task-status-cancelled { border-left: 3px solid var(--text-muted); }

.task-status-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

/* 下拉搜索 */
.form-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.dropdown-item:hover {
  background: var(--bg-hover);
}
.dropdown-item.selected {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* 积分耗尽：侧边栏菜单禁用 */
.nav-item.disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}

/* 禁用按钮样式 */
.btn:disabled, .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 日志行悬停 */
.log-row:hover {
  background: rgba(102, 126, 234, 0.04);
}

/* 响应式任务面板 */
@media(max-width:768px) {
  .task-panel {
    width: 100%;
    right: 0;
    bottom: 0;
    border-radius: 12px 12px 0 0;
    max-height: 50vh;
  }
  
  .task-notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* ===== 支付充值 ===== */
.package-card:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 4px 20px rgba(37,99,235,0.1);
  transform: translateY(-2px);
}

.package-card.selected {
  border-color: var(--accent) !important;
  background: var(--accent-soft);
}

#qr-section {
  margin-bottom: 20px;
}

#qr-container img {
  image-rendering: auto;
}

/* 支付方式选中状态 */
.pay-option-selected {
  border-color: var(--accent) !important;
  background: var(--accent-soft);
}

/* ====== v5.13 数据中心同步 ====== */
.sync-platform-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
  transition: box-shadow 0.15s;
}
.sync-platform-card:hover {
  box-shadow: var(--shadow-sm);
}
.sync-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.sync-status-dot.success { background: var(--success); }
.sync-status-dot.failed { background: var(--danger); }
.sync-status-dot.running { background: var(--warning); animation: pulse 1.5s infinite; }

/* ====== v5.14 分享功能 ====== */
/* 侧边栏分享按钮 */
.btn-share-sidebar {
  width: 100%; padding: 9px 12px; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(139,92,246,0.2));
  border: 1px solid rgba(99,130,246,0.35);
  color: #93c5fd;
  border-radius: 8px; cursor: pointer;
  font-size: 13px; font-weight: 600;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
}
.btn-share-sidebar::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: left 0.5s;
}
.btn-share-sidebar:hover::before { left: 100%; }
.btn-share-sidebar:hover {
  background: linear-gradient(135deg, rgba(59,130,246,0.35), rgba(139,92,246,0.35));
  border-color: rgba(129,140,248,0.6);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59,130,246,0.25);
}
.btn-share-sidebar:active { transform: translateY(0); }
.btn-share-sidebar svg { flex-shrink: 0; }

/* 顶栏分享图标按钮 */
.btn-share-topbar {
  width: 36px; height: 36px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.btn-share-topbar:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.08);
}
.btn-share-topbar:active { transform: scale(0.95); }
.btn-share-topbar svg { display: block; }

/* 分享弹窗遮罩 */
.share-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.45); z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: shareFadeIn 0.25s ease;
}
.share-overlay.hidden { display: none; }

@keyframes shareFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 分享弹窗卡片 */
.share-modal {
  background: #fff; border-radius: 20px;
  width: 420px; max-width: 92vw;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.05);
  overflow: hidden;
  position: relative;
  animation: shareSlideUp 0.35s cubic-bezier(.22,.61,.36,1);
}
@keyframes shareSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.share-close-btn {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.04); border: none;
  border-radius: 50%; cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s; z-index: 2;
}
.share-close-btn:hover {
  background: rgba(0,0,0,0.08); color: var(--text-primary);
}

/* 分享头部 */
.share-header {
  padding: 36px 32px 20px;
  text-align: center;
  background: linear-gradient(160deg, #eff6ff 0%, #f5f3ff 100%);
}
.share-icon-circle {
  width: 56px; height: 56px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 8px 24px rgba(59,130,246,0.3);
}
.share-title {
  font-size: 18px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 6px;
}
.share-subtitle {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.5;
}

/* 分享主体 */
.share-body { padding: 24px 32px 32px; }

/* URL 复制区 */
.share-url-box {
  display: flex; align-items: center; gap: 10px;
  padding: 4px;
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.share-url-box:focus-within { border-color: var(--accent); }
.share-url-text {
  flex: 1; padding: 10px 12px;
  font-size: 13px; color: var(--text-secondary);
  font-family: "SFMono-Regular", Consolas, "Menlo", monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  user-select: all;
}
.share-copy-btn {
  flex-shrink: 0; padding: 10px 18px;
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff; border: none;
  border-radius: 10px; cursor: pointer;
  font-size: 13px; font-weight: 600;
  transition: all 0.25s;
  white-space: nowrap;
}
.share-copy-btn:hover {
  box-shadow: 0 4px 16px rgba(59,130,246,0.35);
  transform: translateY(-1px);
}
.share-copy-btn:active { transform: translateY(0); }
.share-copy-btn.copied {
  background: linear-gradient(135deg, #059669, #10b981);
}

/* 分隔线 */
.share-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 16px;
  color: var(--text-muted); font-size: 12px;
}
.share-divider::before,
.share-divider::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border);
}

/* 渠道按钮 */
.share-channels {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.share-channel-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border: 1.5px solid var(--border);
  border-radius: 12px; background: #fff;
  cursor: pointer; font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.share-channel-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.share-channel-btn.wechat:hover { border-color: #07c160; background: #f0fdf4; color: #07c160; }
.share-channel-btn.dingtalk:hover { border-color: #0089ff; background: #eff6ff; color: #0089ff; }
.share-channel-btn.feishu:hover { border-color: #3370ff; background: #eef2ff; color: #3370ff; }
.share-channel-btn.email:hover { border-color: #ea580c; background: #fff7ed; color: #ea580c; }
.share-channel-icon { font-size: 18px; }

/* 移动端适配 */
@media (max-width: 768px) {
  .share-modal { width: 94vw; border-radius: 16px; }
  .share-header { padding: 28px 20px 16px; }
  .share-body { padding: 20px; }
  .share-url-box { flex-direction: column; gap: 8px; }
  .share-url-text { width: 100%; text-align: center; }
  .share-copy-btn { width: 100%; justify-content: center; }
  .share-channels { grid-template-columns: 1fr 1fr; }
  .btn-share-topbar { width: 32px; height: 32px; border-radius: 8px; }
}

/* ===== v5.20 大模型流量消耗监控 ===== */
.usage-section {
  margin-top: 24px;
  border-top: 2px solid #7c3aed;
  padding-top: 16px;
}
.usage-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  font-size: 15px; font-weight: 700; color: #6d28d9;
}
.usage-badge-admin {
  font-size: 10px; font-weight: 600; color: #7c3aed;
  background: #ede9fe; padding: 3px 8px; border-radius: 10px;
  border: 1px solid #c4b5fd;
}
.usage-stats-grid {
  grid-template-columns: repeat(4, 1fr);
}
.usage-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.usage-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.usage-table th {
  background: #f5f3ff; color: #6d28d9; font-weight: 600; font-size: 11px;
  padding: 10px 12px; text-align: left; white-space: nowrap;
  border-bottom: 2px solid #ddd6fe;
}
.usage-table td {
  padding: 10px 12px; border-bottom: 1px solid #f3f4f6; font-size: 12px;
}
.usage-table tbody tr:hover { background: #faf5ff; }
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 11px; font-weight: 700; color: #fff;
}
.rank-badge.rank-gold   { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.rank-badge.rank-silver { background: linear-gradient(135deg, #9ca3af, #d1d5db); }
.rank-badge.rank-bronze { background: linear-gradient(135deg, #d97706, #f59e0b); }
.rank-badge.rank-normal { background: #9ca3af; }

@media (max-width: 768px) {
  .usage-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .usage-table { font-size: 11px; }
  .usage-table th, .usage-table td { padding: 8px 6px; }
}

/* ============================================================
   v5.65: 口腔收费合规守门员 - 专属样式
   ============================================================ */

.dental-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px;
}

.dental-header {
  background: linear-gradient(135deg, #0d1a2e 0%, #13233b 100%);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: 12px;
  padding: 16px 20px;
}

.dental-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dental-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}

.dental-tab {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.dental-tab:hover {
  border-color: rgba(6,182,212,0.4);
  background: rgba(6,182,212,0.05);
  transform: translateY(-1px);
}

.dental-tab.active {
  border-color: #06b6d4;
  background: rgba(6,182,212,0.12);
  box-shadow: 0 0 15px rgba(6,182,212,0.15);
}

.dental-tab-tip {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 14px;
  cursor: help;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.dental-tab-tip:hover {
  opacity: 1;
}

.dental-content {
  min-height: 400px;
}

.dental-module {
  display: flex;
  gap: 14px;
}

.dental-module-left,
.dental-module-right {
  flex: 1;
  min-width: 0;
}

/* 牙位选择按钮 */
.tooth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: monospace;
  transition: all 0.15s ease;
  background: var(--bg-secondary);
}

.tooth-btn:hover {
  border-color: #06b6d4;
  background: rgba(6,182,212,0.1);
}

.tooth-btn.selected {
  border-color: #06b6d4;
  background: rgba(6,182,212,0.2);
  color: #06b6d4;
  box-shadow: 0 0 8px rgba(6,182,212,0.3);
}

/* 项目复选框 */
.dental-project-check {
  transition: background 0.15s ease;
}

.dental-project-check:hover {
  background: rgba(6,182,212,0.08) !important;
}

/* 响应式 dental */
@media (max-width: 768px) {
  .dental-module {
    flex-direction: column;
  }

  .dental-tabs {
    grid-template-columns: 1fr;
  }

  .tooth-btn {
    width: 34px;
    height: 34px;
    font-size: 10px;
  }

  .dental-header {
    padding: 12px 16px;
  }

  .dental-header-title h2 {
    font-size: 16px !important;
  }
}

/* ============================================================
   v5.66: 口腔病历拍照OCR上传 - 专属样式
   ============================================================ */
.dental-ocr-upload-area {
  border: 2px dashed var(--border, #334155);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  transition: all 0.25s;
  background: var(--bg-card, #0d1a2e);
  cursor: pointer;
  margin-bottom: 10px;
}
.dental-ocr-upload-area:hover,
.dental-ocr-upload-area.drag-over {
  border-color: #06b6d4;
  background: rgba(6,182,212,0.06);
  box-shadow: 0 0 16px rgba(6,182,212,0.15);
}
.dental-ocr-upload-area.has-image {
  border-style: solid;
  border-color: #10b981;
  background: rgba(16,185,129,0.05);
}
.dental-ocr-upload-icon {
  font-size: 32px;
  margin-bottom: 6px;
  opacity: 0.7;
}
.dental-ocr-upload-text {
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
}
.dental-ocr-upload-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}
.dental-ocr-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(6,182,212,0.3);
  background: rgba(6,182,212,0.08);
  color: #06b6d4;
  transition: all 0.2s;
  white-space: nowrap;
}
.dental-ocr-btn:hover {
  background: rgba(6,182,212,0.18);
  border-color: #06b6d4;
  box-shadow: 0 0 10px rgba(6,182,212,0.2);
}
.dental-ocr-btn.camera {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.3);
  color: #22c55e;
}
.dental-ocr-btn.camera:hover {
  background: rgba(34,197,94,0.18);
  border-color: #22c55e;
  box-shadow: 0 0 10px rgba(34,197,94,0.2);
}
.dental-ocr-btn.danger {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.3);
  color: #ef4444;
}
.dental-ocr-btn.danger:hover {
  background: rgba(239,68,68,0.18);
  border-color: #ef4444;
}
.dental-ocr-preview {
  position: relative;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border, #334155);
  background: #000;
  max-height: 260px;
}
.dental-ocr-preview img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  display: block;
}
.dental-ocr-preview-overlay {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
}
.dental-ocr-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(16,185,129,0.85);
  color: #fff;
  backdrop-filter: blur(4px);
}
.dental-ocr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 10px;
}
.dental-ocr-loading .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(6,182,212,0.2);
  border-top-color: #06b6d4;
  border-radius: 50%;
  animation: dental-spin 0.8s linear infinite;
}
@keyframes dental-spin {
  to { transform: rotate(360deg); }
}
.dental-ocr-loading-text {
  font-size: 13px;
  color: #06b6d4;
}
.dental-ocr-drop-hint {
  font-size: 11px;
  color: var(--text-muted, #64748b);
  margin-top: 4px;
}
.dental-ocr-editable-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #f59e0b;
  margin-top: 6px;
  padding: 4px 8px;
  background: rgba(245,158,11,0.08);
  border-radius: 6px;
}

/* ===== v5.72: 短信登录Tab & 表单 ===== */
.login-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 4px;
}
.login-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,0.4);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.login-tab:hover {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.03);
}
.login-tab.active {
  background: rgba(6,182,212,0.15);
  color: #22d3ee;
  box-shadow: 0 2px 8px rgba(6,182,212,0.15);
}
.login-tab svg {
  flex-shrink: 0;
}

.sms-code-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.btn-sms-send {
  flex-shrink: 0;
  min-width: 110px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 10px;
  background: rgba(6,182,212,0.08);
  color: #22d3ee;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-sms-send:hover:not(:disabled) {
  background: rgba(6,182,212,0.18);
  border-color: #22d3ee;
}
.btn-sms-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.1);
}
.btn-sms-send.counting {
  color: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}

/* ==================== 病历助手 v6.0 — 世界顶级UI重设计 ==================== */

/* ---- 主页面容器 — 居中带呼吸感 ---- */
.mr-page {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 12px 60px;
}

/* ---- Hero 横幅 — 渐变光效 ---- */
.mr-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(6,182,212,0.12) 0%, rgba(99,102,241,0.08) 50%, rgba(16,185,129,0.06) 100%);
  border: 1px solid rgba(6,182,212,0.15);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
}
.mr-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 70% 20%, rgba(6,182,212,0.1) 0%, transparent 50%),
              radial-gradient(circle at 30% 80%, rgba(99,102,241,0.08) 0%, transparent 50%);
  animation: mr-hero-shift 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes mr-hero-shift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(1%, -1%); }
  66% { transform: translate(-1%, 1%); }
}
.mr-hero > * { position: relative; z-index: 1; }
.mr-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6,182,212,0.18);
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #06b6d4;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.mr-hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #06b6d4;
  animation: mr-pulse-dot 2s ease-in-out infinite;
}
@keyframes mr-pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(6,182,212,0.6); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(6,182,212,0); }
}
.mr-hero h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px 0;
  background: linear-gradient(135deg, #06b6d4 0%, #6366f1 60%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.mr-hero p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
  max-width: 640px;
}
.mr-hero-features {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.mr-hero-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  transition: all 0.3s;
}
.mr-hero-feat:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}
.mr-hero-feat-icon {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
}
.mr-hero-feat-icon.cyan { background: rgba(6,182,212,0.15); }
.mr-hero-feat-icon.indigo { background: rgba(99,102,241,0.15); }
.mr-hero-feat-icon.emerald { background: rgba(16,185,129,0.15); }
.mr-hero-feat-icon.amber { background: rgba(245,158,11,0.15); }

/* ---- 主布局：三栏网格 ---- */
.mr-main-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- 通用卡片 — 玻璃拟态 ---- */
.mr-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}
.mr-card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.mr-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.mr-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.mr-card-title .icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
}
.mr-card-title .icon.upload { background: linear-gradient(135deg, rgba(6,182,212,0.2), rgba(6,182,212,0.05)); }
.mr-card-title .icon.archive { background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(99,102,241,0.05)); }
.mr-card-title .icon.result { background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(16,185,129,0.05)); }
.mr-card-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ---- 上传区域 — 拖拽风格 ---- */
.mr-upload-zone {
  position: relative;
  border: 2px dashed rgba(6,182,212,0.2);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  background: rgba(6,182,212,0.02);
}
.mr-upload-zone:hover {
  border-color: rgba(6,182,212,0.45);
  background: rgba(6,182,212,0.05);
  box-shadow: 0 0 40px rgba(6,182,212,0.08);
}
.mr-upload-zone.drag-over {
  border-color: #06b6d4;
  background: rgba(6,182,212,0.1);
  box-shadow: 0 0 60px rgba(6,182,212,0.15);
}
.mr-upload-zone-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: mr-float 3s ease-in-out infinite;
}
@keyframes mr-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.mr-upload-zone-title {
  font-size: 16px;
  font-weight: 700;
  color: #06b6d4;
  margin-bottom: 6px;
}
.mr-upload-zone-hint {
  font-size: 12px;
  color: var(--text-muted);
}
.mr-upload-zone-types {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.mr-upload-type-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.06);
}

/* ---- 上传按钮组 — 分段式选择器 ---- */
.mr-upload-actions {
  display: flex;
  align-items: stretch;
  margin-top: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.mr-upload-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.mr-upload-btn:last-child { border-right: none; border-radius: 0 14px 14px 0; }
.mr-upload-btn:first-child { border-radius: 14px 0 0 14px; }
.mr-upload-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(99,102,241,0.06));
  opacity: 0;
  transition: opacity 0.3s;
}
.mr-upload-btn:hover::before { opacity: 1; }
.mr-upload-btn:hover {
  border-right-color: transparent;
}
.mr-upload-btn:hover + .mr-upload-btn { border-left-color: transparent; }
.mr-upload-btn span {
  font-size: 26px;
  flex-shrink: 0;
}
.mr-upload-btn .mr-upload-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.mr-upload-btn strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}
.mr-upload-btn small {
  font-size: 11px;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .mr-upload-actions { flex-wrap: wrap; }
  .mr-upload-btn { flex: 1 1 100%; min-width: 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); border-radius: 0 !important; }
  .mr-upload-btn:last-child { border-bottom: none; }
}

/* ---- 文件列表 — 重新设计 ---- */
.mr-file-list {
  max-height: 240px;
  overflow-y: auto;
  margin-top: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.mr-file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  margin-bottom: 6px;
  transition: all 0.2s;
}
.mr-file-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.mr-file-thumb {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.mr-file-thumb.image { background: rgba(99,102,241,0.12); }
.mr-file-thumb.pdf { background: rgba(239,68,68,0.12); }
.mr-file-info {
  flex: 1;
  min-width: 0;
}
.mr-file-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mr-file-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.mr-file-remove-btn {
  width: 28px; height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(239,68,68,0.08);
  color: #ef4444;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.mr-file-remove-btn:hover {
  background: rgba(239,68,68,0.2);
  transform: scale(1.1);
}

/* ---- 提交按钮区 ---- */
.mr-submit-area {
  text-align: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mr-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.mr-submit-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.mr-submit-btn:hover::before {
  left: 100%;
}
.mr-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6,182,212,0.35);
}
.mr-submit-btn:active {
  transform: translateY(0);
}
.mr-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.mr-submit-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}
.mr-submit-hint a {
  color: #06b6d4;
  text-decoration: none;
}
.mr-submit-hint a:hover { text-decoration: underline; }

/* ===== v5.88 UI重设计：紧凑一体化布局 ===== */

/* ---- 紧凑标题栏 ---- */
.mr-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(99,102,241,0.05));
  border: 1px solid rgba(6,182,212,0.15);
  border-radius: 14px;
  margin-bottom: 16px;
}
.mr-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mr-header-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(99,102,241,0.1));
  border-radius: 12px;
  flex-shrink: 0;
}
.mr-header-title {
  font-size: 17px; font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}
.mr-header-desc {
  font-size: 12px; color: var(--text-muted);
  margin: 2px 0 0 0;
}
.mr-header-stats {
  display: flex; gap: 20px; flex-shrink: 0;
}
.mr-stat-item {
  text-align: center;
  min-width: 56px;
}
.mr-stat-num {
  display: block;
  font-size: 22px; font-weight: 800;
  color: #06b6d4;
  line-height: 1;
}
.mr-stat-label {
  font-size: 11px; color: var(--text-muted);
  margin-top: 2px; display: block;
}

/* ---- 一体化操作区 ---- */
.mr-unified-area {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 20px;
}

/* ---- 上传区 ---- */
.mr-upload-section {
  margin-bottom: 8px;
}
.mr-section-label {
  font-size: 13px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.mr-section-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.mr-section-dot.upload { background: #06b6d4; }

/* ---- 上传栏：芯片式按钮 + 拖拽区 ---- */
.mr-upload-bar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.mr-upload-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 10px;
  color: #06b6d4;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.mr-upload-chip:hover {
  background: rgba(6,182,212,0.15);
  border-color: rgba(6,182,212,0.4);
  transform: translateY(-1px);
}
.mr-chip-icon {
  font-size: 16px; line-height: 1;
}
.mr-upload-drop-hint {
  flex: 1; min-width: 140px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.02);
  border: 2px dashed rgba(255,255,255,0.08);
  border-radius: 10px;
  text-align: center;
  font-size: 12px; color: var(--text-muted);
  transition: all 0.2s;
  cursor: default;
}
.mr-upload-drop-hint.drag-over {
  border-color: #06b6d4;
  background: rgba(6,182,212,0.06);
  color: #06b6d4;
}

/* ---- 文件芯片 ---- */
.mr-empty-inline {
  padding: 10px 0;
  font-size: 12px; color: var(--text-muted);
  text-align: center;
}
.mr-file-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  font-size: 12px;
  margin: 3px 4px 3px 0;
}
.mr-file-chip-name {
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-primary);
}
.mr-file-chip-size {
  color: var(--text-muted); font-size: 11px;
}
.mr-file-chip-del {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; padding: 0 4px; font-size: 14px; border-radius: 4px;
  transition: all 0.15s;
}
.mr-file-chip-del:hover {
  color: #ef4444; background: rgba(239,68,68,0.1);
}

/* ---- 操作按钮行 ---- */
.mr-action-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.mr-btn-clear {
  padding: 9px 18px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 10px;
  color: #ef4444;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.mr-btn-clear:hover {
  background: rgba(239,68,68,0.15);
}
.mr-btn-analyze {
  flex: 1;
  padding: 11px 28px;
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  border: none; border-radius: 10px;
  color: #fff;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.mr-btn-analyze::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.mr-btn-analyze:hover::before { left: 100%; }
.mr-btn-analyze:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(6,182,212,0.3);
}
.mr-btn-analyze:disabled {
  opacity: 0.5; cursor: not-allowed; transform: none;
}
.mr-privacy-note {
  font-size: 11px; color: var(--text-muted);
  margin-top: 10px; text-align: center;
}
.mr-privacy-note a {
  color: #06b6d4; text-decoration: none;
}

/* ---- 结果区 ---- */
.mr-result-area {
  margin: 12px 0;
}

/* ---- 分隔线 ---- */
.mr-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 18px 0 14px 0;
  font-size: 13px; font-weight: 700;
  color: var(--text-muted);
}
.mr-divider::before,
.mr-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.mr-divider span { flex-shrink: 0; }

/* ---- 档案区搜索栏 ---- */
.mr-search-bar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.mr-search-bar .mr-search-input {
  flex: 1;
  padding: 9px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.mr-search-bar .mr-search-input:focus {
  border-color: rgba(6,182,212,0.4);
}
.mr-search-bar .mr-search-input::placeholder {
  color: var(--text-muted);
}

/* ---- 响应式 ---- */
@media (max-width: 640px) {
  .mr-header-bar {
    flex-direction: column; align-items: flex-start; gap: 12px;
    padding: 14px 16px;
  }
  .mr-header-stats { width: 100%; justify-content: space-around; }
  .mr-upload-bar { flex-direction: column; }
  .mr-upload-drop-hint { width: 100%; }
  .mr-action-row { flex-direction: column; }
  .mr-btn-analyze { width: 100%; }
  .mr-file-chip-name { max-width: 100px; }
}

/* ---- 档案列表 — 现代卡片设计（原有样式保留） ---- */
.mr-record-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 10px;
  transition: all 0.25s;
  cursor: default;
}
.mr-record-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(99,102,241,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transform: translateX(2px);
}
.mr-record-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.mr-record-no {
  font-weight: 700;
  font-size: 14px;
  color: #06b6d4;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.mr-record-no:hover { color: #22d3ee; }
.mr-record-no .doc-icon {
  width: 32px; height: 32px;
  background: rgba(6,182,212,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.mr-record-risk {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.mr-record-risk.high { background: rgba(239,68,68,0.12); color: #ef4444; }
.mr-record-risk.mid { background: rgba(245,158,11,0.12); color: #f59e0b; }
.mr-record-risk.low { background: rgba(34,197,94,0.12); color: #22c55e; }
.mr-record-risk.none { background: rgba(255,255,255,0.04); color: var(--text-muted); }
.mr-record-risk.analyzed { background: rgba(6,182,212,0.12); color: #06b6d4; }
.mr-record-risk.expired { background: rgba(245,158,11,0.12); color: #d97706; }
.mr-record-meta {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.mr-record-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.mr-record-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mr-record-actions .btn {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
}
.mr-record-actions .btn:hover {
  transform: translateY(-1px);
}

/* ---- 搜索栏 ---- */
.mr-search-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.mr-search-input {
  flex: 1;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 13px;
  transition: all 0.2s;
  box-sizing: border-box;
}
.mr-search-input:focus {
  outline: none;
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
  background: rgba(255,255,255,0.05);
}
.mr-search-input::placeholder {
  color: rgba(255,255,255,0.2);
}

/* ---- 分析进度 — 脉冲动画 ---- */
.mr-progress-card {
  background: linear-gradient(135deg, rgba(6,182,212,0.06), rgba(99,102,241,0.04));
  border: 1px solid rgba(6,182,212,0.18);
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mr-progress-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(6,182,212,0.04) 50%, transparent 100%);
  animation: mr-scan 2s ease-in-out infinite;
}
@keyframes mr-scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.mr-progress-ring {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  position: relative;
}
.mr-progress-ring svg {
  transform: rotate(-90deg);
}
.mr-progress-ring-bg {
  fill: none;
  stroke: rgba(6,182,212,0.1);
  stroke-width: 3;
}
.mr-progress-ring-fg {
  fill: none;
  stroke: url(#mr-prog-grad);
  stroke-width: 3;
  stroke-linecap: round;
  animation: mr-progress-dash 2s ease-in-out infinite;
}
@keyframes mr-progress-dash {
  0% { stroke-dashoffset: 200; stroke-dasharray: 200; }
  100% { stroke-dashoffset: 60; stroke-dasharray: 200; }
}
.mr-progress-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.mr-progress-record {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.mr-progress-step {
  font-size: 12px;
  color: #06b6d4;
  font-weight: 500;
  min-height: 18px;
  animation: mr-step-fade 0.8s ease-in-out infinite alternate;
}
@keyframes mr-step-fade {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

/* v5.93: 真实进度条样式 */
.mr-progress-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.mr-progress-icon {
  font-size: 36px;
  flex-shrink: 0;
  animation: mr-icon-pulse 2s ease-in-out infinite;
}
@keyframes mr-icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.mr-progress-text {
  flex: 1;
  min-width: 0;
}
.mr-progress-title {
  font-size: 15px;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 4px;
}
.mr-progress-record {
  font-size: 12px;
  color: #94a3b8;
}
.mr-progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}
.mr-progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 0.5s ease, background 0.5s ease;
  position: relative;
}
.mr-progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.2) 50%,
    transparent 100%
  );
  animation: mr-bar-shimmer 1.5s linear infinite;
}
@keyframes mr-bar-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
.mr-progress-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.mr-progress-stage {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}
.mr-progress-percent {
  font-size: 13px;
  color: #06b6d4;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mr-progress-timer {
  font-size: 11px;
  color: #64748b;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.mr-progress-retry {
  font-size: 12px;
  color: #f59e0b;
  text-align: center;
  margin-top: 4px;
  font-weight: 600;
}

/* ---- 分析结果 — 顶级视觉 ---- */
.mr-result-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
}
.mr-result-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.mr-result-banner.high {
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.02));
  border-bottom: 1px solid rgba(239,68,68,0.15);
}
.mr-result-banner.mid {
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.02));
  border-bottom: 1px solid rgba(245,158,11,0.15);
}
.mr-result-banner.low {
  background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(34,197,94,0.02));
  border-bottom: 1px solid rgba(34,197,94,0.15);
}
.mr-result-level {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mr-result-level-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.mr-result-level-icon.high { background: rgba(239,68,68,0.15); }
.mr-result-level-icon.mid { background: rgba(245,158,11,0.15); }
.mr-result-level-icon.low { background: rgba(34,197,94,0.15); }
.mr-result-level-text {
  font-size: 20px;
  font-weight: 800;
}
.mr-result-level-text.high { color: #ef4444; }
.mr-result-level-text.mid { color: #f59e0b; }
.mr-result-level-text.low { color: #22c55e; }
.mr-result-stats {
  display: flex;
  gap: 20px;
}
.mr-result-stat {
  text-align: center;
}
.mr-result-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}
.mr-result-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.mr-result-body {
  padding: 24px;
}

/* ---- 问题卡片 — 时间线风格 ---- */
.mr-issues-list {
  position: relative;
  padding-left: 24px;
}
.mr-issues-list::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px;
}
.mr-issue-card-v2 {
  position: relative;
  padding: 16px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.25s;
}
.mr-issue-card-v2:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
.mr-issue-card-v2::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 20px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid;
}
.mr-issue-card-v2.high::before { background: #ef4444; border-color: rgba(239,68,68,0.3); }
.mr-issue-card-v2.mid::before { background: #f59e0b; border-color: rgba(245,158,11,0.3); }
.mr-issue-card-v2.low::before { background: #22c55e; border-color: rgba(34,197,94,0.3); }
.mr-issue-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.mr-issue-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.mr-issue-badge.high { background: rgba(239,68,68,0.15); color: #ef4444; }
.mr-issue-badge.mid { background: rgba(245,158,11,0.15); color: #f59e0b; }
.mr-issue-badge.low { background: rgba(34,197,94,0.15); color: #22c55e; }
.mr-issue-category {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  padding: 2px 10px;
  border-radius: 6px;
}
.mr-issue-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.mr-issue-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.mr-issue-location {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.02);
  padding: 3px 10px;
  border-radius: 6px;
}
.mr-issue-suggestion {
  font-size: 12px;
  color: #06b6d4;
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(6,182,212,0.05);
  border-left: 3px solid rgba(6,182,212,0.4);
  border-radius: 0 8px 8px 0;
  line-height: 1.6;
}

/* ---- 建议列表 ---- */
.mr-suggestions-list {
  display: grid;
  gap: 8px;
}
.mr-suggestion-item-v2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(16,185,129,0.04);
  border: 1px solid rgba(16,185,129,0.1);
  border-radius: 10px;
  transition: all 0.2s;
}
.mr-suggestion-item-v2:hover {
  background: rgba(16,185,129,0.08);
}
.mr-suggestion-num {
  font-size: 12px;
  font-weight: 800;
  color: #10b981;
  flex-shrink: 0;
}
.mr-suggestion-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- 空状态 — 优雅设计 ---- */
.mr-empty {
  text-align: center;
  padding: 48px 24px;
}
.mr-empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.6;
}
.mr-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.mr-empty-desc {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- 分页 ---- */
.mr-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 12px;
  margin-top: 8px;
}
.mr-pager-info {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- 分析结果操作按钮 ---- */
.mr-result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}

/* ---- 管理配置 — 重新设计 ---- */
.mr-admin-section {
  margin-top: 20px;
}
.mr-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.mr-admin-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 20px;
}
.mr-admin-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mr-config-row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.mr-config-row:last-child {
  border-bottom: none;
}
.mr-config-label {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mr-config-label small {
  font-size: 11px;
  color: var(--text-muted);
}
.mr-config-input {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mr-input-sm {
  width: 100px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  text-align: center;
  transition: all 0.2s;
  box-sizing: border-box;
}
.mr-input-sm:focus {
  outline: none;
  border-color: rgba(6,182,212,0.5);
  box-shadow: 0 0 0 2px rgba(6,182,212,0.08);
}
.mr-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
}
.mr-toggle-label small {
  font-size: 11px;
  color: var(--text-muted);
}

/* ---- 统计卡片 ---- */
.mr-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.mr-stat-card-v2 {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  transition: all 0.3s;
}
.mr-stat-card-v2:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.mr-stat-num-v2 {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mr-stat-label-v2 {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* ---- 关键词列表 ---- */
.mr-keyword-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
  transition: background 0.2s;
}
.mr-keyword-item:hover {
  background: rgba(255,255,255,0.03);
}
.mr-keyword-text {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  min-width: 80px;
  flex: 1;
}
.mr-keyword-cat {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 2px 8px;
  border-radius: 4px;
}
.mr-keyword-status {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.mr-keyword-status.active {
  color: #22c55e;
  background: rgba(34,197,94,0.1);
}
.mr-keyword-status.inactive {
  color: #888;
  background: rgba(255,255,255,0.04);
}

/* ---- 通用元素保留 ---- */
.mr-search-bar {
  display: flex;
  gap: 8px;
}
.mr-input {
  width: 100%;
  padding: 9px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.mr-input:focus {
  outline: none;
  border-color: rgba(6,182,212,0.5);
  box-shadow: 0 0 0 2px rgba(6,182,212,0.1);
}
.mr-input::placeholder {
  color: rgba(255,255,255,0.2);
}
.mr-form-group {
  flex: 1;
  min-width: 150px;
}
.mr-form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

/* ---- 表单行 ---- */
.mr-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.mr-privacy-notice {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 8px;
  padding: 12px;
}
.mr-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--text-secondary);
}
.mr-detail-grid div {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mr-detail-file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
}
.mr-detail-analysis {
  padding: 8px 12px;
  background: rgba(255,255,255,0.015);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 12px;
}

/* ---- 按钮扩展 ---- */
.btn-xs {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 5px;
}
.btn-outline-danger {
  background: transparent;
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
}
.btn-outline-danger:hover {
  background: rgba(239,68,68,0.1);
}
.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
  border-radius: 10px;
}

/* ==================== 移动端响应式 — 病历助手 v6.1 ==================== */

/* ---- 平板 (768px及以下) ---- */
@media (max-width: 768px) {
  /* 主容器 */
  .mr-page {
    padding: 16px 10px 40px;
    max-width: 100%;
  }

  /* Hero 横幅 */
  .mr-hero {
    padding: 20px 18px;
    border-radius: 16px;
    margin-bottom: 16px;
  }
  .mr-hero h2 {
    font-size: 20px;
  }
  .mr-hero p {
    font-size: 12px;
  }
  .mr-hero-features {
    gap: 8px;
    margin-top: 12px;
  }
  .mr-hero-feat {
    padding: 6px 10px;
    font-size: 11px;
  }

  /* 主网格 */
  .mr-main-grid {
    gap: 14px;
  }

  /* 卡片 */
  .mr-card {
    padding: 16px;
    border-radius: 14px;
  }
  .mr-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .mr-card-title {
    font-size: 15px;
  }
  .mr-card-title .icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    font-size: 16px;
  }

  /* 上传区域 */
  .mr-upload-zone {
    padding: 24px 14px;
    border-radius: 14px;
  }
  .mr-upload-zone-icon {
    font-size: 40px;
    margin-bottom: 8px;
  }
  .mr-upload-zone-title {
    font-size: 14px;
  }
  .mr-upload-zone-hint {
    font-size: 11px;
  }
  .mr-upload-zone-types {
    gap: 8px;
  }

  /* 上传按钮 */
  .mr-upload-actions {
    gap: 8px;
  }
  .mr-upload-btn {
    padding: 14px 12px;
  }
  .mr-upload-btn strong {
    font-size: 12px;
  }
  .mr-upload-btn .mr-upload-btn-text small {
    font-size: 10px;
  }

  /* 提交按钮 */
  .mr-submit-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
    justify-content: center;
  }

  /* 文件列表 */
  .mr-file-list {
    max-height: 180px;
  }
  .mr-file-item {
    padding: 8px 10px;
  }
  .mr-file-thumb {
    width: 34px; height: 34px;
    font-size: 16px;
  }
  .mr-file-name {
    font-size: 12px;
  }
  .mr-file-meta {
    font-size: 10px;
  }

  /* 搜索栏 */
  .mr-search-wrap {
    flex-direction: column;
    gap: 8px;
  }
  .mr-search-input {
    width: 100%;
    padding: 10px 14px;
  }

  /* 档案卡片 */
  .mr-record-card {
    padding: 14px;
    border-radius: 12px;
  }
  .mr-record-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .mr-record-no {
    font-size: 13px;
    width: 100%;
  }
  .mr-record-no .doc-icon {
    width: 28px; height: 28px;
    font-size: 14px;
  }
  .mr-record-meta {
    gap: 12px;
    font-size: 11px;
  }
  .mr-record-actions {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .mr-record-actions .btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
  }

  /* 分析结果横幅 */
  .mr-result-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
    gap: 12px;
  }
  .mr-result-level-text {
    font-size: 17px;
  }
  .mr-result-level-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    font-size: 20px;
  }
  .mr-result-stats {
    width: 100%;
    justify-content: space-around;
    gap: 8px;
  }
  .mr-result-stat-num {
    font-size: 20px;
  }
  .mr-result-stat-label {
    font-size: 10px;
  }
  .mr-result-body {
    padding: 16px;
  }

  /* 问题列表时间线 */
  .mr-issues-list {
    padding-left: 18px;
  }
  .mr-issues-list::before {
    left: 6px;
  }
  .mr-issue-card-v2 {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 10px;
  }
  .mr-issue-card-v2::before {
    left: -15px;
    top: 16px;
    width: 8px; height: 8px;
  }
  .mr-issue-title {
    font-size: 13px;
  }
  .mr-issue-desc {
    font-size: 11px;
  }
  .mr-issue-suggestion {
    font-size: 11px;
    padding: 8px 12px;
  }
  .mr-issue-location {
    font-size: 10px;
  }
  .mr-issue-badge {
    font-size: 9px;
    padding: 2px 8px;
  }
  .mr-issue-category {
    font-size: 10px;
    padding: 2px 8px;
  }

  /* 建议列表 */
  .mr-suggestion-item-v2 {
    padding: 8px 12px;
  }
  .mr-suggestion-text {
    font-size: 11px;
  }

  /* 结果操作按钮 */
  .mr-result-actions {
    flex-direction: column;
    gap: 8px;
  }
  .mr-result-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  /* 进度卡片 */
  .mr-progress-card {
    padding: 28px 16px;
  }
  .mr-progress-ring {
    width: 52px; height: 52px;
  }
  .mr-progress-title {
    font-size: 14px;
  }
  .mr-progress-record {
    font-size: 11px;
  }
  .mr-progress-step {
    font-size: 11px;
  }

  /* 空状态 */
  .mr-empty {
    padding: 36px 16px;
  }
  .mr-empty-icon {
    font-size: 44px;
  }
  .mr-empty-title {
    font-size: 14px;
  }
  .mr-empty-desc {
    font-size: 11px;
    max-width: 100%;
  }

  /* 管理后台 */
  .mr-admin-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .mr-admin-card {
    padding: 16px;
  }
  .mr-config-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .mr-config-input {
    width: 100%;
  }
  .mr-input-sm {
    width: 100%;
    max-width: 160px;
  }
  .mr-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .mr-stat-num-v2 {
    font-size: 24px;
  }
  .mr-stat-label-v2 {
    font-size: 10px;
  }

  /* 关键词列表 */
  .mr-keyword-item {
    flex-wrap: wrap;
    gap: 6px;
  }
  .mr-keyword-text {
    min-width: 100%;
  }

  /* 表单 */
  .mr-form-row {
    flex-direction: column;
    gap: 8px;
  }
  .mr-form-group {
    min-width: 0;
  }
  .mr-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- 手机 (480px及以下) ---- */
@media (max-width: 480px) {
  /* 主容器 */
  .mr-page {
    padding: 12px 8px 32px;
  }

  /* Hero 横幅 */
  .mr-hero {
    padding: 16px 14px;
    border-radius: 14px;
  }
  .mr-hero-badge {
    font-size: 10px;
    padding: 3px 10px;
    margin-bottom: 10px;
  }
  .mr-hero h2 {
    font-size: 18px;
  }
  .mr-hero p {
    font-size: 11px;
  }
  .mr-hero-feat {
    padding: 5px 8px;
    font-size: 10px;
  }
  .mr-hero-feat-icon {
    width: 24px; height: 24px;
    border-radius: 6px;
    font-size: 12px;
  }

  /* 卡片 */
  .mr-card {
    padding: 12px;
    border-radius: 12px;
  }

  /* 上传区域 */
  .mr-upload-zone {
    padding: 20px 10px;
    border-radius: 12px;
  }
  .mr-upload-zone-icon {
    font-size: 34px;
  }
  .mr-upload-btn {
    padding: 12px 14px;
    min-height: 44px;
  }
  .mr-upload-btn span {
    font-size: 22px;
  }
  .mr-upload-btn strong {
    font-size: 13px;
  }
  .mr-upload-btn .mr-upload-btn-text small {
    display: none;
  }
  .mr-upload-type-badge {
    font-size: 10px;
    padding: 4px 10px;
  }

  /* 文件列表 */
  .mr-file-item {
    flex-wrap: wrap;
    gap: 8px;
  }
  .mr-file-remove-btn {
    width: 36px; height: 36px; /* 触控友好 */
    border-radius: 10px;
    font-size: 14px;
  }

  /* 提交按钮 */
  .mr-submit-btn {
    padding: 14px 20px;
    font-size: 14px;
    border-radius: 12px;
    min-height: 48px;
  }

  /* 搜索栏 - 平板已有flex-direction:column */
  .mr-search-input {
    font-size: 16px; /* 防止iOS缩放 */
  }
  .mr-search-wrap .btn {
    width: 100%;
    min-height: 44px;
    text-align: center;
    justify-content: center;
  }

  /* 档案卡片 */
  .mr-record-card {
    padding: 12px;
  }
  .mr-record-no {
    font-size: 12px;
  }
  .mr-record-risk {
    font-size: 10px;
    padding: 3px 10px;
  }
  .mr-record-actions .btn {
    min-height: 40px;
    font-size: 11px;
    padding: 8px 6px;
  }
  .mr-record-meta {
    gap: 6px;
    font-size: 10px;
  }

  /* 分析结果 */
  .mr-result-banner {
    padding: 14px;
    gap: 10px;
  }
  .mr-result-level-text {
    font-size: 15px;
  }
  .mr-result-level-icon {
    width: 36px; height: 36px;
    font-size: 18px;
  }
  .mr-result-stats {
    flex-wrap: wrap;
    gap: 10px;
  }
  .mr-result-stat {
    flex: 1 1 calc(50% - 5px);
  }
  .mr-result-stat-num {
    font-size: 18px;
  }
  .mr-result-body {
    padding: 12px;
  }

  /* 问题卡片 */
  .mr-issues-list {
    padding-left: 14px;
  }
  .mr-issue-card-v2 {
    padding: 10px 12px;
  }
  .mr-issue-card-v2::before {
    left: -12px;
    width: 7px; height: 7px;
  }
  .mr-issue-title {
    font-size: 12px;
  }
  .mr-issue-desc {
    font-size: 11px;
    line-height: 1.5;
  }

  /* 进度卡片 */
  .mr-progress-card {
    padding: 24px 12px;
  }
  .mr-progress-ring {
    width: 48px; height: 48px;
  }

  /* 管理后台 */
  .mr-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mr-stat-card-v2 {
    padding: 14px 10px;
  }
  .mr-stat-num-v2 {
    font-size: 22px;
  }
  .mr-config-row {
    padding: 8px 0;
  }
  .mr-keyword-item {
    padding: 8px 10px;
  }
  .mr-input-sm {
    max-width: 100%;
    font-size: 16px; /* 防止iOS缩放 */
    padding: 10px;
  }

  /* 表单输入 */
  .mr-input {
    font-size: 16px; /* 防止iOS缩放 */
    padding: 10px;
  }
  .mr-form-group label {
    font-size: 11px;
  }

  /* 分页 */
  .mr-pager {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  .mr-pager-info {
    width: 100%;
    text-align: center;
    font-size: 11px;
  }

  /* 隐私提示 */
  .mr-privacy-notice {
    padding: 10px;
    font-size: 12px;
  }
}

/* ---- Tab 导航额外响应式 ---- */
@media (max-width: 640px) {
  /* 这些样式从旧版保留，与病历助手Tab相关 */
  .mr-tab {
    min-width: 0;
    padding: 10px 12px;
  }
  .mr-tab span { font-size: 15px !important; }
  .mr-tab div div:first-child { font-size: 11px !important; }
  .mr-tab div div:last-child { display: none; }
  .mr-header { flex-direction: column; align-items: flex-start; }
}

/* ---- 病历助手弹窗移动端适配 ---- */
@media (max-width: 480px) {
  /* 确认弹窗内边距 */
  #mr-confirm-dialog > div > div:first-child { padding: 16px 18px 14px !important; }
  #mr-confirm-dialog > div > div:nth-child(2) { padding: 18px 18px !important; }
  #mr-confirm-dialog > div > div:last-child { padding: 14px 18px !important; flex-wrap: wrap !important; }
  #mr-confirm-dialog > div > div:last-child button { flex: 1 1 auto; min-width: 80px; }

  /* 隐私同意弹窗内边距 */
  #mr-privacy-consent-popup > div > div:first-child { padding: 20px 18px 18px !important; }
  #mr-privacy-consent-popup > div > div:nth-child(2) { padding: 16px 18px !important; }
  #mr-privacy-consent-popup > div > div:last-child { padding: 14px 18px !important; flex-wrap: wrap !important; justify-content: center !important; }
  #mr-privacy-consent-popup > div > div:last-child button { flex: 1 1 auto; min-width: 80px; }

  /* 隐私知情弹窗字体 */
  #mr-privacy-consent-popup div[style*="font-size:18px"] { font-size: 15px !important; }
  #mr-privacy-consent-popup div[style*="font-size:13px"][style*="font-weight:700"] { font-size: 12px !important; }
  #mr-privacy-consent-popup div[style*="font-size:12px"] { font-size: 11px !important; }
  #mr-privacy-consent-popup div[style*="font-size:11px"] { font-size: 10px !important; }

  /* 隐私说明弹窗 */
  #mr-privacy-notice-modal .modal-content { max-width: 94vw !important; }
}
