/**
 * 移动端商城：扁平、无渐变无阴影、直角、红色主色（与参考模板一致）
 * 作用域：.mobile-container 内页面
 */
:root {
  --m-red: #e4393c;
  --m-red-dark: #c62828;
  --m-bg: #f5f5f5;
  --m-card: #ffffff;
  --m-text: #333333;
  --m-text-sub: #999999;
  --m-border: #eeeeee;
  --m-line: #e5e5e5;
  /* 底栏可视高度 + 安全区，与购物车结算条 bottom 对齐，避免白条缝 */
  --m-footer-inner-h: 50px;
}

.mobile-container {
  max-width: 750px;
  margin: 0 auto;
  background-color: var(--m-bg);
  min-height: 100vh;
  position: relative;
  padding-bottom: calc(var(--m-footer-inner-h) + env(safe-area-inset-bottom, 0px));
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

/* 商品详情等无顶栏页：固定返回（需晚于 .mobile-container * 的圆角重置，故单独提高优先级） */
.mobile-container .mobile-floating-back {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top, 0px));
  left: 10px;
  z-index: 200;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--m-border);
  border-radius: 50% !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
  color: var(--m-text);
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
}

.mobile-container .mobile-floating-back:active {
  opacity: 0.85;
}

/* 无顶部标题栏时（如商品详情）：预留刘海屏安全区 */
.mobile-container--no-header {
  padding-top: env(safe-area-inset-top, 0px);
}

/* 商品详情：为底部固定操作栏留出空间（替代原 Tab 高度） */
.mobile-container.mobile-container--detail-actionbar {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

/* 订单详情等：无底部导航时的留白 */
.mobile-container.mobile-container--no-bottom-nav {
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.mobile-container.mobile-container--order-detail-page.mobile-container--no-bottom-nav {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

/* 商品详情底部固定栏：首页 / 客服 / 购物车 + 加入购物车 / 立即兑换 */
.mobile-detail-actionbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750px;
  background-color: var(--m-card);
  border-top: 1px solid var(--m-border);
  display: flex;
  align-items: center;
  padding: 10px 8px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  z-index: 260;
  min-height: 56px;
}

.mobile-detail-actionbar__icons {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.mobile-detail-actionbar__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  text-decoration: none;
  color: var(--m-text);
  font-size: 12px;
  line-height: 1.25;
}

.mobile-detail-actionbar__icon i {
  font-size: 26px;
  margin-bottom: 4px;
  color: #444;
}

.mobile-detail-actionbar__icwrap {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.mobile-detail-actionbar__badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background-color: var(--m-red);
  color: #fff;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
  font-weight: 600;
  box-sizing: border-box;
}

.mobile-detail-actionbar__actions {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-left: 6px;
  min-width: 0;
}

.mobile-detail-actionbar__btn {
  flex: 1;
  border: none;
  padding: 14px 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
}

.mobile-detail-actionbar__btn--cart {
  background-color: #ffb300;
  color: #fff;
}

.mobile-detail-actionbar__btn--buy {
  background-color: var(--m-red);
  color: #fff;
}

a.mobile-detail-actionbar__btn--link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* 商品详情：隐藏兑换表单（仅 POST 用） */
.mobile-product-redeem-form-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* 加入购物车 / 立即兑换 底部弹层 */
.mobile-product-sheet {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  visibility: hidden;
}

.mobile-product-sheet.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-product-sheet__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-product-sheet.is-open .mobile-product-sheet__mask {
  opacity: 1;
}

.mobile-product-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 750px;
  margin: 0 auto;
  background-color: var(--m-card);
  border-top: 1px solid var(--m-border);
  padding: 16px 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
}

.mobile-product-sheet.is-open .mobile-product-sheet__panel {
  transform: translateY(0);
}

.mobile-product-sheet__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--m-text-sub);
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.mobile-product-sheet__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-right: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--m-border);
  margin-bottom: 16px;
}

.mobile-product-sheet__thumb {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  background: #f5f5f5;
  overflow: hidden;
}

.mobile-product-sheet__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-product-sheet__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 28px;
}

.mobile-product-sheet__meta {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.mobile-product-sheet__price {
  font-size: 20px;
  font-weight: 700;
  color: var(--m-red);
  margin-bottom: 8px;
}

.mobile-product-sheet__stock {
  font-size: 13px;
  color: var(--m-text-sub);
}

.mobile-product-sheet__qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--m-border);
  margin-bottom: 16px;
}

.mobile-product-sheet__qty-label {
  font-size: 15px;
  color: var(--m-text);
}

.mobile-product-sheet__stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--m-line);
}

