/* ========== 通用变量 ========== */
:root {
  --primary: #4F8DFD;
  --primary-dark: #2563eb;
  --danger: #ff4d4f;
  --bg: #f5f7fa;
  --white: #ffffff;
  --text: #1f2329;
  --text-sub: #646a73;
  --border: #e5e6eb;
  --safe-bottom: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

#app { min-height: 100vh; }

a { color: inherit; text-decoration: none; }

/* ========== 通用布局 ========== */
.page {
  min-height: 100vh;
  padding-bottom: calc(56px + var(--safe-bottom));
  background: var(--bg);
}
.page-no-tab { padding-bottom: 0; }

.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}
.page-header .title { font-size: 17px; font-weight: 600; }
.page-header .back   { font-size: 20px; color: var(--text); }
.page-header .right  { font-size: 14px; color: var(--primary); }

/* ========== 底部 Tab ========== */
.tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 50;
  padding-bottom: var(--safe-bottom);
}
.tab-bar .tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 12px;
  color: var(--text-sub);
}
.tab-bar .tab.active { color: var(--primary); }
.tab-bar .tab .app-icon { display: block; margin: 0 auto 2px; }

/* ========== 统一线框图标 ========== */
.app-icon {
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
  color: inherit;
  flex-shrink: 0;
}
.app-icon svg { display: block; }

/* ========== 通用组件 ========== */
.card {
  background: var(--white);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.btn-primary {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  height: 46px;
  line-height: 46px;
  border-radius: 23px;
  text-align: center;
  font-size: 16px;
  border: none;
  outline: none;
}
.btn-primary[disabled] { opacity: .5; }
.btn-outline {
  width: 100%;
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
  height: 44px;
  line-height: 44px;
  border-radius: 22px;
  text-align: center;
}
.text-sub { color: var(--text-sub); font-size: 13px; }

/* ========== 专区封面列表(图1) ========== */
.zone-card {
  margin: 12px 12px 0;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.zone-card .cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eee;
  display: block;
}
.zone-card .info {
  padding: 12px 14px;
}
.zone-card .info .name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.zone-card .info .desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}

/* ========== 表单 ========== */
.form-block {
  background: var(--white);
  padding: 8px 16px;
}
.form-block .form-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  height: 56px;
}
.form-block .form-item:last-child { border-bottom: 0; }
.form-block .form-item label {
  width: 100px;
  font-size: 15px;
  color: var(--text);
}
.form-block .form-item input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 15px;
  background: transparent;
  height: 40px;
}
.form-block .form-item .err { color: var(--danger); font-size: 12px; margin-left: 6px; }
.form-submit {
  padding: 24px 16px;
}
.form-tips {
  color: var(--text-sub);
  font-size: 12px;
  padding: 8px 16px;
  line-height: 1.7;
}

/* ========== 平台介绍页(实名认证前置) ========== */
.intro-page { background: var(--white); }
.intro-page .intro-hero {
  width: 100%;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.intro-page .intro-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
/* 专区介绍页: 底部留出固定按钮 + 底部 Tab 的高度避免遮挡 */
.zone-intro { padding-bottom: calc(70px + 56px + var(--safe-bottom)); }
.intro-page .intro-agree {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text);
}
.intro-page .intro-agree input {
  width: 16px;
  height: 16px;
  margin: 0 6px 0 0;
}
.intro-page .intro-agree label.is-disabled { color: var(--text-sub); }
.intro-page .intro-agree .link { color: var(--primary); }
.intro-page .intro-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  padding: 12px 16px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  z-index: 50;
}
/* 专区介绍页有底部 Tab, 固定按钮需上移, 否则被 Tab 遮挡 */
.zone-intro .intro-footer {
  bottom: calc(56px + var(--safe-bottom));
  padding-bottom: 12px;
}

