/* ===== dingdangfuyao 智能用药健康管理平台 品牌样式体系（UI规范落地） ===== */
:root {
  color-scheme: light;

  /* 品牌色系 - 科技深蓝渐变（合规、稳定、权威） */
  --brand-blue: #165DFF;
  --brand-blue-2: #4080FF;
  --brand-blue-rgb: 22,93,255;
  --brand-blue-2-rgb: 64,128,255;
  --brand-gradient: linear-gradient(135deg, #165DFF 0%, #4080FF 100%);
  --brand-dark: #0E3D9C;

  /* 辅助色 */
  --color-success: #00B42A;
  --color-warning: #FF7D00;
  --color-danger: #F53F3F;
  --color-info-bg: #F0F7FF;

  /* 中性色（文字/背景/分割线） */
  --text-1: #1D2129;
  --text-2: #4E5969;
  --text-3: #86909C;
  --bg-page: #FFFFFF;
  --bg-card: #FAFBFC;
  --border-color: #E5E6EB;

  /* 兼容旧页面内联 var() 引用（自动跟随新配色） */
  --primary-color: #165DFF;
  --primary-hover: #4080FF;
  --primary-light: #4080FF;
  --text-primary: #1D2129;
  --text-secondary: #4E5969;
  --text-tertiary: #86909C;
  --bg-soft: #F0F7FF;
  --bg-card-soft: #FAFBFC;
  --border-soft: #E5E6EB;

  /* 兼容旧 style.css 的 --tl-* 变量体系 */
  --tl-primary: #165DFF;
  --tl-primary-dark: #0E3D9C;
  --tl-primary-light: #4080FF;
  --tl-secondary: #1D2129;
  --tl-accent: #4080FF;
  --tl-accent-green: #00B42A;
  --tl-accent-orange: #FF7D00;
  --tl-accent-red: #F53F3F;
  --tl-gradient: linear-gradient(135deg, #165DFF 0%, #4080FF 100%);
  --tl-gradient-dark: linear-gradient(135deg, #0E3D9C 0%, #165DFF 100%);
  --tl-text: #1D2129;
  --tl-text-light: #4E5969;
  --tl-text-white: #ffffff;
  --tl-bg: #FFFFFF;
  --tl-bg-soft: #F0F7FF;
  --tl-bg-dark: #0E3D9C;
  --tl-border: #E5E6EB;
  /* --tl-* 圆角/阴影别名：模板（登录/注册/服务等）统一使用 --tl- 前缀引用，
     缺失会导致小程序编译期降级为 inherit，圆角与阴影全部丢失（Web/小程序样式不一致） */
  --tl-radius-sm: 6px;
  --tl-radius-md: 8px;
  --tl-radius-lg: 12px;
  --tl-radius-full: 9999px;
  --tl-shadow-sm: 0 1px 3px rgba(29,33,41,0.06);
  --tl-shadow-md: 0 4px 16px rgba(29,33,41,0.08);
  --tl-shadow-lg: 0 12px 40px rgba(29,33,41,0.12);

  /* 间距 */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 48px;
  --sp-2xl: 80px;

  /* 圆角（文档统一 6px 按钮 / 8px 卡片） */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* 阴影（轻量化浅阴影） */
  --shadow-sm: 0 1px 3px rgba(29,33,41,0.06);
  --shadow-md: 0 4px 16px rgba(29,33,41,0.08);
  --shadow-lg: 0 12px 40px rgba(29,33,41,0.12);
  --shadow-blue: 0 8px 24px rgba(var(--brand-blue-rgb),0.16);

  /* 字体 */
  --font-base: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Source Han Sans SC', sans-serif;
}

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  line-height: 1.6;
  color: var(--text-1);
  font-size: 14px;
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
/* ===== 滚动条收窄（对标原生 App：细窄贴边、半透明，尽量不占用内容区） ===== */
html { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.24) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.24); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.38); }
a { text-decoration: none; color: inherit; transition: color .2s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* 标题层级（文档规范） */
h1 { font-size: 32px; font-weight: 800; line-height: 1.3; }
h2 { font-size: 24px; font-weight: 700; line-height: 1.35; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }
h4 { font-size: 16px; font-weight: 600; }
.text-3 { color: var(--text-3); }

/* ===== 按钮规范 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
  padding: 12px 24px; border-radius: var(--radius-sm);
  border: 1px solid transparent; transition: all .25s; white-space: nowrap;
}
.btn-primary {
  background-color: var(--brand-blue); background-image: var(--brand-gradient); color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(var(--brand-blue-rgb),0.24); }
/* 主按钮内部文字(span.btn-text / span.btn-loading)继承白色，避免与蓝色底同色看不清 */
.btn-primary .btn-text, .btn-primary .btn-loading { color: #fff; }
.btn-outline {
  background: #fff; color: var(--brand-blue); border-color: rgba(var(--brand-blue-rgb),0.5);
}
.btn-outline:hover { background: var(--color-info-bg); border-color: var(--brand-blue); }
.btn-text { background: none; color: var(--brand-blue); padding: 10px 8px; }
.btn-text:hover { text-decoration: underline; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-lg .fa { font-size: 17px; }

/* ===== 章节通用 ===== */
.section { padding: var(--sp-2xl) 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--brand-blue); margin-bottom: 12px;
}
.section-title { font-size: 32px; font-weight: 800; color: var(--text-1); margin-bottom: 16px; }
.section-desc { font-size: 16px; color: var(--text-2); max-width: 640px; margin: 0 auto; }
.section-header.left { text-align: center; }
.section-header.left .section-desc { margin: 0 auto; }

/* ===== 导航栏（固定顶栏，白底底部分割线） ===== */
#theme-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 68px; gap: 24px; }
.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo a {
  font-size: 20px; font-weight: 800; background: var(--brand-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.logo img { max-height: 38px; }
[data-menu-location="header"] { flex: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; gap: 28px; align-items: center; }
.nav-menu .nav-link {
  font-size: 15px; font-weight: 500; color: var(--text-1);
  transition: color .25s; position: relative; white-space: nowrap; padding: 6px 0;
}
.nav-menu .nav-link:hover, .nav-menu .nav-link.active { color: var(--brand-blue); }
.nav-menu .nav-link.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
  background: var(--brand-gradient); border-radius: 1px;
}
.nav-menu .nav-link:hover::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--brand-gradient); border-radius: 1px; }
.nav-auth { display: flex; gap: 12px; align-items: center; }
/* 多语言切换器已统一收纳到会员中心「语言设置」（#mcLangSlot），顶部导航不再展示 */
#theme-header #theme-lang-switcher { display: none !important; }
.btn-login { font-size: 14px; font-weight: 500; color: var(--text-1); padding: 8px 16px; border-radius: var(--radius-sm); }
.btn-login:hover { color: var(--brand-blue); }
.btn-register {
  font-size: 13px; font-weight: 600; color: #fff; background-color: var(--brand-blue); background-image: var(--brand-gradient);
  padding: 9px 18px; border-radius: var(--radius-sm); box-shadow: var(--shadow-blue); transition: all .25s; white-space: nowrap;
}
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(var(--brand-blue-rgb),0.26); }

