/* 客服弹窗 / 二维码浮层样式（专给 /xhs、/m 这种不加载主站 style.css 的轻量页用）

这份文件是从 css/style.css 里抽出来的 —— 那些页面为了手机上首屏快，
故意只带一点点自己的轻样式，但页面上的「联系客服」弹窗是 js/utils.js 生成的，
样式原本全在主站样式表里，结果弹窗在手机上裸奔：二维码按原图尺寸铺满整屏、
浮层不居中、按钮没样子。

改样式请改 css/style.css，然后跑 `python _tmp/build_support_css.py` 重新生成本文件；
直接改这里会被下次生成的覆盖掉。
*/

:root {
  
  --ink: #16141f;
  --ink-2: #3d3954;
  --dim: #6a6780;
  --faint: #9a97ac;

  
  --bg: #f6f6fb;
  --surface: #ffffff;
  --surface-2: #f1f1f8;
  --surface-3: #e9e8f4;
  --line: rgba(22, 20, 31, 0.08);
  --line-strong: rgba(22, 20, 31, 0.14);

  
  --brand: #6d4aff;
  --brand-strong: #5b37f5;
  --brand-soft: rgba(109, 74, 255, 0.1);
  --amber: #d97706;
  --amber-bright: #f0a03c;
  --amber-soft: rgba(240, 160, 60, 0.14);
  --live: #f2547a;
  --live-soft: rgba(242, 84, 122, 0.12);
  --ok: #16a34a;
  --ok-soft: rgba(22, 163, 74, 0.12);
  --danger: #e11d48;
  --danger-soft: #fff1f4;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(22, 20, 31, 0.07);
  --shadow-lg: 0 18px 44px rgba(22, 20, 31, 0.12);
  --maxw: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}
[hidden] {
  display: none !important;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
  font-size: 14.5px;
  
  border-radius: 999px;
  padding: 10px 18px;
  line-height: 1.3;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-primary,
.btn-brand {
  background: var(--brand-strong);
  color: #fff;
  box-shadow: 0 8px 20px rgba(91, 55, 245, 0.24);
}
.btn-primary:hover,
.btn-brand:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(91, 55, 245, 0.3);
}
.btn-amber {
  background: linear-gradient(135deg, #ffbe52, #ff9a3c);
  color: #241300;
  box-shadow: 0 8px 20px rgba(240, 160, 60, 0.28);
}
.btn-amber:hover {
  color: #241300;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(240, 160, 60, 0.36);
}
.btn-outline,
.btn-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink-2);
}
.btn-outline:hover,
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}
.btn-outline-brand {
  color: var(--brand);
  border: 1px solid rgba(109, 74, 255, 0.4);
  background: var(--brand-soft);
}
.btn-outline-brand:hover {
  background: rgba(109, 74, 255, 0.18);
  color: var(--brand-strong);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 7px 14px;
  font-size: 13.5px;
  border-radius: 999px;
}
.btn-mini {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  white-space: nowrap;
}
.btn-mini:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}
.search .btn {
  padding: 11px 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.form-group.full {
  grid-column: 1 / -1;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.form-group label .req {
  color: var(--danger);
  margin-left: 2px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  width: 100%;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.form-group textarea {
  min-height: 88px;
  line-height: 1.6;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--faint);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.hint {
  font-size: 12.5px;
  color: var(--faint);
  line-height: 1.6;
}
.hint strong {
  color: var(--brand);
  font-weight: 700;
}
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 28px;
  top: auto;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: auto;
  max-width: min(92vw, 460px);
}
.toast {
  background: var(--surface-3);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.25s var(--ease);
}
.toast-success {
  background: #eafbf1;
  border-color: rgba(22, 163, 74, 0.35);
  color: #0f7a37;
}
.toast-error {
  background: var(--danger-soft);
  border-color: rgba(225, 29, 72, 0.3);
  color: #b81740;
}
.toast-info {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink-2);
}
.showcase-empty .btn {
  margin-top: 6px;
}
.work-loading[hidden] {
  display: none;
}
.support-body {
  display: flex;
  
  align-items: center;
  gap: 14px;
}
.support-text {
  flex: 1 1 auto;
  min-width: 0;
}
.support-qr {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.support-qr img {
  width: 124px;
  height: 124px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px;
  cursor: zoom-in;
}
.support-qr span {
  font-size: 11px;
  line-height: 1.45;
  color: var(--dim);
  text-align: center;
}
@media (max-width: 560px) {
    .support-body {
      flex-direction: column;
      align-items: stretch;
    }
    .support-qr {
      align-self: center;
      margin-top: 4px;
    }
}
.qr-zoom {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(16, 14, 24, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  cursor: zoom-out;
}
.qr-zoom[hidden] {
  display: none;
}
.qr-zoom img {
  
  width: min(78vw, 360px);
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.qr-zoom span {
  color: #fff;
  font-size: 13px;
  opacity: 0.85;
}
.support-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.support-fab:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.support-fab .ico {
  color: var(--brand);
}
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(22, 20, 31, 0.42);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: min(94vw, 520px);
  max-height: 88vh;
  overflow-y: auto;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 {
  font-size: 16px;
  font-weight: 800;
}
.modal-close {
  font-size: 22px;
  line-height: 1;
  color: var(--faint);
  padding: 0 4px;
}
.modal-close:hover {
  color: var(--ink);
}
.modal-body {
  padding: 20px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}
.support-info {
  background: var(--brand-soft);
  border: 1px solid rgba(109, 74, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  margin-bottom: 16px;
}
.support-info .hint {
  margin-top: 6px;
}
.support-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  margin: 4px 0;
}
.support-line .k {
  color: var(--dim);
  font-size: 13px;
  min-width: 56px;
}
.support-line .v {
  font-weight: 700;
  word-break: break-all;
}
.support-context {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--amber-soft);
  border: 1px solid rgba(240, 160, 60, 0.3);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  margin-bottom: 15px;
}
.support-form .form-row {
  margin-top: 15px;
}
body.modal-open {
  overflow: hidden;
}
@media (max-width: 768px) {
    .support-fab {
      right: 14px;
      bottom: 14px;
    }
}
