:root {
  --blue: #3a7bd5;
  --blue-deep: #2f6fc7;
  --red: #e53935;
  --red-soft: #ff6b6b;
  --bg: #f3f4f6;
  --card: #fff;
  --text: #222;
  --muted: #888;
  --stock: #5b6cff;
  --sales: #ff5fa2;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button, input {
  font: inherit;
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  text-align: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.topbar h1 {
  font-size: 17px;
  font-weight: 700;
}

.main {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 72px;
  min-height: calc(100vh - 48px);
  background: #fff;
}

.view[hidden] {
  display: none !important;
}

.banner {
  margin: 8px 10px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #d8efff;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
}

.announce {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 2px;
  font-size: 13px;
}

.announce-link {
  color: #333;
  cursor: pointer;
}

.notice {
  text-align: center;
  color: var(--red);
  font-size: 13px;
  padding: 6px 12px 12px;
  font-weight: 600;
}

.section {
  margin-bottom: 8px;
}

.section-head {
  background: var(--blue);
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  padding: 9px 12px;
}

.goods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 8px 14px;
  background: #fff;
}

.goods-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.goods-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f7f7f7;
  display: block;
}

.goods-body {
  padding: 6px 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.goods-title {
  font-size: 11px;
  line-height: 1.35;
  height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.goods-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.tag {
  font-size: 10px;
  line-height: 1;
  padding: 3px 4px;
  border-radius: 2px;
  white-space: nowrap;
}

.tag.stock {
  color: var(--stock);
  background: rgba(91, 108, 255, 0.1);
}

.tag.sales {
  color: var(--sales);
  background: rgba(255, 95, 162, 0.1);
}

.goods-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.goods-price {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.cart-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.cart-btn:active {
  background: #c62828;
}

.page-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 12px;
  border-bottom: 1px solid #eee;
  position: relative;
}

.page-title.with-back {
  padding-left: 44px;
  padding-right: 44px;
}

.back-btn {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #444;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.category-list {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.category-item {
  border: none;
  background: #f7f9fc;
  border-radius: 8px;
  padding: 16px 14px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-item::after {
  content: "›";
  color: #bbb;
  font-size: 22px;
  font-weight: 400;
}

.category-item:active {
  background: #eef3fb;
}

.info-card,
.recharge-card {
  margin: 16px 14px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 18px 16px;
  line-height: 1.8;
  font-size: 14px;
}

.contact-link {
  display: inline-block;
  margin: 10px 0;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.faq-list {
  padding: 12px 14px;
}

.faq-list details {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.faq-list summary {
  font-weight: 700;
  cursor: pointer;
}

.faq-list p {
  margin-top: 8px;
  color: #555;
  font-size: 13px;
  line-height: 1.6;
}

body.is-detail .tabbar,
body.sheet-open .tabbar {
  display: none;
}

#view-detail {
  background: #f5f5f5;
  padding-bottom: 64px;
}

.detail {
  padding: 0 0 16px;
}

.detail-cover {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.detail-info {
  background: #fff;
  padding: 14px 14px 12px;
}

.detail-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 8px;
}

.detail-price {
  color: #e23b3b;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.detail-sales {
  color: #999;
  font-size: 13px;
}

.trust-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 10px 0 0;
  padding: 12px 10px;
  background: #fff;
  color: #888;
  font-size: 12px;
}

.detail-desc {
  margin-top: 10px;
  background: #f3f3f3;
  padding: 14px 12px 18px;
}

.desc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.desc-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: #3cb371;
}

.desc-box {
  background: #fff;
  border-radius: 2px;
  padding: 14px 12px;
}

.desc-box p {
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 14px;
  font-weight: 700;
}

.desc-box .info-black {
  color: #222;
  margin-bottom: 10px;
}

.desc-box .info-red {
  color: #e23b3b;
}

.detail-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: stretch;
  background: #fff;
  border-top: 1px solid #eee;
  z-index: 35;
  padding-bottom: env(safe-area-inset-bottom);
}

.detail-nav {
  width: 22%;
  border: none;
  background: #fff;
  color: #666;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  cursor: pointer;
  padding: 8px 0;
}

.detail-nav svg {
  color: #666;
}

.detail-buy {
  flex: 1;
  border: none;
  background: #e23b3b;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-mask[hidden] {
  display: none;
}

.sheet {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 12px 12px 0 0;
  padding: 16px 14px calc(12px + env(safe-area-inset-bottom));
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
}

.sheet-head img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  background: #f5f5f5;
}

