/* ===== 按钮 ===== */
.btn-primary {
  background: var(--brand-deep); color: white;
  padding: 10px 20px; border-radius: 6px;
  font-weight: 600; font-size: 14px;
  text-decoration: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit;
  transition: background 0.15s, box-shadow 0.15s, transform 0.05s;
}
.btn-primary:hover { background: #001f55; }

.btn-secondary {
  background: white; color: var(--brand-deep);
  border: 1.5px solid var(--brand-deep);
  padding: 10px 20px; border-radius: 6px;
  font-weight: 600; font-size: 14px;
  text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit;
}
.btn-secondary:hover { background: var(--brand-light); }

/* 按钮内的 Lucide 图标尺寸统一 */
.btn-primary [data-lucide], .btn-secondary [data-lucide] { width: 16px; height: 16px; stroke-width: 2.25; }

/* ===== Header（绝对定位，坐在 Hero 之上，暗渐变 overlay） ===== */
.header { background: linear-gradient(180deg, rgba(0,20,60,0.88) 0%, rgba(0,20,60,0.55) 55%, rgba(0,20,60,0) 100%); border-bottom: none; position: fixed; top: 0; left: 0; right: 0; z-index: 90; padding-bottom: 28px; transition: background .25s ease, box-shadow .25s ease, padding .25s ease; }
.header-inner { display: flex; align-items: center; height: 80px; gap: 28px; }

/* Logo 区：缩写 + 副标，简洁双行 */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark { width: 42px; height: 42px; background: white; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--brand-deep); font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; font-size: 18px; letter-spacing: -1px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-weight: 700; font-size: 15px; color: white; letter-spacing: -0.2px; }
.logo-subname { font-size: 11px; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 1px; }
/* 官方院徽 logo（替换 S 占位）：深色顶栏用白版，白底顶栏（滚动/内页）用彩色版 */
.logo-img { height: 40px; width: auto; display: block; }
.logo-on-light { display: none; }
.header.is-scrolled .logo-on-dark, .header.is-solid .logo-on-dark { display: none; }
.header.is-scrolled .logo-on-light, .header.is-solid .logo-on-light { display: block; }

.nav { display: flex; gap: 22px; flex: 1; margin-left: 12px; }
.nav a { color: rgba(255,255,255,0.92); font-weight: 500; font-size: 14.5px; padding: 6px 0; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.nav a:hover { color: white; text-shadow: 0 0 1px rgba(255,255,255,0.6); }

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

/* 语言切换：globe + 当前语言，点击展开下拉（覆盖 7 语言） */
.lang { position: relative; flex-shrink: 0; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22); border-radius: 6px; padding: 6px 10px; color: white; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; }
.lang-toggle [data-lucide] { width: 14px; height: 14px; opacity: 0.85; }
.lang-toggle .chev { width: 12px; height: 12px; opacity: 0.7; }
.lang-toggle:hover { background: rgba(255,255,255,0.16); }
.lang-menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 180px; background: white; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); padding: 6px; display: none; z-index: 100; }
.lang.is-open .lang-menu { display: block; }
.lang-menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; background: transparent; border: none; padding: 8px 12px; font-size: 13.5px; color: var(--text); cursor: pointer; font-family: inherit; border-radius: 5px; text-align: left; }
.lang-menu button:hover { background: var(--bg-muted); }
.lang-menu button.active { color: var(--brand-deep); font-weight: 600; }
.lang-menu button.active::after { content: '✓'; color: var(--brand-deep); font-weight: 700; }
.lang-menu button[dir="rtl"] { text-align: right; }
/* 白底场景（如 auth 页极简顶栏）：与 .header.is-solid 同款深色描边 toggle */
.lang-solid .lang-toggle { background: white; border-color: var(--border); color: var(--text); }
.lang-solid .lang-toggle [data-lucide] { color: var(--text-muted); opacity: 1; }
.lang-solid .lang-toggle:hover { background: var(--bg-muted); }

