/* 商城内页 — 与 store-mall 壳层配合 */

@media (min-width: 769px) {
  .mall-cat-mob-only {
    display: none !important;
  }
}

.store-page .mall-page {
  padding: 20px 16px 96px;
  min-height: 40vh;
}

.store-page--home .mall-page {
  padding-bottom: 0;
}

.mall-page-head {
  margin-bottom: 20px;
}

.mall-page-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.mall-page-desc {
  margin: 8px 0 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.mall-page-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: start;
}

.mall-side-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
  position: sticky;
  top: calc(var(--header-h, 64px) + 12px);
}

.mall-side-panel h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.mall-side-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mall-side-panel li {
  margin-bottom: 4px;
}

.mall-side-panel a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
}

.mall-side-panel a:hover,
.mall-side-panel a.is-active {
  background: rgba(230, 46, 4, 0.08);
  color: var(--color-primary);
  font-weight: 600;
}

.mall-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

/* 秒杀/列表页：一行 5 个商品 */
.mall-product-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .mall-product-grid--5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .mall-product-grid--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .mall-product-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mall-flash-group {
  margin-bottom: 28px;
}

.mall-flash-group__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
  border-bottom: 2px solid #fecaca;
}

.mall-flash-group--upcoming {
  margin-top: 8px;
}

.mall-flash-group--upcoming .mall-flash-group__title {
  color: #c2410c;
  border-bottom-color: #fed7aa;
}

.mall-flash-deal {
  margin-bottom: 20px;
}

.mall-flash-deal--upcoming .mall-flash-deal__time-bar {
  background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 55%, #fef3c7 100%);
  border-color: #fdba74;
  border-left-color: #f97316;
}

.mall-flash-deal--upcoming .mall-flash-deal__time-label {
  background: linear-gradient(90deg, #fb923c, #ea580c);
}

.mall-flash-deal__countdown--start .mall-flash-deal__countdown-title {
  color: #ea580c;
}

.mall-flash-deal__countdown--start .mall-flash-deal__cd-unit {
  border-color: #fdba74;
}

.mall-flash-deal__countdown--start .mall-flash-deal__cd-num {
  color: #ea580c;
}

.mall-flash-deal__title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
}

.mall-flash-deal__time-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin: 0 0 16px;
  padding: 12px 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, #fff1f0 0%, #fff7ed 55%, #fffbeb 100%);
  border: 1px solid #fecaca;
  border-left: 4px solid #e62e04;
  box-shadow: 0 2px 10px rgba(230, 46, 4, 0.08);
}

.mall-flash-deal__time-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  min-width: 0;
}

.mall-flash-deal__time-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  border-radius: 999px;
  background: linear-gradient(90deg, #f43f5e, #e62e04);
  white-space: nowrap;
}

.mall-flash-deal__time-label::before {
  content: '⏱';
  font-size: 14px;
  line-height: 1;
}

.mall-flash-deal__time-range {
  font-size: 1.05rem;
  font-weight: 700;
  color: #b91c1c;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.mall-flash-deal__time-range time {
  font-style: normal;
  white-space: nowrap;
}

.mall-flash-deal__time-sep {
  margin: 0 10px;
  font-weight: 800;
  color: #e62e04;
}

.mall-flash-deal__countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  flex-shrink: 0;
}

.mall-flash-deal__countdown-title {
  font-size: 14px;
  font-weight: 700;
  color: #e62e04;
  white-space: nowrap;
}

.mall-flash-deal__countdown-units {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mall-flash-deal__cd-unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  padding: 6px 8px 4px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #fecaca;
  box-shadow: 0 2px 6px rgba(230, 46, 4, 0.12);
}

.mall-flash-deal__cd-num {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: #dc2626;
  font-variant-numeric: tabular-nums;
}

.mall-flash-deal__cd-unit small {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
}

.mall-flash-deal__countdown.is-ended .mall-flash-deal__countdown-units {
  opacity: 0.5;
}

