:root {
  --blue: #1677ff;
  --green: #18bc9c;
  --red: #ed3c2b;
  --text: #1a1a1a;
  --muted: #777;
  --line: #e8e8e8;
  --bg: #f6f7fb;
  --card: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 Arial, "Microsoft YaHei", sans-serif;
  padding-top: 60px;
  padding-bottom: 66px;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.image-fallback {
  object-fit: contain !important;
  background: #eef4ff;
}
.container { width: min(1300px, calc(100% - 24px)); margin: 0 auto; }

.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #efefef;
  box-shadow: 0 1px 4px rgba(32, 35, 51, .04);
}
.topbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 58px; display: block; }
.nav { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav a, .nav-btn {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: #333;
}
.nav a:hover, .nav-btn:hover { background: #f7f9fc; color: var(--blue); }
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 8px;
}
.mobile-menu-btn span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #333;
  border-radius: 2px;
}
.mobile-menu-mask {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  background: rgba(0,0,0,.42);
}
.mobile-menu-mask.show {
  display: block;
}
.mobile-menu {
  position: fixed;
  z-index: 111;
  top: 0;
  right: 0;
  width: min(82vw, 320px);
  height: 100vh;
  overflow-y: auto;
  background: #fff;
  box-shadow: -16px 0 40px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .2s ease;
}
.mobile-menu.show {
  transform: translateX(0);
}
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
}
.mobile-menu-head img {
  height: 46px;
}
.mobile-menu-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f5f5f5;
  font-size: 20px;
}
.mobile-menu-section,
.mobile-menu-cats {
  display: grid;
  gap: 0;
}
.mobile-menu-section a,
.mobile-menu-cats a {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f1f1;
}
.mobile-menu-cats {
  grid-template-columns: repeat(2, 1fr);
}
.mobile-menu-title {
  padding: 11px 16px;
  background: #f7f9fc;
  color: #777;
  font-weight: 700;
}
.dropdown { position: relative; height: 100%; }
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 59px;
  width: 142px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { height: auto; padding: 9px 14px; display: block; }

.announce {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  margin: 10px 0;
  padding: 5px 12px;
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
}
.announce img { height: 15px; }
.announce marquee { color: #4a4a4a; }

.category-strip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  margin: 12px 0 18px;
}
.category-btn {
  min-height: 88px;
  padding: 12px 4px;
  text-align: center;
  background: #fff;
  border: 1px solid #f1f1f1;
  border-radius: 4px;
  color: #333;
  box-shadow: 0 1px 1px rgba(32,35,51,.03);
}
.category-btn:hover, .category-btn.active { border-color: var(--blue); color: var(--blue); }
.category-btn img { width: 42px; height: 42px; object-fit: contain; display: block; margin: 0 auto 7px; }

