/* 积分商城 — 与 layout-v2 统一，仅保留商城特有样式 */
.bbb-mall-wrap .bbb-mall-icon svg {
  width: 22px;
  height: 22px;
  color: var(--bbb-gold, #f0c060);
}

.bbb-mall-stats { display: none; }

.bbb-mall-wrap .bbb-mall-section {
  margin-top: 0;
}

.bbb-mall-order-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.85rem;
  padding: 4px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
}

.bbb-mall-filter-btn {
  appearance: none;
  min-height: 34px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--bbb-muted, #8b93a3);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.bbb-mall-filter-btn:active {
  transform: scale(0.98);
}

.bbb-mall-filter-btn:hover,
.bbb-mall-filter-btn.is-active {
  border-color: rgba(124, 108, 255, 0.5);
  background: rgba(124, 108, 255, 0.14);
  color: #fff;
}

.bbb-mall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.bbb-mall-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
}

.bbb-mall-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  background:
    radial-gradient(ellipse 70% 80% at 50% 20%, rgba(124, 108, 255, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bbb-mall-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.bbb-mall-card-placeholder {
  font-size: 2.5rem;
  opacity: 0.85;
}

.bbb-mall-type-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(11, 13, 18, 0.75);
  border: 1px solid rgba(124, 108, 255, 0.35);
  color: #c4b5fd;
}

.bbb-mall-image-count {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  background: rgba(11, 13, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bbb-mall-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
}

.bbb-mall-card-title {
  margin: 0;
  font-size: 1rem;
  color: #f8fafc;
}

.bbb-mall-card-desc {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bbb-mall-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
  margin-top: auto;
}

.bbb-mall-deduct-hint {
  width: 100%;
  font-size: 0.68rem;
  color: rgba(196, 181, 253, 0.85);
  line-height: 1.3;
}

.bbb-mall-price strong {
  color: #fbbf24;
  font-size: 1.15rem;
}

.bbb-mall-stock {
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.55);
}

.bbb-mall-redeem-btn,
.bbb-mall-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: var(--bbb-radius-sm, 10px);
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.bbb-mall-redeem-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--bbb-accent, #7c6cff) 0%, #6d5ef7 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 108, 255, 0.28);
}

.bbb-mall-redeem-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.bbb-mall-redeem-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.bbb-mall-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: rgba(226, 232, 240, 0.55);
  border: 1px dashed rgba(167, 139, 250, 0.25);
  border-radius: 12px;
}

.bbb-mall-orders {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bbb-mall-order-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(167, 139, 250, 0.15);
}

.bbb-mall-order-name {
  font-weight: 600;
  color: #f8fafc;
}

.bbb-mall-order-meta,
.bbb-mall-order-code,
.bbb-mall-order-deliver,
.bbb-mall-order-account {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.65);
}

.bbb-mall-order-code code {
  color: #fbbf24;
}

.bbb-mall-order-cost {
  flex-shrink: 0;
  color: #f87171;
  font-weight: 700;
}

.bbb-mall-load-more {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--bbb-radius-sm, 10px);
  border: 1px solid rgba(124, 108, 255, 0.35);
  background: rgba(124, 108, 255, 0.08);
  color: #ddd6fe;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bbb-mall-load-more:hover {
  background: rgba(124, 108, 255, 0.16);
  border-color: rgba(124, 108, 255, 0.5);
  color: #fff;
}

.bbb-mall-modal[hidden],
.bbb-mall-modal:not(.is-open) {
  display: none !important;
  pointer-events: none !important;
}

.bbb-mall-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.bbb-mall-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 2, 8, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 1;
}

.bbb-mall-modal-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  padding: 1.25rem;
  border-radius: var(--bbb-radius, 14px);
  background: #161a24;
  background: linear-gradient(180deg, #1c2130 0%, #141822 100%);
  border: 1px solid rgba(167, 139, 250, 0.28);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: auto;
  isolation: isolate;
}

.bbb-mall-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: rgba(226, 232, 240, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
}

