/* 页脚 & 客服窗口样式（原 footer.php 内联） */
.csx { position: fixed; right: 18px; bottom: 20px; z-index: 70; font-family: inherit; }
  .csx-fab { position: relative; height: 50px; padding: 0 20px 0 17px; border-radius: 999px; border: 0; cursor: pointer;
    background: #0b3f8f; color: #fff; box-shadow: 0 8px 22px rgba(11,63,143,.32);
    display: inline-flex; align-items: center; gap: 8px; transition: transform .15s ease, box-shadow .15s ease; }
  .csx-fab-t { font-size: 14px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
  .csx-fab:hover { transform: translateY(-2px); }
  .csx-fab:focus-visible { outline: 3px solid #0b3f8f; outline-offset: 3px; }
  .csx-dot { position: absolute; top: 8px; right: 8px; width: 11px; height: 11px; border-radius: 50%;
    background: #dc2626; box-shadow: 0 0 0 2px #fff; }
  .csx-panel[hidden] { display: none !important; }
  .csx-dot[hidden] { display: none !important; }
  .csx-panel { position: absolute; right: 0; bottom: 68px; width: 340px; max-width: calc(100vw - 24px);
    background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 18px 48px rgba(15,23,42,.24); }
  .csx-hd { background: #0b3f8f; color: #fff; padding: 14px 16px; display: flex; align-items: flex-start;
    justify-content: space-between; gap: 10px; }
  .csx-hd strong { display: block; font-size: 15px; }
  .csx-hd span { display: block; font-size: 12px; color: #bfdbfe; margin-top: 2px; }
  .csx-x { background: transparent; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
  .csx-body { padding: 14px; overflow: auto; max-height: 300px; min-height: 160px; background: #f8fafc; }
  .csx-hint { color: #94a3b8; font-size: 13px; text-align: center; margin: 26px 0; }
  .csx-m { margin-bottom: 10px; max-width: 86%; }
  .csx-m .b { padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
  .csx-m-v { margin-left: auto; }
  .csx-m-v .b { background: #0b3f8f; color: #fff; border-bottom-right-radius: 4px; }
  .csx-m-s .b { background: #fff; border: 1px solid #e2e8f0; color: #0f172a; border-bottom-left-radius: 4px; }
  .csx-who { font-size: 11px; color: #64748b; margin: 0 0 3px 2px; font-weight: 600; }
  .csx-m-t { font-size: 11px; color: #94a3b8; margin-top: 3px; }
  .csx-m-v .csx-m-t { text-align: right; }
  .csx-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #eef2f7; background: #fff; }
  .csx-form textarea { flex: 1; resize: none; border: 1px solid #dbe3ee; border-radius: 10px;
    padding: 8px 10px; font-size: 14px; font-family: inherit; outline: none; }
  .csx-form textarea:focus { border-color: #0b3f8f; }
  .csx-form button { width: 42px; border: 0; border-radius: 10px; background: #0b3f8f; color: #fff; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; }
  .csx-form button[disabled] { opacity: .5; cursor: default; }
  .csx-foot { margin: 0; padding: 0 12px 10px; font-size: 11.5px; color: #94a3b8; text-align: center; line-height: 1.7; }
  .csx-foot a { color: #64748b; text-decoration: none; }
  .csx-foot a:hover { color: #0b3f8f; text-decoration: underline; }
  .csx-sep { margin: 0 5px; color: #cbd5e1; }
  @media (max-width: 520px) {
    .csx { right: 14px; bottom: 14px; }
    .csx-panel { width: calc(100vw - 28px); }
    .csx-body { max-height: 46vh; }
  }
