/* ============================================================
   PC 商城样式（参考「权益商城」卡片式布局）
   ============================================================ */

:root {
  --w-brand: #3b6cff;
  --w-brand-2: #5b8cff;
  --w-deep: #1e3fa8;
  --w-ink: #1f2a44;
  --w-text: #5a6478;
  --w-muted: #8b93a7;
  --w-bg: #eef1f8;
  --w-line: #eef1f7;
  --w-orange: #ff6b35;
  --w-r: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--w-brand); }
img { display: block; border: 0; }
ul, li { list-style: none; }
input, button, textarea, select { font-family: inherit; font-size: 14px; outline: none; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶部导航 ---------------- */
.hd { background: transparent; }

.hd-in {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.logo .mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b6cff, #6f9bff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 18px rgba(59, 108, 255, .28);
}

.logo .mark svg { width: 22px; height: 22px; }
.logo b { font-size: 21px; color: var(--w-ink); letter-spacing: 1px; }
.logo span { display: block; font-size: 9px; letter-spacing: 2.5px; color: #a3abbd; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 30px; margin-left: 6px; }

.nav-links a {
  font-size: 15px;
  color: #3a4560;
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--w-brand); }

.nav-links a.on { color: var(--w-brand); font-weight: 600; }

.nav-links a.on::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -2px;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--w-brand);
}

.hd-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.search-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f4fb;
  border-radius: 999px;
  height: 42px;
  width: 300px;
  padding: 0 5px 0 18px;
  border: 1px solid transparent;
  transition: .15s;
}