.mobile-product-sheet__stepper-btn {
  width: 40px;
  height: 36px;
  border: none;
  background-color: #f5f5f5;
  color: var(--m-text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.mobile-product-sheet__stepper-num {
  min-width: 44px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  background-color: var(--m-card);
  border-left: 1px solid var(--m-line);
  border-right: 1px solid var(--m-line);
}

.mobile-product-sheet__footer {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-product-sheet__submit {
  width: 100%;
  border: none;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.mobile-product-sheet__submit--cart {
  background-color: #ffb300;
  color: #fff;
}

.mobile-product-sheet__submit--redeem {
  background-color: var(--m-red);
  color: #fff;
}

/* 扁平化：去掉阴影与圆角（与历史「无圆角无阴影」一致） */
.mobile-container * {
  box-shadow: none !important;
  border-radius: 0 !important;
}

.mobile-header {
  background-color: var(--m-card);
  padding: 8px 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--m-border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  box-sizing: border-box;
}

.mobile-header--with-back {
  justify-content: flex-start;
}

.mobile-header__back {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  margin-left: -4px;
  color: var(--m-text);
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
}

.mobile-header__back:active {
  opacity: 0.6;
}

.mobile-header__title,
.mobile-header .mobile-title {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  color: var(--m-text);
}

.mobile-header--with-back .mobile-header__title,
.mobile-header--with-back .mobile-title {
  text-align: center;
}

.mobile-header__side {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-left: 4px;
}

.mobile-search {
  background-color: #eeeeee;
  border: 1px solid var(--m-line);
  padding: 8px 12px;
  margin: 10px 12px;
  display: flex;
  align-items: center;
}

.mobile-search i {
  color: var(--m-text-sub);
  margin-right: 8px;
}

.mobile-search input {
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-size: 14px;
  color: var(--m-text);
}

.mobile-banner {
  padding: 0;
  margin: 0 0 6px;
}

/* 首页：轮播与分类、分类与商品区之间去掉外边距，避免露出灰底「缝隙」 */
.mobile-container--home .mobile-banner {
  margin-bottom: 0;
}

.mobile-container--home .mobile-banner + .mobile-section {
  margin-top: 0;
  border-top: none;
  /* 去掉底部分隔线，避免分类与商品之间出现一条灰缝 */
  border-bottom: none;
  padding-bottom: 8px;
}

.mobile-container--home .mobile-section + .mobile-section {
  margin-top: 0;
  border-top: none;
  /* 与上一块白底连成一体，仅保留较小上内边距 */
  padding-top: 8px;
}

.mobile-container--home .mobile-section + .mobile-section .mobile-section-title {
  margin-top: 0;
  margin-bottom: 8px;
}

.mobile-banner img,
.mobile-banner .swiper-container img {
  width: 100%;
  display: block;
  vertical-align: top;
}

/* 首页轮播：首张图加载后由 JS 写入 aspect-ratio；此处为兜底比例避免闪动 */
.mobile-banner .mobile-home-banner__swiper.swiper-container {
  width: 100%;
  margin: 0;
  overflow: hidden;
  position: relative;
  line-height: 0;
  aspect-ratio: 16 / 9;
  background-color: #e8e8e8;
}

.mobile-banner .mobile-home-banner__swiper .swiper-wrapper {
  align-items: stretch;
  height: 100%;
}

.mobile-banner .mobile-home-banner__swiper .swiper-slide {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.mobile-banner .mobile-home-banner__swiper .swiper-slide > a {
  display: block;
  height: 100%;
  line-height: 0;
}

.mobile-banner .mobile-home-banner__swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.mobile-banner .mobile-home-banner__swiper .swiper-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  margin: 0;
  padding: 0;
  line-height: 1;
  pointer-events: none;
}

.mobile-banner .mobile-home-banner__swiper .swiper-pagination-clickable .swiper-pagination-bullet {
  pointer-events: auto;
}

/* 商品详情：头图完整显示（contain）。方图 + 方形容器 = 左右不留白；勿用扁盒+contain 否则两侧会空 */
.mobile-product-gallery {
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  line-height: 0;
}

.mobile-product-gallery__swiper.swiper-container {
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.mobile-product-gallery .swiper-wrapper {
  height: 100%;
}

.mobile-product-gallery .swiper-slide {
  width: 100% !important;
  height: 100%;
  box-sizing: border-box;
  margin: 0 !important;
  background-color: #f5f5f5;
}

.mobile-product-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.mobile-product-gallery__placeholder {
  width: 100%;
  height: 100%;
  background-color: #eeeeee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 48px;
}

.mobile-section {
  margin: 10px 0;
  background-color: var(--m-card);
  padding: 12px 15px;
  border-top: 1px solid var(--m-border);
  border-bottom: 1px solid var(--m-border);
}

.mobile-section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--m-text);
}

.mobile-section-more {
  font-size: 12px;
  color: var(--m-text-sub);
  font-weight: normal;
}

.mobile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
}

.mobile-grid.mobile-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* 首页分类入口：一行 5 个 */
.mobile-grid.mobile-grid-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 10px 4px;
}

.mobile-grid.mobile-grid-5 .mobile-grid-icon {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.mobile-grid.mobile-grid-5 .mobile-grid-text {
  font-size: 11px;
}

.mobile-grid-item {
  text-align: center;
  color: inherit;
}

.mobile-grid-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: #fff;
  background-color: var(--m-red);
  overflow: hidden;
}

.mobile-grid-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-grid-icon--brand {
  background-color: var(--m-red);
}

.mobile-grid-text {
  font-size: 12px;
  color: var(--m-text);
  line-height: 1.3;
}

.mobile-product-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mobile-product-item {
  position: relative;
  background-color: var(--m-card);
  overflow: hidden;
  border: 1px solid var(--m-border);
  color: inherit;
}

.mobile-product-img {
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  position: relative;
  overflow: hidden;
  background: #fafafa;
}

.mobile-product-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-product-info {
  padding: 8px 10px 10px;
}

.mobile-product-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--m-text);
  line-height: 1.35;
  min-height: 36px;
}

.mobile-product-price {
  color: var(--m-red);
  font-weight: 700;
  font-size: 15px;
}

.mobile-product-price span {
  font-size: 11px;
  color: var(--m-text-sub);
  font-weight: normal;
  margin-left: 4px;
}

/* 已兑换：放在价格下方，避免盖住积分 */
.mobile-product-sold-count {
  font-size: 11px;
  color: var(--m-text-sub);
  margin-top: 6px;
  line-height: 1.3;
}

/* 底栏 */
.mobile-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750px;
  background-color: var(--m-card);
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--m-line);
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  min-height: var(--m-footer-inner-h);
}

.mobile-footer-item {
  flex: 1;
  text-align: center;
  padding: 0 2px;
  color: var(--m-text-sub);
  text-decoration: none;
  position: relative;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

a.mobile-footer-item,
a.mobile-footer-item:visited {
  color: var(--m-text-sub);
}

.mobile-footer-item.active {
  color: var(--m-red);
}

a.mobile-footer-item.active,
a.mobile-footer-item.active:visited {
  color: var(--m-red);
}

.mobile-footer-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 28px;
  height: 2px;
  margin-left: -14px;
  background: var(--m-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-footer-item.active::after {
  transform: scaleX(1);
}

.mobile-footer-icon {
  font-size: 22px;
  margin-bottom: 2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  line-height: 1;
}

.mobile-footer-text {
  font-size: 11px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background-color: var(--m-red);
  color: #fff;
  min-width: 14px;
  height: 14px;
  font-size: 9px;
  line-height: 14px;
  text-align: center;
  padding: 0 3px;
  font-weight: 600;
}

/* 用户中心 */
.mobile-container .user-header {
  background-color: var(--m-red);
  padding: 18px 15px;
  color: #fff;
  display: flex;
  align-items: center;
}

.mobile-container .user-header .user-info {
  flex: 1;
  min-width: 0;
}

.mobile-container .user-avatar {
  width: 56px;
  height: 56px;
  background-color: #fff;
  margin-right: 12px;
  overflow: hidden;
}

.mobile-container .user-name {
  font-size: 17px;
  font-weight: 600;
}

.mobile-container .user-level {
  font-size: 11px;
  background-color: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  display: inline-block;
  margin-top: 6px;
}

.mobile-container .user-header__edit {
  margin-left: auto;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  padding: 6px;
  text-decoration: none;
}

.mobile-user-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 14px 12px;
}

.mobile-user-actions__link {
  font-size: 15px;
  color: var(--m-text-sub);
  text-decoration: none;
}

.mobile-user-actions__link--danger {
  color: var(--m-red);
}

.mobile-container .order-status {
  display: flex;
  background-color: var(--m-card);
  padding: 14px 0;
  margin-bottom: 0;
  border-top: 1px solid var(--m-border);
  border-bottom: 1px solid var(--m-border);
}

.mobile-container .order-status-icon {
  color: var(--m-red);
  opacity: 0.85;
}

.mobile-container .order-status-text {
  color: var(--m-text);
}

/* 分类横向滚动 */
.mobile-subnav {
  display: flex;
  overflow-x: auto;
  background-color: var(--m-card);
  padding: 10px 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--m-border);
  -webkit-overflow-scrolling: touch;
}

.mobile-subnav__link {
  padding: 6px 14px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--m-text);
  font-size: 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.mobile-subnav__link.is-active {
  color: var(--m-red);
  font-weight: 600;
  border-bottom-color: var(--m-red);
}

/* 按钮（移动端内） */
.mobile-container .btn-primary,
.mobile-container button.btn-primary {
  background-color: var(--m-red) !important;
  border-color: var(--m-red) !important;
  color: #fff !important;
}

.mobile-container .btn-info {
  background-color: transparent !important;
  border: 1px solid var(--m-red) !important;
  color: var(--m-red) !important;
}

.mobile-container .btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* 分页 */
.mobile-container .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
  flex-wrap: wrap;
  gap: 4px;
}

.mobile-container .pagination .page-link {
  display: inline-block;
  padding: 8px 12px;
  background-color: var(--m-card);
  border: 1px solid var(--m-border);
  color: var(--m-text);
  text-decoration: none;
  font-size: 14px;
}

