/* ===== 公共前台样式 ===== */
.site { background: #f6f8fc; }
.site * { box-sizing: border-box; }

.site-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---- 导航 ---- */
.site-topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eef0f4;
}
.site-navbar { display: flex; align-items: center; gap: 20px; height: 64px; }
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.site-logo-img { width: 34px; height: 34px; }
.site-logo-dot {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; font-weight: 700; font-size: 18px;
}
.site-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.site-brand-text b { font-size: 17px; letter-spacing: .3px; }
.site-brand-text small { font-size: 11px; color: var(--muted); }

.site-nav { display: flex; gap: 4px; margin-left: 8px; }
.site-nav a {
  text-decoration: none; color: #475069; font-weight: 500; padding: 8px 13px; border-radius: 8px;
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: #eef2fb; color: var(--brand); }
.site-nav a.active { background: #e8eefd; color: var(--brand-dark); font-weight: 600; }

.site-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.lang-switch {
  text-decoration: none; font-weight: 700; font-size: 12.5px; color: var(--brand-dark);
  border: 1px solid #cdd9f6; padding: 6px 12px; border-radius: 999px; background: #fff;
}
.lang-switch:hover { background: #e8eefd; }
.btn.small { padding: 6px 13px; font-size: 13px; }

/* ---- Hero ---- */
.site-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff; padding: 72px 0 48px; position: relative; overflow: hidden;
}
.site-hero-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-copy { flex: 1 1 460px; }
.hero-copy h1 { font-size: 40px; line-height: 1.2; margin: 0 0 16px; letter-spacing: .5px; }
.hero-sub { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.9); margin: 0 0 26px; max-width: 600px; }
.hero-cta { display: flex; gap: 12px; }
.hero-cta .btn.primary { background: #fff; color: #1d4ed8; }
.hero-cta .btn.primary:hover { background: #e6ecff; }
.hero-cta .btn.ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.hero-cta .btn.ghost:hover { background: rgba(255,255,255,.12); }
.hero-art { flex: 1 1 340px; display: flex; justify-content: center; }
.hero-img { width: 100%; max-width: 420px; filter: drop-shadow(0 16px 30px rgba(0,0,0,.25)); }

.hero-stats {
  margin-top: 46px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 16px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px; padding: 22px; backdrop-filter: blur(4px);
}
.hero-stat { text-align: center; }
.hero-stat .h-num { font-size: 30px; font-weight: 700; }
.hero-stat .h-lbl { font-size: 13px; color: rgba(255,255,255,.85); }

/* ---- 板块 ---- */
.sect { padding: 52px 0 8px; }
.sect-head { text-align: center; margin-bottom: 32px; }
.sect-head h2 { font-size: 28px; margin: 0 0 8px; }
.sect-head p { color: var(--muted); margin: 0; }
.page-head { text-align: center; padding-top: 36px; }
.page-head h1 { font-size: 30px; margin: 0 0 8px; }
.page-head p { color: var(--muted); margin: 0; }

/* ---- 功能卡片 ---- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 20px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04); transition: transform .15s, box-shadow .15s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(37,99,235,.12); }
.feature-img { width: 64px; height: 64px; margin-bottom: 14px; }
.feature-card h3 { margin: 0 0 8px; font-size: 17px; }
.feature-card p { margin: 0; color: #5b6270; line-height: 1.7; }

/* ---- 步骤 ---- */
.how-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; }
.how-step {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-align: center;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-weight: 700; font-size: 18px;
}
.how-step h3 { margin: 14px 0 6px; font-size: 16px; }
.how-step p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.how-cta { text-align: center; margin: 28px 0 40px; }

/* ---- 详情页 ---- */
.feat-detail-list { margin-top: 8px; }
.feat-detail {
  display: flex; align-items: center; gap: 40px; margin-bottom: 34px; background: #fff;
  border: 1px solid var(--line); border-radius: 18px; padding: 30px;
}
.feat-detail.flip { flex-direction: row-reverse; }
.fd-img { flex: 1 1 320px; display: flex; justify-content: center; }
.fd-img img { width: 100%; max-width: 320px; }
.fd-copy { flex: 1 1 360px; }
.fd-copy h3 { font-size: 21px; margin: 0 0 10px; }
.fd-copy p { color: #5b6270; line-height: 1.75; margin: 0; }

.cta-band {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #fff; border-radius: 18px;
  padding: 40px; text-align: center; margin-bottom: 48px;
}
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0 0 18px; }
.cta-band .btn.primary { background: #fff; color: #1d4ed8; }

/* ---- 申请页 ---- */
.apply-card { max-width: 720px; margin: 26px auto; }
.apply-note { color: var(--muted); font-size: 12.5px; margin: 16px 0 14px; }
.apply-msg { padding: 10px 14px; border-radius: 10px; margin-top: 14px; font-size: 14px; }
.apply-msg.good { background: #e7f6ec; color: var(--ok); border: 1px solid #bfe6cd; }
.apply-msg.bad { background: #fee2e2; color: var(--bad); border: 1px solid #f8b4b4; }
.btn.submit { width: 100%; padding: 12px; font-size: 15px; }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.about-card h3 { margin-top: 0; }
.aid-kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.aid-kv span:first-child { color: var(--muted); }
.about-legal { margin-top: 20px; }
.about-legal p { margin: 6px 0; }

/* ---- 页脚 ---- */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 56px; padding: 44px 0 26px; }
.site-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 28px; }
.foot-title { color: #fff; font-weight: 600; margin-bottom: 10px; font-size: 15px; }
.foot-line { font-size: 13px; margin: 6px 0; }
.foot-line a { color: #93c5fd; text-decoration: none; }
.foot-line a:hover { text-decoration: underline; }
.site-copyright {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #94a3b8;
}
.site-icp a { color: #94a3b8; text-decoration: none; }
.site-icp a:hover { color: #fff; }
.site-icp .sep { margin: 0 8px; }

/* ---- 响应式 ---- */
@media (max-width: 820px) {
  .site-navbar { flex-wrap: wrap; height: auto; padding: 12px 0; }
  .site-nav { order: 3; width: 100%; justify-content: center; }
  .site-actions { margin-left: auto; }
  .hero-copy h1 { font-size: 30px; }
  .feat-detail { flex-direction: column !important; }
  .about-grid { grid-template-columns: 1fr; }
}

/* ---- 会员登录链接 ---- */
.site-auth-link {
  text-decoration: none; font-weight: 600; font-size: 13px; color: var(--brand-dark); padding: 6px 2px;
}
.site-auth-link:hover { color: var(--brand); }

/* ---- 登录 / 注册 角色下拉菜单 ---- */
.site-login-menu { position: relative; }
.site-login-menu .site-auth-link { cursor: pointer; }
.site-login-drop {
  position: absolute; right: 0; top: 100%; margin-top: 6px; min-width: 220px;
  background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 30, 60, .14); padding: 6px; z-index: 300;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .18s ease;
}
.site-login-menu:hover .site-login-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.site-login-drop a {
  display: block; padding: 9px 12px; font-size: 13.5px; font-weight: 600;
  color: var(--navy, #1e3a5f); text-decoration: none; border-radius: 8px; white-space: nowrap;
}
.site-login-drop a:hover { background: #f0f5ff; color: var(--brand, #2a6ec8); }

/* ---- AI 在线客服浮窗 ---- */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 8px 22px rgba(29,78,216,.4);
  transition: transform .15s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab-badge {
  position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: #ef4444; border: 2px solid #fff;
}
.chat-dialog {
  position: fixed; right: 22px; bottom: 90px; z-index: 200;
  width: 360px; max-width: 94vw; height: 480px; max-height: 70vh;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(15,23,42,.28);
  display: flex; flex-direction: column;
  border: 1px solid #e6ebf5;
}
/* 关键：display:flex 会覆盖 HTML hidden 属性，需用更高特异性强制隐藏，关闭按钮才生效 */
.chat-dialog[hidden] { display: none; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(90deg, #2563eb, #1d4ed8); color: #fff; padding: 14px 16px;
}
.chat-head b { font-size: 15px; }
.chat-dot { display: block; font-size: 11px; color: #d7e3ff; margin-top: 2px; }
.chat-dot::before { content: ""; }
.chat-close { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.chat-body {
  flex: 1; overflow-y: auto; padding: 14px; background: #f6f8fc;
  display: flex; flex-direction: column; gap: 12px;
}
.chat-msg { display: flex; gap: 8px; max-width: 92%; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar {
  width: 28px; height: 28px; border-radius: 50%; font-size: 11px; font-weight: 700; flex: none;
  display: grid; place-items: center; background: #2563eb; color: #fff;
}
.chat-msg.user .chat-avatar { background: #6b7280; }
.chat-bubble {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px;
  font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
}
.chat-msg.user .chat-bubble { background: #e8eefd; border-color: #c9d7f7; }
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-input input { flex: 1; }
.chat-send {
  border: none; background: var(--brand); color: #fff; border-radius: 8px; padding: 0 16px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.chat-send:hover { background: var(--brand-dark); }

/* ---- 会员登录 / 注册 ---- */
.auth-wrap { max-width: 400px; margin: 40px auto; }
.auth-title { text-align: center; font-size: 24px; margin: 0 0 6px; }
.auth-sub { text-align: center; color: var(--muted); margin: 0 0 22px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13px; }
.auth-switch a { color: var(--brand-dark); font-weight: 600; }

/* ---- 患者端登录 / 注册（UI 升级） ---- */
.patient-auth { max-width: 440px; }
.patient-auth-hero { text-align: center; margin-bottom: 18px; }
.patient-auth-hero .site-logo-img { display: inline-block; margin-bottom: 6px; }
.patient-auth-hero .auth-sub { font-size: 12.5px; margin: 6px 0 0; }
.patient-auth-card { padding: 24px 26px 22px; }
.patient-auth-card .field { margin-bottom: 4px; }
.auth-field label { font-weight: 600; color: var(--navy, #1e3a5f); display: block; margin-bottom: 6px; }

.auth-tab-row { display: flex; gap: 8px; margin-bottom: 12px; }
.auth-tab-row.sm { margin-bottom: 16px; }
.auth-tab { flex: 1; border: 1px solid var(--line, #dde3ec); background: #f7f9fc; color: var(--muted); border-radius: 10px; padding: 10px 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.auth-tab-row.sm .auth-tab { flex: none; padding: 6px 16px; }
.auth-tab:hover { border-color: var(--brand, #2a6ec8); color: var(--brand-dark, #1e5bb0); }
.auth-tab.on { background: var(--brand, #2a6ec8); border-color: var(--brand, #2a6ec8); color: #fff; }

.phone-input { display: flex; align-items: center; border: 1px solid var(--line, #dde3ec); border-radius: 10px; overflow: hidden; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.phone-input:focus-within { border-color: var(--brand-dark, #1e5bb0); box-shadow: 0 0 0 3px rgba(30, 91, 176, .12); }
.phone-prefix { flex: none; padding: 0 12px; display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); border-right: 1px solid var(--line, #e5e9f0); background: #f7f9fc; font-weight: 600; user-select: none; }
.phone-input input { flex: 1; border: 0; outline: none; padding: 12px 12px; font-size: 16px; letter-spacing: .5px; min-width: 0; }

.password-input { position: relative; display: flex; align-items: center; border: 1px solid var(--line, #dde3ec); border-radius: 10px; overflow: hidden; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.password-input:focus-within { border-color: var(--brand-dark, #1e5bb0); box-shadow: 0 0 0 3px rgba(30, 91, 176, .12); }
.password-input input { flex: 1; border: 0; outline: none; padding: 12px 12px; font-size: 15px; min-width: 0; }
.eye-btn { flex: none; border: 0; background: transparent; cursor: pointer; font-size: 16px; padding: 0 12px; color: var(--muted); line-height: 1; transition: transform .1s ease; }
.eye-btn:hover { color: var(--brand-dark, #1e5bb0); }
.eye-btn:active { transform: scale(.88); }

.field-hint { min-height: 16px; margin: 5px 2px 0; font-size: 12px; color: var(--muted); }
.field-hint.warn { color: #b8871d; }
.field-hint.ok { color: #1a7f37; }
.field-hint.bad { color: #c62828; font-weight: 600; }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 4px; font-size: 13px; }
.auth-check { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; }
.auth-check input { accent-color: var(--brand-dark, #1e5bb0); width: 15px; height: 15px; }
.auth-link { color: var(--brand-dark, #1e5bb0); text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-btn { width: 100%; margin-top: 14px; padding: 12px; font-size: 16px; letter-spacing: 3px; border-radius: 10px; }
.disclaimer-banner { margin-top: 4px; }

/* ---- 我的药店 ---- */
.account-card { max-width: 640px; margin: 26px auto; }
.account-kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.account-kv span:first-child { color: var(--muted); }
.account-lic-table { width: 100%; border-collapse: collapse; }
.account-lic-table th, .account-lic-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.account-lic-table th { background: #fafbfc; color: var(--muted); font-size: 12.5px; white-space: nowrap; }

/* ---- 互联网医院 & 知识库 ---- */
.disclaimer-banner {
  background: #fff2f2; border: 1px solid #e8c4c4; color: #b83232;
  border-radius: 10px; padding: 10px 14px; margin: 14px 0; font-size: 13px; line-height: 1.6;
}
.disclaimer-banner.big { padding: 13px 16px; font-size: 14px; }
.kb-card { transition: transform .12s ease; }
.kb-card:hover { transform: translateY(-2px); }
.drug-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 8px; }
.drug-card { border: 1px solid #e3e8f0; border-radius: 10px; padding: 12px; background: #fbfcff; }
.drug-card b { color: var(--navy, #1e3a5f); }
.drug-card p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.drug-card .otc-note { color: #b83232; font-size: 12px; margin-top: 8px; border-top: 1px dashed #eee; padding-top: 6px; }

/* ---- 互联网医院：图片上传预览 ---- */
.img-preview-row { display: flex; flex-wrap: wrap; gap: 10px; }
.img-types-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.thumb-item { display: inline-flex; flex-direction: column; align-items: center; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* ---- 软件下载页 ---- */
.download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 12px; }
.download-card { border: 1px solid #e3e8f0; border-radius: 12px; padding: 18px; background: #fbfcff; }
.download-card .dl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.download-card h3 { color: var(--navy, #1e3a5f); }
.dl-notes { font-family: inherit; background: #f4f6fa; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; color: var(--muted); white-space: pre-wrap; margin: 6px 0 8px; }
.dl-sha { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.dl-sha summary { cursor: pointer; color: var(--brand-dark, #1e5bb0); }
.dl-sha code { display: block; font-size: 11px; word-break: break-all; background: #f4f6fa; padding: 6px 8px; border-radius: 6px; margin-top: 4px; }

/* ---- KB 页 AI 智能问诊大弹窗 ---- */
.kbai-open-btn { }
.ai-consult-open { font-size: 13.5px; padding: 7px 12px; }
.ai-tag-report { display: inline-block; margin: 2px 0; font-size: 11.5px; color: #8a5a00; background: #fff6de; border: 1px solid #f3dc9a; border-radius: 6px; padding: 1px 7px; }
.kbai-mask { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: flex; align-items: center; justify-content: center; z-index: 120; padding: 18px; }
.kbai-dialog { background: #fff; border-radius: 16px; width: 860px; max-width: 96vw; height: 88vh; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.kbai-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #edf0f5; background: linear-gradient(90deg,#f4f8ff,#eef4ff); }
.kbai-head b { font-size: 17px; color: var(--navy, #1e3a5f); }
.kbai-close { border: none; background: #fff; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 18px; line-height: 1; color: var(--muted); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.kbai-close:hover { color: #b83232; }
.kbai-tabs { display: flex; gap: 4px; padding: 10px 18px 0; border-bottom: 1px solid #edf0f5; background: #fff; }
.kbai-tab { border: 1px solid transparent; border-bottom: none; background: transparent; padding: 8px 16px; cursor: pointer; font-size: 14px; color: var(--muted); border-radius: 10px 10px 0 0; }
.kbai-tab.on { background: var(--brand-soft, #eaf1ff); color: var(--navy, #1e3a5f); font-weight: 700; }
.kbai-body { flex: 1; overflow-y: auto; padding: 16px 18px; }
.kbai-zones { }
.kbai-grid { padding: 2px 18px 16px; background: #fff; }
.kbai-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.kbai-row.full { grid-template-columns: 1fr; }
.kbai-grid .field label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 4px; }
.kbai-grid textarea, .kbai-grid input { width: 100%; border: 1px solid #d7dee9; border-radius: 8px; padding: 9px 11px; font-size: 14px; font-family: inherit; }
.kbai-grid textarea:focus, .kbai-grid input:focus { outline: none; border-color: var(--brand, #2f6fdc); box-shadow: 0 0 0 3px rgba(47,111,220,.12); }
.kbai-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid #edf0f5; background: #fbfcff; }
.kbai-result-empty { color: var(--muted); text-align: center; padding: 30px 10px; }
.kbai-hist-item { border-bottom: 1px solid #eef1f6; padding: 10px 2px; }
.kbai-hist-item .h-time { font-size: 12px; color: var(--muted); }

/* ============ AI 结果 · 打字机播放 + 纤细字体 ============ */
/* 打字机：未开始段显示灰影占位（布局不跳动），正在打的段落实字 */
.ty-pending { opacity: .2; }
.ty-active   { opacity: 1; }
.ty-dim      { opacity: .95; }
.ty-caret {
  display: inline-block; width: 2px; height: 1em;
  vertical-align: text-bottom; margin-left: 1px;
  background: var(--brand, #2f6fdc);
  animation: ty-blink 0.9s steps(1) infinite;
}
@keyframes ty-blink { 50% { opacity: 0; } }

/* 纤细字体（AI 分析结果正文） */
#ai_result, #ka_result, #resultBody { font-weight: 300; }
#ai_result p, #ka_result p, #resultBody p {
  font-weight: 300;
  letter-spacing: .2px;
  line-height: 1.8;
  color: var(--ink, #2b3644);
}
#ai_result .kv, #ka_result .kv, #resultBody .kv {
  font-size: 14px; color: var(--muted);
}

/* =========================================================
   互联网医院 · 健康问诊页（UI 升级）
   ========================================================= */
.hosp-hero {
  position: relative;
  margin: 0 -24px;
  background: linear-gradient(135deg, #0f3d66 0%, #1e5bb0 48%, #2a6ec8 100%);
  color: #fff;
  padding: 46px 24px 96px;
  overflow: hidden;
}
.hosp-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.10), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(80,150,255,.18), transparent 34%),
    radial-gradient(circle at 78% 88%, rgba(255,255,255,.07), transparent 30%);
}
.hosp-hero-inner { position: relative; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; z-index: 1; }
.hosp-hero-copy { flex: 1 1 460px; }
.hosp-hero-tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.34);
  font-size: 12.5px; letter-spacing: .4px; margin-bottom: 14px;
}
.hosp-hero-copy h1 { font-size: 34px; line-height: 1.25; margin: 0 0 14px; letter-spacing: .3px; }
.hosp-hero-copy p { font-size: 15.5px; line-height: 1.75; color: rgba(255,255,255,.9); margin: 0 0 24px; max-width: 560px; }
.hosp-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hosp-hero-cta .btn.primary { background: #fff; color: #1d4ed8; }
.hosp-hero-cta .btn.primary:hover { background: #e6ecff; }
.hosp-hero-cta .btn.ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.hosp-hero-cta .btn.ghost:hover { background: rgba(255,255,255,.12); }
.hosp-hero-art { flex: 1 1 420px; position: relative; min-height: 280px; }
.hosp-hero-grid { position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 34px 34px; border-radius: 20px; }
.hosp-hero-card {
  position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(5px); border-radius: 16px; padding: 16px 18px; width: 260px;
}
.hosp-hero-card:nth-child(2) { top: 6px; left: 10px; }
.hosp-hero-card:nth-child(3) { top: 118px; right: 6px; width: 250px; }
.hosp-hero-card:nth-child(4) { bottom: 0; left: 34px; }
.hosp-hero-card-icon { font-size: 26px; margin-bottom: 6px; }
.hosp-hero-card-t { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.hosp-hero-card-d { font-size: 12.5px; color: rgba(255,255,255,.86); line-height: 1.55; }
.hosp-hero-stats {
  position: relative; z-index: 1; margin-top: 34px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px;
}
.hosp-hero-stat {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px; padding: 14px 16px; text-align: center;
}
.hosp-hero-stat b { display: block; font-size: 16px; margin-bottom: 3px; }
.hosp-hero-stat span { font-size: 12.5px; color: rgba(255,255,255,.82); }

/* 使用流程步骤条 */
.hosp-steprow {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 14px;
  margin-top: -46px; margin-bottom: 6px;
}
.hosp-step {
  background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 14px;
  padding: 16px 16px; display: flex; gap: 12px; align-items: flex-start;
  box-shadow: 0 8px 22px rgba(15,23,42,.06);
}
.hosp-step-num {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: 15px; font-weight: 700; color: #fff; margin-top: 1px;
  background: linear-gradient(135deg, var(--brand, #2563eb), var(--brand-dark, #1d4ed8));
}
.hosp-step b { font-size: 14.5px; color: var(--navy, #1e3a5f); }
.hosp-step p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }

/* 问诊录入卡片 */
.hosp-consult-card { position: relative; padding: 26px 28px; }
.card-head-icon {
  position: absolute; top: -20px; right: 26px; width: 44px; height: 44px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line, #e2e8f0); display: grid; place-items: center;
  font-size: 22px; box-shadow: 0 6px 18px rgba(30,91,176,.12);
}
.hosp-sec-title { font-size: 19px !important; color: var(--navy, #1e3a5f) !important; }
.hosp-sec-sub { color: var(--muted); font-size: 12.5px; margin: 4px 0 14px; }

/* 结果 / 区块标题头 */
.hosp-rs-head {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(90deg, #eef4ff, #f7faff);
  border: 1px solid #dbe7fb; border-left: 4px solid var(--brand, #2563eb);
  border-radius: 12px; padding: 12px 16px; margin-top: 8px;
}
.hosp-rs-head h3 { font-size: 16px; color: var(--navy, #1e3a5f); }
.hosp-result-card { padding: 18px 22px; }

/* ---- 响应式：医院页 ---- */
@media (max-width: 820px) {
  .hosp-hero { padding: 34px 20px 84px; }
  .hosp-hero-copy h1 { font-size: 27px; }
  .hosp-hero-art { min-height: 200px; }
  .hosp-hero-card { width: 210px !important; }
  .hosp-hero-card-d { font-size: 11.5px; }
  .hosp-steprow { grid-template-columns: 1fr 1fr; }
}