/* 下拉菜单 */
.has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  margin-top: 12px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color); min-width: 200px; opacity: 0; visibility: hidden; transition: all .25s; z-index: 1000;
}
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu a { display: block; padding: 12px 18px; font-size: 14px; color: var(--text-1); }
.dropdown-menu a:hover { background: var(--color-info-bg); color: var(--brand-blue); }
.dropdown-menu a.active { background: var(--color-info-bg); color: var(--brand-blue); font-weight: 600; }

/* 移动端菜单 */
/* 移动端菜单按钮：带「菜单」文字的醒目按钮，方便老人识别点击 */
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px; background: #fff; border: 1.5px solid var(--brand-blue); border-radius: 12px; cursor: pointer; color: var(--brand-blue); font-size: 15px; font-weight: 700; line-height: 1; }
.menu-toggle:hover { background: rgba(var(--brand-blue-rgb),0.08); }
.menu-bars { display: flex; flex-direction: column; gap: 5px; }
.menu-bars span { display: block; width: 22px; height: 2.5px; background: var(--brand-blue); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle-label { color: var(--brand-blue); white-space: nowrap; }
#theme-header.mobile-nav-open .menu-bars span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
#theme-header.mobile-nav-open .menu-bars span:nth-child(2) { opacity: 0; }
#theme-header.mobile-nav-open .menu-bars span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* 用户菜单 */
.user-menu { position: relative; display: flex; align-items: center; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; cursor: pointer; transition: transform .3s; }
.user-avatar:hover { transform: scale(1.05); }
.user-dropdown { position: absolute; top: 100%; right: 0; margin-top: 8px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); min-width: 200px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .3s; z-index: 1000; }
.user-menu:hover .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-info { padding: 16px; border-bottom: 1px solid var(--border-color); }
.user-name { font-weight: 600; color: var(--text-1); margin-bottom: 4px; }
.user-email { font-size: 13px; color: var(--text-2); }
.dropdown-divider { height: 1px; background: var(--border-color); margin: 8px 0; }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--text-1); font-size: 14px; transition: background .3s; }
.dropdown-item:hover { background: var(--color-info-bg); color: var(--brand-blue); }