/* —— 秒杀页：仅 PC 端优化（不影响手机 store-mobile.css） —— */
@media (min-width: 769px) {
  .store-page--flash .mall-page {
    padding-top: 16px;
    padding-bottom: 48px;
  }

  .store-page--flash .mall-flash-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
    padding: 18px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff7ed 48%, #fffbeb 100%);
    border: 1px solid #fecaca;
    box-shadow: 0 2px 12px rgba(230, 46, 4, 0.06);
  }

  .store-page--flash .mall-flash-page-head .mall-page-title {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
  }

  .store-page--flash .mall-flash-page-head .mall-page-desc {
    margin: 6px 0 0;
    max-width: 520px;
    line-height: 1.5;
  }

  .store-page--flash .mall-flash-group {
    margin-bottom: 18px;
  }

  .store-page--flash .mall-flash-group--solo .mall-flash-group__title {
    display: none;
  }

  .store-page--flash .mall-flash-deal--no-title .mall-flash-deal__time-bar {
    margin-top: 0;
  }

  .store-page--flash .mall-flash-deal.mall-list-card {
    padding: 16px 18px 18px;
    border-radius: 12px;
    border-color: #fecaca;
    box-shadow: 0 2px 14px rgba(230, 46, 4, 0.07);
  }

  .store-page--flash .mall-flash-deal__time-bar {
    margin-bottom: 14px;
    padding: 10px 16px;
    border-radius: 10px;
    gap: 12px 24px;
  }

  .store-page--flash .mall-flash-deal__time-range {
    font-size: 0.875rem;
    font-weight: 600;
    color: #991b1b;
  }

  .store-page--flash .mall-flash-deal__countdown {
    margin-left: auto;
    padding-left: 16px;
    border-left: 1px solid rgba(230, 46, 4, 0.12);
  }

  .store-page--flash .mall-flash-deal__countdown-title {
    font-size: 13px;
    color: #b91c1c;
  }

  .store-page--flash .mall-flash-deal__countdown-units {
    gap: 6px;
  }

  .store-page--flash .mall-flash-deal__cd-unit {
    min-width: 42px;
    padding: 5px 6px 3px;
    border-radius: 8px;
    border-color: #fca5a5;
    background: rgba(255, 255, 255, 0.92);
  }

  .store-page--flash .mall-flash-deal__cd-num {
    font-size: 1.15rem;
  }

  .store-page--flash .mall-product-grid--5 {
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .mall-flash-deal__time-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .mall-flash-deal__countdown {
    width: 100%;
    justify-content: flex-start;
  }
}

.mall-empty {
  color: var(--color-text-muted);
  text-align: center;
  padding: 32px 16px;
}

.mall-list-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mall-list-card {
  padding: 14px 16px;
}

.mall-list-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mall-user-grid {
  display: grid;
  gap: 10px;
  max-width: 480px;
}

.mall-user-grid .btn {
  text-align: center;
}

.mall-wallet-card {
  padding: 20px;
  margin-bottom: 16px;
}

.mall-wallet-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.ticket-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.ticket-form__req {
  color: var(--color-primary);
}

.ticket-card {
  margin-bottom: 16px;
}

.ticket-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.ticket-card__head-main {
  flex: 1;
  min-width: 0;
}

.ticket-card__head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.ticket-card__del {
  padding: 4px 10px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}

.ticket-card__del:hover {
  background: #fef2f2;
  border-color: #f87171;
}

.ticket-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ticket-detail__title {
  margin: 0;
  font-size: 1.15rem;
  flex: 1;
  min-width: 0;
}

.ticket-card__subject {
  font-size: 1rem;
  margin-right: 8px;
}

.ticket-card__status {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
}