.bbb-mall-modal-title {
  margin: 0 0 0.5rem;
  color: #f8fafc;
}

.bbb-mall-modal-cost {
  margin: 0 0 0.75rem;
  color: #fbbf24;
  font-weight: 700;
}

.bbb-mall-modal-desc {
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.5;
}

.bbb-mall-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.15rem 0 0.75rem;
  padding: 0.9rem;
  border-radius: 12px;
  background: #1a1f2c;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.bbb-mall-contact-form[hidden],
.bbb-mall-contact-form label[hidden] {
  display: none !important;
}

.bbb-mall-contact-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bbb-mall-contact-head strong {
  font-size: 0.86rem;
  font-weight: 650;
  color: #eef0f4;
}
.bbb-mall-contact-head span {
  font-size: 0.72rem;
  color: #8b93a3;
}

.bbb-mall-saved-address {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #141822;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.bbb-mall-saved-address:hover {
  border-color: rgba(124, 108, 255, 0.4);
}
.bbb-mall-saved-address.is-active {
  border-color: rgba(124, 108, 255, 0.55);
  background: #22263a;
  box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.12);
}
.bbb-mall-saved-address-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  color: #c4b5fd;
  background: rgba(124, 108, 255, 0.16);
}
.bbb-mall-saved-address-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 0.88rem;
}
.bbb-mall-saved-address-line strong {
  color: #f8fafc;
}
.bbb-mall-saved-address-line span {
  color: #c4c9d4;
  font-variant-numeric: tabular-nums;
}
.bbb-mall-saved-address p {
  margin: 6px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #8b93a3;
}

.bbb-mall-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.bbb-mall-contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #c4c9d4;
}

.bbb-mall-contact-form input,
.bbb-mall-contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.72rem 0.85rem;
  border-radius: var(--bbb-radius-sm, 10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0e1118;
  color: #f8fafc;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bbb-mall-contact-form textarea {
  min-height: 78px;
  resize: vertical;
}

.bbb-mall-contact-form input:focus,
.bbb-mall-contact-form textarea:focus {
  border-color: rgba(124, 108, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.14);
}

.bbb-mall-redeem-body {
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  padding-right: 2px;
  margin: 0 -2px 0 0;
}
.bbb-mall-redeem-product {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 0.9rem;
  padding: 10px;
  border-radius: 12px;
  background: #1a1f2c;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.bbb-mall-redeem-thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #0e1118;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.bbb-mall-redeem-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bbb-mall-redeem-meta {
  min-width: 0;
  flex: 1;
}
.bbb-mall-redeem-meta h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 650;
  color: #f8fafc;
  line-height: 1.35;
}
.bbb-mall-redeem-cost {
  margin: 0;
  color: #f0c060;
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.bbb-mall-redeem-type {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  color: #c4b5fd;
  background: rgba(124, 108, 255, 0.16);
}
.bbb-mall-redeem-type.is-coupon {
  color: #f0c060;
  background: rgba(240, 192, 96, 0.16);
}
.bbb-mall-redeem-type.is-virtual {
  color: #86efac;
  background: rgba(74, 222, 128, 0.16);
}
.bbb-mall-redeem-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 0.75rem;
}
.bbb-mall-redeem-facts span {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  color: #8b93a3;
  background: #141822;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.bbb-mall-redeem-notice {
  margin: 0 0 0.85rem;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #c4c9d4;
  background: #1a1f2c;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.bbb-mall-redeem-panel.is-physical .bbb-mall-redeem-notice {
  border-color: rgba(124, 108, 255, 0.28);
  color: #c4b5fd;
}
.bbb-mall-redeem-panel.is-coupon .bbb-mall-redeem-notice {
  border-color: rgba(240, 192, 96, 0.32);
  color: #f0c060;
}
.bbb-mall-redeem-panel.is-virtual .bbb-mall-redeem-notice {
  border-color: rgba(74, 222, 128, 0.28);
  color: #86efac;
}
.bbb-mall-redeem-panel .bbb-mall-modal-title {
  padding-right: 2rem;
}
.bbb-mall-redeem-panel .bbb-mall-gallery {
  flex-shrink: 0;
}
.bbb-mall-redeem-panel .bbb-mall-gallery-main {
  height: min(280px, 42vh);
  aspect-ratio: auto;
  max-height: none;
  background: #0e1118;
}
.bbb-mall-redeem-panel .bbb-mall-modal-desc {
  margin-bottom: 0.85rem;
  padding: 10px 12px;
  border-radius: 10px;
  background: #1a1f2c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #c4c9d4;
}
.bbb-mall-redeem-panel .bbb-mall-modal-desc:empty {
  display: none;
}
.bbb-mall-redeem-panel .bbb-mall-redeem-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.bbb-mall-redeem-panel .bbb-mall-modal-actions {
  flex-shrink: 0;
  margin: 0 -1.25rem 0;
  padding: 12px 1.25rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #161a24;
}

