/* 7POOLS 动态组件样式（live.js 专用）
   复刻站使用的 site.css 是预编译 Tailwind，动态插入的新工具类不在其中，
   因此订单弹窗 / 查询结果 / 错误提示等一律使用这里定义的语义类名。 */

html {
  --nk-accent: #e12d56;
  --nk-accent-2: #ff5a86;
  --nk-card-bg: rgba(255, 255, 255, 0.92);
  --nk-card-fg: #141824;
  --nk-muted: #64748b;
  --nk-border: rgba(15, 23, 42, 0.08);
  --nk-soft: rgba(15, 23, 42, 0.04);
  --nk-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}
html.dark {
  --nk-card-bg: rgba(15, 23, 42, 0.96);
  --nk-card-fg: #f2f4fa;
  --nk-muted: #94a3b8;
  --nk-border: rgba(255, 255, 255, 0.12);
  --nk-soft: rgba(255, 255, 255, 0.05);
  --nk-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

/* ---------- 通用按钮 ---------- */
.nk-buy {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--nk-accent), var(--nk-accent-2));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(225, 45, 86, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.nk-buy:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(225, 45, 86, 0.35); }
.nk-buy:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ---------- 错误提示 ---------- */
.nk-error {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #e11d48;
}
html.dark .nk-error { color: #ff8fa8; }
.nk-error[hidden] { display: none; }

/* ---------- 订单成功弹窗 ---------- */
.nk-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.nk-modal-card {
  width: 100%;
  max-width: 440px;
  padding: 24px;
  border: 1px solid var(--nk-border);
  border-radius: 24px;
  background: var(--nk-card-bg);
  color: var(--nk-card-fg);
  box-shadow: var(--nk-shadow);
  animation: nk-pop 0.22s ease-out;
}
@keyframes nk-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.nk-modal-title { margin: 0; font-size: 18px; font-weight: 800; }
.nk-modal-sub { margin: 6px 0 0; font-size: 12px; color: var(--nk-muted); }
.nk-order-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(225, 45, 86, 0.22);
  border-radius: 16px;
  background: rgba(225, 45, 86, 0.07);
}
.nk-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nk-muted);
}
.nk-order-no {
  margin-top: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--nk-accent);
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;
}
html.dark .nk-order-no { color: #ff8fa8; }
.nk-order-sum { margin-top: 8px; font-size: 13px; color: var(--nk-card-fg); opacity: 0.86; }
.nk-modal-tip { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: var(--nk-muted); }
.nk-modal-actions { display: flex; gap: 8px; margin-top: 20px; }
.nk-btn-primary,
.nk-btn-ghost {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}
.nk-btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--nk-accent), var(--nk-accent-2));
  color: #fff;
}
.nk-btn-primary:hover { filter: brightness(1.05); }
.nk-btn-ghost {
  border: 1px solid var(--nk-border);
  background: transparent;
  color: var(--nk-muted);
}
.nk-btn-ghost:hover { border-color: rgba(225, 45, 86, 0.4); color: var(--nk-accent); }

/* ---------- 页脚联系方式（后台可改） ---------- */
.nk-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--nk-border);
  border-radius: 12px;
  background: var(--nk-soft);
  color: var(--nk-muted);
  text-decoration: none;
  font-size: 14px;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.nk-contact-row:hover { border-color: rgba(225, 45, 86, 0.35); color: var(--nk-accent); }
