/* fh21 风格首页的手机端排版；只在首页 body.page-home 生效。 */
@media (max-width:760px){
  .page-home .fh-home{font-size:13px;line-height:1.55;overflow:hidden}.page-home .fh-home .fh-w{width:100%;max-width:none;padding:0 14px}.page-home .fh-home .fh-tabs{margin:0 0 12px;padding:8px 0;background:linear-gradient(90deg,#2787e9,#3a9cf2)}.page-home .fh-home .fh-tabs .fh-w{gap:7px;padding:0 14px}.page-home .fh-home .fh-tabs .fh-tab-cell a{padding:5px 11px;margin:0;border-color:rgba(255,255,255,.48);font-size:12px;line-height:18px}
  .page-home .fh-home .fh-s1,.page-home .fh-home .fh-news,.page-home .fh-home .fh-ask,.page-home .fh-home .fh-hosp,.page-home .fh-home .fh-zjkp,.page-home .fh-home .fh-baike,.page-home .fh-home .fh-kepu,.page-home .fh-home .fh-nt,.page-home .fh-home .fh-guide{margin-bottom:18px}.page-home .fh-home .fh-s1 .fh-side,.page-home .fh-home .fh-s1 .fh-main,.page-home .fh-home .fh-s1 .fh-quick,.page-home .fh-home .fh-news .fh-col,.page-home .fh-home .fh-news .fh-colmid,.page-home .fh-home .fh-ask-main,.page-home .fh-home .fh-hosp-main,.page-home .fh-home .fh-zcol-a,.page-home .fh-home .fh-zcol-b,.page-home .fh-home .fh-baike-main,.page-home .fh-home .fh-kepu-main,.page-home .fh-home .fh-nt-main,.page-home .fh-home .fh-guide-main{float:none;width:100%;max-width:none;margin:0 0 12px;padding-right:0}.page-home .fh-home .fh-colright,.page-home .fh-home .fh-ask-side,.page-home .fh-home .fh-hosp-side,.page-home .fh-home .fh-zcol-c,.page-home .fh-home .fh-baike-side,.page-home .fh-home .fh-kepu-side,.page-home .fh-home .fh-nt-side,.page-home .fh-home .fh-guide-side{display:none}
  .page-home .fh-home .fh-card{border-color:#e6edf2}.page-home .fh-home .fh-h3{padding-bottom:8px;margin-bottom:10px;font-size:17px}.page-home .fh-home .fh-h3:after{width:32px}.page-home .fh-home .fh-h4{margin-bottom:8px;font-size:16px}.page-home .fh-home .fh-list li{min-height:31px;line-height:31px}.page-home .fh-home .fh-list li:nth-child(n+6){display:none}.page-home .fh-home .fh-list li>a{font-size:12px}.page-home .fh-home .fh-dot{width:4px;height:4px;margin-right:6px}.page-home .fh-home .fh-midtitle{height:56px;padding-top:10px}.page-home .fh-home .fh-midtitle .fh-line{top:30px;border-bottom-color:#e1e9ee}.page-home .fh-home .fh-midtitle .fh-midtext{padding:0 12px;font-size:19px;line-height:30px}.page-home .fh-home .fh-midtitle .fh-midtext em{font-size:12px}
  .page-home .fh-home .fh-figrow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.page-home .fh-home .fh-figrow a{float:none;width:auto}.page-home .fh-home .fh-figrow .fh-thumb{height:94px}.page-home .fh-home .fh-figrow p{height:28px;font-size:12px;line-height:28px}.page-home .fh-home .fh-s1 .fh-side{padding:10px 12px}.page-home .fh-home .fh-main{border:1px solid #e6edf2}.page-home .fh-home .fh-hero{height:175px}.page-home .fh-home .fh-hero .fh-thumb{height:175px}.page-home .fh-home .fh-hero .fh-thumb b{bottom:17px;left:18px;font-size:24px}.page-home .fh-home .fh-collist{display:grid;grid-template-columns:1fr;padding:6px 12px}.page-home .fh-home .fh-collist a{float:none;width:100%;padding:0;font-size:12px;line-height:29px}.page-home .fh-home .fh-collist a:nth-child(n+4){display:none}.page-home .fh-home .fh-quick{display:grid;grid-template-columns:repeat(2,1fr);border:1px solid #e6edf2}.page-home .fh-home .fh-quick .fh-quick-item{padding:15px 6px}.page-home .fh-home .fh-quick .fh-quick-item + .fh-quick-item{border-left:1px solid #edf0f2}.page-home .fh-home .fh-quick .fh-quick-ico{width:34px;height:34px;margin-bottom:5px}.page-home .fh-home .fh-quick strong{font-size:15px}.page-home .fh-home .fh-quick small{font-size:11px}.page-home .fh-home .fh-quick .fh-quick-note{grid-column:1/-1;padding:10px;margin:0;border-top:1px solid #edf0f2;font-size:12px}
  .page-home .fh-home .fh-headline{padding:0;margin-bottom:16px}.page-home .fh-home .fh-headline .fh-label{width:auto;height:auto;margin:0 0 6px;padding:7px 12px;font-size:15px;line-height:1.25}.page-home .fh-home .fh-headline .fh-label small{display:inline;margin-left:7px;font-size:10px}.page-home .fh-home .fh-headline li{width:100%;padding-right:0;line-height:29px}.page-home .fh-home .fh-headline li:nth-child(n+5){display:none}
  .page-home .fh-home .fh-news .fh-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.page-home .fh-home .fh-news .fh-col .fh-fig{margin:0}.page-home .fh-home .fh-news .fh-col .fh-thumb{height:88px}.page-home .fh-home .fh-news .fh-col .fh-fig p{height:31px;font-size:12px;line-height:31px}.page-home .fh-home .fh-news .fh-colmid{padding-top:7px}.page-home .fh-home .fh-news .fh-colmid .fh-list{border-top:1px solid #edf0f2}
  .page-home .fh-home .fh-ask-main{padding:8px 10px 10px;background:linear-gradient(180deg,#f5f9ff 0,#fff 32%);border:1px solid #e7eff8;border-radius:14px;box-shadow:0 8px 24px rgba(35,94,150,.06)}.page-home .fh-home .fh-dtabs{display:flex;gap:2px;overflow-x:auto;padding:1px 0 9px;margin:0 0 3px;white-space:nowrap;scrollbar-width:none}.page-home .fh-home .fh-dtabs::-webkit-scrollbar{display:none}.page-home .fh-home .fh-dtabs a{flex:0 0 auto;padding:7px 11px;border-radius:16px;color:#61758d;font-size:12px;line-height:18px}.page-home .fh-home .fh-dtabs a.is-on{background:#237ee2;color:#fff;box-shadow:0 4px 10px rgba(35,126,226,.22)}.page-home .fh-home .fh-qrow{position:relative;padding:13px 12px 11px;margin:0 0 9px;background:#fff;border:1px solid #e8eef5;border-radius:11px;box-shadow:0 4px 13px rgba(31,77,118,.045)}.page-home .fh-home .fh-qrow:before{position:absolute;top:15px;left:0;width:3px;height:29px;border-radius:0 4px 4px 0;background:linear-gradient(#30bd8b,#2b86eb);content:""}.page-home .fh-home .fh-qrow:last-child{margin-bottom:0;border-bottom:1px solid #e8eef5}.page-home .fh-home .fh-qrow:nth-child(n+4){display:none}.page-home .fh-home .fh-qdoc{align-items:center;gap:9px;min-height:43px;margin:0 0 9px}.page-home .fh-home .fh-qavatar{flex-basis:43px;width:43px;height:43px;border:2px solid #edf6ff;box-shadow:0 3px 8px rgba(31,108,183,.12);font-size:17px}.page-home .fh-home .fh-qdoc-txt{min-width:0;display:flex;align-items:center;flex:1;gap:7px;overflow:hidden}.page-home .fh-home .fh-qdoc-name{flex:0 0 auto;margin:0;line-height:20px}.page-home .fh-home .fh-qdoc-name b{margin-right:3px;color:#183b61;font-size:14px;font-weight:700}.page-home .fh-home .fh-qdoc-name span{color:#7790aa;font-size:11px}.page-home .fh-home .fh-qdoc-hos{min-width:0;padding-left:7px;margin:0;overflow:hidden;border-left:1px solid #e4ecf4;color:#8a9caf;font-size:11px;line-height:17px;text-overflow:ellipsis;white-space:nowrap}.page-home .fh-home .fh-qbody{padding-top:9px;border-top:1px solid #edf2f7}.page-home .fh-home .fh-qtitle{display:-webkit-box;margin:0 0 5px;overflow:hidden;color:#183b61;font-size:14px;font-weight:700;line-height:21px;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2}.page-home .fh-home .fh-qtitle span{display:inline-block;color:#13ad76;font-weight:800}.page-home .fh-home .fh-qans{margin:0 0 5px;color:#66809a;font-size:12px;line-height:19px;-webkit-line-clamp:2}.page-home .fh-home .fh-qans::first-letter{color:#2a82e5;font-weight:700}.page-home .fh-home .fh-qtime{font-size:10px;line-height:15px}.page-home .fh-home .fh-toask{padding:10px 8px;margin-top:10px;border:1px solid #dbeafa;border-radius:9px;background:#f5f9ff;font-size:13px}
  .page-home .fh-home .fh-hosimg-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:15px}.page-home .fh-home .fh-hositem{float:none;width:auto;margin:0!important}.page-home .fh-home .fh-hosimg,.page-home .fh-home .fh-hosimg img,.page-home .fh-home .fh-hosimg-ph{height:104px}.page-home .fh-home .fh-hosaddr{height:35px;padding-left:17px;background-position:left 11px;font-size:11px;line-height:35px}.page-home .fh-home .fh-hostype-row{margin-bottom:15px}.page-home .fh-home .fh-hostype-row dt{float:none;margin:0 0 7px;font-size:15px}.page-home .fh-home .fh-hostype-row dd{min-width:0;margin:0 6px 6px 0}.page-home .fh-home .fh-hostype-row dd a{padding:0 10px;font-size:12px;line-height:30px}.page-home .fh-home .fh-hostags a{padding:3px 0;margin:0 13px 7px 0;font-size:12px}.page-home .fh-home .fh-band{width:100%;height:auto;max-width:none;margin:6px 0 18px}.page-home .fh-home .fh-band-in{display:block;padding:17px 16px}.page-home .fh-home .fh-band-in strong{font-size:19px}.page-home .fh-home .fh-band-in span{display:block;margin:5px 0 0;font-size:12px}.page-home .fh-home .fh-band-in b{display:inline-block;padding:8px 14px;margin:11px 0 0;font-size:12px}
  .page-home .fh-home .fh-zcol-a .fh-imgcard{height:128px}.page-home .fh-home .fh-zcol-a .fh-imgcard .fh-thumb{height:128px}.page-home .fh-home .fh-2col{border-top:1px solid #edf0f2}.page-home .fh-home .fh-2col li{float:none;width:100%;padding:0;line-height:31px}.page-home .fh-home .fh-2col li:nth-child(n+6){display:none}.page-home .fh-home .fh-dise-item{float:none;width:100%;min-height:0;padding:0;margin:0 0 13px}.page-home .fh-home .fh-dise-item h3{padding-left:26px;margin-bottom:5px;background-size:14px;font-size:16px;line-height:27px}.page-home .fh-home .fh-dise-item li{float:left;width:33.33%;padding:0;line-height:29px}.page-home .fh-home .fh-dise-item li a{font-size:12px;line-height:29px}.page-home .fh-home .fh-ktabs{display:flex;overflow-x:auto;white-space:nowrap;scrollbar-width:none}.page-home .fh-home .fh-ktabs span{flex:0 0 auto;margin-right:12px;font-size:16px}.page-home .fh-home .fh-ktabs a{flex:0 0 auto;padding:6px 8px;margin:0;font-size:12px}.page-home .fh-home .fh-kcards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}.page-home .fh-home .fh-kcards a{float:none;width:auto;height:auto;margin:0}.page-home .fh-home .fh-kcards .fh-thumb{height:94px}.page-home .fh-home .fh-kcards strong{font-size:12px}.page-home .fh-home .fh-kcards small{font-size:10px}.page-home .fh-home .fh-txtcards li{float:none;width:100%;padding:0;line-height:30px}.page-home .fh-home .fh-txtcards li:nth-child(n+5){display:none}.page-home .fh-home .fh-nt-tabs{display:flex;overflow-x:auto;white-space:nowrap}.page-home .fh-home .fh-nt-tabs a{flex:0 0 auto;padding:8px 13px;font-size:12px}.page-home .fh-home .fh-nt-main .fh-list time{font-size:10px!important}.page-home .fh-home .fh-guide-story h3{font-size:18px;line-height:1.45;white-space:normal}.page-home .fh-home .fh-guide-story .fh-desc{font-size:12px;line-height:1.65}.page-home .fh-home .fh-guide-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}.page-home .fh-home .fh-guide-cards a{float:none;width:auto;height:96px;margin:0}.page-home .fh-home .fh-guide-cards .fh-thumb{height:96px}
}
@media (max-width:390px){.page-home .fh-home .fh-kcards,.page-home .fh-home .fh-hosimg-list{gap:9px}.page-home .fh-home .fh-dise-item li{width:50%}.page-home .fh-home .fh-figrow .fh-thumb{height:82px}.page-home .fh-home .fh-hero,.page-home .fh-home .fh-hero .fh-thumb{height:155px}.page-home .fh-home .fh-quick small{display:none}.page-home .fh-home .fh-midtitle .fh-midtext{font-size:18px}}

/* 手机首页页头：简洁文字导航，当前栏目用品牌色短横线强调。 */
@media(max-width:760px){
  .page-home .site-header{
    height:98px!important;
    min-height:98px!important;
    box-shadow:0 3px 12px rgba(36,79,116,.07)!important
  }
  .page-home .site-header .nav-wrap.nav-wrap{
    grid-template-columns:auto minmax(0,1fr)!important;
    grid-template-rows:56px 42px!important;
    min-height:98px!important;
    padding:0 14px!important
  }
  .page-home .site-header .nav-wrap .main-nav{
    display:flex!important;
    position:relative!important;
    inset:auto!important;
    grid-area:2/1/3/-1!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:0!important;
    width:calc(100% + 28px)!important;
    height:42px!important;
    padding:0 8px!important;
    margin:0 -14px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    border-top:1px solid #f0f3f6!important;
    background:#fff!important;
    white-space:nowrap!important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none
  }
  .page-home .site-header .nav-wrap .main-nav::-webkit-scrollbar{display:none}
  .page-home .site-header .nav-wrap .main-nav a{
    position:relative!important;
    display:flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0!important;
    height:42px!important;
    padding:0 13px!important;
    border-radius:0!important;
    color:#627386!important;
    background:transparent!important;
    font-size:14px!important;
    font-weight:500!important;
    line-height:1!important;
    letter-spacing:0!important;
    transition:color .18s ease
  }
  .page-home .site-header .nav-wrap .main-nav a:after{
    position:absolute;
    right:13px;
    bottom:0;
    left:13px;
    height:2px;
    border-radius:2px 2px 0 0;
    background:linear-gradient(90deg,#1682df,#37a0ed);
    content:"";
    opacity:0;
    transform:scaleX(.55);
    transition:opacity .18s ease,transform .18s ease
  }
  .page-home .site-header .nav-wrap .main-nav a.active{
    color:#1676c5!important;
    background:transparent!important;
    font-weight:700!important
  }
  .page-home .site-header .nav-wrap .main-nav a.active:after{
    opacity:1;
    transform:scaleX(1)
  }
  .page-home .site-header .nav-wrap .main-nav a:active{opacity:.68}
}

/* 手机首页癌种快捷导航：30 个癌种横滑必然把胶囊裁成半个，
   所以改成一次性铺满的网格 —— 全部露出、不滚动、不留裁切边。
   白底 + 浅灰分隔，让下面的「最新动态」内容成为视觉主角。 */
@media(max-width:760px){
  .page-home .fh-home .fh-tabs{
    position:relative;
    margin:0 0 14px!important;
    padding:0!important;
    background:#fff!important;
    border-bottom:1px solid #eef2f6;
    box-shadow:none
  }
  /* 去掉旧版的右边缘渐隐遮罩：不再横滑，也就没有需要遮的裁切。 */
  .page-home .fh-home .fh-tabs:after{display:none!important;content:none!important}
  /* home-fh21.css 的 ≤1239 档会给 .fh-w 挂 overflow-x:auto + 横排 flex，
     那是为横滑准备的；这里必须整条压掉，否则网格会被撑出屏幕右边。 */
  .page-home .fh-home .fh-tabs .fh-w{
    display:grid!important;
    /* 每行 3 个：30 个癌种刚好铺满 10 行，最长的「神经内分泌肿瘤」也不会被省略号截断。 */
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:0!important;
    width:100%!important;
    max-width:none!important;
    padding:10px 8px 12px!important;
    margin:0!important;
    overflow:visible!important;
    white-space:normal!important;
    scroll-snap-type:none!important
  }
  .page-home .fh-home .fh-tabs .fh-tab-cell{
    display:contents!important;
    float:none!important;
    width:auto!important;
    padding:0!important;
    overflow:visible!important
  }
  .page-home .fh-home .fh-tabs .fh-tab-cell a{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    min-height:36px;
    padding:0 4px!important;
    margin:0!important;
    border:0!important;
    border-radius:8px!important;
    background:transparent;
    box-shadow:none;
    color:#3f5568!important;
    font-size:12.5px!important;
    font-weight:500;
    line-height:1.2!important;
    text-align:center;
    text-decoration:none!important;
    /* 长癌种名（子宫内膜癌）宁可缩字也不换行，保证行高统一。 */
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    transition:background-color .16s ease,color .16s ease
  }
  .page-home .fh-home .fh-tabs .fh-tab-cell a:active{
    background:#eaf4ff;
    color:#1676c5!important
  }
  /* 收起时只留前两行（3 列 × 2 = 6 个）。
     因为 .fh-tab-cell 是 display:contents，链接在视觉上同属一个网格，
     但 nth-child 仍按各自分组计数（每组 8 个），所以要按“全局第 N 个”折算：
     第 1 组留前 6 个，其余分组整组隐藏，展开时再全部放出来。 */
  .page-home .fh-home .fh-tabs:not(.is-open) .fh-tab-cell:nth-child(n+2){
    display:none!important
  }
  .page-home .fh-home .fh-tabs:not(.is-open) .fh-tab-cell:nth-child(1) a:nth-child(n+7){
    display:none
  }
  /* 展开 / 收回按钮：横跨整行的窄按钮，视觉上像导航的收尾而不是额外操作。 */
  .page-home .fh-home .fh-tabs-more{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    width:100%;
    height:38px;
    padding:0;
    border:0;
    border-top:1px solid #f2f5f8;
    background:#fbfdff;
    color:#4a90d9;
    font-family:inherit;
    font-size:12.5px;
    font-weight:500;
    line-height:1;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent
  }
  .page-home .fh-home .fh-tabs-more:active{background:#f0f7ff}
  .page-home .fh-home .fh-tabs-more-ico{
    width:14px;
    height:14px;
    flex:0 0 auto;
    transition:transform .22s ease
  }
  .page-home .fh-home .fh-tabs.is-open .fh-tabs-more-ico{transform:rotate(180deg)}
}

/* 桌面端没有收起逻辑，按钮不出现。 */
@media(min-width:761px){
  .page-home .fh-home .fh-tabs-more{display:none}
}