.sheet-price {
  color: #e23b3b;
  font-size: 20px;
  font-weight: 800;
  padding-top: 6px;
}

.sheet-close {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #f2f2f2;
  color: #888;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.sheet-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-top: 1px solid #f0f0f0;
  font-size: 14px;
}

.sheet-row span {
  width: 88px;
  flex-shrink: 0;
  color: #333;
}

.sheet-row i {
  color: #e21d3a;
  font-style: normal;
  margin-left: 2px;
}

.sheet-tip {
  min-height: 18px;
  margin: 8px 16px 0;
  color: #e21d3a;
  font-size: 13px;
}

.sheet-row input {
  flex: 1;
  border: none;
  outline: none;
  height: 40px;
  font-size: 14px;
  min-width: 0;
  background: transparent;
}

.sheet-row input::placeholder {
  color: #c0c4cc;
}

.qty {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.qty button {
  width: 28px;
  height: 28px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #666;
  cursor: pointer;
}

.qty input {
  width: 42px;
  height: 28px;
  border: 1px solid #e5e5e5;
  border-left: none;
  border-right: none;
  text-align: center;
  flex: none;
}

.sheet-ok {
  width: 100%;
  margin-top: 16px;
  border: none;
  background: #e23b3b;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 13px;
  border-radius: 4px;
  cursor: pointer;
}

.amount-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  background: #fff;
  border: 1px solid #dde3ec;
  border-radius: 8px;
  padding: 8px 10px;
}

.amount-row span {
  flex-shrink: 0;
}

.amount-row input {
  flex: 1;
  border: none;
  outline: none;
  min-width: 0;
  height: 32px;
}

.amount-row em {
  font-style: normal;
  color: #666;
}

.recharge-btn {
  width: 100%;
  border: none;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid #ececec;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 30;
}

.tab-item {
  border: none;
  background: transparent;
  color: #999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  cursor: pointer;
  padding: 4px 0;
}

.tab-item.active {
  color: var(--red);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  background: rgba(20, 28, 40, 0.9);
  color: #fff;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 50;
  pointer-events: none;
}

.toast[hidden] {
  display: none;
}

@media (max-width: 360px) {
  .goods-price {
    font-size: 11px;
  }

  .tag {
    font-size: 9px;
  }
}

