/* 固定电话栏：买砖专线（林女士）和固废专线（汪先生）。
   业务颜色只用在图标和手机端底色上，号码统一用正文深色，白底上最好认。
   .phone-dock 是销售页、固废页的单条电话；.home-phones 是首页的两条电话加“咨询/导航”。 */
.phone-dock,.mobile-bar.home-phones{
  position:fixed; inset:auto max(20px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) auto;
  display:flex; z-index:990;
}
.mobile-bar.home-phones{padding:0; background:transparent; box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none}
.phone-dock,.home-phones .mobile-bar-inner{
  gap:4px; align-items:stretch; padding:5px; background:#fff; border:1px solid #e6e1db; border-radius:20px;
  box-shadow:0 14px 34px -14px rgba(32,30,29,.4),0 2px 6px rgba(32,30,29,.06);
}
.phone-dock a,.home-phones a.direct-phone{
  position:relative; display:grid; grid-template-columns:34px auto; column-gap:11px; align-items:center; align-content:center;
  box-sizing:border-box; min-height:54px; padding:7px 18px 7px 8px; border:0; border-radius:15px;
  color:#201e1d; background:transparent; text-decoration:none; opacity:1; box-shadow:none;
  font:500 12px/1.3 -apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB",sans-serif;
  transition:background-color .15s;
}
.phone-dock a::before,.home-phones a.direct-phone::before{
  content:""; grid-row:1 / span 2; width:34px; height:34px; border-radius:50%;
  background:#98482e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.phone-dock.waste a::before,.home-phones .direct-phone.waste::before{background-color:#21583e}
.phone-dock a span,.home-phones .direct-phone span{grid-column:2; color:#6b655f; letter-spacing:.02em; white-space:nowrap}
.phone-dock strong,.home-phones .direct-phone strong{
  grid-column:2; color:#201e1d; letter-spacing:.01em; white-space:nowrap;
  font:700 18px/1.2 -apple-system,BlinkMacSystemFont,sans-serif; font-variant-numeric:tabular-nums;
}
.phone-dock a:hover,.home-phones a.direct-phone:hover{background:#f6f3ef}
.home-phones .direct-phone + .direct-phone::after{content:""; position:absolute; left:-3px; top:12px; bottom:12px; width:1px; background:#ebe6e0}
.phone-dock a:focus-visible,.home-phones a:focus-visible{outline:3px solid #2377ff; outline-offset:2px}
.home-phones a:not(.direct-phone){display:none}
/* 给浮动电话条让出位置。加在页脚里而不是 body 上，页脚底色才能铺到页面最底，不露出白条。 */
body:has(.phone-dock) footer,body:has(.home-phones) footer{padding-bottom:calc(128px + env(safe-area-inset-bottom))}

@media(max-width:600px){
  .phone-dock,.mobile-bar.home-phones{
    inset:auto 0 0; justify-content:center; padding:8px 12px calc(8px + env(safe-area-inset-bottom));
    background:rgba(255,255,255,.97); border:0; border-top:1px solid #e6e1db; border-radius:0;
    box-shadow:0 -8px 20px -14px rgba(32,30,29,.35);
  }
  .home-phones .mobile-bar-inner{width:100%; padding:0; gap:6px; border:0; background:transparent; box-shadow:none}
  .phone-dock a,.home-phones a.direct-phone{flex:1; justify-content:center; min-width:0; background:#f8eee8}
  .phone-dock.waste a,.home-phones .direct-phone.waste{background:#e8f1eb}
  .phone-dock a{padding:8px 12px; column-gap:12px}
  .phone-dock strong{font-size:19px}
  /* 首页一行要放两条电话和两个小图标，去掉圆形图标，用底色区分业务。 */
  .home-phones a.direct-phone{grid-template-columns:minmax(0,auto); padding:7px 8px; justify-items:center; font-size:11px}
  .home-phones a.direct-phone::before,.home-phones .direct-phone + .direct-phone::after{content:none}
  .home-phones a.direct-phone span,.home-phones a.direct-phone strong{grid-column:1}
  .home-phones .direct-phone strong{font-size:clamp(14px,3.9vw,17px)}
  .home-phones a:not(.direct-phone){display:flex; min-width:40px; padding:4px 2px}
}
