/* ============================================================
   TechNova Brasil — App 风格数码商城前台样式
   Mobile-first，桌面端居中呈现手机 App 形态
   ============================================================ */
:root {
  --primary: #e91e63;
  --primary-dark: #c2185b;
  --primary-light: #fce4ec;
  --accent: #ff85b5;
  --grad: linear-gradient(135deg, #ff80ab 0%, #e91e63 100%);
  --bg: #f3f5f9;
  --card: #ffffff;
  --text: #212121;
  --text-2: #757575;
  --text-3: #b0aeb5;
  --border: #f0eef2;
  --success: #2e7d32;
  --success-bg: #e8f5e9;
  --warning: #f57c00;
  --warning-bg: #fff3e0;
  --danger: #d32f2f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(33, 33, 33, .06);
  --shadow-lg: 0 8px 28px rgba(33, 33, 33, .12);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
          "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: #eef1f6;
  color: var(--text);
  line-height: 1.55;
  padding-bottom: 76px; /* 底部导航预留 */
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; border: 0; cursor: pointer; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; }
ul { list-style: none; }

/* ---------- App 容器（桌面端模拟手机） ---------- */
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  box-shadow: 0 0 40px rgba(33, 33, 33, .12);
  position: relative;
}
@media (min-width: 520px) {
  body { padding: 24px 0 96px; }
  .app-shell { border-radius: 28px; overflow: hidden; min-height: calc(100vh - 48px); }
}

/* ---------- 顶部公告 ---------- */
.announce {
  background: var(--grad);
  color: #fff;
  text-align: center;
  font-size: 12.5px;
  padding: 7px 12px;
  white-space: nowrap;
  overflow: hidden;
}
.announce span { display: inline-block; animation: marquee 18s linear infinite; }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* ---------- App 顶栏 ---------- */
.app-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
}
.logo {
  font-size: 19px; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}