.ck-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;background:rgba(6,10,18,.72);display:-webkit-box;display:flex;-webkit-box-align:center;-webkit-box-pack:center;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}
.ck-mask[hidden]{display:none}
.ck-card{width:100%;max-width:420px;background:#161b22;color:#eaecef;border:1px solid #2b3139;border-radius:16px;padding:22px 20px 18px;box-shadow:0 18px 50px rgba(0,0,0,.35);font:14px/1.5 "PingFang SC","Microsoft YaHei",sans-serif;box-sizing:border-box}
.ck-card h2{margin:0;font-size:18px;font-weight:700;text-align:center;color:#fff}
.ck-sub{margin:6px 0 16px;text-align:center;color:#848e9c;font-size:13px}
.ck-amount{margin:0 0 14px;text-align:center;font-size:32px;font-weight:700;color:#fff}
.ck-clock{margin:0 auto 12px;width:108px;text-align:center;padding:6px 14px;border-radius:999px;background:#2b3139;color:#fcd535;font-size:20px;font-weight:700}
.ck-chain{margin:0 0 14px;text-align:center;color:#fcd535;font-size:13px;font-weight:600}
.ck-label{margin:0 0 6px;color:#848e9c;font-size:12px}
.ck-addr{margin:0;padding:12px;border-radius:10px;background:#0b0e11;border:1px solid #2b3139;color:#f0b90b;font-family:Consolas,monospace;font-size:14px;line-height:1.45;word-break:break-all}
.ck-copy,.ck-close{width:100%;height:44px;margin-top:12px;border:0;border-radius:10px;font:inherit;font-weight:700;cursor:pointer}
.ck-copy{background:#fcd535;color:#1e2329}
.ck-close{background:transparent;color:#848e9c}

/* Light marketplace refresh */
:root {
  --blue: #0284c7;
  --blue-deep: #0369a1;
  --red: #ea580c;
  --red-soft: #f97316;
  --bg: #f3f7fb;
  --card: #fff;
  --text: #172b3a;
  --muted: #64748b;
  --stock: #047857;
  --sales: #b45309;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse at 50% 0, rgba(224, 242, 254, .75), transparent 540px),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible,
.announce-link:focus-visible {
  outline: 3px solid rgba(2, 132, 199, .32);
  outline-offset: 3px;
}

.topbar {
  padding: 14px 20px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid #e5edf4;
  box-shadow: 0 4px 18px rgba(26, 57, 82, .04);
  backdrop-filter: blur(14px);
}

.topbar h1 {
  color: #12344a;
  font-size: 18px;
  letter-spacing: .04em;
}

.main {
  width: min(1180px, 100%);
  max-width: none;
  margin: 22px auto 0;
  padding: 0 24px 112px;
  min-height: calc(100vh - 76px);
  background: transparent;
}

.banner {
  margin: 0 0 18px;
  border-radius: 18px;
  background: #e0f2fe;
  box-shadow: 0 10px 28px rgba(36, 93, 128, .10);
}

.banner img {
  border-radius: inherit;
}

.announce {
  gap: 9px;
  padding: 12px 16px 4px;
  color: #075985;
  font-size: 14px;
}

.announce-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.announce-link {
  color: #075985;
  font-weight: 700;
  cursor: pointer;
}

.announce-link:hover {
  color: #0284c7;
}

.notice {
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 18px;
  padding: 8px 16px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  font-weight: 600;
}

.section {
  margin: 0 0 24px;
  padding: 18px 0 4px;
  border: 1px solid #e7eef5;
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 24px rgba(26, 57, 82, .04);
}

.section-head {
  position: relative;
  margin: 0 18px;
  padding: 0 0 14px 14px;
  border-bottom: 1px solid #edf2f7;
  background: transparent;
  color: #173c54;
  text-align: left;
  font-size: 17px;
  font-weight: 750;
}

.section-head::before {
  position: absolute;
  top: 3px;
  bottom: 17px;
  left: 0;
  width: 4px;
  border-radius: 4px;
  background: #0ea5e9;
  content: "";
}

.goods-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px 18px;
  background: transparent;
}

.goods-card {
  border: 1px solid #e8eef4;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(26, 57, 82, .035);
  transition: border-color 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

.goods-card:hover {
  border-color: #b9dff2;
  box-shadow: 0 10px 24px rgba(26, 78, 112, .10);
}

.goods-cover {
  background: #f1f6fa;
}

.goods-body {
  gap: 8px;
  padding: 10px 10px 12px;
}

.goods-title {
  height: 2.8em;
  color: #20394a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.goods-meta {
  gap: 5px;
}

.tag {
  padding: 4px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
}

.tag.stock {
  color: #047857;
  background: #ecfdf5;
}

.tag.sales {
  color: #a16207;
  background: #fffbeb;
}

.goods-foot {
  padding-top: 4px;
}

.goods-price {
  color: #c2410c;
  font-size: 13px;
  font-weight: 800;
}

.cart-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f97316;
  box-shadow: 0 4px 10px rgba(249, 115, 22, .2);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.cart-btn:hover,
.detail-buy:hover,
.sheet-ok:hover {
  background: #ea580c;
  box-shadow: 0 6px 14px rgba(234, 88, 12, .22);
}

.page-title {
  padding: 20px 12px;
  border-bottom-color: #e5edf4;
  color: #173c54;
  font-size: 18px;
}

.back-btn {
  border-radius: 10px;
  color: #31566e;
}

.back-btn:hover,
.sheet-close:hover {
  background: #eef6fb;
}

.category-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 0;
}

.category-item {
  border: 1px solid #e5edf4;
  border-radius: 14px;
  background: #fff;
  color: #23475e;
  box-shadow: 0 3px 12px rgba(26, 57, 82, .035);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.category-item:hover {
  border-color: #b9dff2;
  background: #f8fcff;
  box-shadow: 0 7px 18px rgba(26, 78, 112, .08);
}

.category-item::after {
  color: #0ea5e9;
}

.info-card,
.recharge-card {
  margin: 18px 0;
  border: 1px solid #e5edf4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 57, 82, .05);
}

.contact-link {
  color: #0284c7;
}

.muted,
.faq-list p {
  color: #52697a;
}

.faq-list {
  padding: 18px 0;
}

.faq-list details {
  border: 1px solid #e5edf4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(26, 57, 82, .035);
}

.faq-list summary {
  color: #23475e;
}

#view-detail {
  border: 1px solid #e7eef5;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.detail-cover {
  max-height: 440px;
  object-fit: contain;
  background: #f1f6fa;
}

.detail-info {
  padding: 20px;
}

.detail-title {
  color: #20394a;
  font-size: 19px;
}

.detail-price,
.sheet-price {
  color: #c2410c;
}

.detail-sales {
  color: #64748b;
}

.trust-row {
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
  background: #f8fbfd;
  color: #52697a;
}

.detail-desc {
  margin: 0;
  padding: 20px;
  background: #f7fafc;
}

.desc-title::before {
  background: #0ea5e9;
}

.desc-box {
  border: 1px solid #e5edf4;
  border-radius: 12px;
}

.desc-box p {
  line-height: 1.8;
}

.desc-box .info-black {
  color: #294456;
}

.desc-box .info-red {
  color: #b45309;
}

.detail-bar {
  width: min(1180px, 100%);
  max-width: 1180px;
  border: 1px solid #e5edf4;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 24px rgba(26, 57, 82, .08);
  overflow: hidden;
}

.detail-nav {
  color: #52697a;
}

.detail-nav:hover {
  background: #f4f9fc;
}

.detail-nav svg {
  color: #52697a;
}

.detail-buy,
.sheet-ok {
  background: #f97316;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.sheet-mask {
  align-items: center;
  padding: 20px;
  background: rgba(15, 35, 50, .42);
  backdrop-filter: blur(3px);
}

.sheet {
  max-height: min(90vh, 760px);
  overflow-y: auto;
  border: 1px solid #e5edf4;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(15, 35, 50, .2);
}

.sheet-head img {
  border-radius: 10px;
  background: #f1f6fa;
}

.sheet-close {
  background: #f1f6fa;
  color: #52697a;
  cursor: pointer;
}

.sheet-row {
  border-top-color: #e8eef4;
  color: #294456;
}

.sheet-row span {
  color: #294456;
}

.sheet-row i {
  color: #c2410c;
}

.sheet-row input,
.amount-row input {
  color: #172b3a;
}

.sheet-row input::placeholder {
  color: #94a3b8;
}

.sheet-tip {
  color: #b45309;
}

.qty button,
.qty input {
  border-color: #d8e3eb;
  border-radius: 7px;
}

.qty input {
  border-radius: 0;
}

.sheet-ok {
  border-radius: 10px;
}

.amount-row {
  border-color: #d8e3eb;
  background: #fff;
}

.amount-row em {
  color: #52697a;
}

.recharge-btn {
  border-radius: 10px;
}

.tabbar {
  bottom: max(10px, env(safe-area-inset-bottom));
  width: min(560px, calc(100% - 28px));
  max-width: none;
  border: 1px solid #e5edf4;
  border-radius: 18px;
  padding: 8px 4px;
  box-shadow: 0 12px 36px rgba(20, 55, 78, .14);
}

.tab-item {
  min-height: 48px;
  color: #718394;
  font-size: 12px;
  transition: color 160ms ease;
}

.tab-item.active {
  color: #0284c7;
  font-weight: 700;
}

.tab-item svg {
  width: 21px;
  height: 21px;
}

.toast {
  bottom: 88px;
  background: rgba(23, 43, 58, .94);
  box-shadow: 0 8px 24px rgba(15, 35, 50, .2);
}

.ck-mask {
  background: rgba(15, 35, 50, .42) !important;
  backdrop-filter: blur(3px);
}

.ck-card {
  border: 1px solid #e2ebf2 !important;
  border-radius: 20px !important;
  background: #fff !important;
  color: #172b3a !important;
  box-shadow: 0 24px 70px rgba(15, 35, 50, .2) !important;
}

.ck-card h2 {
  color: #173c54 !important;
}

.ck-sub,
.ck-label {
  color: #64748b !important;
}

.ck-amount {
  color: #c2410c !important;
}

.ck-clock {
  background: #fff7ed !important;
  color: #c2410c !important;
}

.wait-mask {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 35, 50, .42);
  backdrop-filter: blur(3px);
}

.wait-mask[hidden] {
  display: none;
}

.wait-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 300px;
  padding: 26px 22px;
  border: 1px solid #e2ebf2;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 35, 50, .2);
}

.wait-steps {
  position: relative;
  height: 20px;
  margin-bottom: 4px;
  overflow: hidden;
}

.wait-card .wait-step {
  position: absolute;
  inset: 0;
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .35s ease, transform .35s ease;
}

.wait-card .wait-step.is-active {
  opacity: 1;
  transform: translateY(0);
}

.wait-progress {
  position: relative;
  height: 6px;
  margin-top: 18px;
  border-radius: 999px;
  background: #eef4f8;
  box-shadow: inset 0 1px 2px rgba(15, 35, 50, .08);
  overflow: hidden;
}

.wait-progress::before,
.wait-progress::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 1px;
  background: rgba(113, 131, 148, .32);
}

.wait-progress::before {
  left: 33.333%;
}

.wait-progress::after {
  left: 66.666%;
}

.wait-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0284c7 0%, #0891b2 48%, #16a36a 100%);
  box-shadow: 0 0 12px rgba(2, 132, 199, .28);
  transition: width 1s linear;
}

.ck-addr {
  border-color: #d8e3eb !important;
  background: #f5f9fc !important;
  color: #075985 !important;
}

.ck-copy {
  background: #f97316 !important;
  color: #fff !important;
}

.ck-close {
  color: #64748b !important;
}

@media (min-width: 600px) {
  .goods-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 18px 20px 22px;
  }

  .category-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .goods-grid,
  #categoryGoods {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .banner {
    margin-bottom: 22px;
    border-radius: 22px;
  }

  .notice {
    margin-bottom: 24px;
  }

  .category-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .goods-grid,
  #categoryGoods {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .category-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .main {
    margin-top: 12px;
    padding: 0 14px 100px;
  }

  .section {
    margin-bottom: 16px;
    border-radius: 15px;
  }

  .section-head {
    margin: 0 14px;
  }

  .goods-grid {
    gap: 9px;
    padding: 12px 12px 16px;
  }

  .goods-body {
    padding: 8px 8px 10px;
  }

  .goods-title {
    font-size: 12px;
  }

  .page-title {
    margin: 0 -14px;
    background: rgba(255, 255, 255, .8);
  }

  .category-list {
    grid-template-columns: 1fr;
  }

  .detail-bar {
    border-radius: 14px 14px 0 0;
  }

  .sheet-mask {
    align-items: flex-end;
    padding: 0;
  }

  .sheet {
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    padding: 18px 16px calc(14px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  .main {
    padding-right: 10px;
    padding-left: 10px;
  }

  .goods-grid {
    gap: 7px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .goods-price {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
