/* ============================================================
   闪电发卡 - 游客端样式 ·「晴空玻璃风」
   冷白玻璃拟态 × 钴蓝强调 × 深蓝墨字：干净可信的支付级质感
   ============================================================ */

:root {
  --bg: #f2f5fa;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --ink: #101c30;
  --ink-2: #4a5a74;
  --ink-3: #8593ab;
  --line: #e4eaf3;

  --brand: #2b6bf3;
  --brand-2: #12a5f4;
  --brand-deep: #1d5fd6;
  --brand-soft: #e9f1ff;
  --grad: linear-gradient(135deg, #2b6bf3, #12a5f4);

  --price: #f43f5e;
  --ok: #10b981;
  --ok-deep: #0b7a52;
  --ok-soft: #e7f8f0;
  --danger: #f43f5e;
  --danger-deep: #c22742;
  --danger-soft: #fdeef0;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 16px 40px -18px rgba(23, 58, 128, .18);
  --shadow-hover: 0 20px 48px -18px rgba(23, 58, 128, .26);
  --ring: 0 0 0 4px rgba(43, 107, 243, .14);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;

  /* 兼容别名（页面内联样式引用） */
  --text: var(--ink);
  --text-2: var(--ink-2);
  --text-3: var(--ink-3);
  --border: var(--line);
  --primary: var(--brand);
  --primary-light: var(--brand-soft);
  --success: var(--ok);
  --success-light: var(--ok-soft);
  --warning: #b45309;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(18, 165, 244, .10), transparent 60%),
    radial-gradient(760px 440px at -12% -4%, rgba(43, 107, 243, .08), transparent 55%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

::selection { background: var(--brand-soft); color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; border-radius: 4px; }

/* ---------- 顶部导航（玻璃浮层） ---------- */
.shop-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid rgba(228, 234, 243, .9);
}
.shop-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.shop-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.3px;
}
/* 后台配置的 Logo 图片（替代默认渐变图标） */
.shop-logo .logo-img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.logo-mark {
  width: 32px; height: 32px;
  background: var(--grad);
  color: #fff;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -6px rgba(43, 107, 243, .55);
}
.logo-mark .feather { width: 17px; height: 17px; }
.shop-nav { margin-left: auto; display: flex; gap: 6px; }
.shop-nav a {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .16s;
}
.shop-nav a .feather { width: 16px; height: 16px; }
.shop-nav a:hover { color: var(--brand-deep); background: var(--brand-soft); }
.shop-nav a.active { background: var(--brand-soft); color: var(--brand-deep); }

/* ---------- 首页 Hero ---------- */
.hero { padding: 38px 2px 10px; text-align: center; }
/* 顶部玻璃徽章 */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(43, 107, 243, .22);
  border-radius: 999px;
  padding: 5px 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px -6px rgba(43, 107, 243, .25);
  margin-bottom: 16px;
}
.hero-badge .feather { width: 13px; height: 13px; }
.hero h1 {
  font-size: clamp(28px, 4.8vw, 40px);
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1.25;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  background: linear-gradient(120deg, #2b6bf3, #12a5f4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .hl {
  background: linear-gradient(transparent 62%, var(--brand-soft) 0);
  padding: 0 2px;
}
.hero p { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.hero p b { color: var(--ink); }
/* 特性胶囊行 */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-chips .feather { width: 13px; height: 13px; color: var(--brand); }

/* 公告弹窗（首页） */
.notice-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 28, 48, .45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.notice-modal {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px -20px rgba(16, 28, 48, .4);
  padding: 18px 20px 20px;
  animation: notice-pop .22s ease;
}
@keyframes notice-pop {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.notice-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.notice-title .feather { width: 17px; height: 17px; color: var(--brand); }
.notice-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-3);
  cursor: pointer;
}
.notice-close:hover { background: var(--line); color: var(--ink); }
.notice-close .feather { width: 15px; height: 15px; }
.notice-body {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
  word-break: break-word;
  max-height: 46vh;
  overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  white-space: pre-wrap;
}
/* 客服弹窗：QQ 号展示行 + 提示 */
.service-qq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.service-qq-label { font-size: 13px; color: var(--ink-3); flex-shrink: 0; }
.service-qq-num {
  font-size: 18px;
  color: var(--ink);
  font-family: var(--mono);
  letter-spacing: .5px;
  user-select: all;
  cursor: copy;
}
.service-tip { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; margin: 0 0 14px; }

/* 客服入口：header 右侧导航按钮（.shop-nav a 统一样式，无额外样式） */

/* ---------- 主容器 ---------- */
.shop-main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 16px 40px;
  min-width: 0;
}

/* ---------- 页脚 ---------- */
.shop-footer {
  border-top: 1px solid var(--line);
  padding: 20px 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- 分类 Tab ---------- */
.cate-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  width: fit-content;
  max-width: 100%;
  padding: 5px;
  margin: 0 auto 22px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(228, 234, 243, .9);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -18px rgba(23, 58, 128, .25);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cate-tabs::-webkit-scrollbar { display: none; }
.cate-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  transition: all .16s;
}
.cate-tab .feather { width: 14px; height: 14px; }
.cate-tab:hover:not(.active) { background: var(--brand-soft); color: var(--brand-deep); }
.cate-tab.active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(43, 107, 243, .5);
}

