/* ============================================================
 * 发卡商城 - 移动端样式（mobile-first）
 * ============================================================ */
:root {
  --brand: #1a7f4d;
  --brand-dark: #12603a;
  --brand-light: #e8f5ee;
  --blue: #0c84d1;
  --text: #23282f;
  --text-sub: #6b7280;
  --line: #e5e8ee;
  --card: #ffffff;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(20,40,80,.08), 0 4px 14px rgba(20,40,80,.05);
  --usdt: #26a17b;
  --danger: #d64545;
  --warning: #e8a317;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans SC","PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;
  background: url("../../image/86ee8354cfed495c91768059e816535.jpeg") fixed no-repeat center / cover;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; -webkit-appearance: none; }
input, select, textarea { font-family: inherit; -webkit-appearance: none; }
.container { max-width: 100%; margin: 0 auto; padding: 0 12px; }
.hidden { display: none !important; }
.text-sub { color: var(--text-sub); }
.text-right { text-align: right; }

/* ===== 顶部导航 ===== */
.navbar {
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 100;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 8px; }
.navbar-brand { display: flex; align-items: center; gap: 6px; min-width: 0; }
.navbar-brand__icon {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand), #3fae7a);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.navbar-brand__text { font-weight: 700; color: #168a54; font-size: 13px; white-space: nowrap; }
.navbar-actions { display: flex; align-items: center; gap: 4px; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; color: #3a414c;
}
.nav-btn:active { background: var(--brand-light); color: var(--brand); }

