/* 中英文预约页共用：科室、医生、号源、就诊信息依次排列。 */
body[data-page=appointment] .page-banner{padding:30px 0 34px;min-height:0}
body[data-page=appointment] .page-banner h1{font-size:32px;margin-bottom:8px}
#web-booking{background:#f5f7fa;padding:44px 0 64px;scroll-margin-top:100px;color:#25364b}
.container.wb{max-width:1240px}.wb *{box-sizing:border-box}.wb [hidden]{display:none!important}
.wb-intro{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}.wb-eyebrow{font-size:14px;letter-spacing:.16em;color:#52677b;font-weight:700}.wb-intro h2{font-size:30px;letter-spacing:-.03em;margin:8px 0 10px;color:#172e4a}.wb-intro p{margin:0;color:#52677b;font-size:16px}.wb-guide{font-size:14px;white-space:nowrap;color:#205e9c}.wb-guide span{margin-left:20px}
.wb-layout{display:grid;grid-template-columns:minmax(0,1fr) 268px;gap:24px;align-items:start}.wb-main{display:grid;gap:20px;min-width:0}.wb-panel{background:#fff;border:1px solid #e2e8ef;border-radius:16px;padding:28px;min-width:0}.wb h3{font-size:19px;font-weight:650;margin:0;color:#1d334e}.wb-section-head{display:flex;align-items:center;gap:12px;margin-bottom:20px}.wb-step{color:#3774ae;background:#edf4fb;border-radius:6px;padding:4px 7px;font-size:14px;letter-spacing:.03em;font-weight:700}.wb-subtle{color:#52677b;font-size:14px;line-height:1.7}.wb-section-head .wb-subtle{margin-left:auto}.wb .choices{display:flex;gap:10px;flex-wrap:wrap}.wb button{font:inherit;cursor:pointer}.wb button:disabled{cursor:default}.wb button:focus-visible,.wb input:focus-visible,.wb a:focus-visible{outline:3px solid #94b8dd;outline-offset:3px}
#book-dept button{border:1px solid #e4eaf0;background:#f6f8fb;border-radius:8px;padding:10px 24px;color:#56667a;font-size:15px;min-height:44px}#book-dept button[aria-pressed=true]{background:#2266a6;border-color:#2266a6;color:white}
.wb-doctor-heading{border-top:1px solid #edf0f4;padding-top:26px;margin-top:26px}#book-doctor{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 2px 12px;scrollbar-width:thin}#book-doctor button{position:relative;flex:0 0 168px;display:flex;gap:12px;align-items:center;text-align:left;border:1px solid #e0e6ed;background:#fff;border-radius:10px;padding:16px 12px;min-height:110px;scroll-snap-align:start;color:#243a55}#book-doctor button[aria-pressed=true]{border:2px solid #377bb8;background:#f1f7fd;padding:15px 11px}#book-doctor button[aria-pressed=true]:after{content:'✓';position:absolute;right:7px;top:4px;color:#2266a6;font-size:14px}#book-doctor img,.wb-avatar{width:52px;height:68px;object-fit:cover;object-position:center 20%;border-radius:6px;flex:none;background:#edf2f7}.wb-avatar{display:grid;place-items:center;color:#52677b;font-size:23px}.wb-doctor-copy{display:grid;gap:6px;min-width:0}.wb-doctor-copy strong{font-size:17px}.wb-doctor-copy small{font-size:14px;color:#52677b;line-height:1.5}.wb-profile{font-size:16px;line-height:1.8;color:#52677b;margin-top:8px}.wb-profile:empty{display:none}.wb-profile strong{color:#425773;margin-right:8px}
.wb-schedule-note{color:#52677b;font-size:14px;margin-top:-8px;margin-bottom:22px}.wb-week-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.wb-week-tabs button{background:#f8fafc;border:1px solid #dfe6ee;border-radius:8px;padding:11px 8px;color:#52677b;display:flex;justify-content:center;align-items:center;gap:12px;min-height:48px}.wb-week-tabs button[aria-pressed=true]{background:#edf5ff;border-color:#3f83c4;color:#2266a6}.wb-week-tabs small{font-size:14px}.wb-week-range{font-size:14px;color:#52677b;margin:0 0 12px}.wb .days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.wb .day{min-width:0;text-align:center}.wb-date{display:grid;gap:2px;padding:7px 0 12px;color:#52677b;font-size:14px}.wb-date strong{font-size:14px;font-weight:500;color:#50657f}.wb .day.today .wb-date,.wb .day.today .wb-date strong{color:#216db1}.wb .day button{width:100%;min-height:70px;padding:9px 2px;border:1px solid #cfe2f5;border-radius:7px;background:#eef6ff;color:#2b76b7;margin:0 0 7px;font-size:14px;display:grid;align-content:center;gap:4px}.wb .day button small{font-size:14px}.wb .day button:disabled{background:#fafbfd;border:1px dashed #e4e9ef;color:#52677b}.wb .day button[aria-pressed=true]{background:#2266a6;border-color:#2266a6;color:#fff;box-shadow:0 3px 8px #2266a61c}.wb-load-state{padding:24px 0;color:#52677b;font-size:14px}.wb-retry{border:1px solid #d4e1ee;border-radius:7px;background:white;color:#2266a6;padding:9px 18px;margin-left:10px}
.visit-ticket{background:#f4f7fb;border-radius:9px;padding:14px 18px;margin-bottom:22px;display:grid;gap:5px}.visit-ticket span{color:#52677b;font-size:14px}.visit-ticket strong{color:#365371;font-size:14px;font-weight:500;line-height:1.7}.patient-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.patient-fields label{display:grid;gap:9px;font-size:16px;color:#52647a}.patient-fields input{border:1px solid #dbe3ec;border-radius:7px;background:#fff;padding:12px 14px;width:100%;font:inherit;font-size:16px;height:48px;color:#25364b}.patient-fields input::placeholder{color:#52677b}.booking-consent{display:flex;align-items:flex-start;gap:8px;margin:20px 0;color:#52677b;font-size:14px;line-height:1.8;cursor:pointer}.booking-consent input{accent-color:#2266a6;flex:none;margin-top:4px;width:15px;height:15px}.booking-actions{display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid #edf0f4;padding-top:20px}.booking-actions>span{font-size:14px;color:#52677b}.wb #book-submit{border-radius:8px;min-width:180px;min-height:48px;padding:12px 22px;background:#2266a6;box-shadow:none;font-size:14px}.wb #book-submit span{margin-left:22px}.wb #book-submit:disabled{background:#e8edf3;color:#52677b;opacity:1}#book-status:empty{display:none}#book-status{font-size:14px;line-height:1.8;padding:14px;background:#eff5fb;border-radius:8px;margin-top:18px}.wb-records h3{font-size:16px;margin-bottom:15px}#book-records{font-size:14px;color:#52677b;line-height:1.8}.record{border-top:1px solid #edf0f4;padding:12px 0}.record button{border:1px solid #dbe4ee;padding:6px 12px;background:#fff;border-radius:6px;color:#38628a;margin-left:10px}
.wb-sidebar{display:grid;gap:22px}.wb-qr{text-align:center;padding:28px 20px}.wb-qr h3{font-size:18px;margin:10px 0}.wb-qr p{font-size:16px;color:#52677b;margin:0;line-height:1.8}.wb-qr img{display:block;width:184px;height:184px;margin:22px auto 18px;object-fit:contain}.wb-qr strong{font-size:14px;font-weight:500;color:#405e7e;display:block;margin-bottom:10px}.wb-qr .qr-zoom-trigger{display:block;margin:0 auto}.wb-help{padding:2px 20px;color:#52677b;font-size:14px;line-height:1.8}.wb-help h3{font-size:15px;margin:0 0 10px}.wb-help p{margin:8px 0}.wb-help a{color:#326a9e}.wb-help-line{border-top:1px solid #dfe5ec;margin:22px 0}.wb-help>span{display:block}.wb-help .wb-phone{display:block;font-size:21px;color:#294f75;font-weight:600;margin:5px 0 10px;letter-spacing:.02em}
@media(max-width:1000px){.wb-layout{grid-template-columns:minmax(0,1fr) 230px;gap:18px}.wb-panel{padding:22px}.wb-qr{padding:25px 14px}.wb-qr img{width:164px;height:164px}.wb .days{gap:4px}}
@media(max-width:760px){body[data-page=appointment] .page-banner{padding:20px 0}body[data-page=appointment] .page-banner h1{font-size:26px}#web-booking{padding:26px 0 40px}.wb-intro{align-items:flex-start;margin-bottom:22px}.wb-intro h2{font-size:25px}.wb-intro p{font-size:16px;max-width:270px}.wb-guide{font-size:14px;margin-top:26px}.wb-guide span{margin-left:3px}.wb-layout{grid-template-columns:1fr}.wb-main{gap:14px}.wb-panel{padding:20px 16px;border-radius:12px}.wb h3{font-size:17px}.wb-section-head{gap:9px;margin-bottom:16px}.wb-section-head .wb-subtle{font-size:14px}#book-dept{gap:7px}#book-dept button{padding:8px 15px;font-size:14px}#book-doctor button{flex-basis:158px}.wb-doctor-heading{padding-top:22px;margin-top:22px}.wb-profile{font-size:16px}.wb-week-tabs{gap:7px;margin-bottom:14px}.wb-week-tabs button{gap:3px;flex-direction:column;padding:8px 4px;font-size:14px}.wb-schedule-note{font-size:14px;line-height:1.7;margin-bottom:16px}.wb .days{gap:3px}.wb-date{font-size:14px}.wb-date strong{font-size:14px}.wb .day button{font-size:14px;min-height:65px;border-radius:5px}.wb .day button small{font-size:14px;letter-spacing:-.03em}.wb-week-range{font-size:14px}.patient-fields{grid-template-columns:1fr;gap:16px}.booking-actions{align-items:stretch;flex-direction:column;gap:10px}.wb #book-submit{width:100%}.wb-sidebar{grid-template-columns:1fr 1fr;gap:12px}.wb-qr{padding:22px 12px}.wb-qr h3{font-size:15px}.wb-qr img{width:140px;height:140px;margin:16px auto}.wb-qr .wb-eyebrow{font-size:14px}.wb-help{padding:20px 10px}.wb-help .wb-phone{font-size:17px}.wb-qr p{font-size:16px}.wb-qr strong{font-size:14px}body:has(#web-booking) .side-float{position:static;transform:none;display:flex;flex-direction:row;justify-content:center;padding:12px;background:#fff}body:has(#web-booking) .side-float-pop{right:auto;left:0;top:auto;bottom:100%;transform:none}}
@media(max-width:360px){.wb-guide{display:none}.wb-sidebar{grid-template-columns:1fr}.wb-help{padding:10px 16px}.wb .day button small{font-size:14px}}

/* 切换医生时保留排班位置，用轻量状态提示数据正在更新。 */
#book-slots[aria-busy=true]{opacity:.55;pointer-events:none}
#book-slots[aria-busy=true]:before{content:'正在更新出诊安排…';display:block;font-size:14px;color:#406c98;margin-bottom:12px}
html[lang^=en] #book-slots[aria-busy=true]:before{content:'Updating schedule…'}
.wb .day button:disabled{color:#52677b}
.wb-schedule,.wb-review{scroll-margin-top:110px}

/* 大号医生资料卡：第一执业仅展示已有字段，不推断缺失资料。 */
#book-doctor button{flex:0 0 264px;display:grid;grid-template-columns:80px minmax(0,1fr);align-content:start;align-items:start;gap:10px 16px;padding:20px;min-height:0;border-radius:12px}
#book-doctor button[aria-pressed=true]{padding:19px;background:#f1f7ff;border-color:#377bb8;box-shadow:0 4px 14px #2766a012}
#book-doctor img,#book-doctor .wb-avatar{width:80px;height:92px;border-radius:8px}
.wb-doctor-copy strong{font-size:21px}.wb-doctor-copy small{font-size:14px}.wb-doctor-dept{font-size:14px;color:#3675ab}
.wb-doctor-practice{grid-column:1/-1;display:block;font-size:14px;line-height:1.8;color:#916c26;background:#faf4e7;border:1px solid #ecdfc1;border-radius:5px;padding:4px 7px;text-align:left;white-space:normal}
.wb-doctor-areas{grid-column:1/-1;display:flex;flex-wrap:wrap;align-content:start;gap:6px;font-size:14px;line-height:22px;max-height:none;overflow:visible;text-align:left}
#book-doctor button[aria-pressed=true]:after{top:9px;right:11px;font-size:16px}
/* 日期列与时段都保留明确边框，区分可约、不可约、选中三种状态。 */
.wb-schedule{border-color:#c8d9e9;box-shadow:0 5px 20px #254a7310}.wb-schedule-doctor{font-size:14px;font-weight:600;color:#315779;padding:14px 16px;background:#eef4fb;border-left:3px solid #367bb9;border-radius:6px;margin:18px 0 14px}
.wb .days{gap:8px;padding:12px;border:1px solid #d4e0ed;background:#f7f9fc;border-radius:12px}
.wb .day{border:1px solid #d8e2ee;border-radius:8px;padding:5px;background:white;overflow:hidden}
.wb .day.today{border-color:#86acd3}.wb-date{border-bottom:1px solid #e2eaf3;margin-bottom:8px;padding:6px 0 10px}
.wb .day button{border:1px solid #78a9d7;background:#e8f3ff;box-shadow:0 2px 4px #2b6da60c;min-height:76px;font-weight:500}
.wb .day button:disabled{border:1px solid #dce4ee;background:#f5f7fa;color:#52677b;box-shadow:none}
.wb .day button[aria-pressed=true]{border:2px solid #1d568e;background:#276dad;color:white;box-shadow:0 3px 8px #2266a630}
@media(hover:hover){.wb .day button:not(:disabled):hover{border-color:#225f99;background:#d9ebfd}.wb .day button[aria-pressed=true]:hover{background:#205e99}}
@media(max-width:760px){#book-doctor button{flex-basis:256px;padding:17px;min-height:0;gap:10px 14px}#book-doctor button[aria-pressed=true]{padding:16px}#book-doctor img,#book-doctor .wb-avatar{width:80px;height:92px}.wb .days{gap:3px;padding:6px;border-radius:8px}.wb .day{padding:2px;border-radius:5px}.wb .day button{min-height:68px;padding:7px 0;font-size:14px}.wb .day button small{font-size:14px}.wb-date{padding:7px 0 9px}.wb-date strong{font-size:14px}.wb-schedule-doctor{font-size:14px;padding:12px;margin:14px 0}.wb .day button[aria-pressed=true]{border-width:1px}}

/* 医生资料统一使用带底色与细边框的标签，长文字可自然换行。 */
.wb-doctor-copy small{justify-self:start;color:#60718a;background:#eff2f6;border:1px solid #dce3ec;border-radius:5px;padding:2px 7px;font-size:14px;max-width:100%}
.wb-doctor-dept{justify-self:start;background:#e9f3ff;border:1px solid #cbdff5;border-radius:5px;padding:2px 7px;font-size:14px;line-height:1.6;max-width:100%}
.wb-doctor-areas>span{color:#386b9e;background:#edf5ff;border:1px solid #d1e3f6;border-radius:5px;padding:3px 7px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:22px;flex-shrink:0}

/* 紧凑排班：保留七天与时段边框，压缩说明、切换和格子的纵向占用。 */
.wb .wb-schedule{padding:20px 24px}
.wb-schedule .wb-section-head{margin-bottom:12px}
.wb-schedule-note{margin:0 0 12px;line-height:1.6}
.wb-week-tabs{margin-bottom:10px;gap:8px}
.wb-week-tabs button{min-height:36px;padding:6px 10px;font-size:14px}
.wb-schedule-doctor{padding:8px 12px;margin:10px 0 8px;font-size:14px}
.wb-week-range{margin:0 0 8px;font-size:14px}
.wb .days{padding:7px;gap:6px;border-radius:9px}
.wb .day{padding:3px;border-radius:6px}
.wb-date{padding:3px 0 5px;margin-bottom:5px;gap:0;font-size:14px;line-height:1.5}
.wb-date strong{font-size:14px}
.wb .day button{min-height:46px;padding:5px 2px;gap:1px;margin-bottom:4px;font-size:14px;line-height:1.4}
.wb .day button:last-child{margin-bottom:0}
.wb .day button small{font-size:14px;line-height:1.4}
@media(max-width:760px){.wb .wb-schedule{padding:16px 12px}.wb-week-tabs button{flex-direction:row;flex-wrap:wrap;column-gap:6px;row-gap:1px;min-height:40px;padding:5px;font-size:14px}.wb-week-tabs small{font-size:14px}.wb .days{padding:4px;gap:3px}.wb .day{padding:2px}.wb-date{font-size:14px;padding:3px 0 5px}.wb-date strong{font-size:14px}.wb .day button{min-height:44px;padding:4px 0;font-size:14px}.wb .day button small{font-size:14px}.wb-schedule-doctor{font-size:14px}.wb-schedule-note{font-size:14px}}

.wb-phone-block{padding:12px 14px;margin:10px 0;background:#edf3f8;border:1px solid #dce6ef;border-radius:9px}.wb-phone-block>span{font-size:14px;color:#52677b;display:block}.wb-help .wb-phone-block .wb-phone{margin:3px 0 0;font-size:21px;white-space:nowrap}
@media(max-width:760px){.wb-phone-block{padding:10px 8px}.wb-help .wb-phone-block .wb-phone{font-size:17px}.wb-phone-block>span{font-size:14px}}

/* 窄屏周排班采用区域内横向滑动，保障日期与余号文字可读。 */
.wb .days{grid-template-columns:repeat(7,minmax(70px,1fr));overflow-x:auto}
.wb-date,.wb-date strong,.wb .day button,.wb .day button small{font-size:14px;line-height:1.5}
.wb .day button{min-height:52px}.wb-week-tabs button{min-height:44px}
@media(max-width:760px){.wb .days{grid-template-columns:repeat(7,76px);gap:5px;padding:6px}.wb-week-tabs button{flex-direction:column}.wb-schedule-note:after{content:' 手机端可左右滑动查看一周排班。'}html[lang^=en] .wb-schedule-note:after{content:' Swipe to view all seven days.'}.wb .day button,.wb .day button small,.wb-date,.wb-date strong{font-size:14px}}

/* 实时号源状态不只靠文字区分：实色可约、虚线无排班、独立停诊/约满状态。 */
.wb .day button.slot-available{background:#d9edff;border:2px solid #4b8bc3;color:#155c98;font-weight:600;box-shadow:0 2px 6px #286caa16}
.wb .day button.slot-available small{color:#155c98;font-weight:600}
.wb .day button.slot-empty:disabled{background:#f5f6f8;border:1px dashed #ccd4dd;color:#8290a0;box-shadow:none;font-weight:400}
.wb .day button.slot-full:disabled{background:#f4efe5;border:1px solid #dcc7a0;color:#896a35}
.wb .day button.slot-suspended:disabled{background:#f8ecec;border:1px solid #dfbcbc;color:#986161}
.wb .day button.slot-available[aria-pressed=true]{background:#246aa6;color:#fff;border-color:#174c7a;box-shadow:0 0 0 2px #bdd8f1}
.wb .day button.slot-available[aria-pressed=true] small{color:#fff}
@media(hover:hover){.wb .day button.slot-available:hover{background:#c1e1ff;border-color:#205e94}.wb .day button.slot-available[aria-pressed=true]:hover{background:#205d94}}

/* 门诊挂号卡片加宽、按内容定高，避免被其他医生的长标签撑出空白。 */
body[data-page=appointment] #web-booking{padding:28px 0 40px}
body[data-page=appointment] .wb-intro{margin-bottom:18px}
body[data-page=appointment] .wb-main{gap:14px}
body[data-page=appointment] .wb-panel{padding:20px 22px}
body[data-page=appointment] .wb-section-head{margin-bottom:14px}
body[data-page=appointment] .wb-doctor-heading{padding-top:18px;margin-top:18px}
body[data-page=appointment] #book-doctor{align-items:flex-start;gap:12px;padding-bottom:5px}
body[data-page=appointment] #book-doctor button{flex:0 0 340px;min-width:0;align-self:flex-start;grid-template-columns:76px minmax(0,1fr);padding:14px;gap:8px 12px}
body[data-page=appointment] #book-doctor button[aria-pressed=true]{padding:13px}
body[data-page=appointment] #book-doctor img,body[data-page=appointment] #book-doctor .wb-avatar{width:76px;height:88px}
body[data-page=appointment] .wb-doctor-copy{gap:4px}
body[data-page=appointment] .wb-doctor-copy strong{font-size:20px}
body[data-page=appointment] .wb-doctor-practice{padding:3px 7px;line-height:1.6}
body[data-page=appointment] .wb-doctor-areas{gap:5px;max-height:none;overflow:visible}
body[data-page=appointment] .wb-doctor-areas>span{padding:2px 6px;line-height:21px}
body[data-page=appointment] .wb-profile{font-size:15px;line-height:1.65;margin-top:10px}
@media(max-width:760px){
 body[data-page=appointment] #web-booking{padding:20px 0 28px}
 body[data-page=appointment] .wb-panel{padding:16px 12px}
 body[data-page=appointment] .wb-main{gap:12px}
 body[data-page=appointment] #book-doctor button{flex-basis:290px;grid-template-columns:68px minmax(0,1fr);padding:12px;gap:7px 10px}
 body[data-page=appointment] #book-doctor button[aria-pressed=true]{padding:11px}
 body[data-page=appointment] #book-doctor img,body[data-page=appointment] #book-doctor .wb-avatar{width:68px;height:80px}
 body[data-page=appointment] .wb-doctor-copy strong{font-size:19px}
 body[data-page=appointment] .wb-profile{font-size:14px;margin-top:8px}
}

/* 医生卡片恢复统一宽度与等高，擅长标签只展示两行。 */
body[data-page=appointment] #book-doctor{align-items:stretch}
body[data-page=appointment] #book-doctor button{flex-basis:280px;align-self:stretch}
body[data-page=appointment] .wb-doctor-areas{height:59px;max-height:59px;overflow:hidden;align-content:flex-start;flex-shrink:0}
@media(max-width:760px){body[data-page=appointment] #book-doctor button{flex-basis:280px}}

/* 挂号与推拿预约的横向医师资料统一顶部对齐。 */
#book-doctor img,#book-doctor .wb-avatar{align-self:start}

/* 两个预约入口共用介绍区尺寸，避免单页紧凑规则造成跳变。 */
body:is([data-page=appointment],[data-page=tuina]) #web-booking{padding-top:24px}
body:is([data-page=appointment],[data-page=tuina]) .wb-intro{gap:24px;margin-bottom:18px;align-items:center}
body:is([data-page=appointment],[data-page=tuina]) .wb-intro>div{min-width:0}
body:is([data-page=appointment],[data-page=tuina]) .wb-intro .wb-eyebrow{display:block;font-size:14px;line-height:22px}
body:is([data-page=appointment],[data-page=tuina]) .wb-intro h2{font-size:26px;line-height:1.4;margin:4px 0 6px}
body:is([data-page=appointment],[data-page=tuina]) .wb-intro p{font-size:16px;line-height:26px;margin:0}
body:is([data-page=appointment],[data-page=tuina]) .wb-guide{display:inline-flex;align-items:center;gap:20px;line-height:22px}
body:is([data-page=appointment],[data-page=tuina]) .wb-guide span{margin-left:0}
@media(max-width:760px){
 body:is([data-page=appointment],[data-page=tuina]) #web-booking{padding-top:20px}
 body:is([data-page=appointment],[data-page=tuina]) .wb-intro{display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:16px}
 body:is([data-page=appointment],[data-page=tuina]) .wb-intro h2{font-size:23px;line-height:32px;min-height:32px}
 body:is([data-page=appointment],[data-page=tuina]) .wb-intro p{max-width:none;min-height:52px}
 body:is([data-page=appointment],[data-page=tuina]) .wb-guide{margin-top:0;justify-self:start;gap:8px}
}
@media(max-width:360px){body:is([data-page=appointment],[data-page=tuina]) .wb-intro p{min-height:78px}}
