:root {
  --bg-dark: #0b132b;
  --bg-card: #152244;
  --bg-card-light: #1e305e;
  --bg-surface: #f4f7fb;
  --card-white: #ffffff;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #ef4444;
  --accent-purple: #8b5cf6;
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-card: 0 8px 26px rgba(15, 23, 42, 0.08);
  --shadow-float: 0 14px 36px rgba(37, 99, 235, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(145deg, #0b132b 0%, #1c2541 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* 手机 Web PPT 容器（手机端全屏，电脑端居中高质感手机壳/宽屏可切换） */
.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg-surface);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
  overflow-x: hidden;
  transition: max-width 0.25s ease;
}

.app-shell.wide-mode {
  max-width: 1120px;
}

/* 登录页（深海鎏金医疗科技风） */
.login-screen {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 15%, #1e3a8a 0%, #0b132b 65%);
  color: #fff;
  padding: 36px 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-brand {
  text-align: center;
  margin-top: 20px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.login-brand h1 {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-brand p {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 8px;
}

.login-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 26px 20px;
  margin: 24px 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #cbd5e1;
}

.light-label {
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  font-size: 15px;
  background: #fff;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-card .form-input {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.login-card .form-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
  transition: all 0.15s ease;
}

.btn-detail:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  transform: translateY(-1px);
}

.btn-detail .detail-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

/* 快捷演示账号胶囊 */
.quick-accounts {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
}

.quick-title {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
}

.chip-acc {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
}

.chip-acc:hover {
  background: rgba(59, 130, 246, 0.35);
  border-color: #60a5fa;
}

/* 顶部导航栏 */
.top-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  padding: 14px 16px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title {
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #fde68a;
  font-weight: 600;
}

.header-sub {
  margin-top: 6px;
  font-size: 12px;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Web PPT 幻灯片卡片流 */
.main-content {
  flex: 1;
  padding: 14px 14px 92px;
}

.ppt-slide {
  background: var(--card-white);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  overflow: hidden;
}

.ppt-slide.hero-slide {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  border: none;
}

.slide-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  margin-bottom: 10px;
}

.hero-slide .slide-tag {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
}

.slide-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 四宫格漏斗指标 (已抢单/已提单/已过会/已进货) */
.funnel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.funnel-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
}

.ppt-slide:not(.hero-slide) .funnel-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.funnel-label {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}

.ppt-slide:not(.hero-slide) .funnel-label {
  color: #64748b;
}

.funnel-val-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 6px;
}

.funnel-num {
  font-size: 24px;
  font-weight: 800;
}

.funnel-pct {
  font-size: 14px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.pct-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.pct-amber { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.pct-purple { background: rgba(139, 92, 246, 0.2); color: #c084fc; }
.pct-emerald { background: rgba(16, 185, 129, 0.2); color: #34d399; }

.ppt-slide:not(.hero-slide) .pct-blue { background: #dbeafe; color: #1d4ed8; }
.ppt-slide:not(.hero-slide) .pct-amber { background: #fef3c7; color: #b45309; }
.ppt-slide:not(.hero-slide) .pct-purple { background: #ede9fe; color: #6d28d9; }
.ppt-slide:not(.hero-slide) .pct-emerald { background: #d1fae5; color: #047857; }

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
}

.ppt-slide:not(.hero-slide) .progress-bar-bg {
  background: #e2e8f0;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.35s ease;
}

/* 潜力三联展示条 */
.potential-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
}

.ppt-slide:not(.hero-slide) .potential-strip {
  border-top-color: #cbd5e1;
}

.pot-item {
  text-align: center;
  background: rgba(15, 23, 42, 0.35);
  padding: 8px 4px;
  border-radius: 10px;
}

.ppt-slide:not(.hero-slide) .pot-item {
  background: #eff6ff;
}

.pot-item .pot-title {
  font-size: 11px;
  color: #94a3b8;
}

.ppt-slide:not(.hero-slide) .pot-item .pot-title {
  color: #475569;
}

.pot-item .pot-num {
  font-size: 16px;
  font-weight: 800;
  color: #38bdf8;
  margin-top: 2px;
}

.ppt-slide:not(.hero-slide) .pot-item .pot-num {
  color: #1d4ed8;
}

/* 面包屑钻取导航 */
.drill-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.crumb-link {
  color: var(--primary);
  cursor: pointer;
}

.crumb-sep {
  color: #94a3b8;
}

/* 医院卡片 & 释放置顶样式 */
.hosp-card {
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 12px;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s;
}

.hosp-card.released-top {
  border: 2px solid #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 45%);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.16);
}

.released-banner {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  color: #92400e;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  margin: 8px 0;
  line-height: 1.45;
}

.admin-comment-banner {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  color: #1e40af;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  margin: 8px 0;
  line-height: 1.45;
}

.no-progress-banner {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  margin: 8px 0;
  line-height: 1.45;
}

.hosp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.hosp-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.tag-city { background: #e0f2fe; color: #0369a1; }
.tag-grade { background: #f3e8ff; color: #6b21a8; }
.tag-nature { background: #dcfce7; color: #15803d; }
.tag-code { background: #f1f5f9; color: #475569; font-family: monospace; }
.tag-released { background: #f59e0b; color: #fff; }
.tag-key125 { background: #dbeafe; color: #1e40af; }

/* 三阶段步骤条 */
.stage-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
  background: #f8fafc;
  padding: 8px;
  border-radius: 12px;
}

.step-pill {
  text-align: center;
  padding: 6px 4px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #64748b;
}

.step-pill.done {
  background: #d1fae5;
  color: #047857;
}

.step-pill.skip {
  background: #dbeafe;
  color: #1d4ed8;
}

.step-pill.active {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #f59e0b;
}

/* 底部固定导航栏 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  padding: 8px 6px 14px;
  z-index: 60;
}

.app-shell.wide-mode .bottom-nav {
  max-width: 1120px;
}

.nav-item {
  flex: 1;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
}

.nav-item.active {
  color: var(--primary);
  font-weight: 800;
}

.nav-icon {
  font-size: 19px;
  display: block;
  margin-bottom: 2px;
}

.nav-badge {
  position: absolute;
  top: 0;
  right: 22%;
  background: var(--accent-rose);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 99px;
  font-weight: 800;
}

/* 模态抽屉弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 20px 18px 28px;
  overflow-y: auto;
  animation: slideUp 0.22s ease-out;
}

.app-shell.wide-mode .modal-sheet {
  max-width: 640px;
  border-radius: 20px;
  margin-bottom: 4vh;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 17px;
  font-weight: 800;
}

.close-btn {
  background: #f1f5f9;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}

/* 复选/单选胶囊组 */
.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opt-pill {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background: #f8fafc;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.opt-pill.selected {
  background: #dbeafe;
  border-color: var(--primary);
  color: var(--primary-dark);
}

.opt-pill.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stage-box {
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  background: #f8fafc;
}

.stage-box.locked {
  opacity: 0.55;
  background: #f1f5f9;
}

/* 顶部消息吐司 */
.toast-box {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  max-width: 92%;
  text-align: center;
}