/* ===== 卡片 ===== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 12px 0;
  overflow: hidden;
}
.card-header {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
  display: flex; align-items: center; gap: 6px;
}
.card-title { font-size: 14px; font-weight: 700; color: #2b323b; display: inline-flex; align-items: center; gap: 6px; }
.card-title svg { color: var(--brand); flex: 0 0 auto; }
.card-block { padding: 14px; }
.card-block p { margin-bottom: 8px; }
.card-block p:last-child { margin-bottom: 0; }

/* ===== 公告 ===== */
.announce-body { font-size: 13px; color: #3a414c; }
.announce-body p { margin-bottom: 6px; }
.announce-body p:last-child { margin-bottom: 0; }
.stat-bar {
  margin-top: 8px; padding: 8px 10px; background: #fff8e6; border: 1px dashed #e6c877;
  border-radius: 6px; font-size: 12px; color: #8a6d1a;
}
.stat-bar p { margin: 0; }

/* ===== 选择区 ===== */
.field-label { font-size: 13px; font-weight: 600; color: #3a414c; margin-bottom: 8px; }
.category-box, .product-box { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; color: #3a414c; font-weight: 500;
}
.cat-btn:active { border-color: var(--brand); color: var(--brand); }
.cat-btn.checked { background: var(--brand); border-color: var(--brand); color: #fff; }
.prod-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: 999px;
  border: 1px dashed #c9d4e0; background: #fbfcfe;
  font-size: 12.5px; color: #3a414c;
}
.prod-btn:active { border-color: var(--blue); color: var(--blue); }
.prod-btn.checked { border-style: solid; background: #eaf4fc; border-color: var(--blue); color: var(--blue); font-weight: 600; }
.empty-tip { width: 100%; padding: 16px 0; text-align: center; color: var(--text-sub); font-size: 13px; }

/* ===== 商品信息 ===== */
.product-name { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: #23282f; }
.desc-block { margin-bottom: 10px; font-size: 13px; color: #555e6a; line-height: 1.8; }
.desc-block ul { list-style: none; }
.desc-block li { padding: 2px 0 2px 16px; position: relative; }
.desc-block li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.info-line { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; font-size: 13px; }
.info-line .label { color: #3a414c; flex: 0 0 auto; }
.price-val { color: #16a34a; font-weight: 700; font-size: 15px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #fff; }
.badge-success { background: #22a06b; }
.badge-danger { background: var(--danger); }
.badge-warning { background: var(--warning); }

.form-group { margin-bottom: 12px; }
.form-group label { display: inline-block; font-size: 13px; color: #3a414c; margin-bottom: 4px; }
.form-control {
  width: 100%; height: 38px;
  border: 1px solid #d5dbe4; border-radius: 6px;
  padding: 0 12px; font-size: 14px; outline: none;
  background: #fff;
}
.form-control:focus { border-color: var(--blue); }
.form-control--sm { width: 80px; text-align: center; }
.kucun { margin-left: 8px; font-size: 12px; color: #6b7280; }
.kucun b { color: var(--brand); }
.amount-line { margin-top: 6px; padding: 9px 12px; background: #fafbfc; border: 1px dashed var(--line); border-radius: 6px; font-size: 13px; }
.amount-line .amount { color: #f757b7; font-weight: 900; font-size: 16px; }
.wholesale-tip { margin-top: 8px; font-size: 12px; color: #ff5aa6; font-weight: 600; }
.demo-tip { margin-top: 10px; padding: 7px 10px; background: #eef4ff; border-radius: 6px; font-size: 12px; color: #2f6fc4; }

/* ===== 支付按钮（仅 USDT） ===== */
.pay-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: 6px;
  border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 600; color: #3a414c;
  width: 100%;
}
.pay-btn:active { opacity: .85; }
.pay-btn--full { width: 100%; margin-top: 12px; }
.pay-btn__icon { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 auto; font-size: 12px; }
.pay-btn__icon--usdt { background: var(--usdt); }
.pay-btn--success { background: var(--brand); color: #fff; border-color: var(--brand); }
#submitBtn { background: var(--usdt); color: #fff; border-color: var(--usdt); margin-top: 14px; padding: 12px; font-size: 15px; }

/* ===== 客服滑条 ===== */
.sliderbar { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90; }
.sliderbar__toggle {
  writing-mode: vertical-lr;
  background: var(--brand); color: #fff;
  padding: 14px 6px; border-radius: 8px 0 0 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  box-shadow: var(--shadow);
}
.sliderbar__panel {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 200px; background: #fff; border-radius: 10px;
  box-shadow: 0 12px 40px rgba(20,40,80,.18);
  padding: 14px; display: none;
}
.sliderbar__panel.open { display: block; }
.sliderbar__title { font-size: 12px; color: #8a8f98; margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.sliderbar__title i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); display: inline-block; }
.service-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.service-row img { width: 32px; height: 32px; border-radius: 50%; }
.service-row .name { font-size: 13px; color: #e093ff; font-weight: 600; }
.service-btn {
  display: block; text-align: center; padding: 7px 0; border-radius: 6px;
  border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; margin-bottom: 6px;
}
.service-btn--web { color: #ff6b6b; border-color: #ffc9c9; }
.service-btn--qq { color: #5b8cb8; border-color: #c6d8ea; }

/* ===== 页脚 ===== */
.footer { text-align: center; padding: 16px 0 24px; color: #6b7280; font-size: 12px; }
.footer span { background: rgba(255,255,255,.7); padding: 2px 8px; border-radius: 999px; }

/* ===== 进站弹窗 ===== */
.popup-mask {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15,23,42,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.popup-box {
  width: 100%; max-width: 400px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 24px 70px rgba(15,23,42,.35);
  overflow: hidden;
}
.popup-head { padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.popup-head b { font-size: 14px; color: #2b323b; }
.popup-body { padding: 16px; font-size: 13px; color: #3a414c; max-height: 50vh; overflow-y: auto; }
.popup-body p { margin-bottom: 6px; }
.popup-body p:last-child { margin-bottom: 0; }
.popup-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.popup-count { font-size: 12px; color: var(--text-sub); }
.popup-count b { color: var(--brand); font-size: 14px; }
.popup-close { padding: 7px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; background: var(--brand); color: #fff; }
.popup-close:disabled { background: #b8c4bd; cursor: not-allowed; }

/* ============================================================
 * 支付页专属样式
 * ============================================================ */
.pay-page { padding-bottom: 20px; }
.pay-back { padding: 12px 0 4px; }
.pay-back a { color: var(--text-sub); font-size: 13px; }
.pay-back a:active { color: var(--brand); }

.pay-notice {
  padding: 10px 14px; background: #e8f5ee; border: 1px solid #b8e0c8;
  border-radius: 6px; font-size: 13px; color: #12603a; margin: 8px 0;
}
.pay-notice--error { background: #fef0f0; border-color: #f5c6c6; color: var(--danger); }

/* 订单表格 */
.order-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.order-table td { padding: 8px 0; border-bottom: 1px solid #f0f2f5; }
.order-table tr:last-child td { border-bottom: none; }
.order-table .order-total td { padding-top: 12px; padding-bottom: 12px; border-top: 2px solid var(--line); border-bottom: none; }
.order-table .order-no { font-family: monospace; font-size: 12px; color: var(--text-sub); word-break: break-all; }

/* 支付金额 */
.pay-amount {
  text-align: center; padding: 16px 0; margin-bottom: 8px;
  background: linear-gradient(135deg, #f0faf5, #e8f5ee);
  border-radius: 8px;
}
.pay-amount__label { display: block; font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
.pay-amount__value { font-size: 24px; font-weight: 900; color: var(--usdt); }
.pay-tip { font-size: 12px; color: var(--text-sub); text-align: center; margin-bottom: 14px; }

/* 倒计时 */
.pay-countdown {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 12px; margin-bottom: 12px;
  background: #fff8e6; border: 1px dashed #e6c877; border-radius: 6px;
  font-size: 13px; color: #8a6d1a; font-weight: 600;
}
.pay-countdown b { color: #d64545; font-size: 15px; font-family: monospace; }

/* 地址切换 tab */
.usdt-tabs { display: flex; gap: 8px; margin-bottom: 10px; justify-content: center; }
.usdt-tab {
  padding: 6px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 600; color: #3a414c;
}
.usdt-tab.active { background: var(--usdt); border-color: var(--usdt); color: #fff; }

/* 订单过期提示 */
.pay-expired { text-align: center; padding: 22px 12px; }
.pay-expired__icon { font-size: 42px; margin-bottom: 10px; }
.pay-expired p { font-size: 14px; color: var(--danger); font-weight: 600; margin-bottom: 12px; }

/* USDT 地址卡片 */
.usdt-addr {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 12px; margin-bottom: 10px; background: #fafbfc;
}
.usdt-addr__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.usdt-addr__network {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--usdt); color: #fff; font-size: 11px; font-weight: 700;
}
.copy-btn {
  padding: 5px 12px; border-radius: 6px; background: var(--brand);
  color: #fff; font-size: 12px; font-weight: 600;
}
.copy-btn:active { opacity: .8; }
.copy-btn--sm { padding: 3px 8px; font-size: 11px; }
.copy-btn.copied { background: #888; }
.usdt-addr__body { text-align: center; margin-bottom: 8px; }
.usdt-addr__body img, .usdt-addr__body canvas {
  display: inline-block !important; width: 160px !important; height: 160px !important;
}
.usdt-addr__text {
  font-family: monospace; font-size: 11px; color: var(--text-sub);
  word-break: break-all; text-align: center; line-height: 1.5;
  background: #fff; padding: 8px; border-radius: 4px; border: 1px solid #eee;
}

/* 等待确认 */
.pay-waiting {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; background: #fff8e6; border: 1px dashed #e6c877;
  border-radius: 8px; color: #8a6d1a; font-size: 13px; font-weight: 600;
  margin-top: 12px;
}

/* 订单备注 */
.order-remark {
  margin-top: 14px; padding: 12px; background: #f0faf5;
  border: 1px solid #b8e0c8; border-radius: 6px;
  font-size: 13px; color: #12603a; line-height: 1.8;
  word-break: break-all;
}

/* 客服帐号 */
.service-account {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 10px; background: #fafbfc; border-radius: 6px; margin-bottom: 8px;
}
.service-account__label { font-size: 12px; color: var(--text-sub); font-weight: 600; }
.service-account__value { font-size: 13px; color: #3a414c; font-weight: 600; word-break: break-all; flex: 1; }

/* 查询链接 */
.pay-query-link { text-align: center; padding: 14px 0; }
.pay-query-link a { color: var(--blue); font-size: 13px; font-weight: 600; }
.pay-query-link a:active { opacity: .7; }

/* ===== 响应式（大屏仍然保持手机端单列布局） ===== */
@media (min-width: 480px) {
  .container { max-width: 480px; }
}