.bbb-mall-modal-error {
  margin: 0 0 0.75rem;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #fecaca;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.28);
}

.bbb-mall-gallery {
  margin: 0 0 0.85rem;
}
.bbb-mall-gallery-main {
  position: relative;
  width: 100%;
  height: min(280px, 42vh);
  border-radius: 12px;
  overflow: hidden;
  background: #0e1118;
}
.bbb-mall-gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.bbb-mall-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 13, 18, 0.72);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.bbb-mall-gallery-nav:hover {
  background: rgba(11, 13, 18, 0.9);
}
.bbb-mall-gallery-nav.is-prev { left: 8px; }
.bbb-mall-gallery-nav.is-next { right: 8px; }
.bbb-mall-gallery-index {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  color: #fff;
  background: rgba(11, 13, 18, 0.72);
}
.bbb-mall-gallery-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.bbb-mall-gallery-thumbs button {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #0e1118;
  cursor: pointer;
}
.bbb-mall-gallery-thumbs button.is-active {
  border-color: #7c6cff;
}
.bbb-mall-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.bbb-mall-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
}

.bbb-mall-btn.is-primary {
  background: linear-gradient(135deg, var(--bbb-accent, #7c6cff) 0%, #6d5ef7 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 108, 255, 0.28);
}

.bbb-mall-btn.is-primary:hover {
  filter: brightness(1.06);
}

.bbb-mall-btn.is-ghost {
  background: #1a1f2c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--bbb-text, #eef0f4);
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--bbb-radius-sm, 10px);
}

.bbb-mall-btn.is-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.bbb-mall-result-hero {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.85rem;
}
.bbb-mall-result-ico {
  font-size: 1.6rem;
  line-height: 1;
}
.bbb-mall-result-hero strong {
  display: block;
  color: #f8fafc;
}
.bbb-mall-result-hero p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #8b93a3;
}
.bbb-mall-result-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #2a2418;
  border: 1px solid rgba(240, 192, 96, 0.35);
}
.bbb-mall-result-code span {
  font-size: 0.78rem;
  color: #c4c9d4;
}
.bbb-mall-result-code code {
  color: #fbbf24;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bbb-mall-copy-btn {
  margin-left: 0;
  border: 0;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  cursor: pointer;
}

.bbb-mall-result-deliver {
  margin-top: 0.75rem;
  padding: 10px 12px;
  border-radius: 10px;
  background: #16241c;
  border: 1px solid rgba(74, 222, 128, 0.28);
  color: #d1fae5;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.bbb-mall-result-tip {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: #8b93a3;
  line-height: 1.5;
}
.bbb-mall-modal-panel.is-physical .bbb-mall-result-tip {
  color: #c4b5fd;
}
.bbb-mall-modal-panel.is-coupon .bbb-mall-result-tip {
  color: #f0c060;
}
.bbb-mall-modal-panel.is-virtual .bbb-mall-result-tip {
  color: #86efac;
}

.bbb-mall-order-express {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.78);
}

.bbb-mall-order-express code {
  color: #fbbf24;
}