.mobile-container .pagination .page-link:hover {
  border-color: var(--m-red);
  color: var(--m-red);
}

.mobile-container .pagination .page-link.active {
  background-color: var(--m-red);
  color: #fff;
  border-color: var(--m-red);
}

/* 轮播指示点 */
.mobile-container .swiper-pagination-bullet-active {
  background: var(--m-red) !important;
  opacity: 1 !important;
}

.mobile-container .swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
}

/* 登录页等无底栏时底部留白 */
.mobile-page--solo {
  padding-bottom: 20px;
}

/* ========== 分类页：侧栏 + 列表 + 悬浮结算条 ========== */
.mobile-page--category {
  padding-bottom: 52px;
}

.mobile-search--category {
  margin: 0 !important;
  border-bottom: 1px solid var(--m-border);
  background-color: var(--m-card);
}

.mobile-search--category .mobile-search__form {
  display: flex;
  align-items: stretch;
  width: 100%;
  flex: 1;
}

.mobile-search--category .mobile-search__form input {
  flex: 1;
  border: none;
  background-color: #eeeeee;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--m-text);
  min-width: 0;
}

.mobile-search--category .mobile-search__btn {
  border: none;
  background-color: #eeeeee;
  color: var(--m-text-sub);
  padding: 0 14px;
  cursor: pointer;
  font-size: 16px;
}

.mobile-category-layout {
  display: flex;
  align-items: stretch;
  background-color: var(--m-card);
  min-height: 200px;
}

.mobile-category-sidebar {
  width: 78px;
  flex-shrink: 0;
  background-color: var(--m-bg);
  border-right: 1px solid var(--m-border);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-category-sidebar__item {
  display: block;
  padding: 14px 6px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--m-text);
  text-decoration: none;
  text-align: center;
  border-left: 3px solid transparent;
  word-break: break-all;
}

.mobile-category-sidebar__item.is-active {
  background-color: var(--m-card);
  font-weight: 600;
  border-left-color: var(--m-red);
}

.mobile-category-main {
  flex: 1;
  min-width: 0;
  background-color: var(--m-card);
}

.mobile-category-product-list {
  background-color: var(--m-card);
}

.mobile-cat-product {
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
  border-bottom: 1px solid var(--m-border);
}

.mobile-cat-product__media {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  overflow: hidden;
  background: #fafafa;
}

.mobile-cat-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-cat-product__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 22px;
}

.mobile-cat-product__body {
  flex: 1;
  min-width: 0;
  padding: 0 10px 2px;
  align-self: flex-start;
}

.mobile-cat-product__title {
  display: block;
  color: var(--m-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  max-height: 2.75em;
  overflow: hidden;
}

.mobile-cat-product__price {
  color: var(--m-red);
  font-size: 15px;
  font-weight: 700;
  margin-top: 8px;
}

.mobile-cat-product__actions {
  flex-shrink: 0;
  min-width: 76px;
  text-align: right;
  padding-bottom: 2px;
}

.mobile-cat-product__soldout {
  font-size: 12px;
  color: var(--m-text-sub);
}

.mobile-cat-add-btn {
  width: 28px;
  height: 28px;
  border: none;
  background-color: var(--m-red);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  vertical-align: middle;
}

.mobile-cat-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.mobile-cat-stepper__btn {
  width: 26px;
  height: 26px;
  border: none;
  background-color: var(--m-red);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.mobile-cat-stepper__num {
  min-width: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--m-text);
}

.mobile-category-pagination {
  padding: 8px 12px 0;
}

.mobile-category-empty {
  padding: 36px 16px;
  text-align: center;
  color: var(--m-text-sub);
  font-size: 14px;
}

.mobile-category-next-hint {
  text-align: center;
  padding: 16px 12px 20px;
  font-size: 12px;
  color: var(--m-text-sub);
}

.mobile-category-next-hint__link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--m-text-sub);
  text-decoration: none;
}

.mobile-category-next-hint__muted {
  color: var(--m-text-sub);
}

.mobile-category-cartbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 52px;
  width: 100%;
  max-width: 750px;
  height: 48px;
  background-color: var(--m-card);
  border-top: 1px solid var(--m-border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  box-sizing: border-box;
  z-index: 150;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-category-cartbar__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background-color: var(--m-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  font-size: 18px;
}

.mobile-category-cartbar__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  background-color: #fff;
  color: var(--m-red);
  font-size: 9px;
  line-height: 14px;
  text-align: center;
  font-weight: 700;
  border: 1px solid var(--m-red);
  box-sizing: border-box;
}

.mobile-category-cartbar__info {
  flex: 1;
  padding: 0 12px;
  font-size: 14px;
  color: var(--m-text);
  min-width: 0;
}

.mobile-category-cartbar__points {
  color: var(--m-red);
  font-weight: 700;
}

.mobile-category-cartbar__checkout {
  flex-shrink: 0;
  padding: 10px 18px;
  background-color: var(--m-red);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

/* ========== 购物车（卡片 + 底部结算 / 管理删除） ========== */
.mobile-container.mobile-container--cart-checkout {
  padding-bottom: calc(var(--m-footer-inner-h) + 52px + env(safe-area-inset-bottom, 0px));
}

.mobile-cart-page {
  padding: 0 12px 12px;
  box-sizing: border-box;
}

.mobile-cart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 8px;
  font-size: 14px;
  color: var(--m-text-sub);
}

.mobile-cart-toolbar__manage {
  border: none;
  background: none;
  padding: 4px 8px;
  font-size: 14px;
  color: var(--m-text);
  cursor: pointer;
}

.mobile-cart-card {
  background: var(--m-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--m-border);
}

.mobile-cart-row {
  display: flex;
  align-items: flex-start;
  padding: 12px 10px;
  border-bottom: 1px solid var(--m-line);
  gap: 8px;
}

.mobile-cart-row:last-child {
  border-bottom: none;
}

.mobile-cart-row__check {
  position: relative;
  flex-shrink: 0;
  padding-top: 28px;
  cursor: pointer;
}

.mobile-cart-row__check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.mobile-cart-row__check-ui {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ccc;
  box-sizing: border-box;
  background: #fff;
  position: relative;
}

.mobile-cart-row__check input:checked + .mobile-cart-row__check-ui {
  background: var(--m-red);
  border-color: var(--m-red);
}

.mobile-cart-row__check input:checked + .mobile-cart-row__check-ui::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.mobile-cart-row__media {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.mobile-cart-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-cart-row__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
}

.mobile-cart-row__body {
  flex: 1;
  min-width: 0;
}

.mobile-cart-row__title {
  display: block;
  font-size: 14px;
  color: var(--m-text);
  line-height: 1.35;
  text-decoration: none;
  margin-bottom: 4px;
}

.mobile-cart-row__code {
  font-size: 12px;
  color: var(--m-text-sub);
  margin-bottom: 6px;
}

.mobile-cart-row__row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.mobile-cart-row__unit {
  font-size: 15px;
  font-weight: 700;
  color: var(--m-red);
}

.mobile-cart-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--m-line);
  border-radius: 4px;
  overflow: hidden;
  background: #fafafa;
}

.mobile-cart-stepper__btn {
  width: 32px;
  height: 30px;
  border: none;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  padding: 0;
}

.mobile-cart-stepper__num {
  min-width: 36px;
  text-align: center;
  font-size: 14px;
  color: var(--m-text);
}