/* header 内的图标式工具按钮（消息中心 / Log in） */
.header-icon-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: none; color: rgba(255,255,255,0.88); font-size: 13.5px; font-weight: 500; cursor: pointer; padding: 6px 10px; border-radius: 6px; font-family: inherit; text-decoration: none; white-space: nowrap; flex-shrink: 0; position: relative; }
.header-icon-btn [data-lucide] { width: 16px; height: 16px; }
.header-icon-btn:hover { color: white; background: rgba(255,255,255,0.10); }
.badge-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; border: 2px solid rgba(0,20,60,0.85); }

/* 移动端汉堡按钮 */
.nav-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,0.3); color: white; padding: 8px; border-radius: 6px; cursor: pointer; }
.nav-toggle [data-lucide] { width: 20px; height: 20px; }

/* ===== Header 内页变体（白底 sticky，用于登录后页面） =====
   触发：在 header 元素上加 .is-solid 类（header.js 通过 window.SITE_HEADER='solid' 控制） */
.header.is-solid { position: sticky; top: 0; background: white; border-bottom: 1px solid var(--border); box-shadow: 0 1px 3px rgba(16,24,40,0.04); padding-bottom: 0; }
/* 公开页顶栏：fixed 常驻，下滑超过阈值由 JS 加 .is-scrolled，仅换色不换 position（避免跳动） */
.header.is-scrolled { background: white; border-bottom: 1px solid var(--border); box-shadow: 0 4px 16px rgba(16,24,40,0.07); padding-bottom: 0; }
.header.is-scrolled .logo-mark { background: var(--brand-deep); color: white; }
.header.is-scrolled .logo-name { color: var(--text); }
.header.is-scrolled .logo-subname { color: var(--text-muted); }
.header.is-scrolled .nav a { color: var(--text); }
.header.is-scrolled .nav a:hover { color: var(--brand-deep); }
.header.is-scrolled .lang-toggle { background: white; border-color: var(--border); color: var(--text); }
.header.is-scrolled .lang-toggle [data-lucide] { color: var(--text-muted); opacity: 1; }
.header.is-scrolled .header-icon-btn { color: var(--text); }
.header.is-scrolled .header-icon-btn:hover { background: var(--bg-muted); color: var(--brand-deep); }
.header.is-scrolled .badge-dot { border-color: white; }
.header.is-scrolled .nav-toggle { color: var(--text); border-color: var(--border); }
.header.is-solid .logo-mark { background: var(--brand-deep); color: white; }
.header.is-solid .logo-name { color: var(--text); }
.header.is-solid .logo-subname { color: var(--text-muted); }
.header.is-solid .nav a { color: var(--text); }
.header.is-solid .nav a:hover { color: var(--brand-deep); }
.header.is-solid .lang-toggle { background: white; border-color: var(--border); color: var(--text); }
.header.is-solid .lang-toggle [data-lucide] { color: var(--text-muted); opacity: 1; }
.header.is-solid .lang-toggle:hover { background: var(--bg-muted); }
.header.is-solid .header-icon-btn { color: var(--text); }
.header.is-solid .header-icon-btn:hover { background: var(--bg-muted); color: var(--brand-deep); }
.header.is-solid .badge-dot { border-color: white; }
.header.is-solid .nav-toggle { color: var(--text); border-color: var(--border); }
/* New Application CTA：任何登录态 header 都显示（含公开首页登录态）*/
.header .header-inner .apply-cta { display: inline-flex; }

