/* 基础 */
:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --muted2: #94a3b8;
  --line: rgba(15, 23, 42, 0.08);
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --blue: #2f6df6;
  --blue2: #1f57d8;
  --pill: #f1f5ff;
  --card: #f6f8fc;
  --card2: #eff3fa;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 背景 */
.bgOrbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.95;
}

.orbA {
  width: 340px;
  height: 340px;
  left: -90px;
  top: 170px;
  background: radial-gradient(circle, rgba(205, 238, 255, 0.9), rgba(205, 238, 255, 0));
}

.orbB {
  width: 420px;
  height: 420px;
  right: -140px;
  top: 160px;
  background: radial-gradient(circle, rgba(221, 232, 255, 0.95), rgba(221, 232, 255, 0));
}

.orbC {
  width: 440px;
  height: 440px;
  right: -170px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(241, 232, 255, 0.95), rgba(241, 232, 255, 0));
}

/* 顶部导航 */
.siteBar {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.siteBarInner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.siteBarLeft {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #334155;
  font-size: 14px;
}

.siteMark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(180deg, #dedede, #f9f9f9);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.siteBarLink.muted {
  color: #64748b;
}

.siteBarQueryBtn {
  padding: 9px 18px;
  border-radius: 999px;
  background: #2f6df6;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.topHeader {
  position: relative;
  z-index: 1;
  padding: 18px 16px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.heroDesktop {
  padding: 14px 16px 18px;
}

.topHeaderInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #0b1220;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.profileText {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.handleRow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  font-weight: 700;
}

.label {
  color: #111827;
}

.emoji {
  font-size: 22px;
}

.handle {
  color: #111827;
}

.heroActions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.miniBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.miniBtn.success {
  background: #eaf9ee;
  color: #28a745;
  border-color: rgba(40, 167, 69, 0.15);
}

.miniBtn.ghost {
  background: #fff;
  color: #475569;
}

.miniLink,
.miniDots {
  color: #2f6df6;
  font-size: 12px;
  font-weight: 600;
}

.noticeArea {
  margin-top: 18px;
  color: #4b5563;
  font-size: 13px;
}

.noticeHead {
  margin-bottom: 10px;
  font-weight: 700;
  color: #6b7280;
}

.noticeLines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.heroMobile {
  display: none;
}

/* 主体面板 */
.page {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 8px auto 60px;
  padding: 0 16px;
}

.panel {
  background: var(--panel);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(2, 6, 23, 0.06);
  padding: 14px 18px 18px;
}

.panelTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
}

.panelTitleWrap {
  min-width: 96px;
}

.panelTitle {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  color: #111827;
}

.panelTitle span {
  font-size: 22px;
  margin-left: 2px;
}

.panelSearchRow {
  display: flex;
  gap: 10px;
  flex: 1;
  justify-content: flex-start;
}

.catPill {
  border: none;
  background: linear-gradient(180deg, #3d82ff, #2f6df6);
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  min-width: 142px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
  color: #fff;
  box-shadow: 0 10px 18px rgba(47, 109, 246, 0.22);
}

.catPill:hover {
  transform: translateY(-1px);
}

.catPill.active {
  background: linear-gradient(180deg, #3d82ff, #2f6df6);
}

.catPillTitle {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.catPillCount {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
}

.searchWrap {
  position: relative;
  width: 170px;
  max-width: 44vw;
}

.searchInput {
  width: 100%;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #f7f8fb;
  padding: 0 34px 0 12px;
  font-size: 13px;
  outline: none;
}

.searchInput:focus {
  border-color: rgba(47, 109, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.12);
}

.searchBtn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  color: #64748b;
}

.searchBtn:hover {
  border-color: rgba(47, 109, 246, 0.35);
}

.categoryGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding-top: 2px;
  max-height: 254px;
  overflow: auto;
  padding-right: 4px;
}

.categoryCard[data-category="all"] {
  display: none;
}

.categoryCard {
  background: #f7f7f8;
  border: 1px solid rgba(2, 6, 23, 0.04);
  border-radius: 10px;
  padding: 10px 10px 8px;
  min-height: 48px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
  text-align: left;
}

.categoryCard:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 109, 246, 0.25);
}

