/* ============================================================
   商城 / 支付 / 查询 页面样式
   ============================================================ */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s var(--ease), border-color .35s, box-shadow .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 11, 22, .68);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: var(--border);
  box-shadow: 0 12px 40px -18px rgba(1, 8, 24, .8);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 13px;
  background: var(--grad); color: #052433;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -10px rgba(34, 211, 238, .75);
  transition: transform .3s var(--ease);
}
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.06); }
.brand-name { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 11px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: all .28s var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--surface); }

/* ---------- Hero ---------- */
.hero { padding: 168px 0 76px; text-align: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: rise .8s var(--ease) both;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 800; line-height: 1.14; letter-spacing: -.02em;
  margin: 22px auto 18px; max-width: 780px;
  animation: rise .9s .08s var(--ease) both;
}
.hero p.sub {
  font-size: clamp(15px, 2vw, 18px); color: var(--text-2);
  max-width: 560px; margin: 0 auto 30px; line-height: 1.7;
  animation: rise .9s .16s var(--ease) both;
}
.hero-cta { display: flex; justify-content: center; gap: 14px; animation: rise .9s .24s var(--ease) both; }
.hero-stats {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin-top: 42px; animation: rise .9s .3s var(--ease) both;
}
.stat-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 13.5px; color: var(--text-2); font-weight: 500;
  transition: all .3s var(--ease);
}
.stat-chip:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: 0 14px 34px -18px rgba(2,12,34,.95); }
.stat-chip b { color: var(--text); font-size: 15px; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- 公告 ---------- */
.notice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 15px 20px; border-radius: 14px; margin: 0 auto 26px; max-width: 860px;
  background: linear-gradient(135deg, rgba(34,211,238,.09), rgba(56,189,248,.05));
  border: 1px solid rgba(56,189,248,.24);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--text-2); font-size: 14px; line-height: 1.7;
  animation: rise .9s .2s var(--ease) both;
}
.notice .ic { color: var(--cyan); margin-top: 2px; }

/* ---------- 分类 & 搜索 ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 10px 0 30px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.search-box { position: relative; }
.search-box .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-box input {
  width: 260px; height: 44px; padding: 0 16px 0 44px;
  border-radius: 13px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); outline: none;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: all .28s var(--ease);
}
.search-box input:focus { border-color: rgba(56,189,248,.55); box-shadow: 0 0 0 4px rgba(56,189,248,.13); background: var(--surface-2); }

/* ---------- 商品卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 22px; padding-bottom: 30px; }
.p-card {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(168deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  display: flex; flex-direction: column;
}
.p-card::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(420px 240px at var(--x, 50%) var(--y, 0%), rgba(56,189,248,.1), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.p-card:hover { transform: translateY(-7px); border-color: var(--border-2); box-shadow: 0 30px 70px -26px rgba(1,10,30,.95), 0 0 0 1px rgba(56,189,248,.16); }
.p-card:hover::before { opacity: 1; }
.p-cover {
  position: relative; height: 148px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 130% at 30% 0%, var(--c1), var(--c2));
  overflow: hidden;
}
.p-cover .emoji { font-size: 58px; filter: drop-shadow(0 14px 22px rgba(0,0,0,.35)); transition: transform .45s var(--ease); }
.p-card:hover .emoji { transform: scale(1.16) rotate(-6deg); }
.p-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.28) 50%, transparent 62%);
  transform: translateX(-130%); transition: transform .9s var(--ease);
}
.p-card:hover .p-cover::after { transform: translateX(130%); }
.p-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-name { font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.p-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.p-meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.price { font-size: 22px; font-weight: 800; color: #67e8f9; letter-spacing: -.01em; }
.price small { font-size: 13px; font-weight: 600; margin-right: 1px; }
.price .orig { margin-left: 8px; font-size: 12.5px; font-weight: 500; color: var(--text-3); text-decoration: line-through; }
.stock-tip { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.stock-tip.low { color: var(--amber); }
.stock-tip.custom { color: var(--sky); }
.stock-tip .ic { width: 14px; height: 14px; }
.p-soldout {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 9, 20, .55); backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.p-soldout span {
  padding: 8px 22px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: rgba(255,255,255,.1); border: 1px solid var(--border-2); color: var(--text-2);
  letter-spacing: .1em;
}
.soldout-tip { color: var(--text-3); }

/* ---------- 购买弹窗 ---------- */
.buy-summary {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  margin-bottom: 20px;
}
.buy-cover {
  width: 64px; height: 64px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  background: radial-gradient(120% 130% at 30% 0%, var(--c1), var(--c2));
}
.buy-info { flex: 1; min-width: 0; }
.buy-info .n { font-weight: 700; font-size: 15.5px; margin-bottom: 4px; }
.buy-info .d { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.qty-label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.qty-stepper { display: flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 3px; }
.qty-btn {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: all .22s var(--ease);
}
.qty-btn:hover { background: var(--surface-2); color: var(--text); }
.qty-btn:disabled { opacity: .3; pointer-events: none; }
.qty-val { min-width: 46px; text-align: center; font-weight: 700; font-size: 16px; }
.total-line { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 2px 18px; }
.total-line .l { font-size: 13.5px; color: var(--text-3); }
.total-line .v { font-size: 30px; font-weight: 800; color: #67e8f9; letter-spacing: -.02em; }
.total-line .v small { font-size: 16px; margin-right: 2px; }
.buy-submit { position: relative; }

/* 封面图片（URL 模式） */
.p-cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .45s var(--ease);
}
.p-card:hover .p-cover-img { transform: scale(1.08); }
.buy-cover img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }

/* 联系方式必填标记 */
.req-mark { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.req-mark:empty { display: none; }
.req-mark[data-req="1"], .req-mark:not([data-req]) { background: rgba(248,113,113,.14); color: #fca5a5; border: 1px solid rgba(248,113,113,.3); }
.req-mark[data-req="0"] { background: rgba(148,163,184,.12); color: #94a3b8; border: 1px solid rgba(148,163,184,.25); }
.req-hint { color: var(--text-3); font-weight: 400; }

/* ---------- 客服面板 ---------- */
.support-list { display: flex; flex-direction: column; gap: 12px; }
.support-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 16px; width: 100%; text-align: left;
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.028));
  border: 1px solid var(--border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .28s var(--ease), border-color .28s, box-shadow .28s, background .28s;
  cursor: pointer; color: var(--text);
}
.support-item:hover { transform: translateY(-3px); border-color: var(--border-2); background: linear-gradient(165deg, rgba(255,255,255,.10), rgba(255,255,255,.04)); box-shadow: 0 16px 40px -18px rgba(2,12,34,.95); }
.support-ic {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -10px rgba(34,211,238,.5);
}
.support-qq { background: linear-gradient(135deg, rgba(22,119,255,.22), rgba(22,119,255,.08)); color: #7cb6ff; border: 1px solid rgba(22,119,255,.32); }
.support-wx { background: linear-gradient(135deg, rgba(52,211,153,.2), rgba(52,211,153,.07)); color: #6ee7b7; border: 1px solid rgba(52,211,153,.3); }
.support-tg { background: linear-gradient(135deg, rgba(56,189,248,.22), rgba(56,189,248,.08)); color: #7dd3fc; border: 1px solid rgba(56,189,248,.32); }
.support-info { flex: 1; min-width: 0; }
.support-info b { display: block; font-size: 15px; margin-bottom: 3px; }
.support-info small { font-size: 12px; color: var(--text-3); line-height: 1.5; word-break: break-all; }
.support-arrow { color: var(--text-3); flex: none; transition: transform .28s var(--ease); }
.support-item:hover .support-arrow { transform: translateX(4px); color: var(--cyan); }

/* 微信二维码卡片（特效与站点一致：毛玻璃 + 扫描线） */
.qr-card {
  position: relative; width: 240px; height: 240px; margin: 4px auto 16px;
  padding: 14px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(170deg, rgba(24,38,68,.92), rgba(8,14,30,.95));
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow), 0 0 60px -24px rgba(52,211,153,.4);
  animation: qrIn .55s var(--ease) both;
}
.qr-card img { width: 100%; height: 100%; border-radius: 12px; background: #fff; object-fit: contain; }
.qr-scanline {
  position: absolute; left: 14px; right: 14px; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, #34d399, transparent);
  box-shadow: 0 0 14px rgba(52,211,153,.95);
  animation: wxScan 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes wxScan { 0%, 100% { top: 16px; opacity: .35; } 50% { top: 222px; opacity: 1; } }
.qr-tip { text-align: center; font-size: 13px; color: var(--text-3); }

/* ---------- 支付页 ---------- */
.pay-wrap { max-width: 640px; margin: 0 auto; padding: 0 20px 70px; }
.pay-head { padding: 118px 0 8px; text-align: center; }
.pay-head .order-no { font-family: var(--mono); font-size: 13px; color: var(--text-3); margin-top: 8px; letter-spacing: .06em; }
.pay-amount { font-size: 44px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.pay-amount small { font-size: 22px; margin-right: 3px; }
.pay-card { margin-top: 26px; padding: 30px 28px; text-align: center; }
.pay-method {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px; border-radius: 999px; margin-bottom: 24px;
  background: rgba(22,119,255,.12); border: 1px solid rgba(22,119,255,.35);
  color: #7cb6ff; font-size: 13.5px; font-weight: 600;
}
.ali-logo {
  width: 26px; height: 26px; border-radius: 8px; background: #1677ff;
  color: #fff; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -6px rgba(22,119,255,.8);
}
.qr-frame {
  position: relative; width: 250px; height: 250px; margin: 0 auto;
  padding: 14px; border-radius: 18px;
  background: #fff; border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 24px 60px -20px rgba(1,8,24,.9), 0 0 0 6px rgba(255,255,255,.06);
  animation: qrIn .6s var(--ease) both;
}
@keyframes qrIn { from { opacity: 0; transform: scale(.9) rotate(2deg); } to { opacity: 1; transform: none; } }
.qr-frame img { width: 100%; height: 100%; border-radius: 8px; }
.qr-scan {
  position: absolute; left: 14px; right: 14px; height: 2px;
  background: linear-gradient(90deg, transparent, #1677ff, transparent);
  box-shadow: 0 0 14px rgba(22,119,255,.9);
  animation: scan 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan { 0%, 100% { top: 14px; opacity: .4; } 50% { top: 234px; opacity: 1; } }
.qr-tip { margin-top: 20px; font-size: 14px; color: var(--text-2); }
.pay-actions { display: flex; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.pay-links { display: flex; justify-content: center; gap: 18px; margin-top: 18px; font-size: 13px; }
.pay-links a { color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; transition: color .25s; }
.pay-links a:hover { color: var(--text); }
.mock-pay { margin-top: 22px; }

/* 支付步骤时间线 */
.steps { display: flex; justify-content: space-between; margin-top: 30px; position: relative; }
.steps::before { content: ''; position: absolute; top: 15px; left: 8%; right: 8%; height: 2px; background: var(--border); }
.steps::after {
  content: ''; position: absolute; top: 15px; left: 8%; height: 2px; width: 0;
  background: var(--grad); box-shadow: 0 0 12px rgba(34,211,238,.8);
  transition: width .8s var(--ease);
}
.steps.s1::after { width: 33%; }
.steps.s2::after { width: 100%; }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 33%; }
.step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--border-2);
  color: var(--text-3); font-size: 12px; font-weight: 700;
  transition: all .4s var(--ease);
}
.step.on .step-dot { background: var(--grad); color: #052433; border-color: transparent; box-shadow: 0 8px 22px -8px rgba(34,211,238,.8); }
.step.done .step-dot { background: rgba(52,211,153,.9); color: #052433; border-color: transparent; }
.step-label { font-size: 12px; color: var(--text-3); font-weight: 500; }
.step.on .step-label, .step.done .step-label { color: var(--text); }

/* ---------- 支付成功 ---------- */
.success-hero { text-align: center; padding: 46px 0 6px; }
.success-ring {
  width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(52,211,153,.35), rgba(16,185,129,.12));
  border: 1px solid rgba(52,211,153,.45);
  display: flex; align-items: center; justify-content: center; color: var(--green);
  box-shadow: 0 0 0 14px rgba(52,211,153,.07), 0 18px 50px -18px rgba(52,211,153,.6);
  animation: pop .55s var(--ease) both;
}
.success-ring .ic { width: 44px; height: 44px; animation: draw .6s .15s var(--ease) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes draw { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-title { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.success-sub { color: var(--text-2); margin-top: 8px; font-size: 14px; }
.cards-box { margin-top: 26px; }
.cards-title { font-size: 14px; font-weight: 700; color: var(--text-2); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; margin-bottom: 10px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  transition: all .3s var(--ease);
}
.card-item:hover { border-color: rgba(56,189,248,.35); background: var(--surface-2); transform: translateX(4px); }
.card-secret { flex: 1; font-family: var(--mono); font-size: 14px; letter-spacing: .03em; word-break: break-all; }
.card-item .btn-sm { flex: none; }
.warn-box {
  display: flex; gap: 12px; padding: 15px 18px; border-radius: 14px; margin-top: 18px;
  background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.28);
  color: #fcd34d; font-size: 13.5px; line-height: 1.7;
}
.warn-box .ic { flex: none; color: var(--amber); margin-top: 1px; }

/* ---------- 查询页 ---------- */
.query-wrap { max-width: 620px; margin: 0 auto; padding: 0 20px 70px; }
.query-head { padding: 124px 0 10px; text-align: center; }
.query-card { margin-top: 24px; padding: 30px 28px; }
.query-result { margin-top: 22px; }
.result-line { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; color: var(--text-2); border-bottom: 1px dashed var(--border); }
.result-line b { color: var(--text); font-weight: 600; text-align: right; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); padding: 34px 0 40px; text-align: center; color: var(--text-3); font-size: 13px; line-height: 2; }
.footer .brand { justify-content: center; margin-bottom: 8px; font-size: 15px; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .hero { padding: 136px 0 54px; }
  .nav-links .hide-sm { display: none; }
  .search-box { width: 100%; }
  .search-box input { width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  /* 手机端商品卡片：细长竖卡（保持原比例，高度适中） */
  .p-card { border-radius: 16px; }
  .p-cover { height: 102px; }
  .p-cover .emoji { font-size: 44px; }
  .p-body { padding: 11px 13px 13px; gap: 6px; }
  .p-name { font-size: 14.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .p-desc { font-size: 12px; -webkit-line-clamp: 1; min-height: 0; line-height: 1.5; color: var(--text-3); }
  .p-meta { padding-top: 2px; }
  .price { font-size: 18px; }
  .price .orig { margin-left: 6px; font-size: 11.5px; }
  .stock-tip { font-size: 11.5px; gap: 3px; }
  .p-body .btn { height: 34px; font-size: 13px; border-radius: 10px; margin-top: 2px; }
  .pay-amount { font-size: 34px; }
  .support-item { padding: 13px 14px; }
  .support-ic { width: 42px; height: 42px; border-radius: 12px; }
  .qr-card { width: 210px; height: 210px; }
  @keyframes wxScan { 0%, 100% { top: 14px; opacity: .35; } 50% { top: 196px; opacity: 1; } }
}