.bbb-mall-order-express.is-pending {
  color: #fcd34d;
}

.bbb-mall-track-btn {
  margin-top: 0.45rem;
  min-height: 34px;
  border: 1px solid rgba(124, 108, 255, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  background: rgba(124, 108, 255, 0.1);
  color: #ddd6fe;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.bbb-mall-track-btn:hover {
  background: rgba(124, 108, 255, 0.18);
  border-color: rgba(124, 108, 255, 0.5);
  color: #fff;
}

.bbb-mall-track-btn:active {
  transform: scale(0.98);
}

.bbb-mall-track-panel {
  max-width: 520px;
  width: min(100%, 520px);
  display: flex;
  flex-direction: column;
  max-height: min(82vh, 680px);
  padding: 1.2rem 1.2rem 1rem;
}
.bbb-mall-track-panel .bbb-mall-modal-title {
  margin-bottom: 0.85rem;
  padding-right: 1.6rem;
}
.bbb-mall-track-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: none;
  overflow: visible;
  margin-bottom: 0;
  gap: 0.7rem;
}
.bbb-mall-track-head {
  flex-shrink: 0;
}
.bbb-mall-track-summary {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.bbb-mall-track-carrier {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
}
.bbb-mall-track-carrier strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
}
.bbb-mall-track-no {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.bbb-mall-track-summary code,
.bbb-mall-track-no code {
  color: #fbbf24;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(251, 191, 36, 0.08);
  border-radius: 6px;
  padding: 0.12rem 0.4rem;
  word-break: break-all;
}
.bbb-mall-track-copy {
  flex-shrink: 0;
  min-height: 28px;
  padding: 0 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 108, 255, 0.4);
  background: rgba(124, 108, 255, 0.12);
  color: #ddd6fe;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}
.bbb-mall-track-copy:hover {
  background: rgba(124, 108, 255, 0.22);
  color: #fff;
}
.bbb-mall-track-state {
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  font-size: 0.72rem;
  font-weight: 700;
}
.bbb-mall-track-state.is-transit { background: rgba(34, 197, 94, 0.16); color: #86efac; }
.bbb-mall-track-state.is-delivery { background: rgba(59, 130, 246, 0.18); color: #93c5fd; }
.bbb-mall-track-state.is-done { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.bbb-mall-track-state.is-pickup { background: rgba(167, 139, 250, 0.18); color: #ddd6fe; }
.bbb-mall-track-state.is-warn { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.bbb-mall-track-message {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.5;
}
.bbb-mall-track-scroll {
  min-height: 0;
  max-height: min(48vh, 400px);
  overflow-y: auto;
  padding: 0.15rem 0.35rem 0.35rem 0.1rem;
  margin: 0 -0.2rem 0 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 250, 0.45) transparent;
}
.bbb-mall-track-scroll::-webkit-scrollbar {
  width: 6px;
}
.bbb-mall-track-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.bbb-mall-track-scroll::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.4);
  border-radius: 999px;
}
.bbb-mall-track-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 2px 20px;
  position: relative;
}
.bbb-mall-track-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #a78bfa 0%, rgba(167, 139, 250, 0.16) 100%);
}
.bbb-mall-track-item {
  position: relative;
  padding: 0 0 1.15rem 12px;
}
.bbb-mall-track-item:last-child {
  padding-bottom: 0;
}
.bbb-mall-track-dot {
  position: absolute;
  left: -19px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(11, 13, 18, 0.95);
  z-index: 1;
}
.bbb-mall-track-item.is-latest .bbb-mall-track-dot {
  width: 12px;
  height: 12px;
  left: -20px;
  top: 5px;
  background: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(11, 13, 18, 0.95), 0 0 0 6px rgba(167, 139, 250, 0.22);
}
.bbb-mall-track-card {
  min-width: 0;
}
.bbb-mall-track-item.is-latest .bbb-mall-track-desc {
  color: #f8fafc;
  font-weight: 500;
}
.bbb-mall-track-time {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.48);
  letter-spacing: 0.02em;
  margin-bottom: 0.28rem;
}
.bbb-mall-track-time span:last-child {
  color: rgba(226, 232, 240, 0.7);
  font-variant-numeric: tabular-nums;
}
.bbb-mall-track-desc {
  font-size: 0.84rem;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.55;
  word-break: break-word;
}
.bbb-mall-track-city {
  display: inline-block;
  margin: 0 0.12rem;
  padding: 0 0.32rem;
  border-radius: 4px;
  background: rgba(167, 139, 250, 0.16);
  color: #ddd6fe;
  font-size: 0.78rem;
  font-weight: 600;
}
.bbb-mall-track-phone {
  color: rgba(253, 230, 138, 0.9);
  font-variant-numeric: tabular-nums;
}
.bbb-mall-track-empty,
.bbb-mall-track-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.6rem 0.5rem;
  text-align: center;
  color: rgba(226, 232, 240, 0.65);
  font-size: 0.88rem;
}
.bbb-mall-track-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(167, 139, 250, 0.25);
  border-top-color: #a78bfa;
  border-radius: 50%;
  animation: bbb-mall-track-spin 0.7s linear infinite;
}
@keyframes bbb-mall-track-spin {
  to { transform: rotate(360deg); }
}
.bbb-mall-track-external {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #c4b5fd;
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 181, 253, 0.35);
  padding-bottom: 1px;
}
.bbb-mall-track-external:hover {
  color: #ede9fe;
  border-bottom-color: #ede9fe;
}
.bbb-mall-track-panel .bbb-mall-modal-actions {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 991px) {
  .bbb-mall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .bbb-mall-card-media {
    aspect-ratio: 1 / 1;
  }
  .bbb-mall-card-placeholder {
    font-size: 1.45rem;
  }
  .bbb-mall-type-badge,
  .bbb-limit-badge {
    top: 0.4rem;
    left: 0.4rem;
    font-size: 0.62rem;
    padding: 0.12rem 0.4rem;
  }
  .bbb-limit-badge {
    left: auto;
    right: 0.4rem;
  }
  .bbb-mall-card-body {
    padding: 10px 10px 12px;
    gap: 6px;
  }
  .bbb-mall-card-title {
    font-size: 0.82rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .bbb-mall-card-desc {
    display: none;
  }
  .bbb-mall-price strong {
    font-size: 0.95rem;
  }
  .bbb-mall-deduct-hint,
  .bbb-mall-stock {
    font-size: 0.62rem;
  }
  .bbb-mall-redeem-btn,
  .bbb-mall-btn {
    min-height: 36px;
    padding: 0 8px;
    font-size: 0.76rem;
  }
}

@media (max-width: 640px) {
  .bbb-mall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bbb-mall-modal-panel {
    width: calc(100% - 24px);
    max-width: none;
    margin: 12px auto;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }
  .bbb-mall-modal-panel.bbb-mall-redeem-panel {
    overflow: hidden;
    max-height: calc(100vh - 24px);
  }
  .bbb-mall-contact-grid {
    grid-template-columns: 1fr;
  }
  .bbb-mall-modal-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .bbb-mall-modal-actions .bbb-btn {
    width: 100%;
    min-height: 44px;
  }
  .bbb-mall-order-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .bbb-mall-order-meta {
    width: 100%;
  }
  .bbb-mall-redeem-modal .bbb-modal-body {
    padding: 14px;
  }
}

html.bbb-is-phone .bbb-mall-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
html.bbb-is-phone .bbb-mall-card-media {
  aspect-ratio: 1 / 1;
}
html.bbb-is-phone .bbb-mall-card-desc {
  display: none;
}
html.bbb-is-phone .bbb-mall-modal-panel {
  width: calc(100% - 24px);
  max-width: none;
  margin: 12px auto;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}
html.bbb-is-phone .bbb-mall-modal-panel.bbb-mall-redeem-panel {
  overflow: hidden;
}
html.bbb-is-phone .bbb-mall-contact-grid {
  grid-template-columns: 1fr;
}
