/* ============================================================
   全站通用样式（H5 App 风格）
   用于 index.php / public/qbsp.php / public/gwc.php / user/index.php
   ============================================================ */

:root {
  --brand: #4a7cf7;
  --brand-2: #7aa6ff;
  --brand-soft: #eef4ff;
  --ink: #2b3445;
  --muted: #8b93a7;
  --bg: #eef3fb;
  --line: #eef1f7;
  --danger: #ff4d4f;
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; }
input, textarea, button, select { font-family: inherit; }

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: 86px;
  box-shadow: 0 0 40px rgba(30, 60, 120, .08);
  position: relative;
  overflow-x: hidden;
}

/* ---------------- 顶部栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, #5b8cf8, #4a7cf7);
  padding: 10px 14px;
  color: #fff;
}

.topbar-inner {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .5px;
}

.topbar .back {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
}

.topbar .back svg { width: 18px; height: 18px; }

.capsule {
  position: absolute;
  right: 0;
  top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .38);
  font-size: 12px;
  line-height: 1;
  color: #fff;
}

.capsule i { width: 1px; height: 12px; background: rgba(255, 255, 255, .45); }

/* ---------------- 品牌区 ---------------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #4a7cf7 0%, #7aa6ff 60%, #a9c6ff 100%);
  padding: 10px 18px 52px;
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: -20%;
  top: -60%;
  width: 140%;
  height: 140%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .25), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
}

.hero-logo {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 7px;
  box-shadow: 0 8px 20px rgba(15, 45, 120, .28);
  flex: 0 0 auto;
}

.hero h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(20, 50, 120, .25);
}

.hero .en {
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 3px;
  opacity: .85;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------- 标语带 ---------------- */
.band {
  position: relative;
  z-index: 3;
  margin: -34px 14px 0;
  border-radius: 16px;
  background: linear-gradient(120deg, #6f9bf7, #4a7cf7);
  color: #fff;
  padding: 16px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(40, 90, 200, .22);
  overflow: hidden;
}

.band-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  text-shadow: 0 1px 6px rgba(20, 50, 120, .2);
}

.band-sub { margin-top: 4px; font-size: 11px; opacity: .85; }
.band-art { flex: 0 0 96px; opacity: .95; }
.band-art svg { width: 96px; height: auto; display: block; }

/* ---------------- 五个入口 ---------------- */
.quick {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 18px 10px 4px;
}

.q {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.q-ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(40, 70, 140, .10);
  transition: transform .15s ease;
}

.q:active .q-ico { transform: scale(.94); }
.q-ico svg { width: 26px; height: 26px; }
.q span { font-size: 11px; color: #4a5568; white-space: nowrap; }

/* ---------------- 分类胶囊 ---------------- */
.chips {
  display: flex;
  gap: 10px;
  padding: 14px 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px 7px 8px;
  font-size: 12px;
  color: #4a5568;
  box-shadow: 0 4px 12px rgba(40, 70, 140, .07);
}

.chip img { width: 20px; height: 20px; object-fit: contain; }

.chip.on {
  background: linear-gradient(120deg, #4a7cf7, #6f9bf7);
  color: #fff;
  box-shadow: 0 6px 16px rgba(60, 110, 230, .3);
}

/* ---------------- 公告 ---------------- */
.notice {
  margin: 12px 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  color: #5a6478;
  box-shadow: 0 4px 12px rgba(40, 70, 140, .05);
}

.notice b { flex: 0 0 auto; color: #ff8a3d; font-weight: 600; font-size: 12px; }

.notice span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------- 卡片 ---------------- */
.card {
  margin: 14px 14px 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(40, 70, 140, .08);
  overflow: hidden;
}

/* ---------------- 客服卡片 ---------------- */
.owner-top { display: flex; gap: 14px; padding: 16px 16px 14px; }

.owner-avatar {
  width: 66px;
  height: 66px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef3fb;
  flex: 0 0 auto;
}

.owner-name { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 700; }
.owner-name svg { width: 16px; height: 16px; }
.owner-sub { margin-top: 6px; font-size: 12px; color: var(--muted); }
.owner-meta { display: flex; gap: 18px; margin-top: 12px; font-size: 12px; color: #5a6478; }

.owner-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-meta svg { width: 14px; height: 14px; flex: 0 0 auto; }

.owner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: linear-gradient(90deg, #4a7cf7, #6f9bf7);
  color: #fff;
  font-size: 13px;
}

.owner-bar svg { width: 16px; height: 16px; }

/* ---------------- 区块标题 ---------------- */
.sec { margin: 20px 14px 0; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sec-head h2 { font-size: 17px; font-weight: 700; }
.sec-head a { font-size: 13px; color: var(--brand); }
.sec-head .count { font-size: 12px; color: var(--muted); }

/* ---------------- 横向列表行 ---------------- */
.list { display: flex; flex-direction: column; gap: 10px; }

.row {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(40, 70, 140, .05);
  transition: transform .15s ease;
}

.row:active { transform: scale(.99); }
.row:nth-child(even) { background: #f7f9fd; box-shadow: none; }

.row-img {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #eef3fb;
}

.row-img img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute;
  left: 0;
  top: 0;
  background: #3f8cff;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 10px 0 10px 0;
}

.row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
}

.row-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}

.row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price { color: var(--danger); font-weight: 700; font-size: 16px; }
.price small { font-size: 11px; font-weight: 500; }

.stock {
  font-size: 11px;
  color: var(--muted);
  background: #eef3fb;
  border-radius: 999px;
  padding: 3px 8px;
}

/* ---------------- 搜索栏 ---------------- */
.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 14px 0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 8px 8px 14px;
  box-shadow: 0 6px 16px rgba(40, 70, 140, .07);
}

.searchbar svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }

.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 14px;
  background: transparent;
  color: var(--ink);
}