.mobile-cart-row__sub {
  text-align: right;
  font-size: 13px;
  color: var(--m-red);
  font-weight: 600;
}

.mobile-cart-guess {
  margin-top: 20px;
  padding-bottom: 8px;
}

.mobile-cart-guess__title {
  text-align: center;
  font-size: 13px;
  color: var(--m-text-sub);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-cart-guess__title::before,
.mobile-cart-guess__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--m-line);
}

.mobile-cart-guess__title span {
  flex-shrink: 0;
}

.mobile-cart-guess__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-cart-guess__card {
  background: var(--m-card);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--m-border);
}

.mobile-cart-guess__img {
  aspect-ratio: 1;
  background: #f5f5f5;
}

.mobile-cart-guess__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-cart-guess__placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ddd;
  font-size: 32px;
}

.mobile-cart-guess__name {
  font-size: 13px;
  color: var(--m-text);
  padding: 8px 8px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mobile-cart-guess__points {
  font-size: 14px;
  font-weight: 700;
  color: var(--m-red);
  padding: 4px 8px 10px;
}

.mobile-cart-checkout-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--m-footer-inner-h) + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 750px;
  background: var(--m-card);
  border-top: 1px solid var(--m-line);
  display: flex;
  align-items: center;
  padding: 8px 10px;
  box-sizing: border-box;
  z-index: 180;
  gap: 8px;
}

.mobile-cart-checkout-bar__all {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--m-text);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.mobile-cart-checkout-bar__all input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.mobile-cart-checkout-bar__mid {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.mobile-cart-checkout-bar__total {
  font-size: 13px;
  color: var(--m-text);
}

.mobile-cart-checkout-bar__total strong {
  color: var(--m-red);
  font-size: 16px;
}

.mobile-cart-checkout-bar__btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  background: var(--m-red);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-cart-checkout-bar__btn--danger {
  flex: 1;
  max-width: none;
}

.mobile-cart-empty {
  text-align: center;
  padding: 48px 16px 24px;
  color: var(--m-text-sub);
}

.mobile-cart-empty .fa {
  font-size: 56px;
  color: #e8e8e8;
  margin-bottom: 16px;
}

.mobile-cart-empty h3 {
  margin: 0 0 8px;
  color: var(--m-text);
  font-size: 17px;
}

.mobile-cart-empty p {
  margin: 0 0 20px;
  font-size: 14px;
}

.mobile-cart-empty__btn {
  text-decoration: none;
  display: inline-block;
}

.mobile-cart-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  padding: 12px 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 14px;
  text-align: center;
  z-index: 300;
}

.mobile-cart-toast.is-ok {
  background: rgba(34, 139, 34, 0.92);
}

.mobile-cart-toast.is-err {
  background: rgba(198, 40, 40, 0.92);
}

/* ========== 确认订单页（地址卡片 / 买家留言 / 底栏） ========== */
.mobile-container.mobile-container--confirm-submit {
  padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px));
}

.mobile-confirm-alert {
  margin: 10px 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.mobile-confirm-alert--err {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.mobile-confirm-alert--ok {
  background: #f0f9eb;
  color: #67c23a;
  border: 1px solid #e1f3d8;
}

.mobile-confirm-page {
  padding: 0 12px 16px;
  box-sizing: border-box;
}

.mobile-confirm-card {
  background: var(--m-card);
  border-radius: 12px;
  border: 1px solid var(--m-border);
  margin-bottom: 10px;
  overflow: hidden;
}

.mobile-confirm-card--address {
  padding: 0 0 0;
}

.mobile-confirm-address-empty {
  padding: 24px 14px;
  text-align: center;
  color: var(--m-text-sub);
  font-size: 14px;
}

.mobile-confirm-address-empty .btn {
  margin-top: 12px;
  display: inline-block;
}

.mobile-confirm-address-block {
  display: flex;
  align-items: center;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  margin-top: 12px;
}

.mobile-confirm-address-main {
  flex: 1;
  min-width: 0;
}

.mobile-confirm-address-namephone {
  font-size: 16px;
  font-weight: 700;
  color: var(--m-text);
  margin-bottom: 8px;
}

.mobile-confirm-address-name {
  margin-right: 10px;
}

.mobile-confirm-address-line {
  font-size: 13px;
  color: var(--m-text-sub);
  line-height: 1.45;
}

.mobile-confirm-address-arrow {
  flex-shrink: 0;
  color: #ccc;
  font-size: 22px;
  padding-left: 8px;
}

.mobile-confirm-airmail {
  margin-top: 14px;
  height: 10px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    #e4393c,
    #e4393c 5px,
    #5b9bd5 5px,
    #5b9bd5 10px
  );
}

/* 确认订单：多商品同一白卡片 + 行间分割线 */
.mobile-confirm-goods-bundle {
  padding: 0;
  overflow: hidden;
}

.mobile-confirm-goods-line {
  padding: 12px 14px;
  border-bottom: 1px solid var(--m-line);
}

.mobile-confirm-goods-line:last-child {
  border-bottom: none;
}

.mobile-confirm-goods {
  padding: 12px;
}

.mobile-confirm-goods__inner {
  display: flex;
  gap: 12px;
}

.mobile-confirm-goods__img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.mobile-confirm-goods__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-confirm-goods__ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ddd;
}

.mobile-confirm-goods__info {
  flex: 1;
  min-width: 0;
}

.mobile-confirm-goods__title {
  font-size: 14px;
  color: var(--m-text);
  line-height: 1.35;
  margin-bottom: 6px;
}

.mobile-confirm-goods__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-confirm-goods__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--m-red);
}

.mobile-confirm-goods__qty {
  font-size: 13px;
  color: var(--m-text-sub);
}

.mobile-confirm-cell {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 14px;
  margin: 0 0 10px;
  background: var(--m-card);
  border: 1px solid var(--m-border);
  border-radius: 12px;
  font-size: 14px;
  color: var(--m-text);
  cursor: pointer;
  text-align: left;
}

.mobile-confirm-cell__label {
  flex-shrink: 0;
  margin-right: 10px;
}

.mobile-confirm-cell__value {
  flex: 1;
  min-width: 0;
  text-align: right;
  color: var(--m-text-sub);
}

.mobile-confirm-cell__ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-confirm-cell__muted {
  color: #bbb;
}

.mobile-confirm-cell__arrow {
  flex-shrink: 0;
  margin-left: 6px;
  color: #ccc;
  font-size: 18px;
}

.mobile-confirm-cell--static {
  cursor: default;
  margin: 0;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--m-line);
}

.mobile-confirm-cell--static:last-child {
  border-bottom: none;
}

.mobile-confirm-cell--noborder {
  border-bottom: none;
}

.mobile-confirm-amount {
  color: var(--m-red) !important;
  font-weight: 700;
}

.mobile-confirm-spacer {
  height: 8px;
}

.mobile-confirm-backlink {
  display: block;
  text-align: center;
  padding: 12px;
  color: var(--m-text-sub);
  font-size: 14px;
  text-decoration: none;
}

.mobile-confirm-submitbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 750px;
  background: var(--m-card);
  border-top: 1px solid var(--m-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  z-index: 120;
  gap: 10px;
}

.mobile-confirm-submitbar__sum {
  flex: 1;
  font-size: 13px;
  color: var(--m-text);
  min-width: 0;
}

