:root {
  --text: #1f2328;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --soft: #f7f8fa;
  --brand: #2563eb;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 16px/1.7 -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 18px; font-weight: 700; color: var(--text); }
.nav a { margin-left: 22px; color: var(--muted); font-size: 15px; }
.nav a.active, .nav a:hover { color: var(--brand); text-decoration: none; }

.hero { padding: 72px 0 40px; }
.hero-item h1 { font-size: 40px; line-height: 1.25; margin: 0 0 12px; letter-spacing: -.5px; }
.hero-item p { color: var(--muted); font-size: 18px; margin: 0 0 24px; }

.btn {
  display: inline-block; padding: 10px 20px; border-radius: 8px;
  background: var(--brand); color: #fff; font-size: 15px;
}
.btn:hover { text-decoration: none; opacity: .92; }

.section { padding: 24px 0 56px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.section-head h1, .section-head h2 { font-size: 26px; margin: 0; }
.desc { color: var(--muted); margin: 0; }

.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.card-body { padding: 16px 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.45; }
.card h3 a { color: var(--text); }
.meta { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.summary { color: #444; margin: 0; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { color: var(--muted); }

.post { padding: 48px 0 24px; max-width: 760px; }
.post-head h1 { font-size: 34px; line-height: 1.3; margin: 0 0 10px; letter-spacing: -.4px; }
.post-cover { width: 100%; border-radius: var(--radius); margin: 20px 0; }
.post-content { margin-top: 20px; font-size: 16px; }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; }
.post-content h2 { margin-top: 32px; }
.post-content pre { background: var(--soft); padding: 14px; border-radius: 8px; overflow: auto; }
.post-content blockquote { margin: 20px 0; padding: 4px 16px; border-left: 3px solid var(--line); color: var(--muted); }
.post-foot { margin: 40px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }

.recent { max-width: 760px; padding-bottom: 56px; }
.recent ul { list-style: none; padding: 0; }
.recent li { padding: 10px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 16px; }

.pager { display: flex; gap: 16px; align-items: center; margin-top: 36px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: var(--soft); padding: 28px 0; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 4px 0; }

.notfound { padding: 100px 20px; text-align: center; }
.notfound h1 { font-size: 72px; margin: 0; color: var(--line); }

@media (max-width: 640px) {
  .hero { padding: 44px 0 20px; }
  .hero-item h1 { font-size: 28px; }
  .post-head h1 { font-size: 26px; }
  .nav a { margin-left: 14px; font-size: 14px; }
}

/* ---------------- 商城 ---------------- */
.shop-head { margin: 32px 0 20px; }
.shop-head h1 { font-size: 28px; margin: 0 0 6px; }
.shop-sub { color: #6b7280; font-size: 14px; margin: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}

.product-card {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: box-shadow 0.15s, transform 0.15s;
}

.product-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); transform: translateY(-2px); }
.product-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.product-cover-empty {
  display: flex; align-items: center; justify-content: center;
  height: 180px; color: #9ca3af; font-size: 13px; background: #f9fafb;
}
.product-body { padding: 12px 14px 16px; }
.product-body h3 { margin: 0 0 4px; font-size: 15px; }
.product-sub { margin: 0 0 8px; color: #6b7280; font-size: 13px; }
.product-price { color: #e11d48; font-size: 18px; font-weight: 600; }

.product-detail { display: flex; gap: 32px; margin: 32px 0; flex-wrap: wrap; }
.product-media { flex: 0 0 420px; max-width: 100%; }
.product-media img { width: 100%; border-radius: 12px; border: 1px solid #e5e7eb; }
.product-info { flex: 1; min-width: 280px; }
.product-info h1 { margin: 0 0 6px; font-size: 26px; }
.spec-block { margin: 18px 0; }
.spec-row { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.spec-name { width: 64px; color: #6b7280; font-size: 13px; }
.spec-options { display: flex; gap: 8px; flex-wrap: wrap; }
.spec-chip {
  padding: 6px 14px; border: 1px solid #d1d5db; border-radius: 6px;
  background: #fff; cursor: pointer; font-size: 13px;
}
.spec-chip.active { border-color: #2563eb; color: #2563eb; background: #eff6ff; }

.qty-row { display: flex; gap: 12px; align-items: center; margin: 18px 0; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 30px; height: 30px; border: 1px solid #d1d5db; background: #fff; border-radius: 6px; cursor: pointer; }
.qty input { width: 56px; height: 30px; text-align: center; border: 1px solid #d1d5db; border-radius: 6px; }
.stock-hint { color: #6b7280; font-size: 13px; }

.buy-row { display: flex; gap: 12px; margin: 22px 0 12px; }
.btn { padding: 10px 22px; border: 0; border-radius: 8px; background: #2563eb; color: #fff; cursor: pointer; font-size: 15px; }
.btn-ghost { background: #fff; color: #374151; border: 1px solid #d1d5db; text-decoration: none; }
.member-hint { color: #6b7280; font-size: 13px; }

.product-desc { margin: 40px 0 60px; }
.rich img { max-width: 100%; }

.shop-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; z-index: 999; }
.shop-modal { width: 320px; background: #fff; border-radius: 12px; padding: 20px; }
.shop-modal h3 { margin: 0 0 14px; font-size: 16px; }
.shop-modal input { width: 100%; height: 38px; margin-bottom: 10px; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 8px; box-sizing: border-box; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row button { height: 38px; padding: 0 12px; border: 1px solid #d1d5db; background: #fff; border-radius: 8px; cursor: pointer; font-size: 13px; }
.modal-actions { display: flex; gap: 10px; margin-top: 6px; }
.modal-actions .btn, .modal-actions .btn-ghost { flex: 1; }
.modal-tip { min-height: 18px; margin: 8px 0 0; color: #6b7280; font-size: 12px; }

/* ---------------- 购物车 ---------------- */
.cart-root { margin-bottom: 60px; }
.cart-row { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid #eef0f3; }
.cart-row img, .cart-thumb-empty { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid #e5e7eb; }
.cart-thumb-empty { background: #f9fafb; }
.cart-main { flex: 1; min-width: 0; }
.cart-main h3 { margin: 0 0 4px; font-size: 15px; }
.cart-price { color: #e11d48; font-weight: 600; margin: 4px 0 0; }
.cart-qty { display: flex; align-items: center; gap: 6px; }
.cart-qty button { width: 28px; height: 28px; border: 1px solid #d1d5db; background: #fff; border-radius: 6px; cursor: pointer; }
.cart-qty input { width: 48px; height: 28px; text-align: center; border: 1px solid #d1d5db; border-radius: 6px; }
.cart-subtotal { width: 90px; text-align: right; font-weight: 600; }
.cart-del { border: 0; background: none; color: #6b7280; cursor: pointer; font-size: 13px; }
.cart-bar { display: flex; justify-content: flex-end; align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid #eef0f3; margin-top: 8px; }
.cart-total strong { color: #e11d48; font-size: 20px; }

/* ---------------- 结算 ---------------- */
.checkout-wrap { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 60px; }
.checkout-form { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 14px; }
.checkout-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #6b7280; }
.checkout-form input { height: 38px; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; }
.checkout-summary { flex: 0 0 300px; background: #f9fafb; border: 1px solid #eef0f3; border-radius: 12px; padding: 20px; }
.checkout-summary h3 { margin: 0 0 12px; font-size: 15px; }
.co-items { margin-bottom: 12px; }
.co-item { display: flex; justify-content: space-between; font-size: 13px; color: #374151; padding: 4px 0; }
.co-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: #374151; }
.co-total { border-top: 1px solid #e5e7eb; margin-top: 6px; padding-top: 10px; font-weight: 600; }
.co-total span:last-child { color: #e11d48; font-size: 18px; }
.btn-block { width: 100%; margin-top: 14px; }

/* ---------------- 订单 ---------------- */
.order-card { border: 1px solid #eef0f3; border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.order-no { font-family: ui-monospace, monospace; font-size: 13px; color: #6b7280; }
.order-status { font-size: 13px; padding: 2px 8px; border-radius: 999px; background: #eef2ff; color: #4338ca; }
.order-status.warn { background: #fff7ed; color: #c2410c; }
.order-status.ok { background: #ecfdf5; color: #047857; }
.order-status.muted { background: #f3f4f6; color: #4b5563; }
.order-body { font-size: 14px; color: #374151; }
.order-foot { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.order-amount { color: #e11d48; font-weight: 600; font-size: 16px; }
.order-time { color: #9ca3af; font-size: 12px; }
.order-actions { margin-left: auto; display: flex; gap: 8px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ---------------- 会员中心 ---------------- */
.mc-grid { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.mc-card { flex: 1; min-width: 300px; border: 1px solid #eef0f3; border-radius: 12px; padding: 20px; }
.mc-card h2 { margin: 0 0 16px; font-size: 16px; }
.mc-h3 { margin: 22px 0 10px; font-size: 14px; color: #374151; }
.mc-balance { display: flex; gap: 28px; flex-wrap: wrap; }
.mc-balance > div { display: flex; flex-direction: column; gap: 4px; }
.mc-balance > div > span, .mc-balance > div > strong { font-size: 20px; }
.mc-balance strong { display: block; font-size: 24px; color: #e11d48; margin-top: 4px; }
.mc-label { color: #6b7280; font-size: 12px; }
.mc-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.mc-form input { height: 36px; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; }
.mc-form .btn { align-self: flex-start; }
.mc-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #eef0f3; font-size: 14px; }
.mc-logs { margin-bottom: 0; }
.mc-log { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.mc-log-type { width: 80px; color: #374151; }
.mc-log-remark { flex: 1; }
.mc-log-amount { width: 100px; text-align: right; font-weight: 600; }
.mc-log-amount.in { color: #059669; }
.mc-log-amount.out { color: #dc2626; }
.mc-log-time { width: 150px; text-align: right; color: #9ca3af; font-size: 12px; }

/* ---------------- 头部操作区 ---------------- */
.hdr-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.hdr-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s;
}

.hdr-btn:hover {
  background: #f3f4f6;
}

.hdr-badge {
  position: absolute;
  top: -2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

/* ---------------- 轻提示 ---------------- */
.shop-toast {
  position: fixed;
  right: 24px;
  bottom: 32px;
  padding: 10px 18px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.shop-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.shop-toast--err {
  background: #b91c1c;
}

/* ---------------- 会员中心 Tabs ---------------- */
.mc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.mc-tab {
  padding: 8px 16px; border: 1px solid #e5e7eb; border-radius: 999px;
  background: #fff; cursor: pointer; font-size: 14px; color: #374151;
}
.mc-tab.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.mc-panel { display: none; }
.mc-panel.active { display: block; }
.mc-row-inputs { display: flex; gap: 8px; }
.mc-row-inputs input { flex: 1; }
.mc-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #6b7280; }
.mc-actions { display: flex; gap: 10px; }
.mc-list { margin-top: 18px; }
.mc-list-item {
  display: flex; gap: 12px; justify-content: space-between; align-items: flex-start;
  padding: 14px 0; border-top: 1px solid #f3f4f6;
}
.mc-list-item--col { flex-direction: column; gap: 6px; }
.mc-list-main { flex: 1; min-width: 0; }
.mc-list-actions { display: flex; gap: 8px; }
.tag-default {
  display: inline-block; padding: 1px 6px; border-radius: 4px;
  background: #eff6ff; color: #2563eb; font-size: 12px;
}

/* ---------------- 会员中心入口 ---------------- */
.mc-entries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.mc-entry {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.mc-entry:hover {
  border-color: #dbe3ff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.09);
  transform: translateY(-1px);
}

.mc-entry-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.mc-entry-icon svg {
  width: 17px;
  height: 17px;
}

.mc-entry-icon--blue { background: #eff6ff; color: #2563eb; }
.mc-entry-icon--violet { background: #f5f3ff; color: #7c3aed; }
.mc-entry-icon--green { background: #ecfdf5; color: #059669; }
.mc-entry-icon--amber { background: #fffbeb; color: #d97706; }
.mc-entry-icon--cyan { background: #ecfeff; color: #0891b2; }
.mc-entry-icon--pink { background: #fdf2f8; color: #db2777; }

.mc-entry-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mc-entry-text strong {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.mc-entry-text em {
  font-style: normal;
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-entry-arrow {
  margin-left: auto;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s, transform 0.18s;
}

.mc-entry:hover .mc-entry-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #2563eb;
}

@media (max-width: 640px) {
  .mc-entries { grid-template-columns: 1fr; }
}

/* ---------------- 会员中心块 ---------------- */
.mc-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mc-block-head h2 { margin: 0; }

.mc-link {
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
}

.mc-link:hover { text-decoration: underline; }
.mc-link--muted { color: #9ca3af; }

.mc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px 24px;
}

.mc-stats > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mc-stats > div > span:not(.mc-label),
.mc-stats > div > strong {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.mc-card + .mc-card { margin-top: 18px; }
.mc-card:last-of-type { margin-bottom: 60px; }

/* ---------------- 省市区下拉 ---------------- */
.mc-select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #111827;
  flex: 1;
  min-width: 0;
}

.mc-select:disabled {
  background: #f9fafb;
  color: #9ca3af;
}

/* ---------------- 子页返回 ---------------- */
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 22px 0 2px;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
}

.page-back svg {
  transition: transform 0.15s;
}

.page-back:hover {
  color: #2563eb;
}

.page-back:hover svg {
  transform: translateX(-2px);
}

/* ---------------- 消息 / 收藏 ---------------- */
.msg-head { display: flex; align-items: center; gap: 8px; }
.msg-body { color: #374151; font-size: 14px; }
.msg-foot { display: flex; justify-content: space-between; align-items: center; }
.fav-thumb { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }

/* ---------------- 收藏按钮 ---------------- */
.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fav-btn.is-on {
  color: #e11d48;
  border-color: #fecdd3;
  background: #fff1f2;
}

.fav-btn.is-on .fav-icon {
  fill: #e11d48;
  stroke: #e11d48;
}

/* ---------------- 搜索 ---------------- */
.search-bar {
  display: flex;
  gap: 10px;
}

.search-bar input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
}

.search-bar input:focus {
  outline: none;
  border-color: #2563eb;
}

/* ---------------- 物流轨迹 ---------------- */
.track-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.track-item:last-child {
  border-bottom: none;
}

.track-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #2563eb;
  flex: 0 0 auto;
}

.track-content {
  font-size: 14px;
  color: #111827;
}

/* ---------------- 弹层 ---------------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-mask[hidden] {
  display: none;
}

.modal-box {
  width: min(460px, 92vw);
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px 8px;
  max-height: 76vh;
  display: flex;
  flex-direction: column;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.modal-body {
  overflow-y: auto;
  padding-bottom: 10px;
}

/* ---------------- 评价 ---------------- */
.review-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.review-text {
  flex: 1;
  min-height: 90px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
}

.stars {
  display: inline-flex;
  gap: 2px;
}

.star {
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #d1d5db;
  cursor: pointer;
}

.star.on {
  color: #f59e0b;
}

.review-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-thumb img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.review-add {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
}

.review-actions {
  text-align: right;
}

.hint {
  font-size: 12px;
  color: #909399;
}

/* ---------------- 图集 / 视频 / 评价 ---------------- */
.gallery-main img,
.gallery-video {
  width: 100%;
  border-radius: 10px;
  background: #f3f4f6;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.gallery-thumb.is-active {
  border-color: #2563eb;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.is-video {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #2563eb;
}

.product-comments {
  max-width: 820px;
  margin: 40px auto 0;
  padding: 0 4px;
}

.comment-item {
  padding: 14px 0;
  border-bottom: 1px solid #eef2f7;
}

.comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-stars {
  color: #f59e0b;
  font-size: 13px;
}

.comment-content {
  font-size: 14px;
  color: #111827;
}

.comment-imgs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.comment-imgs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.comment-append {
  margin-top: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
}

.append-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: #e0edff;
  color: #2563eb;
  font-size: 12px;
}

.comment-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.like-btn {
  border: none;
  background: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 13px;
}

.like-btn.on {
  color: #e11d48;
}

.comment-count {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 400;
}

/* ---------------- 充值 ---------------- */
.amount-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.amount-chip {
  min-width: 96px;
  height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  cursor: pointer;
}

.amount-chip.is-active {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
  font-weight: 600;
}

/* ---------------- 会员标签 ---------------- */
.mc-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.member-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
}

/* ---------------- 退货 / 售后 ---------------- */
.refund-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.refund-name {
  font-size: 14px;
  color: #111827;
}

.qty-num {
  display: inline-block;
  min-width: 28px;
  text-align: center;
  font-size: 14px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