.search-pill:focus-within { background: #fff; border-color: #cfdcff; box-shadow: 0 0 0 3px rgba(59, 108, 255, .10); }
.search-pill input { flex: 1; min-width: 0; border: 0; background: none; color: var(--w-ink); }

.search-pill button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #3b6cff, #6f9bff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-pill button svg { width: 16px; height: 16px; }

.btn-pill {
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  border: 1px solid #dfe6f5;
  background: #fff;
  color: #3a4560;
  cursor: pointer;
}

.btn-pill:hover { border-color: var(--w-brand); color: var(--w-brand); }

.btn-pill.solid {
  background: linear-gradient(135deg, #3b6cff, #6f9bff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(59, 108, 255, .26);
}

.btn-pill.solid:hover { color: #fff; opacity: .95; }

.hd-user { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #3a4560; }
.hd-user img { width: 34px; height: 34px; border-radius: 50%; background: #eef1f8; object-fit: cover; }

/* ---------------- 首屏大卡 ---------------- */
.hero-card {
  background: #fff;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(35, 60, 120, .07);
  margin-top: 4px;
}

.hero-grid { display: grid; grid-template-columns: 250px 1fr 288px; gap: 16px; }

/* 左侧分类 */
.cat-side {
  background: linear-gradient(165deg, #3b6cff 0%, #2f5be0 55%, #2a52cf 100%);
  border-radius: 18px;
  padding: 20px 0 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  box-shadow: 0 12px 26px rgba(47, 91, 224, .22);
}

.cat-side .ttl {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px 14px;
  font-size: 15px;
  font-weight: 600;
}

.cat-side .ttl svg { width: 18px; height: 18px; }

.cat-side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, .94);
  transition: background .15s;
}

.cat-side a:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.cat-side a img { width: 18px; height: 18px; object-fit: contain; flex: 0 0 auto; }
.cat-side a .chev { margin-left: auto; opacity: .55; width: 14px; height: 14px; }

.cat-side .all {
  margin: auto 18px 0;
  height: 46px;
  border-radius: 999px;
  background: #fff;
  color: #2f5be0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cat-side .all:hover { background: #f2f6ff; color: #2f5be0; }

/* 中间 */
.hero-center { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 268px;
  padding: 32px 36px;
  color: #fff;
  background: linear-gradient(135deg, #1e3fa8 0%, #2b56d6 55%, #1c3b9e 100%);
}

.banner .bgimg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .07;
}

.banner .inner { position: relative; }

.banner .chips { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }

.banner .chip {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .32);
}

.banner .chip.hl { background: #ffd76a; border-color: #ffd76a; color: #6a4a00; font-weight: 600; }

.banner h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.28;
  text-shadow: 0 4px 18px rgba(0, 20, 80, .25);
}

.banner p { margin-top: 12px; font-size: 14px; opacity: .85; }

.banner .cta {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  background: #fff;
  color: #1e3fa8;
  font-weight: 600;
}

.banner .cta:hover { color: #1e3fa8; background: #f4f7ff; }

.banner .dots { position: absolute; right: 26px; bottom: 22px; display: flex; gap: 6px; }
.banner .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.banner .dots i.on { width: 18px; border-radius: 3px; background: #fff; }

/* 快捷入口 */
.quick-row {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #f2f5fb;
  padding: 12px 6px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  color: #5a6478;
  white-space: nowrap;
}

.quick-item:hover { color: var(--w-brand); }

.quick-item .ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5ff;
  color: #3b6cff;
  transition: transform .15s;
}

.quick-item:hover .ico { transform: translateY(-2px); }
.quick-item .ico svg { width: 21px; height: 21px; }
.quick-item .ico img { width: 24px; height: 24px; object-fit: contain; }

/* 右侧欢迎卡 */
.hero-side {
  background: #fff;
  border: 1px solid #f2f5fb;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 430px;
}

.hs-top { display: flex; align-items: center; gap: 12px; }

.hs-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b6cff, #7ba4ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex: 0 0 auto;
  overflow: hidden;
}

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

.hs-name { font-size: 15px; color: var(--w-ink); font-weight: 600; }
.hs-sub { font-size: 12px; color: var(--w-muted); margin-top: 4px; }

.hs-btns { display: flex; gap: 10px; margin-top: 16px; }

.hs-btns a {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1px solid #dfe6f5;
  color: #3a4560;
}

.hs-btns a.primary {
  background: linear-gradient(135deg, #3b6cff, #6f9bff);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 10px;
  margin-top: 26px;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #5a6478;
}

.feature .fi {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f2f6ff;
  color: #3b6cff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature .fi svg { width: 18px; height: 18px; }

/* ---------------- 公告条 ---------------- */
.notice-bar {
  margin-top: 16px;
  background: #fff;
  border-radius: 16px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  box-shadow: 0 8px 26px rgba(35, 60, 120, .05);
}

.notice-bar .tag {
  background: linear-gradient(135deg, #3b6cff, #5b8cff);
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.notice-bar .txt { flex: 1; min-width: 0; font-size: 14px; color: #4a5568; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-bar .more { font-size: 13px; color: var(--w-muted); white-space: nowrap; }

/* ---------------- 分类药丸 ---------------- */
.tabs-row { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

.tabs-row a {
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  color: #4a5568;
  font-size: 14px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(35, 60, 120, .04);
}

.tabs-row a:hover { color: var(--w-brand); }

.tabs-row a.on {
  background: linear-gradient(135deg, #3b6cff, #5b8cff);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(59, 108, 255, .26);
}

/* ---------------- 区块标题 ---------------- */
.sec { margin-top: 24px; }

.sec-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }

.sec-hd::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--w-brand);
}

.sec-hd h2 { font-size: 19px; font-weight: 700; color: var(--w-ink); }
.sec-hd h2 small { font-size: 12px; font-weight: 400; color: var(--w-muted); margin-left: 8px; }
.sec-hd .more { margin-left: auto; font-size: 13px; color: var(--w-muted); }

/* ---------------- 商品卡片 ---------------- */
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.p-card {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(35, 60, 120, .05);
  transition: transform .18s, box-shadow .18s;
}

.p-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(35, 60, 120, .12); }

.p-card .img { width: 100%; height: 200px; border-radius: 12px; background: #f4f6fb; overflow: hidden; }
.p-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.p-card:hover .img img { transform: scale(1.04); }

.p-card .bd { padding: 10px 4px 4px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.p-card .t {
  font-size: 13px;
  line-height: 1.5;
  color: var(--w-ink);
  height: 3em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.p-card .ft { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.p-card .price { color: var(--w-orange); font-size: 19px; font-weight: 700; }
.p-card .price small { font-size: 12px; }
.p-card .stock { font-size: 11px; color: var(--w-muted); }

.empty-box {
  background: #fff;
  border-radius: 18px;
  padding: 70px 20px;
  text-align: center;
  color: var(--w-muted);
  font-size: 14px;
}

.empty-box .btn { margin-top: 18px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b6cff, #6f9bff);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}

.btn:hover { opacity: .94; color: #fff; }
.btn.ghost { background: #fff; border: 1px solid #dfe6f5; color: #3a4560; }
.btn.ghost:hover { border-color: var(--w-brand); color: var(--w-brand); }
.btn.soft { background: #eef4ff; color: var(--w-brand); }
.btn.soft:hover { background: #e2ecff; }
.btn.danger { background: #fff1f0; color: #e5484d; }
.btn.sm { height: 36px; padding: 0 16px; font-size: 13px; }

/* ---------------- 面包屑 ---------------- */
.crumb { padding: 16px 0 4px; font-size: 13px; color: var(--w-muted); }
.crumb a { color: var(--w-muted); }
.crumb a:hover { color: var(--w-brand); }
.crumb i { font-style: normal; margin: 0 6px; }

/* ---------------- 列表页 ---------------- */
.filter { background: #fff; border-radius: 18px; padding: 10px 22px; margin: 14px 0 18px; }
.filter .row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--w-line); }
.filter .row:last-child { border-bottom: 0; }
.filter .label { color: var(--w-muted); font-size: 13px; flex: 0 0 60px; }
.filter .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.filter .opts a { padding: 5px 14px; border-radius: 999px; font-size: 13px; color: var(--w-text); }
.filter .opts a:hover { color: var(--w-brand); background: #f2f6ff; }
.filter .opts a.on { background: var(--w-brand); color: #fff; }

.list-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 13px; color: var(--w-muted); }
.list-top b { color: var(--w-brand); font-size: 15px; }

/* ---------------- 详情页 ---------------- */
.detail {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 28px;
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  margin-top: 14px;
  box-shadow: 0 10px 30px rgba(35, 60, 120, .05);
}

.detail-gal { border-radius: 16px; overflow: hidden; background: #f7f9fd; }
.detail-gal img { width: 100%; height: 470px; object-fit: contain; }

.detail-info h1 { font-size: 22px; line-height: 1.5; color: var(--w-ink); font-weight: 700; }

.price-box {
  margin-top: 18px;
  background: linear-gradient(90deg, #fff5f0, #fff);
  border-radius: 14px;
  padding: 18px 20px;
}

.price-box .big { color: var(--w-orange); font-size: 34px; font-weight: 800; }
.price-box .big small { font-size: 16px; }
.price-box .meta { margin-top: 8px; font-size: 13px; color: var(--w-muted); }
.price-box .meta span { margin-right: 20px; }

.spec { margin-top: 18px; font-size: 14px; color: var(--w-text); }
.spec span { color: var(--w-muted); margin-right: 8px; }

.buy-actions { display: flex; gap: 12px; margin-top: 26px; }
.buy-actions .btn { height: 48px; font-size: 16px; padding: 0 36px; }

.detail-desc { margin-top: 18px; background: #fff; border-radius: 22px; padding: 22px 26px; }
.detail-desc h3 { font-size: 16px; color: var(--w-ink); padding-bottom: 12px; border-bottom: 1px solid var(--w-line); margin-bottom: 16px; }
.detail-desc .bd { font-size: 14px; line-height: 1.9; color: var(--w-text); word-break: break-word; }
.detail-desc .bd img { max-width: 100%; height: auto; border-radius: 10px; }

/* ---------------- 购物车 ---------------- */
.cart-table { background: #fff; border-radius: 20px; overflow: hidden; margin-top: 14px; }

.cart-table .th,
.cart-table .tr {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1.2fr;
  align-items: center;
  padding: 16px 22px;
  gap: 12px;
}

.cart-table .th { background: #f8faff; font-size: 13px; color: var(--w-muted); }
.cart-table .tr { border-top: 1px solid var(--w-line); }
.cart-table .tr:hover { background: #fafbff; }

.cart-prod { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cart-prod img { width: 74px; height: 74px; border-radius: 10px; object-fit: cover; background: #f4f6fb; }
.cart-prod .name { font-size: 14px; color: var(--w-ink); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.cart-sum {
  margin-top: 16px;
  background: #fff;
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.cart-sum .total { font-size: 14px; color: var(--w-muted); }
.cart-sum .total b { color: var(--w-orange); font-size: 26px; margin-left: 6px; }

/* ---------------- 结算 ---------------- */
.checkout { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; margin-top: 14px; }

.box { background: #fff; border-radius: 20px; padding: 22px 24px; box-shadow: 0 8px 26px rgba(35, 60, 120, .04); }
.box + .box { margin-top: 16px; }
.box h3 { font-size: 16px; color: var(--w-ink); margin-bottom: 16px; }

.addr-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1.5px solid var(--w-line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: .15s;
  background: #fff;
}

.addr-item:hover { border-color: #c9d6f5; }
.addr-item.on { border-color: var(--w-brand); background: #f6f9ff; }

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

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

.addr-item .nm { font-size: 14px; color: var(--w-ink); font-weight: 600; }
.addr-item .nm span { font-weight: 400; color: var(--w-muted); margin-left: 10px; font-size: 13px; }
.addr-item .ad { font-size: 13px; color: var(--w-text); margin-top: 6px; line-height: 1.5; }
.addr-item .tag-def { font-size: 11px; color: #fff; background: var(--w-brand); border-radius: 4px; padding: 2px 6px; margin-left: 8px; }

.pay-opts { display: flex; gap: 12px; }

.pay-opt {
  flex: 1;
  border: 1.5px solid var(--w-line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: #fff;
}

.pay-opt img { width: 26px; height: 26px; object-fit: contain; }
.pay-opt.on { border-color: var(--w-brand); background: #f6f9ff; color: var(--w-brand); }

.checkout-side .box { position: sticky; top: 20px; }
.sum-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--w-muted); padding: 6px 0; }
.sum-line.total { font-size: 14px; color: var(--w-text); border-top: 1px solid var(--w-line); margin-top: 8px; padding-top: 14px; }
.sum-line.total b { color: var(--w-orange); font-size: 26px; }
.checkout-side .btn { width: 100%; margin-top: 16px; height: 46px; }

/* ---------------- 表单 ---------------- */
.form-line { margin-bottom: 14px; }
.form-line label { display: block; font-size: 13px; color: var(--w-muted); margin-bottom: 6px; }

.form-control {
  width: 100%;
  height: 44px;
  border: 1px solid #e3e8f2;
  border-radius: 10px;
  padding: 0 14px;
  color: var(--w-ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

textarea.form-control { height: auto; padding: 10px 14px; min-height: 92px; resize: vertical; line-height: 1.6; }

.form-control:focus { border-color: var(--w-brand); box-shadow: 0 0 0 3px rgba(59, 108, 255, .12); }

.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }

/* ---------------- 登录 / 注册 ---------------- */
.auth-page { min-height: calc(100vh - 180px); display: flex; align-items: center; justify-content: center; padding: 50px 0; }

.auth-card {
  width: 420px;
  background: #fff;
  border-radius: 24px;
  padding: 36px 38px 32px;
  box-shadow: 0 24px 60px rgba(35, 60, 120, .10);
}

.auth-card h1 { font-size: 22px; color: var(--w-ink); text-align: center; }
.auth-card .sub { text-align: center; font-size: 13px; color: var(--w-muted); margin: 8px 0 24px; }
.auth-card .btn { width: 100%; height: 46px; margin-top: 6px; }
.auth-card .foot { text-align: center; font-size: 13px; color: var(--w-muted); margin-top: 18px; }
.auth-card .foot a { color: var(--w-brand); font-weight: 600; }

.yzm-row { display: flex; gap: 10px; }
.yzm-row .form-control { flex: 1; }
.yzm-row img { width: 110px; height: 44px; border-radius: 10px; object-fit: cover; cursor: pointer; background: #eef1f8; }

/* ---------------- 个人中心 ---------------- */
.user-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; padding: 14px 0 40px; }

.user-side { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 26px rgba(35, 60, 120, .05); }

.user-side .hd {
  padding: 24px 20px;
  background: linear-gradient(150deg, #3b6cff, #6f9bff);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-side .hd img { width: 46px; height: 46px; border-radius: 50%; background: #fff; object-fit: cover; }
.user-side .hd b { font-size: 15px; }
.user-side .hd span { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }

.user-side a { display: block; padding: 14px 22px; font-size: 14px; color: var(--w-text); border-left: 3px solid transparent; }
.user-side a:hover { background: #f7f9ff; color: var(--w-brand); }
.user-side a.on { color: var(--w-brand); background: #f2f6ff; border-left-color: var(--w-brand); font-weight: 600; }

.order-item { border: 1px solid var(--w-line); border-radius: 14px; margin-bottom: 14px; overflow: hidden; }

.order-item .oh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #f8faff;
  font-size: 13px;
  color: var(--w-muted);
}

.order-item .ob { display: flex; gap: 14px; padding: 14px 16px; align-items: center; }
.order-item .ob img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #f4f6fb; }
.order-item .ob .nm { font-size: 14px; color: var(--w-ink); flex: 1; min-width: 0; }
.order-item .ob .pr { color: var(--w-orange); font-weight: 700; font-size: 16px; }

.state { font-size: 12px; border-radius: 999px; padding: 3px 9px; margin-left: 8px; }
.state.ok { background: #e8f8f1; color: #0f9d6e; }
.state.no { background: #fdecec; color: #e5484d; }

/* ---------------- 页脚 ---------------- */
.footer { background: #fff; color: #8b93a7; margin-top: 40px; padding: 34px 0 24px; font-size: 13px; border-radius: 24px 24px 0 0; }
.footer .cols { display: flex; justify-content: space-between; gap: 30px; }
.footer h4 { color: var(--w-ink); font-size: 14px; margin-bottom: 12px; }
.footer p { line-height: 2; }
.footer .cp { border-top: 1px solid var(--w-line); margin-top: 24px; padding-top: 18px; text-align: center; font-size: 12px; color: #a3abbd; }

/* ---------------- 弹层 ---------------- */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(25, 40, 80, .45);
  display: none; align-items: center; justify-content: center; z-index: 999;
}

.modal-mask.open { display: flex; }

.modal-box { width: 470px; background: #fff; border-radius: 20px; padding: 26px 28px; }
.modal-box h3 { font-size: 17px; color: var(--w-ink); margin-bottom: 18px; display: flex; justify-content: space-between; }
.modal-box h3 button { border: 0; background: none; font-size: 20px; color: #a6aebe; cursor: pointer; }
.modal-box .acts { display: flex; gap: 10px; margin-top: 18px; }
.modal-box .acts .btn { flex: 1; }

/* ---------------- 提示 ---------------- */
.toast {
  position: fixed; left: 50%; top: 30px; transform: translateX(-50%);
  background: #1f2a44; color: #fff; padding: 11px 22px; border-radius: 10px;
  font-size: 14px; z-index: 9999; opacity: 0; pointer-events: none; transition: opacity .2s;
}

.toast.show { opacity: 1; }

@media (max-width: 1300px) {
  .wrap { padding: 0 16px; }
  .hero-grid { grid-template-columns: 220px 1fr 260px; }
  .search-pill { width: 240px; }
  .grid5 { grid-template-columns: repeat(4, 1fr); }
}

/* 横幅光晕 */
.banner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(140, 180, 255, .35), transparent 70%);
  pointer-events: none;
}

/* 分类较少时的提示 */
.cat-tip {
  padding: 10px 22px;
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
}
/* ---------------- 订单状态 / 物流（个人中心） ---------------- */
.ord-state { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.ord-state.no { color: #e5484d; background: #fdecec; }
.ord-state.wait { color: #f59e0b; background: #fff7e6; }
.ord-state.ok { color: #0f9d6e; background: #e8f8f1; }

.ord-express { display: flex; gap: 8px; align-items: flex-start; background: #f7f9fd; border-radius: 10px; padding: 10px 14px; margin: 0 16px 12px; }
.ex-ico { color: #3b6cff; display: flex; flex: 0 0 auto; }
.ex-ico svg { width: 16px; height: 16px; }
.ex-txt { font-size: 12.5px; color: #5a6478; line-height: 1.55; word-break: break-all; }

.ord-acts { display: flex; justify-content: flex-end; gap: 10px; padding: 0 16px 14px; flex-wrap: wrap; }
.ord-btn { height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid #e3e8f2; background: #fff; color: #5a6478; font-size: 13px; cursor: pointer; transition: .15s; }
.ord-btn:hover { border-color: #3b6cff; color: #3b6cff; }
.ord-btn.primary { background: linear-gradient(120deg, #3b6cff, #6f9bff); border-color: transparent; color: #fff; font-weight: 600; }
.ord-btn.primary:hover { color: #fff; opacity: .95; }
.ord-btn.refund { color: #e5484d; border-color: #ffd9d7; }
.ord-btn.refund:hover { border-color: #e5484d; color: #e5484d; }

.ord-track { margin: 0 16px 16px; border-top: 1px dashed #eef1f7; padding-top: 14px; }
.tr-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.tr-head b { font-size: 14px; color: #1f2a44; }
.tr-head span { font-size: 12px; color: #8b93a7; }
.tr-list { position: relative; padding-left: 16px; max-height: 320px; overflow: auto; }
.tr-list::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; background: #eef1f7; border-radius: 2px; }
.tr-item { position: relative; padding: 0 0 16px 10px; }
.tr-item:last-child { padding-bottom: 0; }
.tr-item::before { content: ""; position: absolute; left: -15px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: #cdd6e6; border: 2px solid #fff; box-shadow: 0 0 0 2px #eef1f7; }
.tr-item.on::before { background: #3b6cff; box-shadow: 0 0 0 2px #dbe7ff; }
.tr-time { font-size: 11px; color: #a6aebe; }
.tr-txt { font-size: 12.5px; color: #5a6478; line-height: 1.55; margin-top: 2px; }
.tr-item.on .tr-txt { color: #1f2a44; }
.tr-empty { font-size: 12.5px; color: #8b93a7; padding: 6px 0; }
/* ============================================================
   商品图集（详情页）
   ============================================================ */
.detail-gal { display: flex; flex-direction: column; gap: 10px; background: transparent; }

.gal-main {
  border-radius: 16px;
  overflow: hidden;
  background: #f7f9fd;
}

.gal-main img { width: 100%; height: 470px; object-fit: contain; display: block; }

.gal-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }

.gal-thumbs button {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f9fd;
  cursor: pointer;
}

.gal-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumbs button.on { border-color: #4a7cf7; }

.desc-imgs img {
  width: 100%;
  display: block;
  margin: 0 0 12px;
  border-radius: 10px;
}

.desc-imgs img:last-child { margin-bottom: 0; }