.mobile-confirm-submitbar__sum strong {
  color: var(--m-red);
  font-size: 16px;
}

.mobile-confirm-submitbar__btn {
  flex-shrink: 0;
  border: none;
  border-radius: 22px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 600;
  background: var(--m-red);
  color: #fff;
  cursor: pointer;
}

.mobile-confirm-submitbar__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mobile-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mobile-confirm-modal[hidden] {
  display: none !important;
}

.mobile-confirm-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.mobile-confirm-modal__panel {
  position: relative;
  width: 100%;
  max-width: 750px;
  background: #fff;
  border-radius: 12px 12px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 1;
}

.mobile-confirm-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--m-border);
  font-weight: 600;
  font-size: 16px;
}

.mobile-confirm-modal__close {
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0 4px;
}

.mobile-confirm-modal__body {
  padding: 16px;
}

.mobile-confirm-modal__textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--m-border);
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  resize: vertical;
  min-height: 100px;
}

.mobile-confirm-modal__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--m-text-sub);
}

.mobile-confirm-modal__submit {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: none;
  border-radius: 999px;
  background: var(--m-red);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* 确认订单：选择地址页 */
.mobile-checkout-pick {
  padding: 12px 12px 88px;
  box-sizing: border-box;
}

.mobile-checkout-pick__empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--m-text-sub);
}

.mobile-checkout-pick__add-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
  background: var(--m-red);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 15px;
}

.mobile-checkout-pick__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-checkout-pick__card {
  display: block;
  background: var(--m-card);
  border: 1px solid var(--m-border);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
}

.mobile-checkout-pick__card-top {
  font-size: 16px;
  font-weight: 700;
  color: var(--m-text);
  margin-bottom: 8px;
}

.mobile-checkout-pick__phone {
  margin-left: 12px;
  font-weight: 700;
}

.mobile-checkout-pick__card-mid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.mobile-checkout-pick__addr {
  flex: 1;
  font-size: 13px;
  color: var(--m-text-sub);
  line-height: 1.45;
}

.mobile-checkout-pick__use {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--m-red);
  font-weight: 600;
}

.mobile-checkout-pick__footer-btn {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 750px;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 16px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--m-red);
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 0;
  z-index: 120;
}

/* 全局提交加载（挂于 body，不受 .mobile-container * 圆角重置影响） */
.mobile-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(250, 250, 250, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-loading-overlay[hidden] {
  display: none !important;
}

.mobile-loading-overlay__inner {
  text-align: center;
  padding: 24px 32px;
  animation: mobileLoaderPop 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes mobileLoaderPop {
  from {
    transform: scale(0.82);
    opacity: 0.5;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.mobile-loading-overlay--minimal .mobile-loading-overlay__inner {
  animation: mobileLoaderPop 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mobile-loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  box-sizing: border-box;
  border: 2px solid #e8e8e8;
  border-top-color: var(--m-red);
  border-radius: 50%;
  animation: mobileSpin 0.75s linear infinite;
}

@keyframes mobileSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-loading-overlay__inner {
    animation: none;
  }

  .mobile-loading-spinner {
    animation: none;
    border-top-color: var(--m-line);
  }
}

.mobile-loading-overlay--minimal .mobile-loading-overlay__text {
  display: none !important;
}

.mobile-loading-overlay--minimal .mobile-loading-spinner {
  margin-bottom: 0;
}

.mobile-loading-overlay__text {
  margin: 0;
  font-size: 14px;
  color: var(--m-text-sub);
}

/* 居中 Toast（深底 + 缩放进入） */
.mobile-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 100002;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(320px, calc(100vw - 48px));
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(55, 55, 55, 0.92);
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-toast.mobile-toast--in {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.mobile-toast.mobile-toast--out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
}

.mobile-toast__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.mobile-toast--err .mobile-toast__icon {
  background: rgba(255, 100, 100, 0.25);
}

.mobile-toast__text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-toast {
    transition: opacity 0.15s ease;
  }

  .mobile-toast.mobile-toast--in,
  .mobile-toast.mobile-toast--out {
    transform: translate(-50%, -50%);
  }
}

/* ========== 资讯：搜索与列表无缝 + 标题与浏览/日期同一行 ========== */
.mobile-search--news-flush {
  margin: 0;
  border: none;
  border-bottom: 1px solid var(--m-line);
  background: var(--m-card);
}

.mobile-search--news-flush .mobile-search__form-inner {
  display: flex;
  align-items: center;
  width: 100%;
  flex: 1;
}

.mobile-news-listwrap {
  background: var(--m-bg);
}

.mobile-news-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--m-text-sub);
  font-size: 14px;
}

.mobile-news-list {
  background: var(--m-card);
  border-top: 1px solid var(--m-line);
}

.mobile-news-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--m-line);
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.mobile-news-row:last-child {
  border-bottom: none;
}

.mobile-news-row__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  color: var(--m-text);
}

.mobile-news-row__meta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--m-text-sub);
  white-space: nowrap;
}

.mobile-news-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 16px;
  font-size: 14px;
}

.mobile-news-pager__link {
  padding: 6px 12px;
  border: 1px solid var(--m-line);
  text-decoration: none;
  color: var(--m-text);
}

.mobile-news-pager__cur {
  padding: 6px 12px;
  border: 1px solid var(--m-red);
  background: var(--m-red);
  color: #fff;
}

/* ========== 收货地址页（参考电商卡片） ========== */
.mobile-container.mobile-container--address-page {
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}

.mobile-address-page {
  padding: 0 0 8px;
}

.mobile-address-alert {
  margin: 10px 12px;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 8px;
}

.mobile-address-alert--err {
  background: #fef2f2;
  color: #c62828;
  border: 1px solid #fecaca;
}

.mobile-address-alert--ok {
  background: #f0f9eb;
  color: #67c23a;
  border: 1px solid #e1f3d8;
}

.mobile-address-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--m-text-sub);
}

.mobile-address-empty .fa {
  font-size: 48px;
  color: #e0e0e0;
  margin-bottom: 12px;
}

.mobile-address-empty__sub {
  font-size: 13px;
  color: #bbb;
  margin-top: 6px;
}

.mobile-address-stack {
  background: var(--m-card);
  border-top: 1px solid var(--m-line);
  border-bottom: 1px solid var(--m-line);
}

.mobile-address-card {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--m-line);
}

.mobile-address-card:last-child {
  border-bottom: none;
}

.mobile-address-card__head {
  font-size: 16px;
  font-weight: 700;
  color: var(--m-text);
  margin-bottom: 8px;
}

.mobile-address-card__name {
  margin-right: 12px;
}

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

.mobile-address-card__addr {
  margin: 0;
  flex: 1;
  font-size: 13px;
  color: var(--m-text-sub);
  line-height: 1.45;
}

.mobile-address-card__edit {
  flex-shrink: 0;
  border: none;
  background: none;
  padding: 0;
  font-size: 14px;
  color: var(--m-text-sub);
  cursor: pointer;
}

.mobile-address-card__divider {
  height: 1px;
  background: var(--m-line);
  margin: 0 0 10px;
}

.mobile-address-card__default {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--m-text);
}

.mobile-address-default-form {
  margin: 0;
  padding: 0;
}