/* ---------- 商品网格 ---------- */
.goods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.goods-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  animation: rise .4s both;
}
.goods-card:nth-child(2) { animation-delay: .05s; }
.goods-card:nth-child(3) { animation-delay: .1s; }
.goods-card:nth-child(4) { animation-delay: .15s; }
.goods-card:nth-child(5) { animation-delay: .2s; }
.goods-card:nth-child(n+6) { animation-delay: .25s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.goods-card:hover {
  transform: translateY(-4px);
  border-color: rgba(43, 107, 243, .35);
  box-shadow: var(--shadow-hover);
}
.goods-thumb {
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-soft), #f6fbff 75%);
  border-bottom: 1px solid var(--line);
}
.goods-thumb .feather {
  width: 26px; height: 26px;
  color: var(--brand);
  padding: 19px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px -8px rgba(43, 107, 243, .4);
}
/* 主图模式：image 外链铺满票据头 */
.goods-thumb.has-img { padding: 0; }
.goods-thumb.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.goods-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.goods-name {
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.goods-desc {
  font-size: 12.5px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.goods-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  gap: 8px;
}
.goods-price {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 17px;
  color: var(--price);
  letter-spacing: -.3px;
  white-space: nowrap;
}
.goods-price .original {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: line-through;
  margin-left: 6px;
}
.goods-stock { font-size: 12px; color: var(--ink-3); }
.goods-stock.out {
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 10px;
}
/* 已售角标：悬浮在卡片右上角 */
.goods-card { position: relative; }
.sold-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(43, 107, 243, .25);
  border-radius: 999px;
  padding: 3px 9px;
  line-height: 1.2;
  z-index: 2;
  box-shadow: 0 2px 8px -2px rgba(43, 107, 243, .25);
}
/* 详情页已售徽标 */
.sold-meta {
  color: var(--brand) !important;
  border-color: rgba(43, 107, 243, .3) !important;
  font-weight: 600;
}

/* ---------- 空状态 ---------- */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--ink-3);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .6);
}
.empty-state .feather { width: 42px; height: 42px; margin: 0 auto 12px; opacity: .5; }

/* ---------- 详情页 ---------- */
/* 左详情 / 右购买卡各自独立高度：align-items:start 取消 grid 默认 stretch，
   右卡不再被左侧长详情拉高；sticky 赖此生效（占满整行时无滚动余量） */
.detail-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.detail-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  min-width: 0;
  box-shadow: var(--shadow);
}
.detail-title { font-size: 23px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 10px; }
/* 详情主图 */
.detail-img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.detail-meta span {
  border-radius: 999px;
  padding: 3px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.detail-divider { border: none; border-top: 1px solid var(--line); margin: 20px 0; }
.detail-content { font-size: 15px; color: var(--ink-2); word-break: break-word; }
.detail-content img { border-radius: var(--radius-sm); border: 1px solid var(--line); margin: 8px 0; }
.detail-content p { margin: 8px 0; }
.detail-content h1, .detail-content h2, .detail-content h3 {
  color: var(--ink); margin: 16px 0 8px; font-size: 17px;
}
.detail-content ul, .detail-content ol { padding-left: 22px; margin: 8px 0; }

/* ---------- 购买卡 ---------- */
.buy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 80px;
  box-shadow: var(--shadow);
  /* 卡内纵向布局 */
  display: flex;
  flex-direction: column;
}
.buy-goods-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  word-break: break-word;
  margin-bottom: 10px;
}
.buy-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.buy-price {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 800;
  color: var(--price);
  letter-spacing: -.5px;
}
.buy-original { font-family: var(--mono); font-size: 14px; color: var(--ink-3); text-decoration: line-through; }
.buy-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quantity-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  transition: border-color .16s;
}
.quantity-ctrl:hover { border-color: var(--brand); }
.quantity-ctrl button {
  width: 38px; height: 38px;
  border: none;
  background: var(--surface-2);
  font-size: 18px;
  color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  transition: background .16s, color .16s;
}
.quantity-ctrl button:hover:not(:disabled) { background: var(--brand-soft); color: var(--brand-deep); }
.quantity-ctrl button:disabled { color: var(--ink-3); opacity: .4; cursor: not-allowed; }
.quantity-ctrl input {
  width: 52px; height: 38px;
  border: none;
  text-align: center;
  outline: none;
  font-weight: 700;
  font-family: var(--mono);
  background: #fff;
}