.categoryCard.active {
  border-color: rgba(47, 109, 246, 0.16);
  background: linear-gradient(180deg, #3d82ff, #2f6df6);
  box-shadow: 0 10px 18px rgba(47, 109, 246, 0.2);
}

.categoryTopRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.categoryHead {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.categoryIcon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.categoryIcon img {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  object-fit: contain;
  display: block;
}

.categoryCard.active .categoryIcon {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
}

.checkBadge {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.15);
  border: 1px solid rgba(47, 109, 246, 0.35);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 10px;
  opacity: 0.0;
  transition: opacity 140ms ease;
}

.categoryCard.active .checkBadge {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.categoryTitle {
  font-weight: 500;
  font-size: 11px;
  color: #0f172a;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.categorySubtitle {
  margin-top: 6px;
  font-size: 11px;
  color: #9ca3af;
}

.categoryCard.active .categoryTitle,
.categoryCard.active .categorySubtitle {
  color: #fff;
}

.productHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px 12px;
}

.productHeaderTitle {
  font-weight: 700;
  color: #0f172a;
  font-size: 16px;
}

.productHeaderHint {
  display: none;
}

.productGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.productCard {
  background: #fff;
  border: 1px solid rgba(2, 6, 23, 0.06);
  border-radius: 10px;
  padding: 12px 12px 10px;
  min-height: 94px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
}

.productCard.is-hidden {
  display: none;
}

.productHead {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.productIcon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.productIcon img {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  object-fit: contain;
  display: block;
}

.productTitle {
  font-weight: 500;
  font-size: 12px;
  color: #0f172a;
  line-height: 1.35;
  min-height: 30px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.productMeta {
  display: none;
}

.priceRow {
  margin-top: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.price {
  color: #2563eb;
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
}

.buyCount {
  color: #3b82f6;
  font-size: 10px;
  text-align: right;
  background: #eef5ff;
  border-radius: 999px;
  padding: 3px 7px;
  line-height: 1;
}

.buyBtn {
  margin-top: 12px;
  width: 100%;
  height: 0;
  border: none;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.emptyState {
  display: none;
  margin-top: 20px;
  padding: 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed rgba(2, 6, 23, 0.14);
  color: var(--muted);
}

.modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 16px;
}

.modalOverlay[hidden] {
  display: none;
}

.productModal {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  padding: 22px 20px 18px;
}

.modalClose {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: #f1f5f9;
  color: #475569;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
}

.modalHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modalBadge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: #2f6df6;
  font-size: 13px;
  font-weight: 700;
}

.modalStock {
  color: #64748b;
  font-size: 13px;
}

.modalTitle {
  margin: 14px 0 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  padding-right: 24px;
}

.modalPriceRow {
  margin-top: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.modalPriceLabel,
.modalQtyLabel {
  color: #64748b;
  font-size: 14px;
}

.modalPrice {
  color: #2f6df6;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}

.modalInfo {
  margin-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 12px 0;
}

.modalInfoItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: #334155;
  font-size: 14px;
}

.modalInfoItem span:first-child {
  color: #94a3b8;
}

.modalQtyRow {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qtyStepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.qtyStepper button,
.qtyStepper span {
  width: 42px;
  height: 36px;
  display: grid;
  place-items: center;
}

.qtyStepper button {
  border: none;
  background: #f8fafc;
  font-size: 18px;
  color: #334155;
  cursor: pointer;
}

.qtyStepper span {
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  font-weight: 700;
  color: #0f172a;
}

.modalActions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modalBtn {
  height: 42px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.modalBtn.secondary {
  background: #f1f5f9;
  color: #475569;
}

.modalBtn.primary {
  background: linear-gradient(180deg, #3d82ff, #2f6df6);
  color: #fff;
}

.orderModalOverlay {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.orderModalOverlay[hidden] {
  display: none;
}

.orderModal {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  padding: 22px 20px 18px;
  position: relative;
}

.orderModalClose {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: #f1f5f9;
  color: #475569;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
}

.orderModalTitle {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.orderModalHint {
  margin-top: 10px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.orderModalActions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Notice modal (open on load) */
.noticeModalOverlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.noticeModalOverlay[hidden] {
  display: none;
}

.noticeModal {
  width: min(340px, calc(100% - 32px));
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}

.noticeHero {
  position: relative;
  background: linear-gradient(180deg, #2f6df6, #1f57d8);
  padding: 18px 16px 16px;
}

.noticeHero::before {
  content: "";
  position: absolute;
  inset: -120px -120px auto -120px;
  height: 320px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 24% 52%, rgba(255, 255, 255, 0.18) 0 1px, rgba(255, 255, 255, 0) 2px),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.18) 0 1px, rgba(255, 255, 255, 0) 2px);
}

.noticeHeroInner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.noticeHeroTitle {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  line-height: 1.35;
}

.noticeHeroSub {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}

.noticeHeroSub p {
  margin: 0;
}

.noticeHeroClose {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}

.noticeBody {
  padding: 16px 18px 4px;
}

.noticeSectionTitle {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  line-height: 1.4;
}

.noticeWarn {
  margin-top: 10px;
}

.noticeLine {
  margin: 0 0 8px;
  color: #111827;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

.noticeLineWarn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.noticeLineEm {
  font-weight: 700;
}

.noticeWarnIcon {
  color: #f59e0b;
  font-size: 14px;
  flex-shrink: 0;
}

.noticeWarnText {
  font-weight: 800;
}

.noticeSmallText {
  margin: 12px 0 0;
  color: #111827;
  font-size: 13px;
  line-height: 1.5;
}

.noticeHeroClose.is-locked {
  opacity: 0;
  pointer-events: none;
}

.noticeFooterBtn.is-hidden {
  display: none;
}

.noticeProgressWrap {
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.noticeProgressTrack {
  height: 4px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.noticeProgressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3d82ff, #2f6df6);
  border-radius: 999px;
  transition: width 3s linear;
}

.noticeProgressText {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.noticeProgressWrap.is-hidden {
  display: none;
}

.noticeFooter {
  padding: 14px 0 18px;
  display: grid;
  place-items: center;
}

.noticeFooterBtn {
  width: 140px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: #eef5ff;
  color: #2563eb;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .noticeModal {
    width: min(320px, calc(100% - 24px));
    border-radius: 16px;
  }

  .noticeHeroTitle {
    font-size: 18px;
  }

  .noticeHeroSub {
    font-size: 12px;
  }

  .noticeBody {
    padding: 14px 16px 4px;
  }

  .noticeSectionTitle {
    font-size: 14px;
  }

  .noticeLine,
  .noticeSmallText {
    font-size: 12px;
  }

  .noticeFooterBtn {
    width: 120px;
    height: 36px;
    font-size: 14px;
  }
}

/* 移动端布局：顶部变蓝，面板更紧凑 */
@media (max-width: 760px) {
  .siteBar {
    display: none;
  }

  .topHeader {
    padding: 0;
    margin: 0;
    max-width: none;
  }

  .heroDesktop {
    display: none;
  }

  .heroMobile {
    display: block;
    margin: 0;
    background: linear-gradient(135deg, #3391ff, #2d62f0 72%);
    color: #fff;
    border-radius: 0;
    padding: 12px 14px 16px;
    box-shadow: none;
  }

  .mobileTopRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }

  .mobileCircleBtn,
  .mobileOrderBtn {
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 12px;
  }

  .mobileCircleBtn {
    width: 42px;
    padding: 0;
    display: grid;
    place-items: center;
  }

  .mobileOrderBtn {
    display: inline-flex;
    align-items: center;
    padding: 0 16px 0 14px;
    font-weight: 700;
    font-size: 14px;
    gap: 8px;
  }

  .icoSearch,
  .icoDoc {
    color: #fff;
  }

  .mobileProfile {
    align-items: flex-start;
  }

  .heroMobile .avatar {
    width: 42px;
    height: 42px;
    font-size: 10px;
    background: #0b1220;
  }

  .heroMobile .label,
  .heroMobile .handle {
    color: #fff;
  }

  .heroMobile .handleRow {
    font-size: 16px;
    gap: 4px;
  }

  .mobileTagRow {
    margin-top: 2px;
  }

  .mobileTag {
    display: inline-block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 2px 6px;
  }

  .mobileCount {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
  }

  .mobileNotice {
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
  }

  .mobileFooterRow {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
  }

  .whiteBtn {
    background: #fff;
    color: #2f6df6;
    border: none;
  }

  .page {
    max-width: 412px;
    margin-top: 0;
    padding: 0 0 32px;
  }

  .panel {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 12px;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .panelTop {
    display: block;
    padding-bottom: 8px;
  }

  .panelTitle {
    font-size: 16px;
    position: relative;
    padding-left: 4px;
  }

  .panelTitle::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #2f6df6;
  }

  .panelTitle span {
    display: none;
  }

  .panelSearchRow,
  .searchWrap {
    display: none;
  }

  .categoryGrid {
    margin-top: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .categoryCard[data-category="all"] {
    display: block;
  }

  .categoryCard {
    min-height: 76px;
    padding: 10px 10px 8px;
    border-radius: 8px;
    background: #f5f5f6;
  }

  .categoryTitle {
    font-size: 12px;
    font-weight: 600;
  }

  .categorySubtitle {
    font-size: 11px;
    margin-top: 6px;
  }

  .checkBadge {
    width: 20px;
    height: 20px;
    border-radius: 999px;
  }

  .productGrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .productCard {
    min-height: 90px;
    box-shadow: none;
    border-radius: 10px;
  }

  .productTitle {
    font-size: 12px;
    min-height: 34px;
  }

  .price {
    font-size: 22px;
  }

  .buyCount {
    font-size: 11px;
  }

  .emptyState {
    display: block;
  }

  .modalOverlay {
    align-items: end;
    padding: 0;
  }

  .productModal {
    width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 18px 16px 20px;
  }

  .orderModalOverlay {
    align-items: end;
    padding: 0;
  }

  .orderModal {
    width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 18px 16px 20px;
  }
}

/* Telegram 引导页：请在浏览器中打开 */
.tgGuide {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #3a3a3a;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.tgGuide[hidden] {
  display: none;
}

.tgGuideBody {
  position: relative;
  flex: 1;
  padding: 12px 24px 40px;
}

.tgGuideArrow {
  position: absolute;
  top: 8px;
  right: 8px;
  opacity: 0.98;
  pointer-events: none;
}

.tgGuideBubble {
  margin: 92px auto 0;
  max-width: 280px;
  padding: 22px 20px;
  border: 2px dashed rgba(255, 255, 255, 0.95);
  border-radius: 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 600;
  color: #fff;
}

.tgGuideHints {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.tgGuideMenuIcon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tgGuideMenuIcon span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #222;
}

.tgGuideOpenBtn {
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

body.tg-webview {
  overflow: hidden;
  background: #3a3a3a;
}

body.tg-webview > :not(.tgGuide):not(script) {
  display: none !important;
}