.mobile-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.mobile-switch input {
  opacity: 0;
  width: 48px;
  height: 28px;
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.mobile-switch__ui {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 14px;
  transition: background 0.2s;
  z-index: 1;
  pointer-events: none;
}

.mobile-switch__ui::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.mobile-switch input:checked + .mobile-switch__ui {
  background: var(--m-red);
}

.mobile-switch input:checked + .mobile-switch__ui::before {
  transform: translateX(20px);
}

.mobile-switch--disabled .mobile-switch__ui,
.mobile-switch--disabled input:disabled + .mobile-switch__ui {
  cursor: default;
  background: var(--m-red);
  opacity: 0.85;
}

.mobile-switch--disabled .mobile-switch__ui::before {
  transform: translateX(20px);
}

.mobile-address-card__del {
  margin: 8px 0 0;
  padding: 0;
  border: none;
  background: none;
}

.mobile-address-card__delbtn {
  border: none;
  background: none;
  padding: 0;
  font-size: 13px;
  color: var(--m-text-sub);
  cursor: pointer;
  text-decoration: underline;
}

.mobile-address-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 750px;
  box-sizing: border-box;
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--m-bg);
  border-top: 1px solid var(--m-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 260;
}

.mobile-address-bar__btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  background: var(--m-red);
  color: #fff;
  cursor: pointer;
}

.mobile-address-bar__btn--outline {
  background: var(--m-card);
  color: var(--m-red);
  border: 1px solid var(--m-red);
}

.mobile-address-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
}

.mobile-address-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.mobile-address-modal__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88vh;
  background: var(--m-card);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mobile-address-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--m-line);
}

.mobile-address-modal__head h3 {
  margin: 0;
  font-size: 17px;
}

.mobile-address-modal__x {
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.mobile-address-modal__body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.mobile-address-field {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--m-text);
}

.mobile-address-field span {
  display: block;
  margin-bottom: 6px;
}

.mobile-address-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  cursor: pointer;
}

.mobile-address-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.mobile-address-modal__actions .mobile-address-bar__btn {
  flex: 1;
}

/* ========== 我的订单入口（会员中心） ========== */
.mobile-orders-card {
  background: var(--m-card);
  margin: 10px 12px;
  border: 1px solid var(--m-border);
}

.mobile-orders-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--m-line);
}

.mobile-orders-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--m-text);
}

.mobile-orders-card__more {
  font-size: 13px;
  color: var(--m-text-sub);
  text-decoration: none;
}

.mobile-orders-card__more .fa {
  margin-left: 2px;
  font-size: 12px;
}

.mobile-orders-card__grid {
  display: flex;
  padding: 14px 4px 16px;
}

.mobile-orders-card__grid--spread {
  width: 100%;
  box-sizing: border-box;
  padding-left: 8px;
  padding-right: 8px;
  justify-content: space-between;
}

.mobile-orders-card__cell {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--m-text);
  min-width: 0;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: rgba(228, 57, 60, 0.12);
}

.mobile-orders-card__cell--service {
  z-index: 2;
}

.mobile-orders-card__icon-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
}

.mobile-orders-card__icon-wrap .mobile-orders-card__icon {
  margin-bottom: 0;
}

.mobile-orders-card__badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  background-color: var(--m-red);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid #fff;
}

.mobile-orders-card__icon {
  color: var(--m-red);
  font-size: 22px;
  line-height: 1;
  margin-bottom: 8px;
}

.mobile-orders-card__label {
  font-size: 12px;
  color: var(--m-text);
}

/* 订单列表页状态筛选 */
.mobile-orders-filter {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 0;
  background: var(--m-card);
  border-bottom: 1px solid var(--m-line);
  margin-bottom: 10px;
}

.mobile-orders-filter__item {
  flex: 0 0 auto;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--m-text);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.mobile-orders-filter__item.is-active {
  color: var(--m-red);
  font-weight: 600;
  border-bottom-color: var(--m-red);
}

/* ========== 订单列表页（卡片 + 搜索） ========== */
.mobile-orders-list-page {
  padding: 0 0 calc(16px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.mobile-orders-toolbar {
  background: var(--m-card);
  border: solid var(--m-line);
  border-width: 0 0 1px;
  border-radius: 0 !important;
  padding: 12px 12px 0;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.mobile-orders-toolbar .mobile-orders-search {
  margin-bottom: 0;
  padding-bottom: 10px;
}

.mobile-orders-search {
  margin-bottom: 10px;
}

.mobile-orders-search__form {
  display: flex;
  align-items: center;
  background: #f0f0f0;
  border: none;
  border-radius: 22px !important;
  padding: 6px 8px 6px 14px;
  box-sizing: border-box;
}

.mobile-orders-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  padding: 6px 0;
}

.mobile-orders-search__submit {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--m-text-sub);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-orders-search__clear {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--m-red);
  text-decoration: none;
}

.mobile-orders-filter--in-toolbar {
  margin: 0 -12px 0;
  padding: 0 4px;
  border-top: 1px solid var(--m-line);
  border-radius: 0 !important;
  background: transparent;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-orders-filter--in-toolbar.mobile-orders-filter--spread {
  overflow-x: visible;
  padding: 0;
  box-sizing: border-box;
  width: calc(100% + 24px);
  margin-left: -12px;
  margin-right: -12px;
}

.mobile-orders-filter--spread .mobile-orders-filter__item {
  flex: 1 1 0%;
  min-width: 0;
  text-align: center;
  padding: 12px 4px;
  font-size: 12px;
  box-sizing: border-box;
}

.mobile-orders-filter--in-toolbar::-webkit-scrollbar {
  display: none;
}

.mobile-orders-list-page .mobile-orders-filter:not(.mobile-orders-filter--in-toolbar) {
  background: var(--m-card);
  border: 1px solid var(--m-line);
  border-radius: 8px !important;
  margin-bottom: 12px;
  padding: 0 4px;
}

.mobile-orders-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--m-text-sub);
}

.mobile-orders-empty .fa {
  font-size: 40px;
  margin-bottom: 10px;
  opacity: 0.35;
}

.mobile-orders-flash {
  margin: 0;
  padding: 10px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--m-line);
}

.mobile-orders-flash--ok {
  background: #f0f9eb;
  color: #67c23a;
}

.mobile-orders-flash--err {
  background: #fef2f2;
  color: #c62828;
}

.mobile-order-card {
  background: var(--m-card);
  border: solid var(--m-line);
  border-width: 0 0 1px;
  border-radius: 0 !important;
  margin-bottom: 0;
  overflow: hidden;
}

.mobile-order-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--m-line);
}

.mobile-order-card__head-left {
  min-width: 0;
  flex: 1;
}

.mobile-order-card__head-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.mobile-order-card__no {
  font-size: 13px;
  color: var(--m-text);
  word-break: break-all;
}

.mobile-order-card__type {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--m-text-sub);
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 4px !important;
}

.mobile-order-card__status {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--m-text);
}

.mobile-order-card__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
}

.mobile-order-card__thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px !important;
  overflow: hidden;
  background: #f5f5f5;
  flex-shrink: 0;
}

.mobile-order-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-order-card__thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 22px;
}

.mobile-order-card__empty-items {
  padding: 16px 14px;
  font-size: 13px;
  color: var(--m-text-sub);
  text-align: center;
}

.mobile-order-card__sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f7f7f7;
  font-size: 13px;
  color: var(--m-text-sub);
}

.mobile-order-card__sum-pts strong {
  color: var(--m-text);
  font-weight: 600;
}