html.dark .nk-contact-row { color: #cbd5e1; }
html.dark .nk-contact-row:hover { color: #ff8fa8; }
.nk-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: rgba(225, 45, 86, 0.1);
  color: var(--nk-accent);
}
html.dark .nk-contact-icon { background: rgba(255, 122, 154, 0.15); color: #ff85a3; }
.nk-contact-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 订单查询结果 ---------- */
.nk-result {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--nk-border);
  border-radius: 20px;
  background: var(--nk-card-bg);
  color: var(--nk-card-fg);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.nk-result-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--nk-border);
}
.nk-result-head h2 { margin: 0; font-size: 14px; font-weight: 800; }
.nk-result-list { display: grid; gap: 10px; }
.nk-order-item {
  padding: 14px;
  border: 1px solid var(--nk-border);
  border-radius: 14px;
  background: var(--nk-soft);
}
.nk-order-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.nk-order-item .nk-order-no { font-size: 13px; margin: 0; }
.nk-status-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.nk-status-pill[data-status="pending"] { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.nk-status-pill[data-status="paid"] { background: rgba(16, 185, 129, 0.14); color: #047857; }
.nk-status-pill[data-status="delivered"] { background: rgba(14, 165, 233, 0.14); color: #0369a1; }
.nk-status-pill[data-status="completed"] { background: rgba(100, 116, 139, 0.16); color: #475569; }
.nk-status-pill[data-status="cancelled"] { background: rgba(225, 45, 86, 0.12); color: #be123c; }
html.dark .nk-status-pill[data-status="pending"] { color: #fbbf24; }
html.dark .nk-status-pill[data-status="paid"] { color: #34d399; }
html.dark .nk-status-pill[data-status="delivered"] { color: #38bdf8; }
html.dark .nk-status-pill[data-status="completed"] { color: #cbd5e1; }
html.dark .nk-status-pill[data-status="cancelled"] { color: #ff8fa8; }
.nk-order-name {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}
.nk-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--nk-muted);
}
.nk-order-empty {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(100, 116, 139, 0.08);
  font-size: 13px;
  color: var(--nk-muted);
}
.nk-order-remark {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.08);
  font-size: 12px;
  color: #b45309;
}
html.dark .nk-order-remark { color: #fbbf24; }
.nk-order-delivery {
  margin-top: 10px;
  border: 1px solid rgba(16, 128, 92, 0.18);
  border-radius: 12px;
  background: rgba(16, 128, 92, 0.06);
  overflow: hidden;
}
.nk-order-delivery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-bottom: 1px solid rgba(16, 128, 92, 0.14);
  font-size: 11px;
  font-weight: 800;
  color: #047857;
}
html.dark .nk-order-delivery { border-color: rgba(52, 211, 153, 0.22); background: rgba(52, 211, 153, 0.08); }
html.dark .nk-order-delivery-head { color: #6ee7b7; border-bottom-color: rgba(52, 211, 153, 0.18); }
.nk-copy-btn {
  padding: 3px 9px;
  border: 1px solid rgba(16, 128, 92, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
html.dark .nk-copy-btn { background: rgba(255, 255, 255, 0.06); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.24); }
.nk-order-secret {
  margin: 0;
  padding: 10px 11px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-all;
  color: #065f46;
  user-select: all;
}
html.dark .nk-order-secret { color: #a7f3d0; }


/* 搜索结果输入框：给左侧放大镜留出空间，避免图标压住 placeholder */
.shop-section-header .relative input.neko-input { padding-left: 2rem !important; padding-right: 2.25rem !important; }

/* ---------- 下单后的收款信息 ---------- */
.nk-pay-box {
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid rgba(225, 45, 86, 0.18);
  border-radius: 14px;
  background: rgba(225, 45, 86, 0.045);
  text-align: left;
}
.dark .nk-pay-box {
  border-color: rgba(255, 107, 143, 0.22);
  background: rgba(255, 107, 143, 0.07);
}
.nk-pay-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-size: 12px;
  color: #667085;
}
.dark .nk-pay-line { color: #9aa6ba; }
.nk-pay-line b { color: #141824; font-size: 12px; text-align: right; word-break: break-all; }
.dark .nk-pay-line b { color: #f2f4fa; }
.nk-pay-account { font-variant-numeric: tabular-nums; }
.nk-pay-qr {
  display: block;
  width: min(190px, 70%);
  margin: 10px auto 4px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px -14px rgba(20, 24, 36, 0.45);
}
.nk-pay-note {
  margin: 8px 0 0;
  color: #667085;
  font-size: 11.5px;
  line-height: 1.65;
}
.dark .nk-pay-note { color: #9aa6ba; }
.nk-order-notice {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  font-size: 12.5px;
  line-height: 1.6;
}
.dark .nk-order-notice {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
  color: #6ee7b7;
}
.nk-pay-link {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  text-decoration: none;
}

/* ---------- 商品页预选卡密 ---------- */
.nk-draft-block {
  margin-top: 2px;
  padding: 12px 13px 11px;
  border: 1px solid rgba(225, 45, 86, 0.16);
  border-radius: 14px;
  background: rgba(225, 45, 86, 0.035);
}
.dark .nk-draft-block {
  border-color: rgba(255, 122, 154, 0.22);
  background: rgba(255, 122, 154, 0.06);
}
.nk-draft-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: #141824;
  font-size: 12px;
  font-weight: 700;
}
.dark .nk-draft-head { color: #f2f4fa; }
.nk-draft-count {
  color: #98a2b3;
  font-size: 10.5px;
  font-weight: 500;
}
.nk-draft-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.nk-draft-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.nk-draft-option:hover {
  border-color: rgba(225, 45, 86, 0.42);
  background: rgba(255, 245, 247, 0.95);
}
.nk-draft-option.is-selected {
  border-color: #e12d56;
  background: rgba(225, 45, 86, 0.075);
  box-shadow: 0 0 0 1px rgba(225, 45, 86, 0.08) inset;
}
.dark .nk-draft-option {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}
.dark .nk-draft-option:hover { border-color: rgba(255, 122, 154, 0.5); }
.dark .nk-draft-option.is-selected {
  border-color: #ff7a9a;
  background: rgba(255, 122, 154, 0.12);
}
.nk-draft-option input {
  width: 13px;
  height: 13px;
  accent-color: #e12d56;
  flex: 0 0 auto;
}
.nk-draft-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #344054;
  font-size: 11.5px;
  font-weight: 600;
}
.dark .nk-draft-name { color: #d0d5dd; }
.nk-draft-premium {
  flex: 0 0 auto;
  color: #e12d56;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.dark .nk-draft-premium { color: #ff9ab4; }
.nk-draft-note {
  margin: 8px 0 0;
  color: #98a2b3;
  font-size: 10.5px;
  line-height: 1.55;
}
.nk-order-draft {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 2px;
  padding: 6px 1px 0;
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
  font-size: 11px;
  color: #98a2b3;
}
.dark .nk-order-draft { border-top-color: rgba(255, 255, 255, 0.1); }
.nk-order-draft b {
  color: #344054;
  font-size: 11.5px;
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}
.dark .nk-order-draft b { color: #d0d5dd; }
@media (max-width: 520px) {
  .nk-draft-list { grid-template-columns: 1fr; }
}

.nk-coupon-field { display:block; margin:10px 0 0; }
.nk-coupon-field span { display:block; margin-bottom:4px; font-size:12px; color:#64748b; }
body.dark .nk-coupon-field span { color:#94a3b8; }
.nk-coupon-field input { width:100%; height:38px; padding:0 10px; border:1px solid rgba(15,23,42,.14); border-radius:8px; background:rgba(255,255,255,.75); color:#0f172a; font:inherit; font-size:13px; outline:none; }
body.dark .nk-coupon-field input { background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.12); color:#f2f4fa; }
.nk-coupon-field input:focus { border-color:#e12d56; }
