@charset "utf-8";
/* ============================================================
   成都西南儿童医院-移动端 (SiteDir: etm)  全站移动端样式
   由「资源文件管理 → 样式文件 → css/mobile.css」维护
   蓝本: http://m.xnetyy.com/
   ============================================================ */
:root{--c:#1180cf;--c2:#0a66ac;--c3:#2c7da0;--bg:#f4f7fb;--tx:#1e2a3e;--sub:#6b7f92;--line:#e8eef4}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
body{max-width:640px;margin:0 auto;background:var(--bg);color:var(--tx);
  font:14px/1.65 system-ui,-apple-system,"PingFang SC","Microsoft YaHei",Helvetica,Arial,sans-serif;
  padding-bottom:66px;overflow-x:hidden}
img{max-width:100%;display:block;border:0}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}

/* ---------- 顶部 ---------- */
.m-header{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#fff;
  position:sticky;top:0;z-index:60;box-shadow:0 1px 6px rgba(0,0,0,.06)}
.m-header .m-logo{flex:1;min-width:0;display:flex;align-items:center;gap:8px;justify-content: center;}
.m-header .m-logo img{height: 40px;width: auto;}
.m-header .m-logo em{font-style:normal;font-size:12px;color:#8fa6b8;letter-spacing:1px;white-space:nowrap}
.m-header .m-tel{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;line-height:1.15;
  background:var(--c);color:#fff;padding:6px 12px;border-radius:20px}
.m-header .m-tel span{font-size:10px;opacity:.9}
.m-header .m-tel b{font-size:13px;font-weight:600}

/* ---------- 导航 ---------- */
.m-nav{background:var(--c);position:sticky;top:56px;z-index:55}
.m-nav ul{display:flex;overflow-x:auto;scrollbar-width:none}
.m-nav ul::-webkit-scrollbar{display:none}
.m-nav li{flex:0 0 auto}
.m-nav a{display:block;padding:11px 14px;color:#fff;font-size:14px;white-space:nowrap;opacity:.88}
.m-nav a.on{opacity:1;font-weight:600;box-shadow:inset 0 -3px 0 #fff}

/* ---------- 首页轮播 ---------- */
.m-banner{position:relative;background:#dbe7f1}
.m-banner-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.m-banner-track::-webkit-scrollbar{display:none}
.m-banner-track a{flex:0 0 100%;scroll-snap-align:center}
.m-banner-track img{width:100%;height:44vw;max-height:250px;object-fit:cover}
.m-banner-dots{position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:center;gap:6px}
.m-banner-dots i{width:6px;height:6px;border-radius:3px;background:rgba(255,255,255,.65)}
.m-banner-dots i.on{width:16px;background:#fff}

/* ---------- 首页快捷入口 ---------- */
.m-quick{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-bottom:1px solid var(--line)}
.m-quick a{padding:14px 4px 12px;text-align:center;font-size:13px;color:#2c4a6e;
  border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.m-quick a:nth-child(4n){border-right:0}
.m-quick svg{width:26px;height:26px;margin:0 auto 6px;display:block;color:var(--c)}

/* ---------- 区块 ---------- */
.m-sec{background:#fff;margin-top:10px}
.m-sec-hd{display:flex;align-items:center;gap:8px;padding:13px 14px 10px;border-bottom:1px solid var(--line)}
.m-sec-hd h2{font-size:17px;font-weight:600;color:#12475c;border-left:4px solid var(--c);padding-left:9px;line-height:1.2}
.m-sec-hd em{font-style:normal;font-size:11px;color:#a8bccd;letter-spacing:1px;text-transform:uppercase}
.m-sec-hd .m-more{margin-left:auto;font-size:12px;color:var(--c);border:1px solid #cfe4f2;border-radius:12px;padding:2px 10px;white-space:nowrap}

/* ---------- 图文列表 ---------- */
.m-list{padding:0 14px}
.m-list li{border-bottom:1px solid var(--line)}
.m-list li:last-child{border-bottom:0}
.m-list a{display:flex;gap:10px;padding:12px 0;align-items:stretch}
.m-list .m-thumb{flex:0 0 106px;width:106px;height:74px;border-radius:8px;overflow:hidden;background:#eef3f8}
.m-list .m-thumb img{width:100%;height:100%;object-fit:cover}
.m-list .m-txt{flex:1;min-width:0;display:flex;flex-direction:column}
.m-list .m-txt h3{font-size:15px;font-weight:500;line-height:1.45;color:#20364b;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.m-list .m-txt p{font-size:12px;color:var(--sub);margin-top:6px;line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.m-list .m-txt .m-date{font-size:12px;color:#9fb3c4;margin-top:auto;padding-top:6px}
.m-list li.no-pic a{padding:13px 0}
.m-list li.no-pic .m-txt h3{-webkit-line-clamp:3}

/* ---------- 纯文字列表 ---------- */
.m-news{padding:0 14px}
.m-news a{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);align-items:center}
.m-news a:last-child{border-bottom:0}
.m-news .t{font-size:14px;color:#2c4a6e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m-news .d{font-size:12px;color:#9fb3c4;flex:0 0 auto}

/* ---------- 医生 ---------- */
.m-docs{display:flex;gap:12px;overflow-x:auto;padding:14px;scrollbar-width:none}
.m-docs::-webkit-scrollbar{display:none}
.m-doc{flex:0 0 138px;background:#f7fbff;border:1px solid #e3eefa;border-radius:12px;padding:12px 10px;text-align:center}
.m-doc img{width:72px;height:72px;border-radius:50%;object-fit:cover;margin:0 auto 8px;
  border:2px solid #fff;box-shadow:0 2px 8px rgba(17,128,207,.16)}
.m-doc h3{font-size:14px;font-weight:600;color:#1e2f3c}
.m-doc span{display:inline-block;margin-top:6px;font-size:11px;color:#fff;background:var(--c);border-radius:10px;padding:1px 8px}
.m-doc p{font-size:11px;color:var(--sub);margin-top:7px;line-height:1.45;text-align:left;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* ---------- 科室 ---------- */
.m-depts{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:14px}
.m-dept{background:#f7fbff;border:1px solid #e3eefa;border-radius:12px;padding:12px;display:flex;align-items:center;gap:8px}
.m-dept h3{font-size:15px;color:#12475c;border-left:4px solid var(--c);padding-left:8px;line-height:1.2}

/* ---------- 咨询引导 ---------- */
.m-cta{margin:12px 14px;background:linear-gradient(135deg,#1180cf,#0aa0d8);border-radius:14px;padding:18px 16px;color:#fff;text-align:center}
.m-cta p{font-size:14px;opacity:.96}
.m-cta .btn{display:block;margin-top:12px;background:#fff;color:var(--c);font-weight:600;padding:11px;border-radius:24px}
.m-cta .ghost{display:block;margin-top:10px;color:#eaf6ff;font-size:13px;text-decoration:underline}

/* ---------- 面包屑 / 分页 ---------- */
.m-crumb{padding:10px 14px;font-size:12px;color:var(--sub);background:#fff;border-bottom:1px solid var(--line);white-space:nowrap;overflow-x:auto}
.m-crumb a{color:var(--sub)}
.m-crumb::-webkit-scrollbar{display:none}
.m-pager{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;padding:18px 14px}
.m-pager a,.m-pager span{min-width:34px;height:32px;line-height:30px;text-align:center;border:1px solid #dbe7f1;
  border-radius:8px;background:#fff;font-size:13px;color:#48627a;padding:0 8px}
.m-pager .current{background:var(--c);border-color:var(--c);color:#fff;font-weight:600}

/* ---------- 文章 ---------- */
.m-art{background:#fff;padding:16px 14px}
.m-art h1{font-size:19px;line-height:1.45;color:#1a2c3d;font-weight:600}
.m-art .m-meta{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;color:#9fb3c4;margin:10px 0 14px;
  padding-bottom:12px;border-bottom:1px solid var(--line)}
.m-art .m-sub{display:inline-block;margin:8px 0 0;font-size:12px;color:#fff;background:var(--c);border-radius:10px;padding:2px 10px}
.m-cover{margin:0 0 14px;border-radius:10px;overflow:hidden;background:#eef3f8}
.m-cover img{width:100%;max-height:320px;object-fit:cover}

/* ---------- 正文 ---------- */
.m-body{font-size:15.5px;line-height:1.85;color:#2c3e50;word-break:break-word}
.m-body img{max-width:100%;height:auto;margin:10px auto;border-radius:6px}
.m-body p{margin-bottom:14px}
.m-body h1,.m-body h2,.m-body h3,.m-body h4{margin:16px 0 10px;color:#12475c;line-height:1.4}
.m-body h2{font-size:17px}
.m-body h3{font-size:16px}
.m-body ul,.m-body ol{margin:0 0 14px 20px;list-style:disc}
.m-body li{margin-bottom:6px;list-style: none;}
.m-body table{width:100%;border-collapse:collapse;font-size:13px;margin-bottom:14px}
.m-body td,.m-body th{border:1px solid #e2eaf1;padding:6px 8px}
.m-body a{color:var(--c);word-break:break-all}
.m-body iframe,.m-body video{max-width:100%}

/* ---------- 预约挂号 / 表单（正文内 page_10） ---------- */
.m-body .container-inner.mt25{margin-top:0}
.m-body .three-nav ul{display:flex;background:#fff;border-bottom:1px solid var(--line)}
.m-body .three-nav li{flex:1;text-align:center;cursor:pointer}
.m-body .three-nav a{display:block;padding:12px 0;font-size:15px;color:#3a5468}
.m-body .three-nav li.cur a,.m-body .three-nav li.on a{color:var(--c);font-weight:600;box-shadow:inset 0 -3px 0 var(--c)}
.m-body .three-nav:after{content:"";display:block;clear:both}
.m-body .content>ul>li{padding-top:4px}
.m-body .page_10{margin:0}
.m-body .p_10_left{padding:14px;background:#fff;border-radius:12px}
.m-body .fc_nr{margin-bottom:6px}
.m-body .fc_nr label{display:block;font-size:14px;color:#2c3e50;margin:12px 0 6px;font-weight:500}
.m-body form input[type=text],.m-body form input[type=date],.m-body form input[type=tel],
.m-body form input[type=number],.m-body form textarea,.m-body form select{
  width:100%;border:1px solid #dbe7f1;border-radius:10px;padding:12px;font-size:15px;background:#f9fcff;
  color:#20364b;-webkit-appearance:none;appearance:none;font-family:inherit;outline:none}
.m-body form input:focus,.m-body form textarea:focus,.m-body form select:focus{border-color:var(--c);background:#fff}
.m-body form textarea{min-height:98px;resize:vertical;line-height:1.6}
.m-body form input[type=radio]{width:18px;height:18px;vertical-align:-3px;margin-right:4px;accent-color:var(--c)}
.m-body .nr1_p2{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.m-body .nr1_p2 a{margin-right:16px;font-size:15px}
.m-body .nr1_p1{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.m-body .nr1_p1 input{flex:1;min-width:120px}
.m-body .nr1_p3{display:flex;align-items:center;gap:6px}
.m-body .nr1_p3 input{flex:1}
.m-body .fc_nr2,.m-body .fc_nr3{display:block}
.m-body .p_10_right{text-align:center;margin-top:8px}
.m-body .p_10_right>p{font-size:12px;color:var(--sub);line-height:1.8;padding:0 4px}
.m-body .p_10_right>span{color:#e0632b}
.m-body .yy_tijiao{display:block;margin:14px auto 0;width:100%;background:linear-gradient(135deg,#1180cf,#0aa0d8);
  color:#fff;font-size:16px;font-weight:600;padding:13px;border-radius:26px;text-align:center;
  box-shadow:0 6px 16px rgba(17,128,207,.28)}
.m-body .yy_zixun{display:inline-block;margin-top:14px;color:var(--c);font-size:14px;border:1px solid #cfe4f2;
  border-radius:20px;padding:6px 20px}
.m-body .p2{font-size:12px;color:#9fb3c4;margin-top:14px;line-height:1.7;text-align:center}
.m-body .tpjz{display:block;margin:16px auto 0;max-width:100%;border-radius:10px}
.m-body .list-paddingleft-2{padding-left:0}
.m-body .cl{clear:both}

/* ---------- 免费测评（表单页） ---------- */
.ev-wrap{padding-bottom:6px}
.ev-hero{background:linear-gradient(135deg,#1180cf,#22a5e0);color:#fff;padding:18px 16px}
.ev-hero p{font-size:17px;font-weight:600}
.ev-hero span{display:block;margin-top:6px;font-size:13px;line-height:1.7;opacity:.95}
.ev-card{background:#fff;margin:10px 12px 0;border-radius:14px;padding:16px 14px;box-shadow:0 4px 16px rgba(17,128,207,.08)}
.ev-title{font-size:17px;color:#12475c;text-align:center;border-left:0;padding-bottom:10px;border-bottom:1px dashed var(--line)}
.ev-desc{text-align:center;font-size:12.5px;color:var(--sub);margin:10px 0 4px}
.ev-desc b{color:#e0632b}
.ev-item{display:flex;align-items:flex-start;gap:8px;padding:11px 0;border-bottom:1px solid var(--line)}
.ev-item:last-of-type{border-bottom:0}
.ev-label{flex:0 0 118px;font-size:14px;color:#2c3e50;line-height:1.5;padding-top:9px}
.ev-label.required:after{content:" *";color:#e0632b}
.ev-input{flex:1;min-width:0}
.ev-input select,.ev-input input{width:100%;border:1px solid #dbe7f1;border-radius:10px;padding:10px 12px;
  font-size:15px;background:#f9fcff;color:#20364b;-webkit-appearance:none;appearance:none;outline:none;font-family:inherit}
.ev-input select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7f92' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center}
.ev-input select:focus,.ev-input input:focus{border-color:var(--c);background-color:#fff}
.ev-submit{display:block;margin:16px auto 4px;width:100%;background:linear-gradient(135deg,#1180cf,#0aa0d8);
  color:#fff;font-size:16px;font-weight:600;padding:13px;border-radius:26px;text-align:center;cursor:pointer;
  box-shadow:0 6px 16px rgba(17,128,207,.28)}
.ev-tips{margin:12px 12px 18px;background:#fff8ef;border:1px solid #ffe2c2;border-radius:12px;padding:12px 14px}
.ev-tips h4{font-size:14px;color:#d97706;margin-bottom:6px}
.ev-tips p{font-size:12.5px;color:#8a6d3b;line-height:1.75}
.ev-tips .highlight{color:#e0632b}

/* ---------- 免费测评（底部弹层） ---------- */
.m-eval-mask{position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(0,0,0,.42);z-index:120;display:none}
.m-eval-mask.show{display:block}
.m-eval-pop{position:fixed;left:0;right:0;bottom:0;max-width:640px;margin:0 auto;background:#fff;
  border-radius:16px 16px 0 0;z-index:121;padding:16px 16px calc(18px + env(safe-area-inset-bottom));
  transform:translateY(110%);transition:transform .28s ease;box-shadow:0 -6px 24px rgba(0,0,0,.18)}
.m-eval-pop.show{transform:translateY(0)}
.m-eval-pop h4{font-size:16px;color:#12475c;text-align:center;margin-bottom:12px}
.m-eval-pop ul{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.m-eval-pop li a{display:block;text-align:center;padding:13px 6px;border-radius:12px;background:#f2f8fe;
  color:#12475c;font-size:14.5px;border:1px solid #dcecf9}
.m-eval-pop li:last-child{grid-column:1 / -1}
.m-eval-pop li:last-child a{background:var(--c);color:#fff;border-color:var(--c)}

/* ---------- 底部 ---------- */
.m-foot{margin-top:14px;background:linear-gradient(#11b6d8,#0a7fc4);color:#fff;padding:18px 16px}
.m-foot .ln{font-size:16px;font-weight:600;color:#fff}
.m-foot p{font-size:12px;color:rgba(255,255,255,.9);margin:5px 0;line-height:1.6}
.m-foot p a{color:#fff;text-decoration:underline}
.m-foot .cp{text-align:center;font-size:11px;color:rgba(255,255,255,.78);margin-top:12px;
  border-top:1px solid rgba(255,255,255,.22);padding-top:12px}

/* ---------- 底部导航 ---------- */
.m-tabbar{position:fixed;left:0;right:0;bottom:0;max-width:640px;margin:0 auto;background:#fff;display:flex;
  box-shadow:0 -2px 10px rgba(0,0,0,.09);z-index:100;padding-bottom:env(safe-area-inset-bottom)}
.m-tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 0 7px;font-size:11px;color:#5f7f9c}
.m-tabbar a.on{color:var(--c)}
.m-tabbar svg{width:21px;height:21px}
.m-tabbar .m-eval-btn{cursor:pointer}
.m-tabbar .m-eval-btn img{width:21px;height:21px}

@media (min-width:641px){body{box-shadow:0 0 24px rgba(0,0,0,.06);min-height:100vh}}