/* ===== Hero 区域 ===== */
.hero-section {
  padding: 160px 0 100px; background: var(--tl-gradient-dark); color: #fff; text-align: center; position: relative; overflow: hidden;
}
.hero-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 28% 40%, rgba(var(--brand-blue-2-rgb),0.28) 0%, transparent 50%), radial-gradient(circle at 72% 60%, rgba(var(--brand-blue-rgb),0.2) 0%, transparent 52%); }
.hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(var(--brand-blue-2-rgb),0.18); border: 1px solid rgba(var(--brand-blue-2-rgb),0.4); padding: 6px 16px; border-radius: var(--radius-full); font-size: 14px; color: #fff; margin-bottom: 24px; }
.hero-badge i { color: #9BC0FF; }
.hero-title { font-size: 48px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; letter-spacing: -1px; }
.hero-title .gradient-text { background: linear-gradient(135deg, #9BC0FF 0%, #FFFFFF 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 18px; color: rgba(255,255,255,0.82); max-width: 680px; margin: 0 auto 40px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--brand-blue); padding: 15px 32px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 600; transition: all .25s; box-shadow: var(--shadow-lg); }
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
.btn-hero-secondary { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.28); color: #fff; padding: 15px 32px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 500; transition: all .25s; }
.btn-hero-secondary:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }

/* ===== 卡片通用 ===== */
.tl-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 32px; transition: all .25s; box-shadow: var(--shadow-sm); }
.tl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-blue); }
.tl-card-highlight { background: var(--color-info-bg); border: 1px solid rgba(var(--brand-blue-rgb),0.28); border-radius: var(--radius-md); padding: 32px; }
.tl-card-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: var(--text-1); }
.tl-card-title i { color: var(--brand-blue); margin-right: 8px; }
.tl-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.tl-icon { width: 52px; height: 52px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; }
.tl-icon.blue { background: var(--color-info-bg); color: var(--brand-blue); }
.tl-icon.green { background: rgba(0,180,42,0.1); color: var(--color-success); }
.tl-icon.orange { background: rgba(255,125,0,0.1); color: var(--color-warning); }

/* ===== 产品能力区块 ===== */
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.capability-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 32px; transition: all .25s; text-align: center; }
.capability-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-blue); }
.capability-card .tl-icon { margin-left: auto; margin-right: auto; }
.capability-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: var(--text-1); }
.capability-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.capability-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.capability-step { background: var(--bg-card); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); }
.capability-step-num { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--brand-gradient); color: #fff; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.capability-step h4 { font-size: 16px; margin-bottom: 8px; }
.capability-step p { font-size: 14px; color: var(--text-2); }

/* ===== 合规体系区块 ===== */
.compliance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.compliance-card { background: var(--color-info-bg); border: 1px solid rgba(var(--brand-blue-rgb),0.28); border-radius: var(--radius-md); padding: 32px; transition: all .25s; }
.compliance-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.compliance-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: var(--text-1); display: flex; align-items: center; gap: 8px; }
.compliance-card h3 i { color: var(--brand-blue); }
.compliance-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.compliance-callout { background: var(--color-info-bg); border-left: 4px solid var(--brand-blue); border-radius: var(--radius-sm); padding: 20px 24px; margin-top: 40px; font-size: 14px; color: var(--text-2); }
.compliance-callout strong { color: var(--text-1); }

/* ===== 数据表格 ===== */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table thead { background: var(--bg-card); }
.data-table th { text-align: left; font-size: 14px; font-weight: 600; color: var(--text-1); padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.data-table td { font-size: 14px; color: var(--text-2); padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.data-table tbody tr:hover { background: var(--color-info-bg); }
.data-table tbody tr:last-child td { border-bottom: none; }
.tag { display: inline-block; padding: 3px 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 500; }
.tag-success { background: rgba(0,180,42,0.1); color: var(--color-success); }
.tag-info { background: var(--color-info-bg); color: var(--brand-blue); }
.tag-warning { background: rgba(255,125,0,0.1); color: var(--color-warning); }

/* ===== 功能卡片区块 ===== */
.models-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.model-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 28px 24px; text-align: center; transition: all .25s; }
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-blue); }
.model-icon { font-size: 40px; margin-bottom: 14px; }
.model-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.model-card p { font-size: 13px; color: var(--text-2); }
.model-badge { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: var(--radius-full); background: var(--color-info-bg); color: var(--brand-blue); font-size: 12px; }

/* ===== 方案卡片区块 ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pricing-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 36px 32px; transition: all .25s; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card.featured { background: var(--color-info-bg); border: 1px solid rgba(var(--brand-blue-rgb),0.35); box-shadow: var(--shadow-blue); }
.pricing-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.pricing-price { font-size: 36px; font-weight: 800; color: var(--brand-blue); margin-bottom: 16px; }
.pricing-price small { font-size: 14px; font-weight: 500; color: var(--text-2); }
.pricing-card ul { margin: 20px 0 24px; }
.pricing-card li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); padding: 8px 0; }
.pricing-card li i { color: var(--color-success); font-size: 13px; }
.pricing-table { width: 100%; border-collapse: collapse; margin-top: 40px; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.pricing-table th, .pricing-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.pricing-table th { background: var(--bg-card); font-weight: 600; color: var(--text-1); }
.pricing-table td { color: var(--text-2); }

/* ===== 文档区块 ===== */
.docs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
/* ===== 联系我们页自适应（信息 | 留言 双栏 → 窄屏单栏）=====
   此前模板用行内 style 写死 grid-template-columns，而行内样式优先级高于媒体查询，
   导致手机端始终保持两栏、不换行（表现为「手机端不自适应」）。改为专用类 + 媒体查询控制。 */
