/* 科室详情统一展示医生身份、执业信息、擅长与履历摘要。 */
#dept-detail .dept-related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#dept-detail .dept-doc-card{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:22px;background:#fff;border:1px solid #dce6ef;border-radius:12px;cursor:default;min-width:0}
.dd-header{display:flex;gap:16px;align-items:flex-start;margin-bottom:16px;min-width:0}.dd-header>div{min-width:0}
#dept-detail .dept-doc-card img{width:76px;height:92px;border-radius:8px;object-fit:cover;object-position:center 15%;flex:none}
.dd-name{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
#dept-detail .dd-name strong{font-size:21px;font-weight:650;line-height:1.5;color:#294966}
#dept-detail .dept-doc-card .dd-title{font-size:14px;line-height:1.6;background:#eff3f8;border:1px solid #dce5ee;border-radius:5px;padding:2px 7px;color:#52677b;margin:0}
#dept-detail .dept-doc-card .dd-dept{color:#5e83a5;font-size:14px;margin:5px 0 8px;line-height:1.6}
#dept-detail .dept-doc-card .dd-practice{display:inline-block;max-width:100%;font-size:14px;line-height:1.7;margin:0;padding:3px 7px;background:#faf5e9;border:1px solid #eadcbd;border-radius:5px;color:#93713a}
.dd-tags{display:flex;flex-wrap:wrap;gap:6px;max-height:70px;overflow:hidden;align-content:start;margin-bottom:16px}
#dept-detail .dd-tags span{font-size:14px;line-height:22px;color:#5e83a5;padding:3px 8px;background:#eff5fc;border:1px solid #dae7f5;border-radius:5px;margin:0;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}
.dd-information{border-top:1px solid #eef1f5;padding-top:12px;margin-bottom:14px}
#dept-detail .dept-doc-card .dd-field-label{font-size:14px;color:#52718c;font-weight:600;margin:0 0 6px}
#dept-detail .dept-doc-card p{margin:0;font-size:16px;line-height:1.9;color:#52677b;overflow-wrap:anywhere}
.dd-expertise,.dd-biography{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
.dd-expertise{-webkit-line-clamp:3}.dd-biography{-webkit-line-clamp:3}
.dd-actions{display:flex;gap:8px;justify-content:flex-start;align-items:center;border-top:1px solid #e8eef4;padding-top:14px;margin-top:auto}
.dd-actions button{font:inherit;font-size:14px;cursor:pointer;border:1px solid #dbe5ef;border-radius:6px;color:#567a9d;background:#fff;padding:8px 12px;min-height:40px}
.dd-actions a{font-size:14px;line-height:1.6;color:#fff;background:#3b75a7;border:1px solid #3b75a7;border-radius:6px;padding:8px 12px;text-decoration:none;min-height:40px;display:flex;align-items:center}
.dd-actions :focus-visible{outline:2px solid #7da3c8;outline-offset:3px}
@media(max-width:760px){#dept-detail .dept-related-grid{grid-template-columns:1fr;gap:14px}#dept-detail .dept-doc-card{padding:18px}.dd-header{gap:13px}#dept-detail .dept-doc-card img{width:70px;height:86px}#dept-detail .dd-name strong{font-size:20px}.dd-name{gap:6px}#dept-detail .dept-doc-card .dd-practice{font-size:14px}.dd-actions{gap:10px}.dd-actions button,.dd-actions a{font-size:14px;min-height:44px;padding:8px 10px}}

/* 手机端快捷入口移至页尾，避免遮挡医生资料和预约操作。 */
@media(max-width:760px){body:has(#dept-detail) .side-float{position:static;transform:none;display:flex;flex-direction:row;justify-content:center;padding:12px;background:#fff}body:has(#dept-detail) .side-float-pop{right:auto;left:0;top:auto;bottom:100%;transform:none}}

/* 科室页医生用单行横向列表，完整介绍在弹层展示，避免挤占环境区域。 */
#dept-detail .dept-related-grid{display:flex;gap:14px;overflow-x:auto;padding:2px 0 12px;scroll-snap-type:x proximity;align-items:stretch}
#dept-detail .dept-doc-card{flex:0 0 320px;padding:16px;scroll-snap-align:start;max-width:100%}
#dept-detail .dd-header{margin-bottom:10px;gap:12px}#dept-detail .dept-doc-card img{width:60px;height:74px}#dept-detail .dd-name strong{font-size:19px}
#dept-detail .dd-tags{max-height:64px;margin-bottom:12px;gap:5px}#dept-detail .dd-tags span{padding:2px 7px}
#dept-detail .dd-actions{padding-top:10px;gap:8px}#dept-detail .dd-actions button,#dept-detail .dd-actions a{padding:7px 9px}
#dept-detail .dept-detail-actions .btn{border-radius:7px;padding:11px 20px;min-height:46px;font-size:16px;box-shadow:none;background:#285e93;border:1px solid #285e93;color:white}
#dept-detail .dept-detail-actions .btn-outline{background:white;color:#285e93;border-color:#b4c7d9}
#dept-detail .dept-equip-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#dept-detail .dept-equip-item img{width:100%;aspect-ratio:4/3;object-fit:cover;height:auto}
#book-doctor,#doctors-grid{scroll-margin-top:130px}
@media(max-width:760px){#dept-detail .dept-doc-card{flex-basis:300px}#dept-detail .dept-equip-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 科室诊疗范围固定展示，说明卡片按内容自然排列。 */
#dept-detail .dept-care .dept-service-list{grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:auto;flex:none;margin:0;gap:8px}
#dept-detail .dept-care .dept-service-list li{min-height:54px;font-size:15px;padding:10px;line-height:1.5}



#dept-detail .dept-visit-notes p{font-size:16px;line-height:1.8;margin:0 0 14px}
#dept-detail .dept-visit-notes p:last-child{margin-bottom:0}




@media(max-width:1000px){#dept-detail .dept-care{grid-template-columns:1fr}}
@media(max-width:740px){#dept-detail .dept-care .dept-service-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

#dept-detail .dept-equip-item:only-child{width:100%;max-width:480px}

/* 相关阅读采用固定列数，单篇文章与多篇文章占用相同卡位。 */
#dept-detail .dept-reading{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
#dept-detail .dept-reading li{min-width:0}
#dept-detail .dept-reading a{height:100%;display:flex;flex-direction:column;gap:10px}
#dept-detail .dept-reading img{width:100%;aspect-ratio:16/9;height:auto;object-fit:contain;background:#f5f7fa;display:block}
#dept-detail .dept-reading a>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.6;min-height:3.2em}
#dept-detail .dept-back-btn{display:inline-flex;align-items:center;gap:7px}
@media(min-width:741px) and (max-width:1000px){#dept-detail .dept-reading{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){#dept-detail .dept-reading{grid-template-columns:1fr}#dept-detail .dept-reading a:has(img){display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center}#dept-detail .dept-reading img{width:100px;aspect-ratio:16/9}}

/* 科室详情顶部 Banner：与全站内页统一的品牌主题蓝大圆角精工画框。 */
#dept-detail .dept-overview{
  position:relative;
  overflow:hidden;
  padding:clamp(26px,3vw,38px) clamp(26px,3.6vw,44px);
  border-radius:24px;
  border:1px solid rgba(255,255,255,.14);
  background:radial-gradient(circle at 88% 18%,rgba(255,255,255,.16),transparent 40%),linear-gradient(128deg,#185698 0%,#205fa4 55%,#296cae 100%);
  box-shadow:0 22px 46px -26px rgba(24,86,152,.46),0 6px 16px -10px rgba(24,86,152,.2);
  color:#fff;
}
#dept-detail .dept-overview::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:44px 44px;
  mask-image:linear-gradient(120deg,transparent 15%,rgba(0,0,0,.55) 100%);
  -webkit-mask-image:linear-gradient(120deg,transparent 15%,rgba(0,0,0,.55) 100%);
  pointer-events:none;
}
#dept-detail .dept-overview>*{position:relative;z-index:1}
#dept-detail .dept-overview-top .dept-back-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 14px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.14) !important;
  border:1px solid rgba(255,255,255,.36) !important;
  color:#fff !important;
  font-size:13.5px;
  font-weight:500;
  line-height:1.4;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease;
}
#dept-detail .dept-overview-top .dept-back-btn:hover{background:#fff !important;border-color:#fff !important;color:#185698 !important}
#dept-detail .dept-detail-title{display:inline-block;font-size:clamp(28px,2.8vw,36px);font-weight:700;line-height:1.2;letter-spacing:.03em;color:#fff;margin:14px 0 0}
#dept-detail .dept-detail-en{display:inline-block;font-size:14px;font-weight:500;color:rgba(232,243,255,.82);margin:0 0 0 12px;line-height:1.5}
#dept-detail .dept-detail-intro{max-width:46em;font-size:15.5px;line-height:1.7;color:rgba(238,246,255,.9);margin-top:10px}
#dept-detail .dept-detail-intro p{margin:0;font-size:15.5px;line-height:1.7;color:rgba(238,246,255,.9)}
#dept-detail .dept-overview .dept-detail-actions{margin-top:18px;gap:10px}
#dept-detail .dept-overview .dept-detail-actions .btn{min-height:40px;padding:8px 20px;border-radius:999px !important;font-size:14.5px;font-weight:600;line-height:1.4;box-shadow:none;background:#fff !important;border:1px solid #fff !important;color:#185698 !important;transition:background-color .2s ease,color .2s ease,border-color .2s ease,transform .2s ease}
#dept-detail .dept-overview .dept-detail-actions .btn:hover{background:#eef5fc !important;transform:translateY(-1px)}
#dept-detail .dept-overview .dept-detail-actions .btn-outline{background:rgba(255,255,255,.15) !important;border:1px solid rgba(255,255,255,.45) !important;color:#fff !important}
#dept-detail .dept-overview .dept-detail-actions .btn-outline:hover{background:#fff !important;border-color:#fff !important;color:#185698 !important}
@media(max-width:740px){#dept-detail .dept-overview{padding:20px 18px;border-radius:18px}#dept-detail .dept-detail-title{font-size:25px}#dept-detail .dept-detail-en{margin-left:8px;font-size:13px}#dept-detail .dept-detail-intro,#dept-detail .dept-detail-intro p{font-size:14.5px;line-height:1.65}}

/* 分类筛选复用医生团队的公共尺寸。 */
#dept-detail .dept-back-btn{gap:4px}

/* 推拿医师复用科室医生卡片；只展示已有公开资料。 */
#dept-detail .dept-tuina .dd-actions{margin-top:auto}
#dept-detail .dd-tuina-avatar{width:60px;height:74px;display:grid;place-items:center;flex:none;border-radius:8px;background:#edf3f8;color:#52677b;font-size:22px}
.dept-tuina-retry{margin-left:10px;padding:6px 14px;border:1px solid #b4c7d9;border-radius:6px;background:#fff;color:#285e93;font:inherit;cursor:pointer}
@media(max-width:760px){#dept-detail .dept-tuina .dept-related-grid{display:grid;grid-template-columns:1fr;overflow:visible}#dept-detail .dept-tuina .dept-doc-card{width:100%;max-width:none}}

/* 三位推拿医师等宽铺满外框，手机保持单列。 */
#dept-detail .dept-tuina .dept-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;overflow:visible}
#dept-detail .dept-tuina .dept-doc-card{width:100%;max-width:none}
@media(max-width:760px){#dept-detail .dept-tuina .dept-related-grid{grid-template-columns:1fr}}

/* 手机端头像跨两行时仍从姓名信息顶部开始。 */
.dd-header>img,.dd-header>.dd-tuina-avatar{align-self:start}
