/* ============================================================
   AI视商 · 商城 H5 (P5)
   复用官网 assets/css/style.css 的设计变量，只加商城特有部分。
   配色沿用：科技蓝 / 青绿 / 紫（与官网同一套设计语言）
   ============================================================ */

/* ---------- 页头 ---------- */
.mhead {
  padding: calc(var(--nav-h) + 30px) 0 34px;
  background: linear-gradient(135deg, #0f172a, #134e4a);
  color: #fff;
}
.mhead .breadcrumb,
.mhead .breadcrumb a { color: #94a3b8; }
.mhead .breadcrumb a:hover { color: #5eead4; }
.mhead__title { font-family: var(--font-serif); font-size: clamp(24px, 5vw, 38px); margin-top: 10px; }
.mhead__lead { color: #94a3b8; margin-top: 10px; font-size: 15px; max-width: 62ch; }

/* ---------- 区块 ---------- */
.msec { padding-block: clamp(30px, 6vw, 58px); }
.msec__title { font-family: var(--font-serif); font-size: clamp(20px, 3.4vw, 28px); }
.msec__sub { color: var(--color-ink-soft); font-size: 14px; margin: 8px 0 22px; }

/* ---------- 主播矩阵 ---------- */
.anchors { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; }
.anchor-card {
  display: block; background: #fff; border-radius: var(--radius); padding: 18px 14px;
  text-align: center; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.anchor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.anchor-card__avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px;
  background: var(--color-paper-2); object-fit: cover;
}
.anchor-card__name { font-weight: 600; font-size: 15px; }
.anchor-card__intro {
  color: var(--color-ink-soft); font-size: 12px; margin-top: 6px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 商品网格 ---------- */
.goods { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 16px; }
.good {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.good:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.good__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--color-paper-2); }
.good__body { padding: 13px 14px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.good__title {
  font-size: 14px; line-height: 1.5; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.good__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.good__price { color: #e11d48; font-weight: 700; font-size: 18px; }
.good__price small { font-size: 12px; margin-right: 1px; }
.badge { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: #ccfbf1; color: #0d9488; white-space: nowrap; }
.badge--off { background: #f1f5f9; color: #94a3b8; }

/* ---------- 跳转小程序 ---------- */
.jump { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.jump__level {
  font-size: 12px; letter-spacing: .16em; color: var(--color-primary);
  font-weight: 700; text-transform: uppercase;
}
.jump__note { color: var(--color-ink-soft); font-size: 14px; margin: 10px 0 16px; line-height: 1.7; }
.jump__code {
  display: flex; align-items: center; gap: 12px; background: var(--color-paper);
  border: 1px dashed var(--color-line); border-radius: 10px; padding: 12px 14px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all;
}
.jump__code span { flex: 1; }
.jump__copy {
  flex-shrink: 0; padding: 9px 16px; border-radius: 8px; background: var(--color-primary);
  color: #fff; font-size: 13px; font-weight: 600; border: none;
}
.jump__copy:hover { background: var(--color-primary-d); }
.jump__qr { width: 180px; height: 180px; border-radius: 10px; background: var(--color-paper-2); }
.jump__steps { margin-top: 18px; color: var(--color-ink-soft); font-size: 13px; line-height: 2; padding-left: 20px; }
.jump__steps li { list-style: decimal; }

/* ---------- 提示条 ---------- */
.notice {
  background: var(--color-paper-2); border-radius: var(--radius); padding: 16px 18px;
  color: var(--color-ink-soft); font-size: 13px; line-height: 1.85;
}
.notice strong { color: var(--color-ink); }

/* ---------- 空态 ---------- */
.mempty { padding: 56px 0; text-align: center; color: #94a3b8; font-size: 15px; }

@media (max-width: 560px) {
  .goods { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .good__price { font-size: 16px; }
  .anchor-card { padding: 14px 10px; }
}

/* ---------- 主播页头 ---------- */
.anchor-hero { display: flex; align-items: center; gap: 20px; margin-top: 16px; }
.anchor-hero__avatar {
  width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0;
  background: #1e293b; object-fit: cover;
}
.anchor-hero__text { min-width: 0; }
.anchor-hero__text .mhead__title { margin-top: 0; }
.mhead a.backlink { color: #5eead4; font-size: 14px; }

