/* ==========================================================================
   福州贝臣齿科 · 移动站专用样式（6697 域名）
   设计口径：App 式单列布局，44px 以上触控目标，底部标签栏 + 抽屉导航。
   与 PC 站共用同一份后台数据，样式完全独立。
   ========================================================================== */

:root {
  --brand: #1687b0;
  --brand-dark: #0e6e92;
  --brand-deep: #08496a;
  --brand-light: #e6f6fc;
  --brand-soft: #f1fafd;
  --logo-blue: #34b3e1;
  --meituan: #ffc300;
  --dianping: #ff6633;
  --wecom: #0e6e92;
  --ink: #172a35;
  --ink-2: #445a67;
  --ink-3: #7c909c;
  --line: #e6edf1;
  --bg: #f4f8fa;
  --radius: 14px;
  --tab-h: 54px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 8px);
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 .8em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .45em; }

/* ---------- 顶栏 ---------- */
.m-header {
  position: sticky; top: 0; z-index: 60;
  height: 52px; padding: 0 14px;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.mh-logo img { height: 30px; width: auto; }
.mh-actions { display: flex; gap: 8px; }
.mh-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--brand-dark); font-size: 16px;
  display: grid; place-items: center; cursor: pointer;
}
.mh-btn.accent { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 抽屉导航 ---------- */
.m-mask {
  position: fixed; inset: 0; z-index: 90; background: rgba(6, 30, 44, .5);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.m-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(78vw, 300px);
  background: #fff;
  transform: translateX(105%); transition: transform .28s ease;
  display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(6, 30, 44, .18);
}
body.m-open .m-drawer { transform: none; }
body.m-open .m-mask { opacity: 1; pointer-events: auto; }
.md-head {
  padding: 16px 18px 12px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.md-head img { height: 28px; }
.md-close {
  width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--bg);
  color: var(--ink-2); font-size: 17px; display: grid; place-items: center;
}
.md-nav { flex: 1; overflow-y: auto; padding: 8px 0 calc(16px + env(safe-area-inset-bottom)); }
.md-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px; font-size: 15.5px; color: var(--ink);
}
.md-nav a .ico { width: 22px; text-align: center; color: var(--brand); font-style: normal; }
.md-nav a.is-active { color: var(--brand-dark); font-weight: 600; background: var(--brand-soft); }
.md-foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.md-foot .tel { font-size: 16px; font-weight: 600; color: var(--brand-dark); display: block; margin-bottom: 10px; }
.md-foot a.pc-link { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 通用容器 ---------- */
.m-sec { padding: 18px 14px; }
.m-sec:first-child { padding-top: 12px; }
.m-sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 0 2px 12px;
}
.m-sec-head h2 { font-size: 17px; margin: 0; font-weight: 600; }
.m-sec-head .more { font-size: 12.5px; color: var(--ink-3); }
.m-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}

/* ---------- 首屏 ---------- */
.m-hero {
  margin: 12px 14px 0; border-radius: 16px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #08496a 0%, #0e6e92 55%, #1687b0 100%);
  color: #fff; padding: 22px 18px;
}
.m-hero .tag {
  display: inline-block; font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  margin-bottom: 10px;
}
.m-hero h1 { font-size: 21px; line-height: 1.35; margin: 0 6px 8px 0; }
.m-hero p { font-size: 13px; color: rgba(255, 255, 255, .85); margin-bottom: 16px; }
.m-hero .btns { display: flex; gap: 10px; }