.searchbar button {
  flex: 0 0 auto;
  border: 0;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(120deg, #4a7cf7, #6f9bf7);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* ---------------- 商品网格 ---------------- */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 14px 0;
}

.p-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(40, 70, 140, .06);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease;
}

.p-card:active { transform: scale(.98); }

.p-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #eef3fb;
  overflow: hidden;
}

.p-img img { width: 100%; height: 100%; object-fit: cover; }

.p-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; }

.p-title {
  font-size: 13px;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
}

.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }

.tag {
  font-size: 10px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 6px;
  padding: 3px 6px;
  white-space: nowrap;
}

/* ---------------- 表单 / 按钮 ---------------- */
.field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.field > label { flex: 0 0 58px; font-size: 13px; color: #5a6478; }

.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 14px;
  background: transparent;
  color: var(--ink);
}

.field input:disabled { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(120deg, #4a7cf7, #6f9bf7);
  color: #fff;
  width: 100%;
  cursor: pointer;
}

.btn:active { opacity: .9; }
.btn.ghost { background: #f1f5fd; color: var(--brand); }
.btn.danger { background: #fff1f0; color: var(--danger); }
.btn.sm { height: 34px; font-size: 13px; border-radius: 10px; width: auto; padding: 0 14px; }

/* ---------------- 空状态 ---------------- */
.empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 56px 20px;
}

.empty svg { width: 64px; height: 64px; margin: 0 auto 14px; opacity: .45; }
.empty .btn { width: auto; padding: 0 26px; margin-top: 18px; }

/* ---------------- 我的页面 ---------------- */
.profile {
  margin: 0;
  padding: 22px 18px 26px;
  background: linear-gradient(180deg, #5b8cf8, #4a7cf7 60%, #7aa6ff);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .7);
  background: #fff;
  object-fit: cover;
  flex: 0 0 auto;
}

.profile-name { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; }

.profile-name .pill {
  font-size: 10px;
  font-weight: 500;
  background: rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 3px 8px;
}

.profile-sub { margin-top: 6px; font-size: 12px; opacity: .85; }

.stats {
  display: flex;
  margin: -16px 14px 0;
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(40, 70, 140, .10);
  padding: 16px 0;
}

.stat { flex: 1; text-align: center; }

.stat b { font-size: 18px; font-weight: 700; display: block; }
.stat span { font-size: 11px; color: var(--muted); display: block; margin-top: 4px; }

.menu { padding: 4px 0; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.menu-item:last-child { border-bottom: 0; }
.menu-item:active { background: #f7f9fd; }
.menu-item .mi-ico { width: 22px; height: 22px; flex: 0 0 auto; }
.menu-item .mi-ico svg { width: 22px; height: 22px; }
.menu-item .chev { margin-left: auto; width: 16px; height: 16px; color: #c3cad8; }

/* ---------------- 弹窗 ---------------- */
.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 35, 70, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sheet-mask.open { opacity: 1; visibility: visible; }

.sheet {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  transform: translateY(12px);
  transition: transform .22s ease;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

.sheet-mask.open .sheet { transform: none; }

.sheet-head {
  padding: 16px 18px 4px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-head .x {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f4fa;
  color: #7d879b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  border: 0;
}

.sheet-body { padding: 12px 18px 2px; overflow: auto; }
.sheet-foot { padding: 12px 18px 16px; display: flex; gap: 10px; }
.sheet-foot .btn { flex: 1; }

/* ---------------- 底部 Tab ---------------- */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 7px 0 9px;
  z-index: 40;
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #98a1b3;
}

.tab svg { width: 22px; height: 22px; }
.tab.active { color: var(--brand); }

/* ---------------- 窄屏适配 ---------------- */
@media (max-width: 400px) {
  .q-ico { width: 46px; height: 46px; border-radius: 13px; }
  .q-ico svg { width: 23px; height: 23px; }
  .q span { font-size: 10px; }
  .hero h1 { font-size: 21px; letter-spacing: 1px; }
  .band-art { flex-basis: 82px; }
  .band-art svg { width: 82px; }
  .row-img { width: 76px; height: 76px; }
  .owner-avatar { width: 58px; height: 58px; }
  .grid { gap: 8px; margin: 10px 12px 0; }
  .p-title { font-size: 12px; }
}

/* ============================================================
   商品详情
   ============================================================ */
.detail-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}

.detail-img img { width: 100%; height: 100%; object-fit: cover; }

.detail-info {
  background: #fff;
  border-radius: var(--radius);
  margin: 12px 14px 0;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(40, 70, 140, .07);
}

.detail-price { color: var(--danger); font-weight: 800; font-size: 26px; line-height: 1; }
.detail-price small { font-size: 14px; font-weight: 600; }

.detail-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  margin-top: 12px;
  word-break: break-all;
}

.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.chip-tag {
  font-size: 11px;
  color: #5a6478;
  background: #f2f5fb;
  border-radius: 8px;
  padding: 5px 10px;
}

.detail-desc {
  background: #fff;
  border-radius: var(--radius);
  margin: 12px 14px 0;
  padding: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: #4a5568;
  word-break: break-word;
  overflow: hidden;
}

.detail-desc img { max-width: 100% !important; height: auto !important; border-radius: 8px; }
.detail-desc h1, .detail-desc h2, .detail-desc h3 { font-size: 15px; margin: 8px 0; }

.desc-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }

/* 详情页底部操作栏 */
.detail-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 12px;
  z-index: 40;
}

.detail-bar .btn { flex: 1; }

.ico-btn {
  flex: 0 0 auto;
  width: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  color: #7d879b;
  border: 0;
  background: transparent;
}

.ico-btn svg { width: 22px; height: 22px; }

/* ============================================================
   下单 / 支付
   ============================================================ */
.field.col {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.field.col > label { flex: none; }

.field textarea {
  border: 0;
  outline: 0;
  font-size: 14px;
  resize: none;
  min-height: 72px;
  background: transparent;
  color: var(--ink);
  width: 100%;
  line-height: 1.5;
}

.pay-options { display: flex; gap: 10px; }

.pay-opt {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #fff;
  cursor: pointer;
  transition: .15s;
  font-size: 11px;
  color: #5a6478;
}

.pay-opt input { display: none; }
.pay-opt img { width: 30px; height: 30px; object-fit: contain; }

.pay-opt.on {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: 0 0 0 3px rgba(74, 124, 247, .10);
}

.pay-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px 12px;
  z-index: 40;
}

.pay-bar .sum { font-size: 11px; color: var(--muted); }
.pay-bar .sum b { display: block; font-size: 22px; color: var(--danger); font-weight: 800; margin-top: 2px; }
.pay-bar .btn { flex: 0 0 150px; }

/* ============================================================
   订单 / 工单
   ============================================================ */
.status { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; border-radius: 999px; padding: 3px 9px; }
.status.ok { color: #0f9d6e; background: #e8f8f1; }
.status.no { color: #e5484d; background: #fdecec; }

.order-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.link-btn { font-size: 12px; color: var(--brand); background: transparent; border: 0; padding: 0; }

/* 分段切换 */
.tabs {
  display: flex;
  margin: 14px 14px 0;
  background: #fff;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(40, 70, 140, .06);
}

.tabs button {
  flex: 1;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 14px;
  color: #5a6478;
  font-weight: 500;
}

.tabs button.on {
  background: linear-gradient(120deg, #4a7cf7, #6f9bf7);
  color: #fff;
  font-weight: 600;
}

/* 工单卡片 */
.gd-item {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(40, 70, 140, .05);
}

.gd-item .no { font-size: 12px; color: var(--muted); }
.gd-item .q { font-size: 14px; margin-top: 8px; line-height: 1.6; word-break: break-word; }
.gd-item .a { margin-top: 10px; background: #f7f9fd; border-radius: 10px; padding: 10px; font-size: 13px; color: #4a5568; line-height: 1.6; }
.gd-item .t { margin-top: 10px; font-size: 11px; color: #a6aebe; }

/* ============================================================
   登录 / 注册
   ============================================================ */
.auth {
  min-height: 100vh;
  padding: 46px 26px 40px;
  background: #eef3fb;
  position: relative;
  overflow: hidden;
}

.auth::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 300px;
  background: linear-gradient(180deg, #5b8cf8, #7aa6ff);
  border-radius: 0 0 30px 30px;
}

.auth > * { position: relative; z-index: 1; }

.auth-logo {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 10px 24px rgba(20, 60, 150, .22);
}

.auth-logo svg { width: 34px; height: 34px; }

.auth h1 {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.auth .sub { text-align: center; font-size: 12px; color: rgba(255, 255, 255, .85); margin-top: 6px; }

.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px 18px;
  margin-top: 26px;
  box-shadow: 0 16px 40px rgba(30, 60, 130, .10);
}

.auth-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f6f8fc;
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 12px;
}

.auth-field svg { width: 18px; height: 18px; color: #9aa3b5; flex: 0 0 auto; }

.auth-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
}

.auth-field .yzm-img {
  width: 84px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  cursor: pointer;
  background: #eef3fb;
}

.auth .btn { margin-top: 6px; }

/* 隐私协议勾选 */
.agree {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #5a6478;
  margin: 4px 2px 14px;
  line-height: 1.5;
}

.agree input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.agree a { color: var(--brand); }

.privacy-text {
  font-size: 13px;
  line-height: 1.85;
  color: #4a5568;
  white-space: pre-wrap;
  word-break: break-word;
}

.auth-link {
  text-align: center;
  font-size: 13px;
  color: #8b93a7;
  margin-top: 18px;
}

.auth-link a { color: var(--brand); font-weight: 600; }


/* ============================================================
   收货地址
   ============================================================ */
.addr-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(40, 70, 140, .05);
  border: 1.5px solid transparent;
  cursor: pointer;
}

.addr-item.on {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.addr-item input[type="radio"] { display: none; }

.addr-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cfd6e4;
  flex: 0 0 auto;
  margin-top: 2px;
  position: relative;
  box-sizing: border-box;
}

.addr-item.on .addr-radio { border-color: var(--brand); }

.addr-item.on .addr-radio::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.addr-body { flex: 1; min-width: 0; }

.addr-name { font-size: 14px; font-weight: 600; color: var(--ink); }

.addr-phone {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
}

.addr-default {
  font-size: 10px;
  color: #fff;
  background: var(--brand);
  border-radius: 6px;
  padding: 2px 6px;
  margin-left: 6px;
  font-weight: 500;
}

.addr-text {
  font-size: 13px;
  color: #5a6478;
  margin-top: 6px;
  line-height: 1.5;
  word-break: break-all;
}

.addr-ops { display: flex; gap: 14px; margin-top: 10px; }
.addr-ops a { font-size: 12px; color: var(--brand); }

.addr-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: #fff;
  border: 1.5px dashed #c9d4ea;
  border-radius: 14px;
  padding: 14px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
  cursor: pointer;
}

.addr-add svg { width: 16px; height: 16px; }

.field select.sel {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafd;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
}