.mobile-order-card__foot {
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.mobile-order-card__form {
  margin: 0;
  display: inline-flex;
}

.mobile-order-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px !important;
  border: 1px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
  background: var(--m-card);
  font-family: inherit;
  line-height: 1.3;
}

button.mobile-order-card__btn {
  -webkit-appearance: none;
  appearance: none;
}

.mobile-order-card__btn--primary {
  color: var(--m-red);
  border-color: var(--m-red);
}

.mobile-order-card__btn--outline {
  color: var(--m-text-sub);
  border-color: var(--m-line);
}

.mobile-order-card__btn--muted {
  color: var(--m-text-sub);
  border-color: #ddd;
  background: #fafafa;
}

.mobile-order-card__detail {
  display: inline-block;
  padding: 6px 18px;
  font-size: 13px;
  color: var(--m-red);
  text-decoration: none;
  border: 1px solid var(--m-red);
  border-radius: 999px !important;
  background: var(--m-card);
}

.mobile-orders-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.mobile-orders-pager__btn {
  padding: 6px 14px;
  font-size: 14px;
  color: var(--m-text);
  text-decoration: none;
  border: 1px solid var(--m-line);
  border-radius: 6px !important;
  background: var(--m-card);
}

.mobile-orders-pager__cur {
  font-size: 14px;
  color: var(--m-text-sub);
}

/* 订单列表：物流弹层 */
.mobile-logistics-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mobile-logistics-modal[hidden] {
  display: none !important;
}

.mobile-logistics-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.mobile-logistics-modal__panel {
  position: relative;
  width: 100%;
  max-width: 750px;
  background: var(--m-card);
  border-radius: 12px 12px 0 0 !important;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: mobileLogisticsSlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mobileLogisticsSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.mobile-logistics-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--m-line);
  font-size: 16px;
  font-weight: 600;
}

.mobile-logistics-modal__close {
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--m-text-sub);
  cursor: pointer;
  padding: 0 4px;
}

.mobile-logistics-modal__body {
  padding: 16px;
}

.mobile-logistics-modal__tip {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--m-text-sub);
  line-height: 1.5;
}

.mobile-logistics-modal__row {
  margin-bottom: 16px;
}

.mobile-logistics-modal__row:last-child {
  margin-bottom: 0;
}

.mobile-logistics-modal__k {
  display: block;
  font-size: 13px;
  color: var(--m-text-sub);
  margin-bottom: 6px;
}

.mobile-logistics-modal__v {
  font-size: 15px;
  color: var(--m-text);
  word-break: break-all;
}

.mobile-logistics-modal__code-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-logistics-modal__code {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--m-text);
  word-break: break-all;
}

.mobile-logistics-modal__copy {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 13px;
  border: 1px solid var(--m-red);
  color: var(--m-red);
  background: var(--m-card);
  border-radius: 6px !important;
  cursor: pointer;
  font-family: inherit;
}

.mobile-logistics-modal__copy:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-logistics-modal__panel {
    animation: none;
  }
}

/* ========== 订单详情页 ========== */
.mobile-od {
  padding: 0 0 12px;
}

.mobile-od-alert {
  margin: 10px 0;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 6px !important;
}

.mobile-od-alert--ok {
  background: #f0f9eb;
  color: #67c23a;
  border: 1px solid #e1f3d8;
}

.mobile-od-alert--err {
  background: #fef2f2;
  color: #c62828;
  border: 1px solid #fecaca;
}

.mobile-od-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 22px;
  margin: 0 0 10px;
  background: linear-gradient(135deg, #ff6b4a 0%, #e53935 100%);
  border-radius: 0 !important;
  color: #fff;
}

.mobile-od-status__icon {
  font-size: 28px;
  opacity: 0.95;
}

.mobile-od-status__text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mobile-od-card {
  margin: 0 0 10px;
  background: var(--m-card);
  border: solid var(--m-line);
  border-width: 0 0 1px;
  border-radius: 0 !important;
  padding: 14px;
  box-sizing: border-box;
}

.mobile-od-card--address {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  z-index: auto;
}

.mobile-od-card__pin {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--m-red);
  margin-top: 2px;
}

.mobile-od-card__who {
  font-size: 15px;
  font-weight: 600;
  color: var(--m-text);
  margin-bottom: 8px;
}

.mobile-od-card__addr-line {
  font-size: 13px;
  color: var(--m-text-sub);
  line-height: 1.5;
}

.mobile-od-goods {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--m-line);
}

.mobile-od-goods:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.mobile-od-goods__thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 6px !important;
  overflow: hidden;
  background: #f5f5f5;
}

.mobile-od-goods__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-od-goods__thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 24px;
}

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

.mobile-od-goods__row1 {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.mobile-od-goods__name {
  font-size: 14px;
  color: var(--m-text);
  line-height: 1.4;
}

.mobile-od-goods__qty {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--m-text-sub);
}

.mobile-od-goods__price {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--m-red);
}

.mobile-od-goods__after-sale-hint {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--m-text-sub);
  line-height: 1.45;
}

.mobile-od-goods-empty {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: var(--m-text-sub);
}

.mobile-od-meta {
  padding: 4px 14px 14px;
}

.mobile-od-meta__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--m-line);
  font-size: 13px;
}

.mobile-od-meta__row:last-child {
  border-bottom: none;
}

.mobile-od-meta__k {
  flex-shrink: 0;
  color: var(--m-text-sub);
}

.mobile-od-meta__v {
  text-align: right;
  color: var(--m-text);
  word-break: break-all;
}

.mobile-od-meta__v--flex {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.mobile-od-meta__copy {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 12px;
  border: 1px solid var(--m-line);
  background: var(--m-card);
  border-radius: 4px !important;
  cursor: pointer;
  color: var(--m-text-sub);
}

.mobile-od-bill {
  padding-top: 4px;
  padding-bottom: 4px;
}

.mobile-od-bill__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--m-text);
  border-bottom: 1px solid var(--m-line);
}

.mobile-od-bill__row:last-child {
  border-bottom: none;
}

.mobile-od-bill__row--total {
  padding-top: 12px;
  margin-top: 2px;
  font-weight: 600;
  color: var(--m-red);
}

.mobile-od-contact {
  margin: 0 0 10px;
  padding: 8px 14px 4px;
  text-align: center;
}

.mobile-od-cancel-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--m-text-sub);
  line-height: 1.5;
}

.mobile-od-contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 14px;
  color: var(--m-text);
  text-decoration: none;
  border: 1px solid var(--m-line);
  border-radius: 999px !important;
  background: var(--m-card);
}

.mobile-od-contact__btn .fa {
  font-size: 16px;
  color: var(--m-text-sub);
}

.mobile-od-footer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 750px;
  box-sizing: border-box;
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--m-card);
  border-top: 1px solid var(--m-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  z-index: 220;
}

.mobile-od-footer__form {
  margin: 0;
}

.mobile-od-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px !important;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

button.mobile-od-footer__btn {
  appearance: none;
  font-family: inherit;
}

.mobile-od-footer__btn--primary {
  background: var(--m-red);
  color: #fff;
}

.mobile-od-footer__btn--outline {
  background: var(--m-card);
  color: var(--m-red);
  border: 1px solid var(--m-red);
}

.mobile-od-footer__btn--muted {
  background: #fafafa;
  color: var(--m-text-sub);
  border: 1px solid #ddd;
}