.logo small { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .12em; color: var(--text-2); -webkit-text-fill-color: var(--text-2); }
.search-trigger {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  background: #f3f1f4; border-radius: 999px;
  padding: 9px 14px; font-size: 13.5px; color: var(--text-3);
}
.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary);
  font-size: 17px; position: relative;
}
.icon-btn .badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--primary); color: #fff;
  font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ---------- 底部导航 ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: flex;
  padding-bottom: var(--safe-bottom);
}
@media (min-width: 520px) { .bottom-nav { left: 50%; transform: translateX(-50%); width: 480px; border-radius: 20px 20px 0 0; } }
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 3px; padding: 9px 0 7px;
  font-size: 10.5px; color: var(--text-3); font-weight: 600;
  position: relative;
}
.bottom-nav a i { font-size: 20px; font-style: normal; line-height: 1; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a.active::before {
  content: ""; position: absolute; top: 0;
  width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--primary);
}
.bottom-nav .bn-badge {
  position: absolute; top: 4px; right: calc(50% - 22px);
  min-width: 17px; height: 17px; border-radius: 9px;
  background: var(--primary); color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ---------- 通用区块 ---------- */
.section { padding: 14px 14px 4px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.section-title { font-size: 16.5px; font-weight: 800; }
.section-more { font-size: 12.5px; color: var(--primary); font-weight: 600; }

/* ---------- 轮播横幅 ---------- */
.banner-wrap { margin: 12px 14px; border-radius: 20px; overflow: hidden; position: relative; box-shadow: var(--shadow); }
.banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.banner-track::-webkit-scrollbar { display: none; }
.banner-slide {
  flex: 0 0 100%; scroll-snap-align: start;
  position: relative; min-height: 150px;
  background: var(--grad);
  color: #fff; padding: 26px 22px;
  display: flex; flex-direction: column; justify-content: center;
}
.banner-slide.g2 { background: linear-gradient(135deg, #1e3a8a, #e91e63); }
.banner-slide.g3 { background: linear-gradient(135deg, #c2185b, #ff80ab); }
.banner-slide h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.banner-slide p { font-size: 13px; opacity: .92; }
.banner-slide .banner-cta {
  margin-top: 14px; align-self: flex-start;
  background: #fff; color: var(--primary-dark);
  font-size: 12.5px; font-weight: 700; padding: 8px 16px; border-radius: 999px;
}
.banner-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.banner-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); transition: .2s; }
.banner-dots i.on { width: 16px; background: #fff; }

/* ---------- 分类横向滚动 ---------- */
.cat-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 4px 14px 12px; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0; width: 76px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.cat-chip .c-ico {
  width: 58px; height: 58px; border-radius: 20px;
  background: #fff; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.cat-chip span { font-size: 11.5px; font-weight: 600; color: var(--text-2); text-align: center; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 商品网格 ---------- */
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 14px 14px; }
.prod-card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  position: relative;
}
.prod-img { aspect-ratio: 1 / 1; background: #faf8fb; overflow: hidden; position: relative; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-img .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 44px; }
.prod-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--grad); color: #fff;
  font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  letter-spacing: .03em;
}
.prod-disc {
  position: absolute; top: 8px; right: 8px;
  background: #fff; color: var(--primary);
  font-size: 10.5px; font-weight: 800; padding: 3px 7px; border-radius: 8px;
  box-shadow: var(--shadow);
}
.prod-info { padding: 10px 10px 12px; }
.prod-name {
  font-size: 13px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 35px;
}
.prod-rating { display: flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 11px; color: var(--text-3); }
.stars { color: #ffb300; font-size: 11.5px; letter-spacing: 1px; }
.prod-price { margin-top: 6px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-now { font-size: 16px; font-weight: 800; color: var(--primary-dark); }
.price-old { font-size: 11.5px; color: var(--text-3); text-decoration: line-through; }
.price-install { font-size: 10.5px; color: var(--text-2); width: 100%; }
.prod-add {
  position: absolute; right: 10px; bottom: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 3px 8px rgba(233, 30, 99, .35);
}

/* ---------- 商品详情 ---------- */
.pd-gallery { position: relative; background: #fff; }
.pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1 / 1; background: #faf8fb; }
.pd-slide img { width: 100%; height: 100%; object-fit: cover; }
.pd-slide .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 90px; }
.pd-back {
  position: absolute; top: 12px; left: 12px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.92); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.pd-body { padding: 14px 14px 4px; }
.pd-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pd-tag {
  font-size: 10.5px; font-weight: 700; color: var(--primary);
  background: var(--primary-light); padding: 3px 9px; border-radius: 999px;
}
.pd-title { font-size: 17px; font-weight: 800; line-height: 1.4; }
.pd-rating-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.pd-sold { color: var(--success); font-weight: 700; }
.pd-price-box {
  margin-top: 10px; background: #fff; border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow);
}
.pd-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd-price-now { font-size: 26px; font-weight: 800; color: var(--primary-dark); }
.pd-price-old { font-size: 14px; color: var(--text-3); text-decoration: line-through; }
.pd-off { font-size: 12px; font-weight: 800; color: var(--success); background: var(--success-bg); padding: 3px 8px; border-radius: 8px; }
.pd-install { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.pd-install b { color: var(--text); }
.pd-pix-note {
  margin-top: 10px; display: flex; align-items: center; gap: 8px;
  background: var(--success-bg); color: var(--success);
  font-size: 12.5px; font-weight: 700; padding: 9px 12px; border-radius: var(--radius-sm);
}
.pd-option { margin-top: 14px; }
.pd-option h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.opt-list { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-item {
  border: 2px solid var(--border); border-radius: 12px;
  padding: 8px 14px; font-size: 13px; font-weight: 600;
  background: #fff;
}
.opt-item.on { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.pd-qty { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.pd-qty h4 { font-size: 13.5px; font-weight: 700; }
.qty-ctl { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: #fff; }
.qty-ctl button { width: 34px; height: 34px; font-size: 18px; color: var(--primary); }
.qty-ctl span { min-width: 34px; text-align: center; font-weight: 700; font-size: 15px; }

.pd-block {
  margin-top: 14px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.pd-block-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; font-size: 14px; font-weight: 700;
}
.pd-block-body { padding: 0 14px 14px; font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
.pd-block-body ul { padding-left: 16px; list-style: disc; }
.pd-block-body h3 { font-size: 14px; color: var(--text); margin: 8px 0 4px; }

.pd-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.pd-trust-item {
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 10px; font-size: 11.5px; color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
}
.pd-trust-item i { font-size: 20px; font-style: normal; }

.pd-whats {
  margin: 14px; display: flex; align-items: center; gap: 12px;
  background: #25d366; color: #fff; border-radius: var(--radius);
  padding: 12px 14px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow);
}
.pd-whats i { font-size: 22px; font-style: normal; }

/* 详情页底部购买栏 */
.pd-buybar {
  position: fixed; bottom: calc(var(--safe-bottom, 0px) + 62px); left: 0; right: 0; z-index: 55;
  background: #fff; border-top: 1px solid var(--border);
  display: flex; gap: 8px; padding: 10px 14px;
  padding-bottom: calc(10px + var(--safe-bottom));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
}
@media (min-width: 520px) { .pd-buybar { left: 50%; transform: translateX(-50%); width: 480px; } }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; border-radius: 999px;
  padding: 12px 18px; transition: .15s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(233, 30, 99, .3); }
.btn-primary:active { transform: scale(.97); }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px; font-size: 15.5px; }
.btn-success { background: #25d366; color: #fff; }

/* ---------- 购物车 ---------- */
.cart-list { padding: 10px 14px; display: flex; flex-direction: column; gap: 10px; }
.cart-item {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; gap: 10px; padding: 10px; position: relative;
}
.cart-item .ci-img { width: 74px; height: 74px; border-radius: 12px; overflow: hidden; background: #faf8fb; flex-shrink: 0; }
.cart-item .ci-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .ci-img .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.cart-item .ci-body { flex: 1; min-width: 0; }
.cart-item .ci-name { font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item .ci-opt { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.cart-item .ci-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cart-item .ci-price { font-size: 15px; font-weight: 800; color: var(--primary-dark); }
.cart-item .ci-remove { position: absolute; top: 8px; right: 8px; color: var(--text-3); font-size: 16px; padding: 2px; }
.qty-ctl.sm button { width: 28px; height: 28px; font-size: 16px; }
.qty-ctl.sm span { min-width: 28px; font-size: 13.5px; }

.free-bar { margin: 8px 14px; background: #fff; border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); font-size: 12.5px; }
.free-bar .fb-track { height: 8px; background: var(--border); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.free-bar .fb-fill { height: 100%; background: var(--grad); border-radius: 4px; transition: width .4s; }

.cart-summary { margin: 4px 14px 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.cs-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 5px 0; color: var(--text-2); }
.cs-row.total { border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 10px; font-size: 16px; font-weight: 800; color: var(--text); }
.cs-row.total span:last-child { color: var(--primary-dark); font-size: 19px; }

.empty-state { text-align: center; padding: 70px 30px; }
.empty-state .e-ico { font-size: 60px; margin-bottom: 14px; }
.empty-state h3 { font-size: 16px; margin-bottom: 6px; }
.empty-state p { font-size: 13px; color: var(--text-2); margin-bottom: 18px; }

/* ---------- 结算表单 ---------- */
.checkout-wrap { padding: 12px 14px 20px; }
.co-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; margin-bottom: 12px;
}
.co-card h3 { font-size: 14.5px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.co-card h3 .step-n {
  width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: #fff;
  font-size: 11px; display: flex; align-items: center; justify-content: center;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 12px; outline: none; background: #fdfcfe;
  transition: border .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field .hint { font-size: 11px; color: var(--text-3); }

.pay-option {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 12px; display: flex; align-items: center; gap: 10px; cursor: pointer;
  transition: .15s;
}
.pay-option.on { border-color: var(--primary); background: var(--primary-light); }
.pay-option .po-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--success-bg); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; }
.pay-option .po-info { flex: 1; }
.pay-option .po-title { font-size: 14px; font-weight: 700; }
.pay-option .po-desc { font-size: 11.5px; color: var(--text-2); }

.co-summary { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.co-item { display: flex; gap: 8px; padding: 6px 0; font-size: 12.5px; align-items: flex-start; }
.co-item img, .co-item .ph { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; background: #faf8fb; flex-shrink: 0; }
.co-item .ph { display: flex; align-items: center; justify-content: center; font-size: 16px; }
.co-item .co-name { flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-item .co-x { color: var(--text-3); flex-shrink: 0; }

.terms-note { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 10px; }

/* ---------- 支付页 ---------- */
.pay-wrap { padding: 16px 14px 30px; }
.pay-card {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 20px 16px; text-align: center; margin-bottom: 14px;
}
.pay-status-ico {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--success-bg); color: var(--success);
  display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.pay-status-ico.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(46,125,50,.3); } 50% { box-shadow: 0 0 0 14px rgba(46,125,50,0); } }
.pay-title { font-size: 17px; font-weight: 800; }
.pay-sub { font-size: 12.5px; color: var(--text-2); margin-top: 5px; }
.pay-amount { font-size: 30px; font-weight: 800; color: var(--primary-dark); margin-top: 10px; }
.pay-order-no { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.qr-box {
  background: #fff; border: 2px dashed var(--border); border-radius: 20px;
  padding: 18px; margin: 14px 0; text-align: center;
}
.qr-box img { width: 220px; height: 220px; margin: 0 auto; border-radius: 12px; background: #fff; }
.qr-box .qr-hint { font-size: 12.5px; color: var(--text-2); margin-top: 10px; }
.qr-box .qr-hint b { color: var(--primary); }

.pix-code-box { margin-top: 12px; text-align: left; }
.pix-code-box h4 { font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: var(--text-2); }
.pix-code {
  display: flex; align-items: center; gap: 8px;
  background: #f8f6fa; border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.pix-code code {
  flex: 1; font-size: 11px; color: var(--text-2);
  word-break: break-all; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.btn-copy { background: var(--primary-light); color: var(--primary); font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 999px; flex-shrink: 0; }
.btn-copy.copied { background: var(--success-bg); color: var(--success); }

.pay-countdown { font-size: 12.5px; color: var(--warning); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; }
.pay-help { margin-top: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.pay-help a { color: #25d366; font-weight: 700; }

/* ---------- 订单查询/详情 ---------- */
.track-form { padding: 20px 16px; }
.order-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; margin: 12px 14px;
}
.order-status-badge { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.os-pending { background: var(--warning-bg); color: var(--warning); }
.os-paid { background: var(--success-bg); color: var(--success); }
.os-shipped { background: #e3f2fd; color: #c2185b; }
.os-completed { background: var(--success-bg); color: var(--success); }
.os-cancelled, .os-failed { background: #fdecea; color: var(--danger); }

.order-timeline { margin: 14px 0; }
.tl-step { display: flex; gap: 10px; position: relative; padding-bottom: 18px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--border); }
.tl-step:last-child::before { display: none; }
.tl-dot {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--border); color: var(--text-3);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  z-index: 1;
}
.tl-step.done .tl-dot { background: var(--success); color: #fff; }
.tl-step.now .tl-dot { background: var(--primary); color: #fff; box-shadow: 0 0 0 5px var(--primary-light); }
.tl-step .tl-info { padding-top: 2px; }
.tl-step .tl-title { font-size: 13.5px; font-weight: 700; }
.tl-step .tl-time { font-size: 11.5px; color: var(--text-3); }

.info-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
.info-row:last-child { border-bottom: 0; }
.info-row .k { color: var(--text-2); }
.info-row .v { font-weight: 600; text-align: right; max-width: 60%; }

/* ---------- 静态页 ---------- */
.page-body { padding: 16px; background: #fff; min-height: 60vh; }
.page-body h3 { margin: 14px 0 6px; font-size: 16px; }
.page-body p, .page-body li { font-size: 13.5px; color: var(--text-2); line-height: 1.8; }
.page-body ul { padding-left: 18px; list-style: disc; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%) translateY(-120%);
  z-index: 100; background: rgba(33, 33, 33, .92); color: #fff;
  font-size: 13px; font-weight: 600; padding: 11px 20px; border-radius: 999px;
  box-shadow: var(--shadow-lg); transition: transform .3s ease; max-width: 90vw;
  text-align: center; pointer-events: none;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- 错误提示 ---------- */
.alert { font-size: 12.5px; padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 10px; }
.alert-error { background: #fdecea; color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--success); }

/* 语言切换弹出 */
.lang-sheet {
  position: fixed; inset: 0; z-index: 80; display: none;
  background: rgba(0,0,0,.4); align-items: flex-end; justify-content: center;
}
.lang-sheet.show { display: flex; }
.lang-sheet .ls-box {
  background: #fff; width: 100%; max-width: 480px;
  border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + var(--safe-bottom));
}
.lang-sheet .ls-title { font-size: 15px; font-weight: 800; margin-bottom: 12px; text-align: center; }
.lang-sheet .ls-item {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
}
.lang-sheet .ls-item.on { background: var(--primary-light); color: var(--primary); }
.lang-sheet .ls-close { text-align: center; padding-top: 12px; color: var(--text-3); font-size: 13px; }


/* ============ 虚拟购买通知弹窗 ============ */
.proof-wrap {
  position: fixed; left: 12px; bottom: calc(72px + var(--safe-bottom, 0px));
  z-index: 999; max-width: 340px; width: calc(100% - 24px);
}
.proof-card {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #cfe4ff; border-left: 4px solid var(--primary);
  border-radius: 14px; padding: 10px 12px; box-shadow: 0 6px 20px rgba(233,30,99,.18);
  transform: translateY(24px); opacity: 0; transition: all .5s cubic-bezier(.2,.8,.3,1.1);
  animation: proof-in .5s forwards;
}
.proof-wrap.show .proof-card { transform: translateY(0); opacity: 1; }
.proof-wrap:not(.show) .proof-card { animation: proof-out .5s forwards; }
@keyframes proof-in { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes proof-out { from { transform: translateY(0); opacity: 1; } to { transform: translateY(24px); opacity: 0; } }
.proof-card .pf-ava {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none;
}
.proof-card .pf-txt { font-size: 12.5px; line-height: 1.35; color: var(--text-2); }
.proof-card .pf-txt b { color: var(--text-1); font-weight: 700; }
.proof-card .pf-txt small { display: block; color: var(--text-3); margin-top: 2px; font-size: 11px; }
.proof-card .pf-x { margin-left: auto; color: var(--text-3); font-size: 12px; padding: 4px; }

/* ============ 信任背书条 ============ */
.trust-bar {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 12px; margin: 8px 0;
}
.trust-bar::-webkit-scrollbar { display: none; }
.trust-item {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  background: #fff; border: 1px solid #f8c3d8; border-radius: 999px;
  padding: 6px 10px; font-size: 11.5px; font-weight: 600; color: #c2185b; white-space: nowrap;
}
.trust-item i { font-style: normal; font-size: 14px; }

/* ============ 限时特惠横幅 ============ */
.flash-bar {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, #e91e63, #3f9bff);
  color: #fff; border-radius: 14px; margin: 10px 12px; padding: 10px 14px;
}
.flash-bar .fb-ico { font-size: 18px; }
.flash-bar .fb-txt { flex: 1; font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.flash-bar .fb-time {
  background: rgba(255,255,255,.22); border-radius: 8px; padding: 5px 8px;
  font-family: 'Consolas', 'Courier New', monospace; font-size: 13px; font-weight: 800; letter-spacing: 1px;
}
.flash-bar .fb-time i { font-style: normal; font-size: 10px; opacity: .8; margin-right: 2px; }

/* ============ 低库存 / 热卖提示 ============ */
.stock-warn {
  display: inline-flex; align-items: center; gap: 4px;
  color: #e53935; font-size: 12px; font-weight: 700;
  background: #ffeaed; border-radius: 8px; padding: 4px 8px;
}
.hot-sold {
  display: inline-flex; align-items: center; gap: 4px;
  color: #2e7d32; font-size: 11.5px; font-weight: 700;
  background: #e8f5e9; border-radius: 8px; padding: 4px 8px;
}

/* ============ 邀请免单横幅 ============ */
.invite-card {
  border: 1.5px dashed var(--primary); border-radius: 16px;
  background: linear-gradient(135deg, #f0f7ff, #fff); padding: 14px;
  margin: 12px 0;
}
.invite-card .ic-title { font-size: 14px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.invite-card .ic-progress { display: flex; align-items: center; gap: 8px; margin: 8px 0 10px; }
.invite-card .ic-bar { flex: 1; height: 8px; background: #cfe4ff; border-radius: 99px; overflow: hidden; }
.invite-card .ic-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #3f9bff); border-radius: 99px; transition: width .5s; }
.invite-card .ic-num { font-size: 12px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.invite-card .ic-link {
  display: flex; align-items: center; gap: 8px; background: #f0f7ff;
  border: 1px solid #cfe4ff; border-radius: 10px; padding: 8px 10px;
}
.invite-card .ic-link input { flex: 1; border: 0; background: transparent; font-size: 12px; color: var(--text-2); outline: none; min-width: 0; }
.invite-card .ic-copy { flex: none; font-size: 12px; font-weight: 700; color: var(--primary); background: #e0efff; border-radius: 8px; padding: 6px 10px; }
.invite-card .ic-wa {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #25d366; color: #fff; border-radius: 10px; padding: 9px 0;
  font-size: 12.5px; font-weight: 800; margin-top: 8px; text-decoration: none;
}

/* ============ 物流轨迹时间线 ============ */
.tracking-tl { margin: 12px 0; }
.tracking-tl .tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.tracking-tl .tl-item::before {
  content: ''; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: #cfe4ff;
}
.tracking-tl .tl-item:last-child::before { display: none; }
.tracking-tl .tl-dot {
  flex: none; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  border: 2px solid var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--primary); position: relative; z-index: 1;
}
.tracking-tl .tl-item.done .tl-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.tracking-tl .tl-item.todo .tl-dot { border-color: #b9d4f5; color: #93b8e0; }
.tracking-tl .tl-body { flex: 1; }
.tracking-tl .tl-label { font-size: 13px; font-weight: 700; color: var(--text-1); }
.tracking-tl .tl-time { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.tracking-tl .tl-item.todo .tl-label { color: var(--text-3); font-weight: 600; }

/* ============================================================
   TechNova 信任增强：页脚 / WhatsApp悬浮 / 结算安全承诺 / 首页保障卡
   ============================================================ */
.app-footer { background:#12203a; color:#c7d2e3; padding:20px 16px 90px; font-size:12.5px; line-height:1.6; }
.app-footer a { color:#8fc1ff; }
.af-safe { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:14px; }
.af-safe span { background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); border-radius:10px; padding:8px 10px; display:flex; align-items:center; gap:7px; font-weight:600; color:#e8eef7; }
.af-safe i { font-style:normal; }
.af-brand { margin-bottom:12px; }
.af-logo { font-size:17px; font-weight:800; color:#fff; }
.af-tag { color:#8fa3bd; font-size:12px; }
.af-links { display:flex; flex-wrap:wrap; gap:6px 14px; margin-bottom:14px; padding-bottom:14px; border-bottom:1px solid rgba(255,255,255,.1); }
.af-contact { margin-bottom:10px; display:flex; flex-direction:column; gap:6px; }
.af-wa { font-weight:700; color:#4ade80 !important; }
.af-company { display:flex; flex-direction:column; gap:3px; color:#8fa3bd; font-size:11.5px; margin-bottom:10px; }
.af-copy { color:#6b7f99; font-size:11px; border-top:1px solid rgba(255,255,255,.08); padding-top:10px; }

.wa-float { position:fixed; right:16px; bottom:92px; z-index:60; width:54px; height:54px; border-radius:50%;
  background:#25d366; display:flex; align-items:center; justify-content:center; box-shadow:0 6px 20px rgba(37,211,102,.45); }
.wa-float::after { content:""; position:absolute; inset:0; border-radius:50%; background:rgba(37,211,102,.4); animation:waPulse 2s infinite; z-index:-1; }
@keyframes waPulse { 0%{transform:scale(1);opacity:.8} 70%{transform:scale(1.5);opacity:0} 100%{opacity:0} }

.co-safe { margin-top:12px; background:var(--primary-light); border:1px dashed color-mix(in srgb, var(--primary) 45%, transparent); border-radius:12px; padding:12px; }
.co-safe-t { font-weight:800; font-size:13px; color:var(--primary-dark); margin-bottom:10px; }
.co-safe-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.cs-item { display:flex; gap:8px; align-items:flex-start; }
.cs-item i { font-style:normal; font-size:16px; }
.cs-item b { display:block; font-size:12.5px; color:var(--text); }
.cs-item small { display:block; font-size:11px; color:var(--text-2); }
.cs-item a { color:var(--primary); font-weight:600; }

.guarantee-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:10px 12px; }
.gu-item { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:10px; display:flex; flex-direction:column; gap:2px; box-shadow:var(--shadow); }
.gu-item i { font-style:normal; font-size:18px; }
.gu-item b { font-size:12.5px; font-weight:800; }
.gu-item small { font-size:11px; color:var(--text-2); }

/* ============================================================
   转化增强：PIX 折扣 / 评价墙
   ============================================================ */
.pd-pix { display:flex; align-items:center; gap:8px; background:#e8f5e9; border:1px solid #c8e6c9; border-radius:12px; padding:9px 12px; margin:10px 0; }
.pd-pix i { font-style:normal; font-size:17px; }
.pd-pix span { font-size:12.5px; color:#2e7d32; font-weight:600; }
.pd-pix b { font-size:17px; color:#1b5e20; margin-left:auto; }
.pd-pix em { font-style:normal; font-size:11.5px; background:#2e7d32; color:#fff; border-radius:99px; padding:2px 8px; font-weight:700; }

.price-pix { display:block; font-size:11.5px; color:#2e7d32; font-weight:700; margin-top:3px; }

.rv-item { padding:12px 0; border-bottom:1px solid var(--border); }
.rv-item:last-child { border-bottom:0; }
.rv-head { display:flex; align-items:center; gap:9px; margin-bottom:6px; }
.rv-avatar { width:34px; height:34px; border-radius:50%; background:var(--grad); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:14px; flex-shrink:0; }
.rv-meta { flex:1; min-width:0; }
.rv-name { font-size:13px; font-weight:700; }
.rv-city { font-size:11.5px; color:var(--text-3); font-weight:400; }
.rv-stars { font-size:11.5px; color:#f9a825; letter-spacing:1px; }
.rv-ver { color:#2e7d32; font-size:10.5px; font-weight:600; letter-spacing:0; }
.rv-date { font-size:11px; color:var(--text-3); flex-shrink:0; }
.rv-text { font-size:12.5px; color:var(--text-2); line-height:1.6; }

/* 商品页：为悬浮购买栏 + 底部导航预留空间 */
body:has(.pd-buybar) { padding-bottom: 150px; }

.pd-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 3; pointer-events: none; }
.pd-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.28); transition: all .25s; display: block; }
.pd-dots span.on { width: 20px; border-radius: 999px; background: #e91e63; }
.pd-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 34px; height: 34px; border: none; border-radius: 50%; background: rgba(255,255,255,.92); color: #333; font-size: 22px; line-height: 30px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; }
.pd-prev { left: 8px; } .pd-next { right: 8px; }
.pd-nav:active { transform: translateY(-50%) scale(.92); }
/* ===== 商品视频 ===== */
.pd-video-player { position: relative; margin: 12px 0 4px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.pvp-thumb { position: absolute; inset: 0; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pvp-thumb.pvp-noimg { background: linear-gradient(135deg, #14142a, #2c2c44); }
.pvp-play { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.94); color: #e91e63; display: flex; align-items: center; justify-content: center; font-size: 24px; padding-left: 5px; box-shadow: 0 4px 18px rgba(0,0,0,.38); transition: transform .15s; }
.pvp-thumb:active .pvp-play { transform: scale(.88); }
.pd-video-player iframe, .pd-video-player video { width: 100%; height: 100%; display: block; border: none; }
.rv-video-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rv-video { flex: 0 0 148px; background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; padding: 0; text-align: left; cursor: pointer; }
.rv-video-thumb { aspect-ratio: 9 / 16; background: linear-gradient(160deg, #1a1a2e, #333); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; }
.rv-video-thumb span { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; }
.rv-video-title { padding: 7px 8px; font-size: 11.5px; color: #333; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-modal { position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; padding: 20px; }
.video-modal.show { display: flex; }
.video-box { position: relative; width: 100%; max-width: 420px; background: #000; border-radius: 14px; overflow: hidden; }
.video-close { position: absolute; top: 8px; right: 8px; z-index: 5; width: 32px; height: 32px; border: none; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 15px; cursor: pointer; }
.video-frame { aspect-ratio: 9 / 16; width: 100%; background: #000; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; display: block; border: none; }