/* ===========================================================
   侧面技术服务公告 + 在线客服 悬浮组件
   品牌色：#002EA7（Logo 主色） / #0AEDFB（辅助青色）
   =========================================================== */

/* ---------- 右侧悬浮条 ---------- */
.sw-dock{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:900;display:flex;flex-direction:column;gap:2px}
.sw-tab{position:relative;width:58px;height:66px;padding:0;border:0;background:#fff;color:#171b24;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;box-shadow:-4px 4px 14px rgba(23,27,36,.13);transition:background .18s ease,color .18s ease}
.sw-tab svg{width:22px;height:22px;display:block;flex:0 0 auto}
.sw-tab span{font-size:10px;font-weight:800;line-height:1.15;letter-spacing:0}
.sw-tab:hover,.sw-tab:focus-visible,.sw-tab.is-active{background:#002EA7;color:#fff;outline:none}
.sw-tab-chat{background:#002EA7;color:#fff}
.sw-tab-chat:hover,.sw-tab-chat.is-active{background:#0043D1}
.sw-tab-chat:before{content:"";position:absolute;right:8px;top:10px;width:7px;height:7px;border-radius:50%;background:#0AEDFB;animation:sw-pulse 1.9s infinite}
@keyframes sw-pulse{0%{box-shadow:0 0 0 0 rgba(10,237,251,.75)}70%{box-shadow:0 0 0 7px rgba(10,237,251,0)}100%{box-shadow:0 0 0 0 rgba(10,237,251,0)}}

/* ---------- 展开面板 ---------- */
.sw-panel{position:fixed;right:66px;top:50%;width:352px;max-height:min(80vh,640px);background:#fff;border-top:5px solid #002EA7;box-shadow:0 24px 60px rgba(23,27,36,.3);z-index:899;display:flex;flex-direction:column;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-50%) translateX(12px);transition:opacity .2s ease,transform .2s ease,visibility .2s ease}
.sw-panel.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(-50%) translateX(0)}
.sw-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:19px 20px 15px;border-bottom:1px solid #dfe2dc}
.sw-panel-head small{display:block;font-size:10px;font-weight:900;letter-spacing:1.4px;color:#002EA7}
.sw-panel-head h3{margin:6px 0 0;font-size:19px;line-height:1.3;font-weight:900}
.sw-panel-close{flex:0 0 auto;width:30px;height:30px;padding:0;border:1px solid #dfe2dc;background:#fff;color:#171b24;font-size:18px;line-height:1;cursor:pointer;display:grid;place-items:center;transition:background .16s,color .16s}
.sw-panel-close:hover{background:#171b24;color:#fff}
.sw-panel-body{flex:1;overflow:auto;padding:17px 20px}
.sw-panel-foot{border-top:1px solid #dfe2dc;background:#f7f8f6;padding:13px 20px}
.sw-panel-foot a{display:flex;align-items:center;justify-content:center;min-height:44px;background:#002EA7;color:#fff;font-size:13.5px;font-weight:900;text-decoration:none;transition:background .16s}
.sw-panel-foot a:hover{background:#0043D1}

/* ---------- 公告条目 ---------- */
.sw-notice{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.sw-notice li{display:grid;grid-template-columns:34px minmax(0,1fr);gap:11px;align-items:start;padding:12px 13px;background:#f7f8f6;border-left:3px solid #002EA7}
.sw-notice li.is-warn{background:#fffaf0;border-left-color:#f2c84b}
.sw-notice li>b{width:34px;height:34px;display:grid;place-items:center;background:#002EA7;color:#fff;font-size:10px;font-weight:900;line-height:1.1;text-align:center}
.sw-notice li.is-warn>b{background:#171b24}
.sw-notice strong{display:block;font-size:13px;font-weight:800;line-height:1.45;margin-bottom:3px}
.sw-notice span{display:block;font-size:12px;color:#68706b;line-height:1.65}

/* ---------- 客服面板 ---------- */
.sw-chat-lead{margin:0 0 15px;padding:12px 13px;background:#eff3ff;border-left:3px solid #002EA7;font-size:12.5px;line-height:1.75;color:#525b56}
.sw-contact{display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;align-items:center;margin-bottom:9px;padding:12px 13px;border:1px solid #dfe2dc;color:inherit;text-decoration:none;transition:border-color .16s,background .16s}
.sw-contact:hover{border-color:#002EA7;background:#f6f8ff}
.sw-contact-ico{width:38px;height:38px;display:grid;place-items:center;background:#002EA7;color:#fff}
.sw-contact-ico svg{width:20px;height:20px}
.sw-contact small{display:block;font-size:11px;font-weight:700;color:#68706b}
.sw-contact b{display:block;margin-top:2px;font-size:13.5px;font-weight:800;word-break:break-all}
.sw-qr{margin:12px 0 0;padding:14px;border:1px solid #dfe2dc;text-align:center}
.sw-qr img{display:block;width:186px;height:186px;margin:0 auto 10px;object-fit:contain;border:1px solid #ecefe9}
.sw-qr span{font-size:12px;color:#68706b;line-height:1.6}
.sw-chat-empty{padding:15px;background:#f7f8f6;border-left:3px solid #f2c84b;font-size:12.5px;line-height:1.8;color:#525b56}
.sw-chat-empty b{display:block;font-size:13px;color:#171b24;margin-bottom:5px}

/* ---------- 头部/底部客服按钮图标 ---------- */
.service-btn svg,.dark-btn svg{width:15px;height:15px;flex:0 0 auto;margin-right:7px}

/* ---------- 桌面端：公告面板默认常驻显示（无需点击） ---------- */
/* 面板宽度按视口自适应，窄屏桌面收窄，避免长时间遮挡页面右侧内容 */
@media(min-width:761px) and (max-width:1180px){
  .sw-panel{width:300px;right:62px}
  .sw-notice li{grid-template-columns:30px minmax(0,1fr);gap:9px;padding:11px 11px}
  .sw-notice li>b{width:30px;height:30px}
  .sw-notice strong{font-size:12.5px}
  .sw-notice span{font-size:11.5px}}

/* ---------- 移动端 ---------- */
@media(max-width:760px){
  .sw-dock{top:auto;bottom:16px;transform:none}
  .sw-tab{width:46px;height:54px;gap:4px}
  .sw-tab svg{width:19px;height:19px}
  .sw-tab span{font-size:9px}
  .sw-tab-chat:before{right:6px;top:8px;width:6px;height:6px}
  .sw-panel{left:8px;right:52px;width:auto;max-height:min(74vh,560px)}
  .sw-qr img{width:150px;height:150px}
  .service-btn svg{width:14px;height:14px;margin-right:6px}}

/* =============================================================
   左侧「服务动态 · 温馨提示」组件（swl-*，与右侧 sw-* 视觉区分）
   ============================================================= */
.swl-dock{position:fixed;left:0;top:50%;transform:translateY(-50%);z-index:901}
.swl-tab{display:flex;flex-direction:column;align-items:center;gap:6px;width:52px;padding:14px 0 12px;border:0;border-radius:0 12px 12px 0;background:#E94736;color:#fff;cursor:pointer;box-shadow:4px 10px 26px rgba(233,71,54,.35);transition:background .16s ease,transform .16s ease;position:relative}
.swl-tab:hover{background:#d43a2a;transform:translateX(2px)}
.swl-tab.is-active{background:#b92e20}
.swl-dot{position:absolute;left:12px;top:10px;width:8px;height:8px;border-radius:50%;background:#4be08a;box-shadow:0 0 0 3px rgba(75,224,138,.25);animation:swl-pulse 1.8s ease-out infinite}
@keyframes swl-pulse{0%{box-shadow:0 0 0 0 rgba(75,224,138,.5)}70%{box-shadow:0 0 0 8px rgba(75,224,138,0)}100%{box-shadow:0 0 0 0 rgba(75,224,138,0)}}
.swl-tab svg{width:20px;height:20px}
.swl-tab-text{writing-mode:vertical-rl;letter-spacing:4px;font-size:11.5px;font-weight:800}

.swl-panel{position:fixed;left:66px;top:50%;width:340px;max-height:min(80vh,620px);background:#fff;border-top:5px solid #E94736;box-shadow:0 24px 60px rgba(23,27,36,.3);z-index:900;display:flex;flex-direction:column;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-50%) translateX(-12px);transition:opacity .2s ease,transform .2s ease,visibility .2s ease}
.swl-panel.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(-50%) translateX(0)}
.swl-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 12px;border-bottom:1px solid #eceee8}
.swl-head small{display:block;font-size:9.5px;letter-spacing:2px;color:#9aa19b;font-weight:800}
.swl-head h3{margin:2px 0 0;font-size:16.5px;font-weight:900;color:#171b24}
.swl-close{width:30px;height:30px;border:1px solid #e4e7e1;background:#fff;color:#68706b;font-size:18px;line-height:1;cursor:pointer;border-radius:8px;transition:color .15s,border-color .15s}
.swl-close:hover{color:#E94736;border-color:#E94736}
.swl-list{list-style:none;margin:0;padding:13px 15px;overflow:auto;display:grid;gap:9px}
.swl-list li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:flex-start;padding:11px 12px;background:#faf7f5;border-left:3px solid #E94736;border-radius:0 10px 10px 0}
.swl-list li.is-live{background:#f2faf5;border-left-color:#22a55e}
.swl-num{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;background:#E94736;color:#fff;font-size:11px;font-weight:900;letter-spacing:.5px}
.swl-list li.is-live .swl-num{background:#22a55e}
.swl-item-body strong{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:800;color:#171b24;margin:0 0 3px}
.swl-item-body strong em{font-style:normal;flex:0 0 auto;font-size:10px;font-weight:900;letter-spacing:1px;color:#E94736;background:#fdeae7;padding:2px 6px;border-radius:6px}
.swl-list li.is-live strong em{color:#178a4c;background:#ddf3e6}
.swl-item-body span{display:block;font-size:12px;line-height:1.7;color:#5b635d}
.swl-foot{padding:11px 18px;border-top:1px solid #eceee8;text-align:right}
.swl-foot a{font-size:12px;font-weight:800;color:#E94736;text-decoration:none}
.swl-foot a:hover{text-decoration:underline}

@media(max-width:760px){
  .swl-dock{top:auto;bottom:16px;transform:none}
  .swl-tab{width:46px;padding:12px 0 10px;border-radius:0 10px 10px 0}
  .swl-tab svg{width:18px;height:18px}
  .swl-tab-text{font-size:9.5px;letter-spacing:3px}
  .swl-panel{left:8px;width:auto;max-height:min(74vh,540px)}
  .swl-list{padding:11px}
  .swl-list li{grid-template-columns:26px minmax(0,1fr);gap:8px;padding:10px}
  .swl-num{width:26px;height:26px;font-size:10px}}