/* ========== 全屏知情同意书 ========== */
.intro-consent-full {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.intro-consent-full .fc-header {
  flex-shrink: 0;
  height: 48px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.intro-consent-full .fc-header .title { font-size: 17px; font-weight: 600; }
.intro-consent-full .fc-header .back  { font-size: 20px; width: 20px; }
.intro-consent-full .fc-header .right { width: 20px; }
.intro-consent-full .fc-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
}
.intro-consent-full .fc-text {
  font-size: 14px;
  line-height: 1.9;
  color: #333;
  white-space: pre-wrap;
}
.intro-consent-full .fc-footer {
  flex-shrink: 0;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  border-top: 1px solid var(--border);
}
.intro-consent-full .fc-tip {
  background: #fffbe6;
  color: #ad6800;
  font-size: 12px;
  text-align: center;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* ========== 实名认证(图4) ========== */
.verify-page { background: var(--bg); }
.verify-page .verify-tip {
  margin: 12px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  color: #ad6800;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  border-radius: 10px;
}
.verify-page .form-block {
  margin: 0 12px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(31,35,41,.04);
}
.verify-page .form-tips {
  padding: 12px 16px 0;
  line-height: 1.8;
}

/* 已认证状态卡片 */
.verify-page .verify-status {
  margin: 20px 12px 0;
  padding: 32px 20px 24px;
  background: var(--white);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(31,35,41,.06);
}
.verify-page .verify-status .status-icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79,141,253,.1);
  color: var(--primary);
}
.verify-page .verify-status .status-icon.success {
  background: rgba(82,196,26,.12);
  color: #52c41a;
}
.verify-page .verify-status .status-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}
.verify-page .verify-status .status-card {
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}
.verify-page .verify-status .status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.verify-page .verify-status .status-row:last-child { border-bottom: 0; }
.verify-page .verify-status .status-row .k { color: var(--text-sub); }
.verify-page .verify-status .status-row .v { color: var(--text); font-weight: 500; }

/* ========== 专区主页(图5) ========== */
.zone-main {
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: calc(56px + var(--safe-bottom));
}
.zone-main .banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eee;
  position: relative;
  overflow: hidden;
}
.zone-main .banner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.zone-main .medical-tip {
  background: #fff;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
}
.zone-main .medical-tip::before {
  content: '⚕';
  color: var(--primary);
}

.meeting-card {
  background: var(--white);
  border-radius: 8px;
  margin: 12px;
  padding: 12px;
  display: flex;
  gap: 12px;
}
.meeting-card .cover {
  width: 100px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #eee;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.meeting-card .meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.meeting-card .meta .title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meeting-card .meta .sub {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
}
.meeting-card .meta .footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 8px;
  margin-top: 8px;
}
/* 观看人数保持单行; 空间不足时整块按钮下移, 不折断按钮文字 */
.meeting-card .meta .footer-row > .text-sub {
  font-size: 11px;
  white-space: nowrap;
  flex: 1 0 auto;
}
.meeting-card .meta .live-tag {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--primary);
  color: #fff;
  margin-left: 4px;
}
.meeting-card .meta .live-tag.end { background: #999; }
.meeting-card .meta .live-tag.soon { background: #fa8c16; }
.meeting-card .meta .card-btns { display: flex; gap: 6px; flex-shrink: 0; margin-left: auto; }
.meeting-card .meta .mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-sub);
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 2px 8px;
  line-height: 1.4;
  white-space: nowrap;
  flex-shrink: 0;
}
.meeting-card .meta .mini-btn.on {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(0, 0, 0, .02);
}

/* ---- 视图切换(列表 / 一排两图) ---- */
.zone-main .view-switch {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
}
.zone-main .view-switch .vs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 24px;
  background: #fff;
  color: var(--text-sub);
}
.zone-main .view-switch .vs-btn + .vs-btn { border-left: 1px solid #e5e5e5; }
.zone-main .view-switch .vs-btn.on { color: #fff; background: var(--primary); }
.zone-main .view-switch .vs-btn .app-icon { display: block; }

/* 一排两图(宫格)模式 */
.view-grid .meeting-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px 12px;
}
.view-grid .meeting-card {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.view-grid .meeting-card .cover {
  width: 100%;
  border-radius: 0;
}
.view-grid .meeting-card .meta { padding: 8px 10px 10px; }
.view-grid .meeting-card .meta .title {
  font-size: 13px;
  line-height: 1.35;
  min-height: 36px;
}
/* 状态角标浮在封面左上角 */
.view-grid .meeting-card .meta .live-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  margin-left: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}
/* 宫格空间有限: 隐藏主讲信息与收藏/预约按钮, 仅留观看人数 */
.view-grid .meeting-card .meta .sub + .sub { display: none; }
.view-grid .meeting-card .meta .card-btns { display: none; }
.view-grid .meeting-card .meta .footer-row { margin-top: 6px; }

/* ========== 个人中心(图6) ========== */
.mine-page .profile-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 24px 16px;
  border-radius: 0 0 16px 16px;
}
.mine-page .profile-card .row1 { display: flex; align-items: center; gap: 14px; }
.mine-page .profile-card .avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  overflow: hidden;
}
.mine-page .profile-card .avatar img { width:100%; height:100%; object-fit:cover; }
.mine-page .profile-card .name { font-size: 18px; font-weight: 600; }
.mine-page .profile-card .info {
  font-size: 13px;
  opacity: .9;
  margin-top: 4px;
}
.mine-page .profile-card .info .col { margin-right: 14px; }
.mine-page .profile-card .tag {
  display: inline-block;
  background: rgba(255,255,255,.2);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  margin-top: 8px;
}