/* 顶部小 CTA「+ Apply」 — 仅登录态出现 */
.apply-cta { display: none; align-items: center; gap: 6px; background: var(--brand-deep); color: white; padding: 8px 14px; border-radius: 6px; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.apply-cta:hover { background: #001f55; }
.apply-cta [data-lucide] { width: 14px; height: 14px; }

/* 用户头像下拉 — 替代 Log in */
.user-menu { position: relative; flex-shrink: 0; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: white; border: none; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; cursor: pointer; font-family: 'Source Serif 4', Georgia, serif; letter-spacing: 0.3px; }
.user-menu .lang-menu { min-width: 200px; }
.user-menu-info { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.user-menu-info .name { font-weight: 600; font-size: 13.5px; color: var(--text); }
.user-menu-info .email { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ===== 状态 chip（9 状态 + 通用变体） ===== */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.4; white-space: nowrap; border: 1px solid transparent; }
.chip [data-lucide] { width: 12px; height: 12px; }
/* 1 待审核 — info */
.chip.s-pending     { background: #EEF2F7; color: #475569; border-color: #E2E8F0; }
/* 2 开始安排 — progress 浅 */
.chip.s-arranging   { background: #E5F0FB; color: #1B5FA8; border-color: #C9DFF4; }
/* 3 待确认 — action（需患者操作） */
.chip.s-awaiting    { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
/* 4B 待支付 — action 加强 */
.chip.s-payment     { background: #FFE4D0; color: #9A3412; border-color: #FED7B5; }
/* 5 待会诊 — progress */
.chip.s-tele        { background: #E0E7FF; color: #3730A3; border-color: #C7D2FE; }
/* 6 待线下就诊 — progress alt */
.chip.s-visit       { background: #DCFCE7; color: #166534; border-color: #BBF7D0; opacity: 0.95; }
/* 7 已完成 — success */
.chip.s-completed   { background: #D1FAE5; color: #065F46; border-color: #A7F3D0; }
/* 8 已拒绝 — declined */
.chip.s-declined    { background: #FEE2E2; color: #991B1B; border-color: #FECACA; }
/* 9 已取消 — neutral */
.chip.s-cancelled   { background: #F1F5F9; color: #64748B; border-color: #E2E8F0; }
/* 通用工具变体 */
.chip.is-soft       { background: var(--brand-light); color: var(--brand-deep); border-color: transparent; }
.chip.is-outline    { background: white; color: var(--text-muted); border-color: var(--border); }

/* ===== 订单卡（Dashboard 进行中卡 + 列表项共用） ===== */
.order-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; box-shadow: var(--shadow-card); transition: box-shadow 0.2s, transform 0.15s; display: block; text-decoration: none; color: inherit; }
.order-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); border-color: var(--brand-light); }
.order-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.order-card-head .order-id { color: var(--text-muted); font-size: 12px; font-family: 'Source Serif 4', Georgia, serif; letter-spacing: 0.3px; }
.order-card-body { display: flex; gap: 16px; align-items: flex-start; }
.order-card-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--brand-light); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.order-card-icon [data-lucide] { width: 20px; height: 20px; }
.order-card-main { flex: 1; min-width: 0; }
.order-card-title { font-size: 15.5px; font-weight: 600; color: var(--text); margin-bottom: 4px; line-height: 1.4; }
.order-card-meta { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.order-card-meta .sep { margin: 0 8px; opacity: 0.5; }
.order-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--border); }
.order-card-action { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-deep); font-weight: 600; font-size: 13.5px; }
.order-card-action [data-lucide] { width: 14px; height: 14px; }
.order-card-unread { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: 12.5px; font-weight: 500; }
.order-card-unread .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* ===== 9 状态横向进度条（订单详情顶部） ===== */
.status-stepper { display: flex; align-items: flex-start; gap: 0; max-width: 100%; overflow-x: auto; padding: 8px 0 4px; position: relative; }
.status-stepper::-webkit-scrollbar { display: none; }
.status-step { flex: 1; min-width: 92px; text-align: center; position: relative; padding: 0 6px; }
.status-step .node { width: 28px; height: 28px; border-radius: 50%; background: white; border: 2px solid var(--border); color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; font-family: 'Source Serif 4', Georgia, serif; position: relative; z-index: 2; }
.status-step .node [data-lucide] { width: 14px; height: 14px; }
.status-step .label { font-size: 12px; color: var(--text-muted); margin-top: 8px; line-height: 1.35; font-weight: 500; }
/* 连接线 */
.status-step::before { content: ''; position: absolute; top: 12px; right: 50%; width: 100%; height: 2px; background: var(--border); z-index: 1; }
.status-step:first-child::before { display: none; }
/* 已完成态 */
.status-step.is-done .node { background: var(--brand-deep); border-color: var(--brand-deep); color: white; }
.status-step.is-done::before { background: var(--brand-deep); }
.status-step.is-done .label { color: var(--text-muted); }
/* 当前态 */
.status-step.is-current .node { background: white; border-color: var(--brand-deep); color: var(--brand-deep); box-shadow: 0 0 0 4px rgba(0,45,114,0.12); }
.status-step.is-current .label { color: var(--brand-deep); font-weight: 700; }
.status-step.is-current::before { background: var(--brand-deep); }
/* 已跳过 / 不适用（分支不走该状态） */
.status-step.is-skipped .node { background: white; border-color: var(--border); color: #C8CFDA; border-style: dashed; }
.status-step.is-skipped .label { color: #C8CFDA; }
.status-step.is-skipped::before { background: transparent; border-top: 2px dashed var(--border); height: 0; }
/* 终态分支：拒绝/取消时显示替代节点 */
.status-step.is-terminated .node { background: #FEE2E2; border-color: #FECACA; color: #991B1B; }
.status-step.is-terminated .label { color: #991B1B; }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 60px 24px; color: var(--text-muted); }
.empty-state-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--bg-muted); color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.empty-state-icon [data-lucide] { width: 28px; height: 28px; stroke-width: 1.6; }
.empty-state h4 { font-family: 'Source Serif 4', Georgia, serif; font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14.5px; color: var(--text-muted); max-width: 380px; margin: 0 auto 22px; line-height: 1.6; }

/* ===== Modal（知情同意书等用） ===== */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8,15,35,0.55); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(2px); }
.modal-backdrop.is-open { display: flex; }
.modal { background: white; border-radius: 14px; max-width: 720px; width: 100%; max-height: 86vh; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,0.30); overflow: hidden; }
.modal-header { padding: 20px 26px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.modal-header h3 { font-family: 'Source Serif 4', Georgia, serif; font-size: 19px; font-weight: 600; color: var(--brand-deep); }
.modal-close { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 6px; border-radius: 6px; display: flex; }
.modal-close:hover { background: var(--bg-muted); color: var(--text); }
.modal-close [data-lucide] { width: 18px; height: 18px; }
.modal-body { padding: 22px 26px; overflow-y: auto; flex: 1; line-height: 1.7; color: var(--text); font-size: 14.5px; }
.modal-body h4 { font-size: 14.5px; font-weight: 700; color: var(--brand-deep); margin: 18px 0 8px; }
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { margin-bottom: 10px; color: var(--text-muted); }
.modal-body .pending-marker { display: inline-block; background: #FEF3C7; color: #92400E; padding: 2px 8px; border-radius: 4px; font-size: 11.5px; font-weight: 600; margin-bottom: 8px; }
.modal-footer { padding: 18px 26px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.modal-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 14px; cursor: pointer; flex: 1; min-width: 0; }
.modal-consent input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--brand-deep); }
.modal-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ===== Toast（成功/失败轻提示） ===== */
.toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-20px); background: var(--text); color: white; padding: 12px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,0.20); z-index: 3000; opacity: 0; transition: opacity 0.2s, transform 0.2s; display: flex; align-items: center; gap: 8px; }
.toast [data-lucide] { width: 16px; height: 16px; }
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.is-success { background: #065F46; }
.toast.is-error { background: #991B1B; }

/* ===== Footer ===== */
/* 页尾（2026-06-16 复刻 en.z2hospital.com 完整页尾：深炭灰底，Our Location / Make an Appointment / 机构信息+FOLLOW US 三栏 + 居中版权条） */
.footer { background: #3f3f3f; color: rgba(255,255,255,0.6); font-size: 13px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 44px; padding-top: 48px; padding-bottom: 36px; align-items: start; }
.footer-col { line-height: 1.55; }
.footer-h { color: #fff; font-weight: 700; font-size: 14px; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 20px; }
.footer-h-appt { margin-top: 28px; }
/* 院区 / 预约条目 */
.fc-campus { margin-bottom: 15px; }
.fc-campus strong { color: #fff; font-weight: 600; font-size: 13px; display: block; margin-bottom: 4px; }
.fc-campus span { display: flex; gap: 7px; color: rgba(255,255,255,0.55); font-size: 12.5px; line-height: 1.5; }
.fc-campus [data-lucide] { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: rgba(255,255,255,0.4); stroke-width: 1.8; }
.fc-appt { margin-bottom: 14px; }
.fc-appt strong { color: #fff; font-weight: 600; font-size: 13px; display: block; margin-bottom: 4px; }
.fc-appt span, .fc-appt a { color: rgba(255,255,255,0.55); font-size: 12.5px; line-height: 1.5; }
.fc-appt a { transition: color 0.2s; }
.fc-appt a:hover { color: #fff; text-decoration: underline; }
/* 机构栏 */
.footer-brand .fb-org { color: #fff; font-weight: 600; display: block; margin-bottom: 14px; font-size: 14px; line-height: 1.45; }
.footer-brand .fb-line { margin: 0 0 9px; color: rgba(255,255,255,0.68); }
.footer-tagline { color: rgba(255,255,255,0.85); font-size: 13px; font-style: italic; font-weight: 600; margin: 20px 0; }
.footer-social-label { color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.footer-social-icons { display: flex; gap: 12px; }
.footer-social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.4); color: #fff; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.footer-social-icons a:hover { background: #fff; border-color: #fff; color: #3f3f3f; }
.footer-social-icons svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 18px 0; font-size: 12.5px; color: rgba(255,255,255,0.6); text-align: center; line-height: 1.7; }

/* 共享通知铃铛弹层（notif-bell.js；header 顶栏 + patient-shell 顶部条共用；2026-06-16 从 patient-shell.css 抽出统一） */
.notif-bell { position: relative; }
.notif-bell-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: none; background: transparent; border-radius: 8px; color: var(--text); cursor: pointer; }
.notif-bell-btn:hover { background: var(--bg-muted); }
.notif-bell-btn [data-lucide] { width: 19px; height: 19px; }
.notif-bell-dot { position: absolute; top: 8px; inset-inline-end: 9px; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; border: 1.5px solid #fff; }
.notif-bell-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 320px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-card); overflow: hidden; display: none; z-index: 70; }
.notif-bell.open .notif-bell-menu { display: block; }
.nb-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 10px; font-weight: 600; font-size: 13.5px; color: var(--text); border-bottom: 1px solid var(--border); }
.nb-count { font-size: 11.5px; font-weight: 700; color: #fff; background: var(--accent); padding: 1px 8px; border-radius: 999px; }
.nb-item { display: flex; gap: 10px; padding: 11px 14px; text-decoration: none; border-bottom: 1px solid var(--border); }
.nb-item:hover { background: var(--bg-muted); }
.nb-ico { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: var(--brand-light); display: flex; align-items: center; justify-content: center; color: var(--brand-deep); }
.nb-ico.is-accent { background: #FBF1DF; color: var(--accent); }
.nb-ico [data-lucide] { width: 16px; height: 16px; }
.nb-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nb-body .t { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.35; }
.nb-body .d { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-body .m { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.nb-all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; font-size: 13px; font-weight: 600; color: var(--brand-deep); text-decoration: none; }
.nb-all:hover { background: var(--bg-muted); }
.nb-all [data-lucide] { width: 15px; height: 15px; }
@media (max-width: 768px) { .notif-bell-menu { min-width: 280px; } }

/* ===== AI FAB（虚拟形象 + 常驻标签 + 呼吸光圈） =====
   FAB 是一个圆形容器，内嵌 SVG mascot；外层有 pulse 呼吸光圈；
   左侧常驻 "Ask AI Assistant" 胶囊标签，强化感知 */
.ai-fab-wrap { position: fixed; bottom: 28px; right: 28px; z-index: 1000; display: flex; align-items: center; gap: 10px; transition: transform 0.2s, opacity 0.2s; }
.ai-fab-wrap.hidden { transform: scale(0.6); opacity: 0; pointer-events: none; }
.ai-fab-label { background: white; color: var(--brand-deep); border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; box-shadow: 0 6px 18px rgba(16,24,40,0.10); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: inherit; }
.ai-fab-label .dot { width: 8px; height: 8px; background: #22C55E; border-radius: 50%; box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }
.ai-fab-label:hover { background: var(--brand-light); }
/* 圆形白底承托 3D emoji，外圈淡蓝光晕营造"立体浮起"质感 */
.ai-fab { position: relative; width: 76px; height: 76px; background: radial-gradient(circle at 30% 25%, #FFFFFF 0%, #EAF0FA 100%); border-radius: 50%; box-shadow: 0 12px 28px rgba(0,45,114,0.30), 0 0 0 6px rgba(27,95,168,0.12), inset 0 -3px 8px rgba(0,45,114,0.08); display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; transition: transform 0.2s; flex-shrink: 0; }
.ai-fab:hover { transform: scale(1.06) translateY(-2px); }
.ai-fab-mascot { font-size: 46px; line-height: 1; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.18)); }
/* 呼吸光圈：放在 FAB 外围 */
.ai-fab::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(27,95,168,0.45); animation: ai-pulse 2.2s ease-out infinite; pointer-events: none; }
@keyframes ai-pulse {
  0%   { transform: scale(0.95); opacity: 0.9; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
.ai-fab-badge { position: absolute; top: -2px; right: -2px; background: var(--accent); color: white; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 6px; border: 2px solid white; z-index: 2; }

/* ===== AI Panel ===== */
.ai-panel { position: fixed; bottom: 28px; right: 28px; width: 400px; height: 600px; background: white; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.18); display: flex; flex-direction: column; z-index: 1000; border: 1px solid var(--border); overflow: hidden; transform-origin: bottom right; transition: transform 0.18s ease-out, opacity 0.18s ease-out; }
.ai-panel.hidden { transform: scale(0.85); opacity: 0; pointer-events: none; }
/* RTL：AI 浮窗/面板/角标翻到左侧（物理 right 改为左） */
[dir="rtl"] .ai-fab-wrap { right: auto; left: 28px; }
[dir="rtl"] .ai-panel { right: auto; left: 28px; transform-origin: bottom left; }
[dir="rtl"] .ai-fab-badge { right: auto; left: -2px; }
.ai-header { background: var(--brand-deep); color: white; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
.ai-header-title { display: flex; align-items: center; gap: 12px; }
.ai-header-avatar { width: 36px; height: 36px; background: rgba(255,255,255,0.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; }
.ai-header-avatar [data-lucide] { width: 18px; height: 18px; }
.ai-header-info .name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.ai-header-info .status { font-size: 11px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.ai-header-info .status .dot-online { width: 6px; height: 6px; background: #4ADE80; border-radius: 50%; }
.ai-header-actions { display: flex; gap: 4px; }
.ai-action-btn { background: transparent; border: none; color: rgba(255,255,255,0.85); cursor: pointer; padding: 6px 8px; font-size: 13px; border-radius: 6px; display: flex; align-items: center; gap: 4px; font-family: inherit; }
.ai-action-btn:hover { background: rgba(255,255,255,0.12); color: white; }
.ai-action-btn [data-lucide] { width: 14px; height: 14px; }

.ai-messages { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-muted); display: flex; flex-direction: column; gap: 14px; }
.ai-messages::-webkit-scrollbar { width: 6px; }
.ai-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.ai-welcome { background: white; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border); }
.ai-welcome-greeting { font-size: 13.5px; color: var(--text); line-height: 1.55; margin-bottom: 12px; }
.ai-welcome-greeting strong { color: var(--brand-deep); }
.ai-suggestions { display: flex; flex-direction: column; gap: 6px; }
.ai-suggestion { background: white; color: var(--brand-deep); padding: 9px 12px; border-radius: 8px; font-size: 12.5px; cursor: pointer; border: 1px solid var(--border); text-align: left; transition: all 0.15s; line-height: 1.4; font-family: inherit; }
.ai-suggestion:hover { background: var(--brand-light); border-color: var(--brand); color: var(--brand-deep); }
.ai-suggestion .arrow { float: right; color: var(--brand); }

.ai-message { display: flex; flex-direction: column; gap: 6px; }
.ai-message.user { align-items: flex-end; }
.ai-message.ai { align-items: flex-start; }
.ai-message-bubble { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; }
.ai-message.ai .ai-message-bubble { background: white; border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.ai-message.user .ai-message-bubble { background: var(--brand); color: white; border-bottom-right-radius: 4px; }
.ai-message-meta { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.ai-message-meta .faq-tag { background: var(--brand-light); color: var(--brand-deep); padding: 1px 6px; border-radius: 4px; font-weight: 600; font-size: 10px; }
/* AI 行动入口（引导申请会诊 / 转人工）*/
.ai-message-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 4px 0; }
.ai-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-deep); color: white; padding: 8px 13px; border-radius: 8px; font-size: 12.5px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; font-family: inherit; }
.ai-cta:hover { background: #001f55; }
.ai-cta.ghost { background: white; color: var(--brand-deep); border: 1px solid var(--border); }
.ai-cta.ghost:hover { background: var(--brand-light); border-color: var(--brand); }
.ai-cta [data-lucide] { width: 14px; height: 14px; }
.ai-feedback { display: flex; gap: 6px; padding: 0 4px; }
.ai-feedback button { background: white; border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; cursor: pointer; line-height: 1; color: var(--text-muted); transition: all 0.15s; font-family: inherit; display: inline-flex; align-items: center; }
.ai-feedback button [data-lucide] { width: 14px; height: 14px; }
.ai-feedback button:hover { border-color: var(--brand); color: var(--brand); }
.ai-feedback button.active { background: var(--brand-light); border-color: var(--brand); color: var(--brand-deep); }

.ai-input { padding: 12px; background: white; border-top: 1px solid var(--border); }
.ai-input-row { display: flex; gap: 8px; align-items: flex-end; }
.ai-input textarea { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13px; resize: none; font-family: inherit; min-height: 40px; max-height: 96px; outline: none; line-height: 1.5; }
.ai-input textarea:focus { border-color: var(--brand); }
.ai-send-btn { background: var(--brand-deep); color: white; border: none; border-radius: 10px; width: 40px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai-send-btn:hover { background: #001f55; }
.ai-send-btn svg { width: 18px; height: 18px; }
.ai-disclaimer { font-size: 10.5px; color: var(--text-muted); text-align: center; padding: 8px 12px 0; line-height: 1.4; }
.ai-disclaimer a { color: var(--brand); }

/* ============================================================
   移动端响应式（≤ 768px）
   原则：导航折叠为汉堡 / 所有 grid 单列 / 字号阶梯缩放 / AI FAB 缩小避让
   ============================================================ */
@media (max-width: 768px) {
  /* Header */
  .header-inner { height: 64px; gap: 12px; }
  .logo-mark { width: 38px; height: 38px; font-size: 16px; }
  .logo-name { font-size: 14px; }
  .logo-subname { font-size: 10px; letter-spacing: 0.4px; }
  .logo-img { height: 30px; }

  /* 登录态 header 移动端：隐藏 apply CTA + 头像，由汉堡承载所有入口 */
  .apply-cta { display: none !important; }
  .user-menu { display: none; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: rgba(0,20,60,0.96); flex-direction: column; padding: 12px 20px 20px; gap: 0; margin: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.10); font-size: 15px; }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-right { gap: 6px; }
  .lang-toggle { padding: 6px 8px; font-size: 12.5px; }
  .lang-toggle span.lang-label { display: none; }
  .header-icon-btn .label { display: none; }

  /* Footer 单列堆叠 */
  .footer-inner { grid-template-columns: 1fr; gap: 30px; text-align: left; padding-top: 34px; padding-bottom: 28px; }
  .footer-h-appt { margin-top: 22px; }

  /* AI FAB 移动端：隐藏 label 只留圆形 mascot */
  .ai-fab-wrap { bottom: 18px; right: 18px; gap: 0; }
  [dir="rtl"] .ai-fab-wrap { right: auto; left: 18px; }
  [dir="rtl"] .ai-panel { right: auto; left: 10px; }
  .ai-fab-label { display: none; }
  .ai-fab { width: 62px; height: 62px; }
  .ai-fab-mascot { font-size: 38px; }

  /* AI Panel 全屏化 */
  .ai-panel { width: calc(100% - 20px); height: calc(100% - 80px); right: 10px; bottom: 10px; }
}

/* ===== AI 客服「联系我们」弹窗里的联系行（电话/邮件，可点拨号/发邮件）===== */
.contact-rows { display: flex; flex-direction: column; gap: 12px; }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; transition: border-color 0.18s, background 0.18s; }
.contact-row:hover { border-color: var(--brand); background: var(--brand-light); }
.contact-row .contact-ico { width: 42px; height: 42px; flex-shrink: 0; background: var(--brand-light); color: var(--brand-deep); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.contact-row:hover .contact-ico { background: white; }
.contact-row .contact-ico [data-lucide] { width: 20px; height: 20px; }
.contact-row .contact-val { display: block; font-size: 16px; font-weight: 600; color: var(--text); direction: ltr; }
.contact-row .contact-meta { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