.docs-layout.contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
@media (max-width: 992px) {
  .docs-layout.contact-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .contact-layout { gap: 16px; }
  .contact-layout .contact-form { padding: 20px 16px; }
}
.docs-sidebar { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.docs-sidebar h4 { font-size: 13px; letter-spacing: 1px; color: var(--text-3); text-transform: uppercase; margin-bottom: 12px; }
.docs-sidebar a { display: block; padding: 10px 12px; font-size: 14px; color: var(--text-2); border-radius: var(--radius-sm); }
.docs-sidebar a:hover { background: var(--color-info-bg); color: var(--brand-blue); }
.docs-content { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 40px; box-shadow: var(--shadow-sm); min-width: 0; }
.docs-content h2 { font-size: 22px; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.docs-content h3 { font-size: 18px; margin: 28px 0 12px; }
.docs-content p { font-size: 14px; color: var(--text-2); line-height: 1.8; margin-bottom: 16px; }
.code-block { background: #1D2129; color: #E5E6EB; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 13px; line-height: 1.7; border-radius: var(--radius-sm); padding: 20px; overflow-x: auto; margin: 16px 0; }
.code-block .c-comment { color: #86909C; }
.code-block .c-key { color: #4080FF; }
.code-block .c-str { color: #00B42A; }
.param-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.param-table th, .param-table td { padding: 12px 16px; font-size: 14px; text-align: left; border-bottom: 1px solid var(--border-color); }
.param-table th { background: var(--bg-card); font-weight: 600; color: var(--text-1); }
.param-table td { color: var(--text-2); }

/* ===== FAQ 区块 ===== */
.faq-section { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-bottom: 16px; overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; font-size: 15px; font-weight: 600; color: var(--text-1); cursor: pointer; background: #fff; }
.faq-q:hover { color: var(--brand-blue); }
.faq-q i { transition: transform .25s; color: var(--brand-blue); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 24px 20px; font-size: 14px; color: var(--text-2); line-height: 1.8; border-top: 1px solid var(--border-color); padding-top: 16px; }
.faq-item.open .faq-a { display: block; }

/* ===== 关于区块 ===== */
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.about-stat { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 28px 24px; text-align: center; }
.about-stat h3 { font-size: 30px; font-weight: 800; color: var(--brand-blue); }
.about-stat p { font-size: 14px; color: var(--text-2); }
.contact-form { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 32px; box-shadow: var(--shadow-sm); }
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--text-1); }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; color: var(--text-1); background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(var(--brand-blue-rgb),0.12); }

/* ===== 页面内页头 ===== */
.hd-page-header { background: var(--tl-gradient-dark); color: #fff; padding: 96px 0 56px; text-align: center; }
.hd-page-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.hd-page-header p { font-size: 16px; opacity: .9; }

/* ===== CTA 区域 ===== */
.cta-section { background: var(--color-info-bg); text-align: center; padding: var(--sp-2xl) 0; }
.cta-section h2 { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.cta-section p { font-size: 16px; color: var(--text-2); margin-bottom: 28px; }
.btn-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-gradient); color: #fff; padding: 15px 32px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 600; box-shadow: var(--shadow-blue); transition: all .25s; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(var(--brand-blue-rgb),0.3); }

/* ===== Footer（深灰底白字，合规公示） ===== */
#theme-footer { background: #1D2129; color: #E5E6EB; padding: 64px 0 32px; }
.footer-grid { margin-bottom: 0; }
.footer-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 40px; }
.footer-col h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: #86909C; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; text-align: center; font-size: 13px; color: #86909C; line-height: 1.9; }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: #fff; }
.footer-slogan { margin-top: 8px; }
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.footer-links a { font-size: 13px; color: #86909C; }
.footer-links a:hover { color: #fff; }

/* ===== 滚动到顶部 ===== */
#scroll-to-top { position: fixed; bottom: 24px; right: 16px; width: 34px; height: 34px; border: none; border-radius: 8px; background: var(--brand-gradient); color: #fff; font-size: 14px; cursor: pointer; opacity: 0; visibility: hidden; transition: all .3s; z-index: 999; box-shadow: var(--shadow-blue); }
#scroll-to-top.visible { opacity: 1; visibility: visible; }

/* ===== 移动端全站底部工具栏 =====
   展示条件（满足其一即展示，保证全站每页都有底栏）：
     ① 服务端判定终端为移动 → <html data-tl-terminal="mobile">（按 UA / Cookie / 显式参数）
     ② 视口 ≤768px（覆盖 UA 识别不到但窗口很小的场景）
   用药管理页自带底部导航（游客栏 / 患者端 tabBar），由 body.member-page 兜底隐藏避免重复 */
.m-tabbar, .m-tabbar-pad { display: none; }
/* 视觉规格与用药管理页底栏完全一致（患者端 .ddm-tabbar / 游客 .member-guest-tabbar）：
   高 60px、无投影、图标 24px 线性描边（京东/淘宝 App 风格）、未选中 #4b5563、激活 #4f46e5，
   保证未登录首页与登录后底栏一致。图标真源：Web 运行时内联 SVG / 小程序包内 images/tabbar 双色 PNG */
.m-tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: 60px; background: #fff; border-top: 1px solid #e5e7eb; z-index: 100; padding-bottom: env(safe-area-inset-bottom); }
.m-tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: none; background: none; padding: 4px 0; min-height: 60px; color: #4b5563; font-size: 11px; text-decoration: none; }
.m-tab-item .m-tab-ico { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; font-size: 24px; line-height: 1; }
.m-tab-item .m-tab-ico svg,
.m-tab-item .m-tab-ico img { display: block; width: 1em; height: 1em; }
.m-tab-item .m-tab-txt { margin-top: 3px; line-height: 1.2; }
.m-tab-item.is-active { color: #4f46e5; font-weight: 600; }
.m-tabbar-pad { height: 70px; }
/* 展示条件①：终端为移动（横屏 / 平板 / 桌面模式浏览器等宽视口下同样保留底栏） */
html[data-tl-terminal="mobile"] .m-tabbar { display: flex; }
html[data-tl-terminal="mobile"] .m-tabbar-pad { display: block; }
/* 展示条件②：窄视口 */
@media (max-width: 768px) {
  .m-tabbar { display: flex; }
  .m-tabbar-pad { display: block; }
}
/* 用药管理页自带底部导航（未登录游客栏 / 患者端 tabBar），隐藏全站工具栏避免重复 */
body.member-page .m-tabbar, body.member-page .m-tabbar-pad { display: none !important; }
/* 手机档未登录游客底栏（templates/pages/mobile/member.html 的 .m-guest-tabbar）：
   固定在底部，规格与 .m-tabbar / .ddm-tabbar 完全一致（高 60px、无投影、24px 线性图标）。
   仅 Web 生效（小程序产物无 html 元素，不受影响）。 */
html[data-tl-terminal="mobile"] .m-guest-tabbar,
html[data-tl-device="mobile"] .m-guest-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
html[data-tl-terminal="mobile"] body.member-has-tabbar,
html[data-tl-device="mobile"] body.member-has-tabbar { padding-bottom: 76px; }
/* 页面自带底栏（.m-guest-tabbar 等）时，不再显示全站注入底栏，避免两条底栏叠层 */
body.member-has-tabbar .m-tabbar,
body.member-has-tabbar .m-tabbar-pad { display: none !important; }
/* 本页存在底部工具栏（全站 .m-tabbar / 用药管理页 .ddm-tabbar / 未登录 .member-guest-tabbar）时，
   将「回到顶部」抬到底栏正上方，避免遮挡底栏按钮或拦截其点击。
   底栏（高 60px）仅在移动终端或窄视口出现，故用 data-tl-terminal="mobile" 与 768px 媒体查询兜底，
   并计入 iPhone 底部安全区，保证按钮始终位于底栏之上。 */
html.tl-has-tabbar #scroll-to-top,
html[data-tl-terminal="mobile"] #scroll-to-top { bottom: calc(60px + env(safe-area-inset-bottom) + 14px); }
@media (max-width: 768px) {
  #scroll-to-top { bottom: calc(60px + env(safe-area-inset-bottom) + 14px); }
}

/* ===== 移动端左上角「返回上一页」按钮 =====
   Web 由 ThemeModuleLoader.renderMobileNav 运行时注入 <button class="m-back-btn">，
   小程序由编译器 injectMobileCommonNav 静态补全同款结构（<view class="m-back-btn">）。
   此前无任何样式定义 → 该元素在两种终端均为「无定位、无外观的游离元素」（紧跟页脚之后）。
   此处补齐为固定左上角圆形按钮（z-index 高于固定页头 #theme-header=1000，避免被其遮挡）。 */
.m-back-btn { position: fixed; top: 12px; left: 12px; z-index: 1001; box-sizing: border-box; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; padding: 0; background: rgba(255,255,255,.94); border: 1px solid #e5e7eb; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.14); color: #1d2129; font-size: 18px; line-height: 1; cursor: pointer; }
.m-back-btn .fa-icon, .m-back-btn .i, .m-back-btn .fas { font-size: 20px; line-height: 1; }

/* ===== 移动档（含宽视口下的手机/平板终端）：全宽铺满 + 滚动条收窄贴边 ===== */
html[data-tl-terminal="mobile"] { scrollbar-width: none; }
html[data-tl-terminal="mobile"]::-webkit-scrollbar,
html[data-tl-terminal="mobile"] ::-webkit-scrollbar { width: 2px; height: 2px; }
html[data-tl-terminal="mobile"]::-webkit-scrollbar-track,
html[data-tl-terminal="mobile"] ::-webkit-scrollbar-track { background: transparent; }
html[data-tl-terminal="mobile"]::-webkit-scrollbar-thumb,
html[data-tl-terminal="mobile"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,.16); border-radius: 2px; }
html[data-tl-terminal="mobile"] .container { max-width: 100%; width: 100%; padding-left: 12px; padding-right: 12px; }
html[data-tl-terminal="mobile"] .nav-container { padding-left: 16px; padding-right: 16px; }
html[data-tl-terminal="mobile"] .hero-content,
html[data-tl-terminal="mobile"] .section-desc,
html[data-tl-terminal="mobile"] .section-header,
html[data-tl-terminal="mobile"] .faq-section,
html[data-tl-terminal="mobile"] .hero-visual,
html[data-tl-terminal="mobile"] .m-sec,
html[data-tl-terminal="mobile"] .m-page,
html[data-tl-terminal="mobile"] .m-wrap,
html[data-tl-terminal="mobile"] .m-container { max-width: 100%; }
/* 触屏设备（无视口 / 终端判定）：滚动条同样收窄至 2px 半透明 */
@media (hover: none), (pointer: coarse) {
  html, body { scrollbar-width: none; }
  ::-webkit-scrollbar { width: 2px; height: 2px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: rgba(0,0,0,.16); border-radius: 2px; }
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .capability-grid, .services-grid, .compliance-grid, .features-grid, .compare-grid { grid-template-columns: repeat(2, 1fr); }
  .models-grid, .about-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-sidebar { position: static; }
  .docs-content, .docs-sidebar { min-width: 0; width: 100%; box-sizing: border-box; }
  .hero-title { font-size: 38px; }
}
@media (max-width: 768px) {
  /* 移动端头部：logo 与汉堡菜单同一行（logo 居左、菜单居右），登录/注册另起一行 */
  .nav-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; height: auto; padding: 10px 16px; row-gap: 10px; column-gap: 12px; }
  .logo { justify-content: flex-start; min-width: 0; }
  .nav-auth .btn-primary { display: none; }
  [data-menu-location="header"] { display: contents; }
  .nav-menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; padding: 16px 24px 32px; box-shadow: var(--shadow-lg); border-top: 1px solid var(--border-color); display: none; overflow-y: auto; max-height: calc(100vh - 60px); z-index: 999; }
  #theme-header.mobile-nav-open .nav-menu { display: flex; }
  .menu-toggle { display: flex; flex-shrink: 0; }
  .nav-auth { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex-basis: 100%; order: 3; }
  /* 已登录用户顶栏不再显示头像/铃铛，nav-auth 为空时折叠该行 */
  .nav-auth:empty { display: none; }
  /* 移动端用户下拉菜单：头像在左列靠左，drop-down 改向右展开并钳制宽度，避免向左溢出被视口裁剪 */
  .user-dropdown { left: 0; right: auto; z-index: 9999; max-width: calc(100vw - 32px); }
  .user-dropdown { min-width: 200px; }
  .btn-register { padding: 8px 14px; }
  .capability-grid, .services-grid, .compliance-grid, .features-grid, .compare-grid, .models-grid, .about-grid, .pricing-grid, .capability-steps { grid-template-columns: 1fr; }
  .hero-section { padding: 120px 0 64px; }
  .hero-title { font-size: 28px; }
  /* 手机端页脚：隐藏品牌简介与服务栏目区（四栏降为 2×2 的那部分），仅保留底部版权/备案/协议 */
  .footer-columns { display: none; }
  #theme-footer { padding: 28px 0 24px; }
  .footer-bottom { border-top: none; padding-top: 0; }
  .section { padding: 48px 0; }

  /* ===== 移动端二级菜单：纵向展开 + 点击切换 ===== */
  .has-dropdown { position: static; }
  .has-dropdown > .nav-link { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .has-dropdown > .nav-link::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px; margin-left: 8px; color: var(--text-2); transition: transform .25s; }
  .has-dropdown.expanded > .nav-link::after { transform: rotate(180deg); }
  .dropdown-menu {
    position: static; top: auto; left: auto; margin: 0; width: 100%;
    transform: none; background: transparent; border: none; box-shadow: none;
    min-width: 0; opacity: 1; visibility: visible; border-radius: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease;
    padding: 0 0 0 16px;
  }
  .has-dropdown.expanded .dropdown-menu { max-height: 500px; padding: 12px 0 4px 16px; }
  .dropdown-menu a { padding: 12px 16px; border-left: 2px solid var(--border-color); }
  .dropdown-menu a:hover { border-left-color: var(--brand-blue); }
  .dropdown-menu a.active { border-left-color: var(--brand-blue); }

  /* ===== 移动端表格 / 页面头 / 提示块自适应 ===== */
  .hd-page-header { padding: 72px 0 36px; }
  .hd-page-header h1 { font-size: 24px; }
  .hd-page-header p { font-size: 14px; }
  .data-table, .pricing-table, .param-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .data-table th, .data-table td, .pricing-table th, .pricing-table td, .param-table th, .param-table td { padding: 12px 14px; font-size: 13px; }
  .compliance-callout { padding: 16px; font-size: 13px; }

  /* ===== 移动端功能卡片：2 列卡片 + 标签换行 ===== */
  .models-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .model-card { padding: 20px 14px; }
  .model-icon { font-size: 30px; margin-bottom: 10px; }
  .model-card h4 { font-size: 14px; }
  .model-card p { font-size: 12px; }
  .model-badge { font-size: 11px; padding: 2px 8px; }
  .section-header.left { margin-bottom: 32px; }

  /* ===== 移动端文档页：单栏 + 压缩内边距 ===== */
  .docs-content { padding: 20px 16px; }
  .docs-content h2 { font-size: 18px; }
  .docs-content h3 { font-size: 16px; }
  .docs-content p { font-size: 13px; }
  .code-block { font-size: 12px; padding: 14px; }
  .docs-sidebar { padding: 16px; }
  .docs-sidebar a { padding: 8px 10px; font-size: 13px; }

  /* ===== 移动端文档目录：改为顶部横向滚动胶囊导航（避免长竖列占满屏） ===== */
  .docs-layout { grid-template-columns: 1fr; gap: 16px; }
  .docs-sidebar { display: flex; align-items: center; gap: 8px; overflow-x: auto; white-space: nowrap; padding: 12px 16px; margin-bottom: 16px; position: static; border-radius: 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .docs-sidebar::-webkit-scrollbar { display: none; }
  .docs-sidebar h4 { display: none; }
  .docs-sidebar a { flex: 0 0 auto; padding: 8px 14px; border-radius: 20px; background: var(--color-info-bg); border: 1px solid var(--border-color); font-size: 13px; color: var(--text-2); }
  .docs-sidebar a:hover { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }

  /* ===== 移动档全宽：最大化利用手机屏幕（左右仅留 12px 安全边距，页头保留 16px） ===== */
  .container { max-width: 100%; width: 100%; padding-left: 12px; padding-right: 12px; }
  .nav-container { padding-left: 16px; padding-right: 16px; }
  .hero-content, .section-desc, .section-header, .faq-section, .hero-visual { max-width: 100%; }
  .m-sec, .m-page, .m-wrap, .m-container { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
  [class^="m-sec"], [class*=" m-sec"] { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
  /* 手机端滚动条：收窄至 2px 半透明并贴边（触屏拖动不再占用内容宽度） */
  html, body { scrollbar-width: none; }
  ::-webkit-scrollbar { width: 2px; height: 2px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: rgba(0,0,0,.16); border-radius: 2px; }
}

/* ===== 多语言切换器（静态兜底：不依赖 JS 即可显示，移动端可见） ===== */
.lang-switcher { position: relative; display: inline-block; margin-left: 12px; }
.lang-switcher-btn { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: inherit; padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 7px; transition: all .25s ease; line-height: 1; white-space: nowrap; }
.lang-switcher-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.lang-switcher-btn .fa-globe { font-size: 14px; opacity: .85; }
.lang-switcher-btn .chevron { font-size: 9px; opacity: .6; transition: transform .25s ease; }
.lang-switcher.open .lang-switcher-btn .chevron { transform: rotate(180deg); }
.lang-switcher-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08); min-width: 172px; z-index: 9999; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97); transform-origin: top right; transition: all .22s cubic-bezier(.4,0,.2,1); padding: 6px 0; }
.lang-switcher.open .lang-switcher-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lang-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: #374151; text-decoration: none; font-size: 13.5px; cursor: pointer; position: relative; }
.lang-item:hover { background: #f0f5ff; }
.lang-item.active { color: #4f46e5; font-weight: 600; background: #eef2ff; }
.lang-item .flag { font-size: 17px; line-height: 1; }
.lang-item .check { margin-left: auto; font-size: 12px; color: #4f46e5; opacity: 0; }
.lang-item.active .check { opacity: 1; }
@media (max-width: 768px) { .lang-switcher { margin-left: 0; } .lang-switcher-btn span.name { display: none; } .lang-switcher-btn { padding: 7px 10px; } }

/* ===== 自适应折叠导航（菜单放不下一整行时，由 main.js 加 .nav-collapse 显示汉堡菜单） ===== */
#theme-header.nav-collapse .nav-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; gap: 0; align-items: stretch;
  background: #fff; padding: 16px 24px 32px;
  box-shadow: var(--shadow-lg); border-top: 1px solid var(--border-color);
  display: none; overflow-y: auto; max-height: calc(100vh - 68px); z-index: 999;
}
#theme-header.nav-collapse.mobile-nav-open .nav-menu { display: flex; }
#theme-header.nav-collapse .nav-item { width: 100%; }
#theme-header.nav-collapse .nav-menu .nav-link { padding: 12px 0; }
#theme-header.nav-collapse .menu-toggle { display: flex; }
#theme-header.nav-collapse .nav-auth { flex-wrap: nowrap; }
#theme-header.nav-collapse .has-dropdown { position: static; }
#theme-header.nav-collapse .has-dropdown > .nav-link { display: flex; align-items: center; justify-content: space-between; width: 100%; }
#theme-header.nav-collapse .has-dropdown > .nav-link::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px; margin-left: 8px; color: var(--text-2); transition: transform .25s; }
#theme-header.nav-collapse .has-dropdown.expanded > .nav-link::after { transform: rotate(180deg); }
#theme-header.nav-collapse .dropdown-menu {
  position: static; top: auto; left: auto; margin: 0; width: 100%; transform: none;
  background: transparent; border: none; box-shadow: none; min-width: 0;
  opacity: 1; visibility: visible; border-radius: 0;
  max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease;
  padding: 0 0 0 16px;
}
#theme-header.nav-collapse .has-dropdown.expanded .dropdown-menu { max-height: 500px; padding: 12px 0 4px 16px; }
#theme-header.nav-collapse .dropdown-menu a { padding: 12px 16px; border-left: 2px solid var(--border-color); }
#theme-header.nav-collapse .dropdown-menu a:hover,
#theme-header.nav-collapse .dropdown-menu a.active { border-left-color: var(--brand-blue); }

/* ===== 消息通知：悬浮铃铛 + 弹窗（顶栏不再常驻铃铛；有未读才出现，读完后自动隐藏） ===== */
.notify-fab {
  position: fixed; right: 16px; bottom: calc(70px + env(safe-area-inset-bottom));
  width: 50px; height: 50px; border: none; border-radius: 50%;
  background: var(--brand-gradient); color: #fff; font-size: 20px;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; z-index: 998; box-shadow: var(--shadow-blue); transition: transform .2s;
}
.notify-fab:hover { transform: translateY(-2px); }
.notify-fab:active { transform: scale(.94); }
.notify-fab .notify-fab-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  background: #ef4444; color: #fff; font-size: 11px; line-height: 18px; font-weight: 700;
  border-radius: 9px; display: none; text-align: center; box-shadow: 0 0 0 2px #fff;
}
@media (min-width: 768px) { .notify-fab { right: 32px; bottom: 88px; } }

.notify-mask {
  position: fixed; inset: 0; z-index: 99990; padding: 20px;
  background: rgba(15,23,42,.5); display: flex; align-items: center; justify-content: center;
  animation: notifyFade .18s ease;
}
@keyframes notifyFade { from { opacity: 0; } to { opacity: 1; } }
.notify-popup {
  width: 420px; max-width: 100%; max-height: 80vh; background: #fff; border-radius: 16px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 60px rgba(15,23,42,.3); animation: notifyPop .2s ease;
}
@keyframes notifyPop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.notify-popup-hd {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 18px;
  border-bottom: 1px solid #eef2f7; font-size: 16px; font-weight: 700; color: #1e293b;
}
.notify-popup-x { cursor: pointer; color: #94a3b8; font-size: 22px; line-height: 1; }
.notify-popup-x:hover { color: #475569; }
.notify-popup-bd { flex: 1; overflow-y: auto; padding: 6px 0; }
.notify-popup-ft { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid #eef2f7; }
.notify-btn { flex: 1; padding: 10px 0; border-radius: 10px; font-size: 14px; cursor: pointer; border: 1px solid #e2e8f0; background: #f8fafc; color: #475569; }
.notify-btn:hover { background: #eef2f7; }
.notify-btn-primary { border: none; background: var(--brand-gradient); color: #fff; }
.notify-empty { padding: 44px 16px; text-align: center; color: #94a3b8; font-size: 14px; }
.notify-item { padding: 14px 18px; border-bottom: 1px solid #f4f7fb; }
.notify-item:last-child { border-bottom: none; }
.notify-item.is-unread { background: #f6f9ff; }
.notify-item-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: #1e293b; }
.notify-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; flex-shrink: 0; }
.notify-item-content { margin: 6px 0 0; font-size: 13.5px; color: #64748b; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.notify-item-time { margin-top: 6px; font-size: 12px; color: #94a3b8; }

/* 移动端落地分流：已登录访问站点首页时先隐藏首屏避免首页内容闪现，鉴权确认后由 user-auth.js 放行或跳转 */
html.tl-auth-pending body { visibility: hidden !important; }

/* 手机端隐藏站点页脚：品牌简介/服务导航/合规入口仅在 PC Web 展示 */
@media (max-width: 768px) {
  #theme-footer { display: none !important; }
}