.mine-page .menu-grid {
  background: #fff;
  margin: -16px 12px 12px;
  border-radius: 12px;
  padding: 16px 0;
  display: flex;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.mine-page .menu-grid .item {
  flex: 1;
  text-align: center;
}
.mine-page .menu-grid .item .icon {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
}
.mine-page .menu-grid .item .label {
  font-size: 12px;
  color: var(--text);
}

.mine-page .list {
  background: #fff;
  margin: 0 12px;
  border-radius: 12px;
  overflow: hidden;
}
.mine-page .list .row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.mine-page .list .row:last-child { border-bottom: 0; }
.mine-page .list .row .icon {
  width: 28px;
  text-align: center;
  margin-right: 10px;
}
.mine-page .list .row .label { flex: 1; font-size: 15px; }
.mine-page .list .row .arrow { color: var(--text-sub); font-size: 18px; }

/* ========== 设置页(图7) ========== */
.setting-page { background: var(--bg); }
.setting-page .list {
  margin: 12px;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(31,35,41,.04);
}
.setting-page .list .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.setting-page .list .row:last-child { border-bottom: 0; }
.setting-page .list .row .label { color: var(--text); }
.setting-page .list .row .value { color: var(--text-sub); }
.setting-page .switch-account,
.setting-page .logout-btn {
  margin: 12px;
  padding: 14px;
  background: var(--white);
  border-radius: 12px;
  text-align: center;
  font-size: 15px;
  box-shadow: 0 2px 10px rgba(31,35,41,.04);
}
.setting-page .switch-account { color: var(--primary); }
.setting-page .logout-btn { color: var(--danger); margin-top: 24px; }

/* ========== 直播间报名(首次用户报名信息) ========== */
.signup-page {
  background: var(--bg);
  padding-bottom: 24px;
}
.signup-page .req { color: var(--danger); font-style: normal; }

/* 报名须知提示条 + 勾选框 */
.signup-page .signup-notice {
  background: var(--white);
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.signup-page .signup-notice .txt {
  flex: 1;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-sub);
}
.signup-page .signup-notice .cb {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1px solid #c9cdd4;
  border-radius: 4px;
  color: transparent;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}
.signup-page .signup-notice .cb.on {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* 表单下拉行 */
.signup-page .form-block { margin-top: 12px; }
.signup-page .form-item .pick {
  flex: 1;
  min-width: 0;
  height: 40px;
  display: flex;
  align-items: center;
}
.signup-page .form-item .pick .v {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  color: #c0c4cc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.signup-page .form-item .pick .v.on { color: var(--text); }
.signup-page .form-item .pick .arrow { color: #c0c4cc; font-size: 18px; margin-left: 6px; }
.signup-page .form-item .pick.readonly { justify-content: space-between; }
.signup-page .form-item .area-row { flex: 1; min-width: 0; display: flex; gap: 6px; }
.signup-page .form-item .area-row .pick {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.signup-page .form-item .area-row .pick .v { font-size: 13px; text-align: center; }
.signup-page .form-item .pick .lock {
  flex-shrink: 0;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eaf1ff;
  color: var(--primary);
  font-size: 11px;
}

/* 资质材料上传 */
.cred-block {
  background: var(--white);
  padding: 14px 16px 16px;
  margin-top: 12px;
}
.cred-block .cred-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cred-block .cred-hd .ttl { font-size: 15px; font-weight: 600; }
.cred-block .cred-hd .hd-l { display: flex; align-items: center; gap: 8px; }
.cred-block .cred-hd .example-btn {
  font-size: 12px;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 1px 10px;
  line-height: 1.6;
}
.cred-block .cred-hd .cnt { font-size: 13px; color: var(--text-sub); }
.cred-block .cred-sub {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-sub);
  margin: 6px 0 10px;
}
.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.cred-grid .cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: visible;
}
.cred-grid .cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  background: #f2f3f5;
}
.cred-grid .cell .del {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: var(--white);
  font-size: 14px;
  line-height: 19px;
  text-align: center;
}
.cred-grid .cell.add {
  border: 1px dashed #c9cdd4;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
}
.cred-grid .cell.add .plus { font-size: 26px; line-height: 1; }
.cred-grid .cell.add .cap { font-size: 11px; margin-top: 4px; }
.hide-file { display: none; }

/* 资质信息示例卡片 */
.signup-page .req-card {
  background: var(--white);
  border-radius: 8px;
  margin: 12px;
  padding: 16px;
}
.signup-page .req-card .title { font-weight: 600; margin-bottom: 8px; }
.signup-page .req-card p {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}
.signup-page .req-card p.hl { color: var(--danger); }
.signup-page .req-card p.note { color: #ad6800; }

/* 底部说明 */
.signup-page .signup-note {
  padding: 4px 16px 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--danger);
}

/* ---------- 底部弹出选择器 / 弹窗 ---------- */
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, .45);
}
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3001;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 14px 14px 0 0;
  padding-bottom: var(--safe-bottom);
}
.sheet-mask.top { z-index: 3200; }
.sheet.top { z-index: 3201; }
.sheet-hd {
  flex-shrink: 0;
  height: 50px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.sheet-hd .hd-l { width: 56px; font-size: 14px; color: var(--text-sub); }
.sheet-hd .hd-t { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.sheet-hd .hd-r { width: 56px; text-align: right; font-size: 16px; color: var(--text-sub); }
.sheet-search { flex-shrink: 0; padding: 10px 16px; }
.sheet-search input {
  width: 100%;
  height: 36px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  border-radius: 18px;
  background: #f2f3f5;
  font-size: 14px;
}
.sheet-bd { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-item { padding: 12px 16px; border-bottom: 1px solid #f2f3f5; }
.sheet-item .nm { font-size: 15px; }
.sheet-item .nm.sel { color: var(--primary); }
.sheet-item .sub { margin-top: 3px; font-size: 12px; color: var(--text-sub); }
.sheet-empty { padding: 36px 0; text-align: center; font-size: 13px; color: var(--text-sub); }
.sheet-more { padding: 12px; text-align: center; font-size: 13px; color: var(--primary); }
.sheet-foot { flex-shrink: 0; padding: 10px 16px; border-top: 1px solid var(--border); }
.sheet-foot .add-btn {
  height: 42px;
  line-height: 42px;
  text-align: center;
  border-radius: 21px;
  background: #eaf1ff;
  color: var(--primary);
  font-size: 15px;
  font-weight: 500;
}

/* 科室左右两列联动 */
.dept-cols { display: flex; height: 48vh; }
.dept-cols .col-l { width: 36%; overflow-y: auto; background: #f7f8fa; }
.dept-cols .col-r { flex: 1; overflow-y: auto; }
.dept-cols .c-item { padding: 13px 12px; font-size: 14px; }
.dept-cols .col-l .c-item.active { background: var(--white); color: var(--primary); font-weight: 600; }

/* 新增医院弹窗 */
.dlg-mask {
  position: fixed;
  inset: 0;
  z-index: 3100;
  background: rgba(0, 0, 0, .45);
}
.dlg {
  position: fixed;
  z-index: 3101;
  left: 24px;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  padding: 20px 18px 18px;
  border-radius: 12px;
  background: var(--white);
}
.dlg .dlg-ttl { font-size: 17px; font-weight: 600; text-align: center; margin-bottom: 14px; }
.dlg .dlg-form .fi { display: flex; align-items: center; margin-bottom: 12px; }
.dlg .dlg-form .fi > label { flex-shrink: 0; width: 76px; font-size: 14px; }
.dlg .dlg-form .fi > input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: 0;
  font-size: 14px;
}
.dlg .dlg-form .area-row { flex: 1; min-width: 0; display: flex; gap: 6px; }
.dlg .dlg-form .pick {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.dlg .dlg-form .pick .v {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #c0c4cc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dlg .dlg-form .pick .v.on { color: var(--text); }
.dlg .dlg-form .pick .arrow { margin-left: 4px; font-size: 16px; color: #c0c4cc; }
.dlg .dlg-btn {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: 0;
  outline: 0;
  border-radius: 22px;
  background: #f7b500;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
}
.dlg .dlg-btn[disabled] { opacity: .6; }

/* 图片大图预览 */
.img-viewer {
  position: fixed;
  inset: 0;
  z-index: 3500;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .92);
}
.img-viewer img { max-width: 100%; max-height: 100%; }

/* ========== 占位 ========== */
.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--text-sub);
}
.empty .icon { font-size: 50px; display: block; margin-bottom: 10px; }

/* ========== 直播播放器 ========== */
.player-page { background: var(--bg); min-height:100vh; color: var(--text); }
.player-page .video-wrap {
  width:100%; aspect-ratio: 16/9;
  background: linear-gradient(160deg, #42506b 0%, #22314a 100%);
  display:flex; align-items:center; justify-content:center;
  position:relative;
  border-radius: 0;
  overflow: hidden;
}
.player-page .video-wrap video {
  width:100%; height:100%; display:block;
}
.player-page .video-wrap iframe {
  width:100%; height:100%; border:0; display:block;
}
.player-page .video-wrap .placeholder {
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  text-align:center; color: rgba(255,255,255,.82);
}
/* 无直播/回放地址时, 顶部默认用封面图 */
.player-page .video-wrap .placeholder .ph-cover {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.player-page .video-wrap .placeholder .ph-fg {
  position:relative; z-index:1;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}
.player-page .video-wrap .placeholder .icon {
  display:flex; justify-content:center; margin-bottom:10px; color: rgba(255,255,255,.9);
}
.player-page .info {
  padding: 16px;
  background: var(--white);
  margin: 12px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(31,35,41,.05);
}
.player-page .info .title { font-size:18px; font-weight:600; margin-bottom:8px; color: var(--text); }
.player-page .info .sub   { font-size:13px; color: var(--text-sub); margin-bottom:8px; }
/* 简介: 保留后台从 Word 粘贴的段落与字号 */
.player-page .info .desc { margin-bottom:8px; }
.player-page .info .desc-label { font-size:13px; color: var(--text-sub); margin-bottom:6px; }
.player-page .info .desc-body {
  font-size:13px; color: var(--text); line-height:1.75;
  word-break:break-word; overflow-wrap:anywhere;
}
.player-page .info .desc-body p,
.player-page .info .desc-body div { margin:0 0 8px; }
.player-page .info .desc-body p:last-child,
.player-page .info .desc-body div:last-child { margin-bottom:0; }
.player-page .info .desc-body ul,
.player-page .info .desc-body ol { margin:0 0 8px; padding-left:20px; }
.player-page .info .desc-body li { margin-bottom:4px; }
.player-page .info .desc-body blockquote {
  margin:0 0 8px; padding-left:10px;
  border-left:3px solid var(--primary); color: var(--text-sub);
}
.player-page .info .desc-body table { width:100%; border-collapse:collapse; margin:0 0 8px; font-size:12px; }
.player-page .info .desc-body td,
.player-page .info .desc-body th { border:1px solid #e5e7eb; padding:4px 6px; }
.player-page .info .speaker { font-size:13px; color: var(--text); }
.player-page .actions {
  display:flex; gap:12px; padding: 0 12px 16px;
}
.player-page .actions .btn {
  flex:1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--white); color: var(--primary);
  border: 1px solid var(--primary);
  height:40px; border-radius:20px; text-align:center; font-size:14px;
}
.player-page .actions .btn.on { background: var(--primary); color:#fff; }

/* 列表项(图6 收藏/预约/观看记录 子页) */
.sub-list-page .item {
  background:#fff; margin:12px; border-radius:8px; padding:12px;
  display:flex; gap:12px;
}
.sub-list-page .item .cover {
  width: 110px; aspect-ratio: 16 / 9; border-radius:6px;
  background:#eee; background-size:cover; background-position:center; flex-shrink:0;
}
.sub-list-page .item .meta { flex:1; display:flex; flex-direction:column; justify-content:space-between; }
.sub-list-page .item .meta .title {
  font-size:15px; font-weight:500;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.sub-list-page .item .meta .sub { font-size:12px; color:var(--text-sub); margin-top:4px; }