.ticket-card__time {
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.ticket-card__account {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.ticket-card__highlight {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.ticket-card__highlight-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #047857;
  margin-bottom: 6px;
}

.ticket-card__highlight p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #065f46;
}

.ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.ticket-thread__empty {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.ticket-msg {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.ticket-msg--admin {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.ticket-msg--user {
  background: #f9fafb;
}

.ticket-msg__meta {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.ticket-msg__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.ticket-card__detail-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

.ticket-detail__meta {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.mall-wallet-card__amount {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
}

.mall-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.mall-shop-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
}

.mall-shop-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(230, 46, 4, 0.12);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.mall-shop-card__icon--img {
  object-fit: cover;
  background: #f8fafc;
}

.mall-shop-card__name {
  margin: 0 0 4px;
  font-size: 1rem;
}

.mall-shop-card__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.mall-shop-page {
  padding-top: 12px;
}

.mall-shop-head {
  margin-bottom: 14px;
}

.mall-shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mall-shop-head__main {
  min-width: 0;
}

.mall-shop-head__title {
  margin: 0 0 4px;
}

.mall-shop-head__meta {
  margin: 0;
}

.mall-shop-head__extra {
  flex-shrink: 0;
}

.mall-shop-head__cs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #d09a38;
  color: #8a5a02;
  background: #fff9ec;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.mall-shop-head__cs:hover {
  background: #fff3d5;
}

.mall-shop-service-fixed {
  margin: -4px 0 10px;
}

.mall-shop-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #ececec;
  margin-bottom: 14px;
}

.mall-shop-tabs__item {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 0;
  margin-bottom: -1px;
  font-weight: 600;
  color: #222;
  cursor: pointer;
}

.mall-shop-tabs__item.is-active {
  border-bottom-color: #d09a38;
}

.mall-shop-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.mall-shop-cats__item {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: #374151;
  cursor: pointer;
}

.mall-shop-cats__item.is-active {
  border-color: #d09a38;
  color: #8a5a02;
  background: #fff9ec;
}

.mall-shop-cats__count {
  color: #9ca3af;
}

.mall-shop-grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mall-shop-more-wrap {
  margin: 10px 0 6px;
  text-align: right;
}

.mall-shop-more-link {
  color: var(--color-primary, #e62e04);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
}

.mall-shop-more-link:hover {
  text-decoration: underline;
}

@media (max-width: 1200px) {
  .mall-shop-grid-6 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .mall-shop-grid-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mall-shop-title-center {
  margin: 0 0 20px;
  text-align: left;
  font-size: 2rem;
  font-weight: 800;
  padding-bottom: 12px;
  border-bottom: 1px solid #ececec;
}

.mall-shop-title-left {
  margin: 28px 0 16px;
  font-size: 2rem;
  font-weight: 800;
  padding-bottom: 12px;
  border-bottom: 1px solid #ececec;
}

.mall-product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 28px;
  align-items: start;
}

.mall-product-detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mall-product-detail__cover {
  aspect-ratio: 1;
  width: 100%;
  background: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mall-product-detail__cover--empty {
  color: #94a3b8;
  font-size: 14px;
}

.mall-product-detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mall-product-detail__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mall-product-detail__thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}

.mall-product-detail__thumb.is-active {
  border-color: var(--color-primary);
}

.mall-product-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mall-product-detail__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin: 8px 0;
}

.mall-product-detail__tag-flash {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: 6px;
  background: linear-gradient(90deg, #f43f5e, var(--color-primary));
}

.mall-product-detail__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
}

.mall-product-detail__price--flash {
  color: #e62e04;
}

.mall-product-detail__price-old {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.mall-product-detail__stock {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.mall-product-detail__sku-label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}

.mall-product-detail__unavailable {
  margin: 0;
  color: #b45309;
  font-size: 14px;
}

.mall-product-detail__desc {
  margin-top: 24px;
}

.mall-product-detail__content {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text);
}

.mall-product-detail__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.mall-product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mall-review-item {
  border-top: 1px solid #eee;
  padding: 8px 0;
}

@media (max-width: 768px) {
  .mall-product-detail {
    grid-template-columns: 1fr;
  }
}

.mall-sku-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.mall-sku-row .btn.is-selected {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.mall-auth-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 48px;
}

.mall-auth-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
}

.mall-auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.mall-auth-card > p {
  margin: 0 0 24px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.mall-field {
  margin-bottom: 16px;
}

.mall-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.mall-field input,
.mall-field textarea,
.mall-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
}

.mall-form-msg {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #dc2626;
  min-height: 1.2em;
}

.mall-cart-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 14px;
  margin-bottom: 10px;
}

.mall-cart-item__img {
  width: 88px;
  height: 88px;
  background: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mall-cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mall-cart-item__shop {
  margin: 4px 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.mall-cart-item__price {
  color: var(--color-primary);
  font-weight: 700;
  margin: 6px 0;
}

.mall-cart-item__qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.mall-cart-item__qty [data-qty] {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}

.mall-cart-total {
  margin: 0;
  font-size: 1.1rem;
  text-align: right;
}

.mall-header--auth .mall-header__main {
  justify-content: center;
}

.store-page[data-store-layout='focus'] .mall-page {
  padding-bottom: 24px;
}

/* 我的订单列表 */
.od-card {
  display: block;
  color: inherit;
  padding: 14px 16px;
}

.od-card:hover {
  box-shadow: var(--shadow);
}

.od-card__head-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.od-card__tag--discount {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 4px;
}

.od-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.od-card__no {
  font-size: 0.9rem;
  color: #333;
  word-break: break-all;
}

.od-card__view {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: #888;
  text-decoration: none;
}

.od-card__view:hover {
  color: var(--color-primary, #e62e04);
}

.od-card__body {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.od-card__items {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.od-card__aside {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 12px;
  margin-left: 4px;
  border-left: 1px solid #f0f0f0;
  min-width: 84px;
}

.od-card__logistics {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #6366f1;
  border-radius: 6px;
  background: linear-gradient(180deg, #f5f3ff 0%, #eef2ff 100%);
  color: #4f46e5;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.12);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.od-card__logistics:hover {
  background: linear-gradient(180deg, #ede9fe 0%, #e0e7ff 100%);
  border-color: #4f46e5;
  color: #4338ca;
}

.od-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.od-item__img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: #f5f5f5;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.od-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.od-item__ph {
  font-size: 12px;
  color: #9ca3af;
}

.od-item__body {
  flex: 1;
  min-width: 0;
}

.od-item__title {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.od-item__meta {
  margin: 0;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.od-item__price {
  font-weight: 700;
  color: var(--color-primary, #e62e04);
}

.od-item__qty {
  color: #666;
}

.od-item__empty {
  margin: 0;
  font-size: 0.875rem;
  color: #888;
}

.od-card__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  font-size: 0.875rem;
}

.od-card__amount {
  font-weight: 700;
  color: var(--color-primary, #e62e04);
}

.od-card__from {
  color: #4b5563;
}

.od-card__pay {
  color: #666;
}

.od-card__time {
  margin-left: auto;
  color: #9ca3af;
  font-size: 0.8125rem;
}

.od-detail p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.od-detail p:last-child {
  margin-bottom: 0;
}

.od-detail__items-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
}

/* 用户端物流弹窗 */
.uc-logistics-mask {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.uc-logistics-modal {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.uc-logistics-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #f0f0f0;
}

.uc-logistics-modal__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
}

.uc-logistics-modal__close {
  border: 0;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 0 4px;
}

.uc-logistics-modal__body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
}

.uc-logistics-order-no {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  color: #6b7280;
  word-break: break-all;
}

.uc-logistics-dl {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px 12px;
  margin: 0 0 16px;
  font-size: 0.875rem;
}

.uc-logistics-dl dt {
  margin: 0;
  color: #6b7280;
}

.uc-logistics-dl dd {
  margin: 0;
  color: #111827;
  word-break: break-all;
}

.uc-logistics-progress-title {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
}

.uc-logistics-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
}

.uc-logistics-item {
  position: relative;
  padding: 0 0 14px 14px;
  border-left: 2px solid #e0e7ff;
  margin-left: 6px;
}

.uc-logistics-item:last-child {
  padding-bottom: 0;
}

.uc-logistics-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6366f1;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #c7d2fe;
}

.uc-logistics-item__time {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.uc-logistics-item__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #111827;
  white-space: pre-wrap;
  word-break: break-word;
}

.uc-logistics-empty {
  margin: 0;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
  padding: 20px 0;
}

.uc-logistics-modal__foot {
  padding: 12px 18px 16px;
  border-top: 1px solid #f0f0f0;
  text-align: right;
}

@media (max-width: 768px) {
  .mall-page-layout {
    grid-template-columns: 1fr;
  }

  .mall-side-panel {
    position: static;
  }

  .od-card__body {
    flex-direction: column;
  }

  .od-card__aside {
    border-left: 0;
    border-top: 1px solid #f0f0f0;
    padding: 12px 0 0;
    margin-left: 0;
    justify-content: flex-end;
  }

  .od-card__time {
    margin-left: 0;
    width: 100%;
  }
}

/* 自定义确认框（替代浏览器 confirm，按钮支持 i18n） */
.store-confirm-mask {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
}

.store-confirm {
  width: min(100%, 320px);
  padding: 20px 18px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.store-confirm__title {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: center;
}

.store-confirm__msg {
  margin: 0 0 18px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #374151;
  text-align: center;
}

.store-confirm__actions {
  display: flex;
  gap: 10px;
}

.store-confirm__btn {
  flex: 1;
  min-height: 40px;
}

.store-confirm__btn--ok {
  background: var(--color-primary, #e93323);
  border-color: var(--color-primary, #e93323);
  color: #fff;
}

.mall-news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mall-news-card {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}

.mall-news-card__cover {
  flex: 0 0 120px;
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
}

.mall-news-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mall-news-card__body {
  flex: 1;
  min-width: 0;
}

.mall-news-card__cat {
  font-size: 12px;
  color: var(--color-primary, #e93323);
}

.mall-news-card__title {
  margin: 4px 0 6px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.mall-news-card__summary {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--color-text-muted, #64748b);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mall-news-card__date {
  font-size: 12px;
  color: var(--color-text-muted, #94a3b8);
}

.mall-news-detail__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
}

.mall-news-detail__meta {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--color-text-muted, #64748b);
}

.mall-news-detail__cover {
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
}

.mall-news-detail__cover img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.mall-news-detail__content {
  line-height: 1.65;
}

.mall-news-detail__back {
  margin-top: 20px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .mall-news-card {
    flex-direction: column;
  }

  .mall-news-card__cover {
    width: 100%;
    flex: none;
    height: 140px;
  }
}