/* ---------- 按钮 ---------- */
.mbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; line-height: 1.3;
}
.mbtn-primary { background: #fff; color: var(--brand-dark); }
.mbtn-wecom { background: var(--wecom); color: #fff; }
.mbtn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.mbtn-brand { background: var(--brand); color: #fff; }
.mbtn-outline { border-color: #cdd9e0; color: var(--ink-2); background: #fff; }
.mbtn-meituan { background: var(--meituan); color: #5a3d00; }
.mbtn-dianping { background: var(--dianping); color: #fff; }
.mbtn-block { display: flex; width: 100%; }
.mbtn-sm { min-height: 38px; padding: 8px 16px; font-size: 13.5px; }

/* ---------- 快捷宫格 ---------- */
.m-quick {
  margin: 12px 14px 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 14px 6px;
}
.m-quick a { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); padding: 6px 0; }
.m-quick .qi {
  width: 42px; height: 42px; border-radius: 12px; background: var(--brand-light);
  color: var(--brand-dark); display: grid; place-items: center; font-size: 19px;
}

/* ---------- 列表行（项目/医生/文章通用） ---------- */
.m-rows { display: flex; flex-direction: column; }
.m-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-bottom: 1px solid var(--line); min-height: 64px;
}
.m-row:last-child { border-bottom: 0; }
.m-row .r-icon {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  background: var(--brand-light); color: var(--brand-dark);
  display: grid; place-items: center; font-size: 17px;
}
.m-row .r-main { flex: 1; min-width: 0; }
.m-row .r-main b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.m-row .r-main span {
  display: block; font-size: 12.5px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.m-row .r-chev { color: #c3d0d8; font-size: 14px; flex: 0 0 auto; }
.m-row .r-thumb {
  width: 84px; height: 62px; border-radius: 10px; flex: 0 0 auto; overflow: hidden;
  background: linear-gradient(135deg, #eaf7fc, #d3edf8); display: grid; place-items: center;
  color: var(--brand); font-size: 20px;
}
.m-row .r-thumb img { width: 100%; height: 100%; object-fit: cover; }
.m-row .r-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  background: linear-gradient(135deg, #dceff8, #bfe3f4); color: var(--brand-dark);
  display: grid; place-items: center; font-size: 18px;
}
.m-row .r-avatar img { width: 100%; height: 100%; object-fit: cover; }
.m-row .r-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.m-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #d6eaf2;
}

/* ---------- 活动卡 ---------- */
.m-campaign { margin-bottom: 12px; }
.m-campaign .cm-media {
  height: 140px; background: linear-gradient(140deg, #e8f7fd, #b8e0f2);
  display: grid; place-items: center; color: rgba(14, 110, 146, .4); font-size: 32px;
  position: relative;
}
.m-campaign .cm-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-campaign .cm-body { padding: 14px; }
.m-badge {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 6px;
  background: #f2f8e6; color: #5c7d16; margin-bottom: 8px;
}
.m-campaign h3 { font-size: 16px; margin: 0 0 4px; }
.m-campaign .sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 10px; }
.m-highs { list-style: none; padding: 0; margin: 0 0 12px; }
.m-highs li {
  font-size: 13px; color: var(--ink-2); padding: 4px 0 4px 20px; position: relative; margin: 0;
}
.m-highs li::before {
  content: "✓"; position: absolute; left: 0; top: 5px;
  width: 15px; height: 15px; border-radius: 50%; background: var(--brand-light);
  color: var(--brand-dark); font-size: 10px; display: grid; place-items: center;
}
.m-campaign .cm-act { display: flex; gap: 10px; }

/* ---------- 渠道 ---------- */
.m-ch-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.m-ch-row:last-child { border-bottom: 0; }
.m-ch-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.m-ch-dot.mt { background: var(--meituan); }
.m-ch-dot.dp { background: var(--dianping); }
.m-ch-dot.dy { background: #161823; }
.m-ch-dot.wc { background: var(--wecom); }
.m-ch-row b { flex: 1; font-size: 14.5px; font-weight: 500; min-width: 0; }
.m-ch-row .go { font-size: 13px; color: var(--brand); flex: 0 0 auto; }

/* ---------- 门店卡 ---------- */
.m-store { padding: 14px; margin-bottom: 12px; }
.m-store:last-child { margin-bottom: 0; }
.m-store h3 { font-size: 16px; margin: 0 0 8px; }
.m-store .st-line { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.m-store .st-line .k { color: var(--ink-3); flex: 0 0 auto; }
.m-store .st-act { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.m-store .st-act .mbtn { flex: 1; min-width: 80px; padding: 8px 10px; font-size: 13px; min-height: 38px; }

/* ---------- 文章 ---------- */
.m-article { padding: 4px 2px; font-size: 15.5px; line-height: 1.85; color: #26343d; }
.m-article h2 { font-size: 18px; margin: 1.2em 0 .5em; }
.m-article h3 { font-size: 16.5px; margin: 1.3em 0 .4em; padding-left: 10px; border-left: 3px solid var(--brand); }
.m-article img { border-radius: 10px; margin: 1em 0; }
.m-article table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 1em 0; }
.m-article th, .m-article td { border: 1px solid var(--line); padding: 8px 9px; text-align: left; }
.m-article blockquote { margin: 1em 0; padding: 10px 14px; background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; color: var(--ink-2); font-size: 14px; }
.m-title { font-size: 20px; line-height: 1.4; margin: 4px 0 8px; }
.m-meta { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.m-crumbs { font-size: 12.5px; color: var(--ink-3); padding: 12px 2px 0; }
.m-crumbs a { color: var(--brand); }

/* ---------- 页头横幅（内页） ---------- */
.m-page-hero {
  margin: 12px 14px 0; border-radius: 14px; padding: 18px;
  background: linear-gradient(125deg, #08496a, #1687b0); color: #fff;
}
.m-page-hero h1 { font-size: 19px; margin: 0 0 6px; }
.m-page-hero p { font-size: 12.5px; color: rgba(255, 255, 255, .82); margin: 0; }

/* ---------- 提示 ---------- */
.m-note {
  font-size: 12px; color: var(--ink-3); background: #fff;
  border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 10px;
}
.m-warn { background: #fdf7e8; border: 1px solid #f0e2bd; color: #8a6516; font-size: 12.5px; padding: 10px 12px; border-radius: 10px; }
.m-ok { background: #eaf8f1; border: 1px solid #c9ead9; color: #1d7a52; font-size: 13px; padding: 12px; border-radius: 10px; }

/* ---------- 分页 ---------- */
.m-pager { display: flex; gap: 8px; justify-content: center; margin: 18px 0 4px; flex-wrap: wrap; }
.m-pager a, .m-pager span {
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13.5px;
}
.m-pager .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.m-pager .is-disabled { opacity: .4; pointer-events: none; }

/* ---------- 行动条 ---------- */
.m-cta {
  margin: 14px; padding: 18px; border-radius: 14px; text-align: center;
  background: linear-gradient(125deg, #08496a, #1687b0); color: #fff;
}
.m-cta h2 { font-size: 17px; margin: 0 0 4px; }
.m-cta p { font-size: 12.5px; color: rgba(255, 255, 255, .8); margin: 0 0 14px; }
.m-cta .btns { display: flex; gap: 10px; justify-content: center; }

/* ---------- 表单 ---------- */
.m-form { padding: 16px 14px; }
.m-field { margin-bottom: 14px; }
.m-field label { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.m-field label .req { color: #d9534f; }
.m-input, .m-textarea, .m-select {
  width: 100%; min-height: 46px; padding: 11px 13px;
  border: 1px solid #d5e0e6; border-radius: 10px; background: #fff;
  font-size: 15px; font-family: inherit; color: var(--ink);
}
.m-textarea { min-height: 110px; resize: vertical; }
.m-input:focus, .m-textarea:focus, .m-select:focus { outline: none; border-color: var(--brand); }

/* ---------- 页脚 ---------- */
.m-footer { background: #06304a; color: rgba(255, 255, 255, .62); padding: 24px 18px calc(20px + env(safe-area-inset-bottom)); margin-top: 20px; font-size: 13px; }
.m-footer h4 { color: #fff; font-size: 14.5px; margin: 0 0 10px; }
.m-footer a { color: rgba(255, 255, 255, .78); }
.m-footer .f-line { margin-bottom: 6px; }
.m-footer .f-ch { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 16px; }
.m-footer .f-ch a { font-size: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.m-footer .f-beian { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 12px; font-size: 12px; color: rgba(255, 255, 255, .5); line-height: 1.9; }

/* ---------- 底部标签栏 ---------- */
.m-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.m-tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10.5px; color: var(--ink-3);
}
.m-tabbar a .t-ico { font-size: 18px; line-height: 1; }
.m-tabbar a.is-active { color: var(--brand-dark); font-weight: 600; }
.m-tabbar a.tab-consult .t-ico { color: var(--brand); }

/* ---------- 图片灯箱 ---------- */
.m-lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(4, 20, 30, .92);
  display: flex; align-items: center; justify-content: center; padding: 30px 16px;
}
.m-lightbox[hidden] { display: none; }
.m-lightbox img { max-width: 100%; max-height: 76vh; border-radius: 10px; }
.m-lightbox .lb-cap { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: 12.5px; }
.m-lightbox .lb-close { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 20px; }

/* 环境图格 */
.m-gal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-gal .g-item { border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.m-gal .g-item .g-img { aspect-ratio: 4/3; background: var(--brand-soft); display: grid; place-items: center; color: var(--ink-3); font-size: 12px; }
.m-gal .g-item img { width: 100%; height: 100%; object-fit: cover; }
.m-gal .g-item figcaption { font-size: 12px; color: var(--ink-2); padding: 7px 10px; }

/* ---------- 弹窗公告（移动样式） ---------- */
.m-pop-mask {
  position: fixed; inset: 0; z-index: 300; background: rgba(6, 30, 44, .6);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.m-pop-mask[hidden] { display: none; }
.m-pop-box {
  position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 330px;
  overflow: hidden; box-shadow: 0 20px 50px rgba(3, 20, 32, .35);
}
.m-pop-close {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--ink-2); font-size: 18px;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.m-pop-img img { width: 100%; max-height: 190px; object-fit: cover; }
.m-pop-body { padding: 18px 16px; text-align: center; }
.m-pop-body h3 { font-size: 17px; margin: 0 0 8px; }
.m-pop-body p { font-size: 13.5px; color: var(--ink-2); margin: 0 0 16px; }
.m-pop-act { display: grid; gap: 8px; }
/* 抖音按钮（移动站） */
.mbtn-douyin { background: #161823; color: #fff; }
.mbtn-douyin:hover, .mbtn-douyin:active { background: #2b2d3a; color: #fff; }