.section-title {
  margin: 22px 0 14px;
  font-size: 20px;
  font-weight: 700;
}
.category-section {
  margin-bottom: 28px;
}
.empty-category {
  color: var(--muted);
  text-align: center;
}
.goods-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.goods-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f3f3f3;
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(32,35,51,.04), 0 2px 4px rgba(32,35,51,.02);
}
.goods-card:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.goods-card img.cover { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #f4f6fa; }
.goods-card-body { padding: 12px; min-height: 146px; display: flex; flex-direction: column; }
.goods-title { min-height: 42px; font-weight: 700; color: #222; line-height: 1.45; }
.goods-desc { margin: 6px 0 10px; color: #666; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-bottom { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.price { color: #ed3c2b; font-weight: 700; font-size: 18px; }
.price small { font-size: 12px; font-weight: 400; }
.buy-pill {
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  padding: 7px 12px;
  white-space: nowrap;
}
.hot-tag {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 3px 8px;
  border-radius: 2px;
  background: #fff3ed;
  color: #f05a28;
  font-size: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.goods-listing-page .category-section {
  margin-bottom: 18px;
  padding: 14px 14px 22px;
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(32,35,51,.05);
}
.goods-listing-page .section-title {
  margin: 0 0 18px;
  padding: 0 0 13px 2px;
  border-bottom: 1px solid #eee;
  color: #1b1f24;
  font-size: 18px;
  line-height: 1.35;
}
.goods-listing-page .goods-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.goods-listing-page .goods-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  min-height: 112px;
  padding: 0;
  border-color: #f0f0f0;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(32,35,51,.04);
}
.goods-listing-page .goods-card img.cover {
  width: 112px;
  height: 112px;
  padding: 7px;
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
  border: 5px solid #ffedaf;
}
.goods-listing-page .goods-card-body {
  display: grid;
  grid-template-rows: auto 40px;
  align-content: space-between;
  min-height: 112px;
  padding: 0;
  overflow: hidden;
}
.goods-listing-page .goods-title {
  min-height: 0;
  margin: 2px 0 10px;
  padding-right: 10px;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.goods-listing-page .goods-bottom {
  position: relative;
  min-height: 40px;
  margin-top: auto;
  padding: 0 88px 0 8px;
  align-items: center;
  background: #ffe9a6;
  border-radius: 4px 0 0 4px;
  overflow: hidden;
}
.goods-listing-page .price {
  color: #a94b00;
  font-size: 18px;
  line-height: 1;
}
.goods-listing-page .price small {
  margin-left: 1px;
  color: #8f4a14;
}
.goods-listing-page .buy-pill {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 78px;
  height: 100%;
  padding: 0 8px 0 16px;
  border-radius: 4px 4px 4px 0;
  background: #ff241f;
  color: #fff;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}
.goods-listing-page .buy-pill small {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.goods-hero {
  background: linear-gradient(135deg, #2264d8, #163d84);
  color: #fff;
  margin: -10px 0 0;
  padding: 36px 0;
}
.goods-meta { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.goods-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.goods-main img { width: 120px; height: 120px; border-radius: 6px; object-fit: cover; background: #fff; }
.goods-name { font-size: 18px; font-weight: 700; line-height: 1.6; max-width: 700px; }
.promise { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; color: rgba(255,255,255,.74); }
.goods-sale { color: rgba(255,255,255,.74); white-space: nowrap; }
.goods-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin-top: 18px;
}
.panel {
  background: #fff;
  border: 1px solid #f1f1f1;
  border-radius: 4px;
  padding: 18px;
}
.step-title { font-weight: 700; margin-bottom: 14px; font-size: 15px; }
.sku-grid { display: grid;gap: 12px; }
.sku-grid.spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sku-item {
  min-height: 47px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
}
.sku-item.checked { border: 2px solid #1452fa; background: rgba(20,117,250,.1); color: #1475fa; }
.sku-item.disabled { opacity: .48; cursor: not-allowed; background: #f8f8f8; }
.sku-price { color: #df1e1c; font-weight: 700; white-space: nowrap; }
.spec-sku {
  position: relative;
  min-height: 64px;
  padding: 12px 74px 12px 16px;
}
.sku-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.sku-main img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}
.sku-main b {
  min-width: 0;
  color: #111;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sku-side {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  justify-items: end;
}
.sku-side strong {
  color: #df1e1c;
  font-size: 15px;
  line-height: 1;
}
.quick-number-box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.num-item {
  height: 50px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
}
.num-item.active { border: 2px solid #afd1ff; background: #edf5ff; color: #1475fa; }
.counter { display: flex; width: 114px; height: 40px; border: 1px solid #d8d8d8; border-radius: 8px; overflow: hidden; }
.counter button { width: 36px; border: 0; background: #f7f7f7; }
.counter input { min-width: 0; flex: 1; border: 0; text-align: center; outline: 0; }
.form-control {
  width: 100%;
  height: 42px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  padding: 0 12px;
  background: #fff;
  outline: 0;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,119,255,.12); }
.buy-summary { border-top: 1px solid #ebebeb; padding-top: 18px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; }
.primary-btn {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}
.default-btn {
  height: 38px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #fff;
  padding: 0 16px;
}

.auth-wrap, .simple-wrap { max-width: 520px; margin: 28px auto; }
.order-query-wrap {
  width: min(1300px, calc(100% - 24px));
  max-width: 1300px;
}
.order-query-card {
  width: 100%;
}
.order-query-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.order-query-label {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.order-query-input {
  min-width: 0;
  margin-bottom: 0;
}
.order-query-submit {
  width: 140px;
  height: 42px;
  align-self: center;
}
.auth-box h2, .page-header { margin: 0 0 18px; font-size: 22px; }
.field { margin-bottom: 14px; }
.hint { color: #777; font-size: 13px; margin-top: 8px; }
.member-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; margin-top: 20px; }
.side-list { padding: 0; margin: 0; list-style: none; background: #fff; border: 1px solid #eee; }
.side-heading { padding: 10px 15px; background: #f7f7f7; color: #777; font-weight: 700; }
.side-list a { display: block; padding: 10px 15px; border-top: 1px solid #f2f2f2; }
.side-list a.active, .side-list a:hover { background: #067aff; color: #fff; }
.profile-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; }
.avatar { width: 88px; height: 88px; border-radius: 50%; background: #e9f0ff; display: grid; place-items: center; color: var(--blue); font-size: 34px; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.stat { background: #fff; border: 1px solid #eee; padding: 14px; text-align: center; }
.stat b { display: block; color: var(--blue); font-size: 20px; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { border-bottom: 1px solid #eee; padding: 10px; text-align: center; }
.table th { background: #f8f8f8; }
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrap .table {
  min-width: 680px;
}
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab { border: 1px solid #d8d8d8; background: #fff; padding: 8px 16px; border-radius: 4px; }
.tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* 订单详情：入口来自会员中心订单列表，样式保持 202605 会员页的轻量表格体系。 */
.order-detail-page { align-items: start; }
.order-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.order-detail-head .page-header {
  margin-bottom: 0;
  word-break: break-all;
}
.order-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.order-detail-actions .default-btn,
.order-card-head .default-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.order-summary-panel { margin-bottom: 14px; }
.order-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.order-summary-grid div {
  min-width: 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #eef1f5;
  border-radius: 4px;
}
.order-summary-grid span,
.order-info-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.order-summary-grid b,
.order-info-item b {
  display: block;
  margin-top: 6px;
  min-width: 0;
  font-size: 15px;
  word-break: break-all;
}
.order-status-pill {
  display: inline-block !important;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
}
.order-detail-tabs {
  position: sticky;
  top: 60px;
  z-index: 8;
  padding: 10px 0 12px;
  background: var(--bg);
}
.order-tab-panel { display: none; }
.order-tab-panel.active { display: block; }
.order-info-panel { margin-bottom: 14px; }
.order-section-title {
  margin: 0 0 12px;
  font-size: 16px;
}
.order-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.order-info-item {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #eef1f5;
  border-radius: 4px;
  background: #fff;
}
.order-info-wide { grid-column: 1 / -1; }
.order-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.order-card-head .order-section-title { margin: 0 auto 0 0; }
.order-detail-value img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  vertical-align: middle;
}
.order-card-table td {
  word-break: break-all;
}
.grade-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grade-card { border: 1px solid #e2e2e2; background: #fff; border-radius: 4px; padding: 16px; }
.grade-card h3 { margin: 0 0 10px; font-size: 16px; }

.modal-mask {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
}
.modal-mask.show { display: flex; }
.pay-modal {
  width: min(800px, calc(100vw - 24px));
  max-height: min(600px, calc(100vh - 40px));
  overflow: visible;
  background: linear-gradient(to top, #fff, #fff, #f5f4fe, #a3c7f9);
  border-radius: 15px;
  box-shadow: 0 22px 70px rgba(0,0,0,.22);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 0; }
.modal-close { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.7); }
.modal-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; padding: 18px; }
.modal-section { background: rgba(255,255,255,.76); border-radius: 8px; padding: 14px; }
.modal-body > div .modal-section + .modal-section { margin-top: 12px; }
.server-item, .pay-item {
  border: 1px solid #d8d8d8;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  position: relative;
}
.server-item.active, .pay-item.active { border: 2px solid var(--blue); background: #edf5ff; }
.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pay-item { margin: 0; }
.order-lines { padding: 0; margin: 0; list-style: none; }
.order-lines li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.pay-button { margin-top: 14px; height: 42px; border: 0; border-radius: 5px; background: var(--blue); color: #fff; font-weight: 700; width: 100%; }

.float-app {
  position: fixed;
  left: 0;
  bottom: 171px;
  z-index: 40;
}
.float-app img { width: 90px; display: block; }
.float-app button { position: absolute; right: -8px; top: 8px; border: 0; border-radius: 50%; background: #fff; width: 18px; height: 18px; line-height: 18px; }
.side-float {
  position: fixed;
  right: 10px;
  top: 180px;
  z-index: 40;
  width: 86px;
}
.side-float-item {
  display: block;
  width: 100%;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 6px;
  text-align: center;
  box-shadow: 0 0 16px rgba(209,216,226,.5);
  cursor: pointer;
  font-size: 12px;
  color: inherit;
}
.side-float-item:first-child { border-radius: 8px 8px 0 0; }
.side-float-item:last-child { border-radius: 0 0 8px 8px; }
.mobile-footer {
  display: flex;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 80;
  width: 100%;
  background: #fff;
  border-top: 1px solid #efefef;
  justify-content: space-around;
  text-align: center;
  color: gray;
  padding-top: 3px;
}
.mobile-footer a { width: 20%; padding: 3px 0; font-size: 12px; }
.mobile-footer img { width: 24px; display: block; margin: 0 auto; }
.mobile-buybar {
  display: none;
  position: fixed;
  left: 0;
  bottom: 51px;
  z-index: 70;
  width: 100%;
  background: #fff;
  box-shadow: 0 -3px 12px rgba(0,0,0,.06);
}
.mobile-buybar-inner { display: grid; grid-template-columns: 35% 65%; }
.mobile-kf { border: 0; color: #fff; background: #333; font-weight: 700; padding: 12px; }
.mobile-buy { border: 0; color: #fff; background: var(--blue); font-weight: 700; padding: 12px; }
.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  top: 80px;
  transform: translateX(-50%);
  display: none;
  max-width: calc(100vw - 32px);
  background: rgba(0,0,0,.78);
  color: #fff;
  border-radius: 4px;
  padding: 9px 14px;
}
.toast.show { display: block; }
.footer-text { text-align: center; color: #777; padding: 32px 0 18px; }
.article-body {
  color: #333;
  font-size: 15px;
  line-height: 1.9;
}
.article-body p {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f1f1;
}
.goods-detail-area {
  margin-top: 18px;
}
.detail-tabs {
  position: sticky;
  top: 60px;
  z-index: 5;
  display: flex;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eee;
  background: #fff;
}
.detail-tabs a {
  padding: 8px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #fff;
  color: #333;
}
.detail-tabs a:hover {
  color: var(--blue);
  border-color: var(--blue);
}
.detail-block {
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.detail-block:last-child {
  border-bottom: 0;
}
.detail-block h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.promise-grid div {
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #e7f0ff;
  border-radius: 4px;
}
.promise-grid b,
.promise-grid span {
  display: block;
}
.promise-grid span {
  margin-top: 6px;
  color: #666;
  font-size: 13px;
}
.process-list {
  margin: 0;
  padding-left: 20px;
}
.process-list li {
  margin: 8px 0;
}
.record-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.record-list li {
  padding: 9px 0;
  border-bottom: 1px dashed #e5e5e5;
  color: #555;
}
.delivery-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #e5e5e5;
}
.delivery-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.order-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.timeline-step {
  position: relative;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #e7f0ff;
  border-radius: 4px;
}
.timeline-dot {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}
.timeline-step b {
  display: block;
}
.timeline-step p {
  margin: 4px 0 0;
  color: #666;
  font-size: 12px;
}

@media (max-width: 1199px) {
  .category-strip { grid-template-columns: repeat(6, 1fr); }
  .goods-grid { grid-template-columns: repeat(3, 1fr); }
  .side-float, .float-app { display: none; }
  .order-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  body { padding-top: 50px; padding-bottom: 114px; }
  .topbar { height: 50px; }
  .brand img { height: 48px; }
  .nav { display: none; }
  .mobile-menu-btn { display: block; }
  .container { width: min(100% - 20px, 1300px); }
  .category-strip { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .category-btn { min-height: 76px; font-size: 12px; }
  .category-btn img { width: 34px; height: 34px; }
  .goods-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .goods-listing-page .category-section { padding: 12px 10px 16px; }
  .goods-listing-page .goods-grid { grid-template-columns: 1fr; gap: 12px; }
  .goods-listing-page .goods-card { grid-template-columns: 96px minmax(0, 1fr); min-height: 96px; gap: 8px; }
  .goods-listing-page .goods-card img.cover { width: 96px; height: 96px; border-width: 4px; }
  .goods-listing-page .goods-card-body { grid-template-rows: auto 34px; min-height: 96px; }
  .goods-listing-page .goods-title { margin-bottom: 8px; font-size: 13px; }
  .goods-listing-page .goods-bottom { min-height: 34px; padding-right: 78px; }
  .goods-listing-page .buy-pill { width: 70px; font-size: 12px; }
  .goods-card-body { padding: 9px; min-height: 132px; }
  .goods-title { font-size: 13px; min-height: 38px; }
  .price { font-size: 16px; }
  .buy-pill { padding: 6px 8px; font-size: 12px; }
  .goods-hero { background: #fff; color: #111; padding: 16px 0 4px; }
  .goods-meta { align-items: flex-start; }
  .goods-main img { width: 88px; height: 88px; }
  .goods-name { font-size: 15px; }
  .promise, .goods-sale { color: #555; }
  .goods-layout { display: block; margin-top: 10px; }
  .panel { border: 0; border-radius: 0; margin-left: -10px; margin-right: -10px; }
  .sku-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sku-grid.spec-grid { grid-template-columns: 1fr; }
  .sku-item { display: block; min-height: 54px; font-size: 12px; padding: 8px; }
  .spec-sku { display: flex; min-height: 58px; padding: 10px 74px 10px 12px; }
  .goods-layout aside { margin-top: 10px; }
  .member-layout { display: block; }
  .order-query-wrap {
    width: min(100% - 20px, 1300px);
    margin-top: 16px;
  }
  .order-query-form {
    grid-template-columns: 1fr;
  }
  .order-query-submit {
    width: 100%;
  }
  .side-list { margin-bottom: 14px; }
  .order-detail-head {
    display: block;
  }
  .order-detail-actions {
    justify-content: flex-start;
    margin-top: 10px;
  }
  .order-detail-actions .default-btn,
  .order-card-head .default-btn {
    height: 34px;
    padding: 0 10px;
  }
  .order-summary-grid,
  .order-info-grid {
    grid-template-columns: 1fr;
  }
  .order-detail-tabs {
    top: 50px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .order-detail-tabs .tab {
    flex: 0 0 auto;
    padding: 8px 12px;
  }
  .stats, .grade-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-mask { align-items: end; }
  .pay-modal {
    width: 100%;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    border-radius: 15px 15px 0 0;
  }
  .modal-body {
    display: block;
    /* 小屏确认订单弹窗预留底部安全区，避免去付款按钮被浏览器底栏遮挡。 */
    padding-bottom: calc(30px + constant(safe-area-inset-bottom));
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
  }
  .modal-section { margin-bottom: 12px; }
  .detail-tabs {
    top: 50px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .detail-tabs a {
    flex: 0 0 auto;
  }
  .promise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .delivery-row {
    grid-template-columns: 1fr auto;
  }
  .delivery-row b {
    grid-column: 1 / -1;
  }
  .order-timeline {
    grid-template-columns: 1fr;
  }
  .mobile-buybar { display: flex; }
  .mobile-buybar { display: block; }
}