/* ========== 个人资料（列表式） ========== */
.mobile-profile {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.mobile-profile-alert {
  margin: 10px 12px;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 4px;
}

.mobile-profile-alert--err {
  background: #fef2f2;
  color: #c62828;
  border: 1px solid #fecaca;
}

.mobile-profile-alert--ok {
  background: #f0f9eb;
  color: #67c23a;
  border: 1px solid #e1f3d8;
}

.mobile-profile-list {
  background: var(--m-card);
  border-top: 1px solid var(--m-line);
  border-bottom: 1px solid var(--m-line);
  margin-bottom: 12px;
}

.mobile-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--m-line);
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  gap: 12px;
}

.mobile-profile-row:last-child {
  border-bottom: none;
}

.mobile-profile-row--multiline {
  align-items: flex-start;
}

.mobile-profile-row__label {
  flex-shrink: 0;
  font-size: 15px;
  color: var(--m-text);
}

.mobile-profile-row__tail {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  justify-content: flex-end;
  text-align: right;
}

.mobile-profile-row__tail--top {
  align-items: flex-start;
  padding-top: 2px;
}

.mobile-profile-row__value {
  font-size: 14px;
  color: var(--m-text-sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 52vw;
}

.mobile-profile-row__placeholder {
  font-size: 14px;
  color: #c0c4cc;
}

.mobile-profile-row__addr {
  font-size: 13px;
  color: var(--m-text-sub);
  line-height: 1.45;
  text-align: right;
  max-width: 60vw;
}

.mobile-profile-row__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  object-fit: cover;
  vertical-align: middle;
}

.mobile-profile-row__chev {
  color: #c0c4cc;
  font-size: 18px;
  flex-shrink: 0;
}

.mobile-profile-row--static .mobile-profile-row__value {
  max-width: 65vw;
  white-space: normal;
}

.mobile-profile-file {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.mobile-profile-panel {
  background: var(--m-card);
  margin: 0 12px 12px;
  padding: 14px;
  border: 1px solid var(--m-border);
  scroll-margin-top: 12px;
}

.mobile-profile-panel__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--m-text);
}

.mobile-profile-panel__hint {
  font-size: 13px;
  color: var(--m-text-sub);
  margin: 0 0 10px;
  line-height: 1.5;
}

.mobile-profile-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-profile-field {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--m-text);
}

.mobile-profile-field span {
  display: block;
  margin-bottom: 6px;
}

.mobile-profile-field em {
  color: var(--m-red);
  font-style: normal;
}

.mobile-profile-input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--m-line);
  border-radius: 4px;
  font-size: 15px;
}

.mobile-profile-input--disabled {
  background: #f5f7fa;
  color: var(--m-text-sub);
}

.mobile-profile-submit {
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: 999px;
  background: var(--m-red);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-profile-logout {
  display: block;
  margin: 24px 24px 0;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
  border-radius: 999px !important;
  background: var(--m-red);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

/* 个人资料：列表行为 button */
button.mobile-profile-row {
  width: 100%;
  border: none;
  background: var(--m-card);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

button.mobile-profile-row:active {
  background: #fafafa;
}

a.mobile-profile-row.mobile-profile-row--linkout {
  width: 100%;
  box-sizing: border-box;
  background: var(--m-card);
}

a.mobile-profile-row.mobile-profile-row--linkout:active {
  background: #fafafa;
}

/* 分项编辑视图 */
.mobile-profile-edit {
  padding: 8px 12px 24px;
}

.mobile-profile-edit__card {
  background: var(--m-card);
  border: 1px solid var(--m-border);
  padding: 16px 14px 20px;
}

.mobile-profile-edit__inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid var(--m-line);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.mobile-profile-edit__inline-label {
  flex-shrink: 0;
  font-size: 15px;
  color: var(--m-text);
}

.mobile-profile-edit__inline-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 15px;
  text-align: right;
  color: var(--m-text);
  background: transparent;
}

.mobile-profile-edit__inline-value {
  font-size: 15px;
  color: var(--m-text);
  text-align: right;
  word-break: break-all;
}

.mobile-profile-edit__note {
  font-size: 13px;
  color: var(--m-text-sub);
  line-height: 1.5;
  margin: 0 0 20px;
}

.mobile-profile-save-btn {
  width: calc(100% - 0px);
  margin-top: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: 6px !important;
  background: var(--m-red);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-profile-save-btn--ghost {
  background: var(--m-card);
  color: var(--m-red);
  border: 1px solid var(--m-red);
}

.mobile-profile-edit__avatar-wrap {
  text-align: center;
  margin-bottom: 20px;
}

.mobile-profile-edit__avatar-hit {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.mobile-profile-edit__avatar-hit img {
  display: block;
  border-radius: 50% !important;
  object-fit: cover;
}

.mobile-profile-edit__avatar-hit input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.mobile-profile-edit__avatar-tip {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--m-text-sub);
}

.mobile-profile-panel--plain {
  margin: 10px 12px;
  padding: 16px 14px;
  background: var(--m-card);
  border: 1px solid var(--m-border);
}

.mobile-profile--password-page .mobile-profile-save-btn {
  margin-top: 16px;
}

/* ========== 支付结果 / 下单成功 ========== */
.mobile-order-result {
  background: var(--m-bg);
  min-height: calc(100vh - 46px);
}

.mobile-order-result__hero {
  background: var(--m-card);
  padding: 36px 20px 28px;
  text-align: center;
  border-bottom: 1px solid var(--m-line);
}

.mobile-order-result__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50% !important;
  background: #52c41a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.mobile-order-result__title {
  font-size: 18px;
  font-weight: 600;
  color: #52c41a;
  margin-bottom: 12px;
}

.mobile-order-result__amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--m-text);
  letter-spacing: -0.02em;
}

.mobile-order-result__unit {
  font-size: 16px;
  font-weight: 600;
  color: var(--m-text-sub);
}

.mobile-order-result__sub {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--m-text-sub);
}

.mobile-order-result__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  padding: 0 4px;
}

.mobile-order-result__btn {
  flex: 1;
  max-width: 160px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 999px !important;
  box-sizing: border-box;
  border: 1px solid var(--m-line);
}

.mobile-order-result__btn--outline {
  background: var(--m-card);
  color: var(--m-text);
}

.mobile-order-result__btn--primary {
  background: var(--m-red);
  border-color: var(--m-red);
  color: #fff;
}

.mobile-order-result__guess {
  padding: 20px 12px 24px;
}

.mobile-order-result__guess-title {
  text-align: center;
  font-size: 14px;
  color: var(--m-text-sub);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.mobile-order-result__guess-title::before,
.mobile-order-result__guess-title::after {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--m-line);
}

.mobile-order-result__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mobile-order-result__card {
  width: calc(50% - 5px);
  box-sizing: border-box;
  background: var(--m-card);
  border: 1px solid var(--m-line);
  border-radius: 8px !important;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.mobile-order-result__card-img {
  aspect-ratio: 1;
  background: #f5f5f5;
}

.mobile-order-result__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-order-result__card-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  color: #ddd;
  font-size: 28px;
}

.mobile-order-result__card-name {
  font-size: 13px;
  line-height: 1.35;
  color: var(--m-text);
  padding: 8px 8px 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.mobile-order-result__card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 8px 10px;
}

.mobile-order-result__card-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--m-red);
}

.mobile-order-result__card-sold {
  font-size: 11px;
  color: var(--m-text-sub);
  flex-shrink: 0;
}
