/* ==========================================================================
   checkout2.css — 统一风格结算页（cg 变量体系）
   ========================================================================== */
.ck-wrap {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* ---------- 左：订单摘要（米白纸感卡） ---------- */
.ck-summary {
  background: var(--cg-card);
  color: var(--cg-card-ink);
  border-radius: var(--cg-radius);
  box-shadow: 0 1px 3px #14141340, 0 30px 60px -28px #000c;
  padding: 30px 32px;
  position: sticky;
  top: 96px;
}
.ck-summary .lb {
  font-family: var(--cg-mono);
  font-size: 12px; letter-spacing: .12em;
  color: var(--cg-card-muted);
  margin: 0 0 8px;
}
.ck-summary h1 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 1.9rem);
  letter-spacing: -.02em;
}
.ck-rows { border-top: 1px solid var(--cg-card-line); }
.ck-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px dashed var(--cg-card-line);
  font-size: 14px;
}
.ck-row span { color: var(--cg-card-muted); }
.ck-amt { color: var(--cg-accent-text); font-size: 20px; font-weight: 750; }
.ck-points { margin: 18px 0 0; padding: 0; }
.ck-points p {
  margin: 0 0 8px;
  font-size: 13px; line-height: 1.6;
  color: var(--cg-card-muted);
  display: flex; gap: 9px;
}
.ck-points i { font-style: normal; color: var(--cg-accent-text); font-weight: 700; }
.ck-fine { margin: 16px 0 0; font-size: 11.5px; color: #a8a79f; }

/* ---------- 右：支付区 ---------- */
.ck-pay { min-width: 0; }
.ck-block { margin-bottom: 26px; }
.ck-block h3 {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--cg-on-dark);
  font-weight: 650;
}
.ck-input {
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #faf9f50a;
  border: 1px solid #faf9f526;
  color: var(--cg-on-dark);
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
}
.ck-input:focus { outline: none; border-color: var(--cg-accent); box-shadow: 0 0 0 3px #d9775726; }
.ck-file { padding: 10px; }
.ck-field { display: block; margin-bottom: 14px; }
.ck-field span { display: block; margin-bottom: 7px; font-size: 13px; color: var(--cg-on-dark-muted); }
.ck-field em { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: #87867f; }
.ck-submit { width: 100%; min-height: 48px; margin-top: 8px; }

/* ---------- 支付方式卡 ---------- */
.ck-methods { display: grid; gap: 10px; }
.ck-method {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  background: #faf9f508;
  box-shadow: inset 0 0 0 1px #faf9f526;
  border: 0;
  cursor: pointer;
  color: var(--cg-on-dark);
  font-family: inherit;
  text-align: left;
  transition: box-shadow .2s, background .2s, transform .15s;
}
.ck-method:hover { box-shadow: inset 0 0 0 1px #faf9f54d; transform: translateY(-1px); }
.ck-method.is-on {
  background: #d9775718;
  box-shadow: inset 0 0 0 1px var(--cg-accent), 0 0 24px -6px #d9775744;
}
.ck-method.is-off { opacity: .55; cursor: not-allowed; }
.ck-mIco {
  width: 40px; height: 40px; flex: none;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 17px; font-weight: 750;
  color: #fff;
}
.ck-alipay { background: linear-gradient(135deg, #1677ff, #4e9bff); }
.ck-wxpay  { background: linear-gradient(135deg, #07c160, #2bd472); }
.ck-usdt   { background: linear-gradient(135deg, #26a17b, #3ecf9a); }
.ck-mIco img { width: 22px; height: 22px; display: block; fill: #fff; }
.ck-mName { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; font-weight: 600; flex: 1; }
.ck-mName i { font-style: normal; font-size: 12px; font-weight: 400; color: var(--cg-on-dark-muted); }
.ck-mState { font-size: 12px; color: #87867f; }
.ck-mState.s-off { color: #87867f; }
.ck-mState.s-on { color: #4ade9b; }

/* ---------- 支付面板 ---------- */
.ck-payBox {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #faf9f50a;
  box-shadow: inset 0 0 0 1px #faf9f526;
  text-align: center;
}
.ck-payBox img { border-radius: 12px; background: #fff; padding: 10px; max-width: 210px; }
.ck-payBox .ck-acc {
  font-family: var(--cg-mono);
  font-size: 14px;
  color: var(--cg-kraft);
  word-break: break-all;
  padding: 10px 14px;
  background: #14141380;
  border-radius: 10px;
  margin: 10px 0;
  user-select: all;
}
.ck-payBox p { margin: 8px 0 0; font-size: 12.5px; color: var(--cg-on-dark-muted); }

/* ---------- 完成 ---------- */
.ck-done { text-align: center; padding: 30px 0 10px; }
.ck-doneIco {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 26px;
  background: #34d3991f;
  color: #4ade9b;
  box-shadow: 0 0 0 1px #34d39944, 0 0 30px #34d39933;
}
.ck-done h2 { margin: 0 0 8px; font-size: 20px; }
.ck-done p { margin: 0 0 20px; color: var(--cg-on-dark-muted); font-size: 14px; }

.ck-safety {
  margin: 26px 0 0;
  font-size: 12px;
  color: #87867f;
  text-align: center;
}

/* 消息条 */
.form-msg { min-height: 0; margin-bottom: 14px; font-size: 13.5px; }
.form-msg.is-error { color: #f87171; }
.form-msg.is-success { color: #4ade9b; }
.form-msg.is-info { color: var(--cg-kraft); }

@media (max-width: 960px) {
  .ck-wrap { grid-template-columns: 1fr; gap: 26px; }
  .ck-summary { position: static; }
}

/* ==========================================================================
   人工客服浮窗（结算页）
   ========================================================================== */
.sc-fab {
  position: fixed;
  right: 22px; bottom: 26px;
  z-index: 60;
  width: 62px; height: 62px;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(145deg, #1c1b19, #141413);
  box-shadow: inset 0 0 0 1px #d9775755, 0 10px 30px -8px #000d, 0 0 24px #d9775726;
  overflow: visible;
  display: grid; place-items: center;
  transition: transform .18s;
}
.sc-fab:hover { transform: scale(1.06); }
.sc-fab img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  animation: scBob 3s ease-in-out infinite;
}
.sc-fabBadge {
  position: absolute; bottom: -2px; right: -2px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #34d399;
  color: #141413;
  font-size: 10px; font-weight: 700;
  box-shadow: 0 0 0 2px #141413;
}
.sc-flash { animation: scPulse .5s ease-in-out 3; }
@keyframes scBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes scPulse { 50% { transform: scale(1.12); box-shadow: 0 0 0 6px #34d39933; } }

.sc-win {
  position: fixed;
  right: 22px; bottom: 26px;
  z-index: 61;
  width: min(360px, calc(100vw - 32px));
  height: min(500px, calc(100vh - 60px));
  border-radius: 18px;
  background: #161514f2;
  box-shadow: inset 0 0 0 1px #faf9f526, 0 30px 80px -20px #000e;
  backdrop-filter: blur(16px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.sc-win[hidden] { display: none; }
.sc-fab[hidden] { display: none; }
.sc-head {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid #faf9f51a;
  background: linear-gradient(#d9775715, transparent);
}
.sc-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.sc-head b { display: block; font-size: 14px; }
.sc-head p { margin: 2px 0 0; font-size: 11.5px; color: #b0aea5; display: flex; align-items: center; gap: 5px; }
.sc-close {
  margin-left: auto;
  width: 30px; height: 30px;
  border-radius: 50%; border: 0;
  background: #faf9f50f;
  color: #b0aea5;
  font-size: 17px; cursor: pointer;
}
.sc-quick {
  display: flex; gap: 7px; flex-wrap: wrap;
  padding: 11px 14px;
  border-bottom: 1px solid #faf9f51a;
}
.sc-quick button {
  padding: 6px 11px;
  border-radius: 999px; border: 0;
  background: #d9775718;
  box-shadow: inset 0 0 0 1px #d9775744;
  color: #f3c4a6;
  font-size: 12px; cursor: pointer;
  font-family: inherit;
}
.sc-quick button:hover { background: #d9775728; }
.sc-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex; flex-direction: column; gap: 9px;
}
.sc-bubble {
  max-width: 84%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px; line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.sc-bubble.them {
  align-self: flex-start;
  background: #faf9f50f;
  box-shadow: inset 0 0 0 1px #faf9f526;
  border-bottom-left-radius: 4px;
}
.sc-bubble.me {
  align-self: flex-end;
  background: linear-gradient(135deg, #d97757, #b95f3f);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.sc-bar {
  display: flex; gap: 9px;
  padding: 11px 13px;
  border-top: 1px solid #faf9f51a;
}
.sc-input {
  flex: 1;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 12px;
  background: #faf9f50a;
  border: 1px solid #faf9f526;
  color: #faf9f5;
  font-size: 13.5px;
  font-family: inherit;
}
.sc-input:focus { outline: none; border-color: #d97757; }
.sc-send {
  width: 40px; height: 40px; flex: none;
  border-radius: 12px; border: 0;
  background: linear-gradient(135deg, #d97757, #b95f3f);
  color: #fff;
  font-size: 16px; cursor: pointer;
}
.sc-send:hover { transform: scale(1.05); }

/* 推荐标签 */
.ck-reco {
  margin-left: 10px;
  font-size: 12px; font-weight: 500;
  color: #4ade9b;
  vertical-align: 1px;
}

/* 站内收银台 iframe */
.ck-cashier {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

/* 全站深色滚动条统一（消除白色刺眼条） */
.cg-home *::-webkit-scrollbar { width: 8px; height: 8px; }
.cg-home *::-webkit-scrollbar-track { background: transparent; }
.cg-home *::-webkit-scrollbar-thumb { background: rgba(250,249,245,.18); border-radius: 999px; }
.cg-home *::-webkit-scrollbar-thumb:hover { background: rgba(250,249,245,.32); }
.acct2-body *::-webkit-scrollbar { width: 8px; height: 8px; }
.acct2-body *::-webkit-scrollbar-track { background: transparent; }
.acct2-body *::-webkit-scrollbar-thumb { background: rgba(250,249,245,.18); border-radius: 999px; }