.discount-tip {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.discount-tip .feather { width: 14px; height: 14px; flex-shrink: 0; }

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 16px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.total-row .label { font-size: 14px; font-weight: 700; }
.total-amount {
  font-family: var(--mono);
  color: var(--price);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.5px;
}

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  background: #fff;
  font-weight: 500;
  transition: border-color .16s, box-shadow .16s;
}
.input::placeholder { color: var(--ink-3); font-weight: 400; }
.input:focus { border-color: var(--brand); box-shadow: var(--ring); }
.field-hint { font-size: 12px; color: var(--ink-3);font-weight:400;}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  transition: transform .16s, box-shadow .16s, background .16s, color .16s;
  white-space: nowrap;
}
.btn .feather { width: 17px; height: 17px; }
.btn:active { transform: translateY(0) scale(.99); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(43, 107, 243, .55);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(43, 107, 243, .6);
}
.btn-primary:disabled { background: #b9c8e8; box-shadow: none; cursor: not-allowed; }
.btn-outline { background: #fff; border: 1.5px solid var(--line); color: var(--ink-2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-soft); }
.btn-block { width: 100%; }
.btn-lg { height: 50px; font-size: 16px; }

/* ---------- 通用面板 ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* ---------- 支付页 ---------- */
.pay-status-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.pay-status-icon .feather { width: 34px; height: 34px; }
.pay-status-icon.pending { background: var(--brand-soft); color: var(--brand); }
.pay-status-icon.success { background: var(--ok-soft); color: var(--ok); }
.pay-status-icon.fail { background: var(--danger-soft); color: var(--danger); }
.spinner { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
}
.qr-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.qr-box img, .qr-box canvas { width: 200px; height: 200px; image-rendering: pixelated; }
.qr-expire { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }

.pay-order-info { width: 100%; font-size: 14px; }
.pay-order-info .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.pay-order-info .row:last-child { border-bottom: none; }
.pay-order-info .row .k { color: var(--ink-3); flex-shrink: 0; }
.pay-order-info .row .v {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}
.pay-order-info .row .v.amount { color: var(--price); font-weight: 800; font-size: 15px; }

/* ---------- 手机端拉起支付宝按钮 ---------- */
.alipay-jump-btn { display: none; align-items: center; justify-content: center; gap: 8px; }
.alipay-jump-btn .feather { width: 19px; height: 19px; }

/* ---------- 查询页 / 卡密结果 ---------- */
.result-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.card-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ok-soft);
  border: 1px solid rgba(16, 185, 129, .35);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.card-item .code {
  flex: 1;
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ok-deep);
  word-break: break-all;
  min-width: 0;
}
.copy-btn {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all .16s;
}
.copy-btn .feather { width: 13px; height: 13px; }
.copy-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.copy-btn:active { transform: scale(.97); }

.copy-all-btn { margin-top: 12px; }

/* ---------- 提示条 ---------- */
.alert {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.alert .feather { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.alert-info { background: var(--brand-soft); color: var(--brand-deep); }
.alert-warn { background: #fdf3e0; color: #92600a; }
.alert-error { background: var(--danger-soft); color: var(--danger-deep); }

/* ---------- 状态徽章 ---------- */
#orderStatus {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--ink);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  max-width: 80vw;
  text-align: center;
  box-shadow: 0 16px 40px -12px rgba(16, 28, 48, .4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 骨架 ---------- */
.skeleton {
  background: linear-gradient(90deg, #eef2f8 25%, #e4eaf3 37%, #eef2f8 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ============================================================
   移动端适配 ≤768px
   ============================================================ */
@media (max-width: 768px) {
  .shop-header-inner { padding: 0 14px; height: 56px; }
  .shop-logo { font-size: 17px; }
  .logo-mark { width: 29px; height: 29px; }
  .shop-nav a { padding: 6px 10px; font-size: 13px; }
  .shop-nav a .feather { display: none; }  /* 手机端只留文字 */
  .shop-nav a.service-entry { background: var(--brand-soft); color: var(--brand-deep); }  /* 手机端客服按钮常亮高亮 */
  .shop-nav a.active { background: transparent; color: inherit; }  /* 手机端页面自身按钮（如查询页"订单查询"）不需要高亮 */
  .shop-nav a.nav-home { display: none; }  /* 手机端隐藏首页按钮（logo 即可回首页） */
  .shop-main { padding: 16px 14px 44px; }
  .hero { padding: 26px 0 6px; }
  .hero h1 { font-size: 25px; }
  .hero-chips { margin-top: 14px; gap: 6px; }
  .hero-chips span { font-size: 12px; padding: 4px 10px; }
  .cate-tab { padding: 7px 13px; font-size: 13px; }

  .goods-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .goods-thumb { height: 92px; }
  .goods-thumb .feather { width: 22px; height: 22px; padding: 15px; }
  .goods-body { padding: 10px; gap: 5px; }
  .goods-name { font-size: 13.5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .goods-desc { display: none; }
  .goods-price { font-size: 15.5px; }
  .goods-stock { font-size: 11px; }

  .detail-wrap { grid-template-columns: 1fr; align-items: start; }
  .buy-card { position: static; order: -1; }
  .detail-main { padding: 18px 16px; box-shadow: none; }
  .panel { box-shadow: none; }
  .detail-title { font-size: 19px; }

  .btn-lg { height: 48px; }
}

@media (max-width: 360px) {
  .goods-grid { gap: 8px; }
  .goods-body { padding: 8px; }
}

/* 动效降级 */
@media (prefers-reduced-motion: reduce) {
  .goods-card, .spinner, .skeleton { animation: none !important; }
  .goods-card, .btn, .copy-btn { transition: none !important; }
}
