:root {
  --bg: #f5f6f8;
  --bg-soft: #fafbfc;
  --card: #ffffff;
  --text: #1f2430;
  --muted: #8a8791;
  --line: #eceff3;
  --brand: #ff5140;
  --brand-deep: #e63f30;
  --brand-soft: #fff1ed;
  --ok: #1f8a5b;
  --warn: #c9851a;
  --danger: #d64545;
  --shadow: 0 8px 24px rgba(31, 36, 46, 0.05);
  --radius: 16px;
  --gutter: 8px;
  --tab-h: 58px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 10% -10%, #ffe3d4 0%, transparent 55%),
    radial-gradient(700px 360px at 100% 0%, #ffe9c8 0%, transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }
.page {
  width: min(560px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 24px;
}
.page.no-tab { padding-bottom: 24px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
  background: rgba(244, 241, 236, 0.88);
  backdrop-filter: blur(10px);
}
.topbar .title {
  flex: 1;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.topbar .back {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.search-box {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
}
.search-box input {
  flex: 1;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  outline: none;
}
.search-box button {
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  margin: 0 16px 14px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #ff7a45, #e4572e 55%, #c9441f);
  color: #fff;
  box-shadow: var(--shadow);
  min-height: 128px;
  position: relative;
}
.hero-inner { padding: 22px 20px; position: relative; z-index: 1; }
.hero h1 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.hero p { opacity: 0.92; font-size: 13px; line-height: 1.5; max-width: 70%; }
.hero-orb {
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
}

.section {
  margin: 0 16px 16px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 16px; font-weight: 800; }
.section-head span { color: var(--muted); font-size: 12px; }

.banner-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}
.banner-track::-webkit-scrollbar { display: none; }
.banner-item {
  flex: 0 0 78%;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  background: #ddd;
  scroll-snap-align: start;
}
.banner-item img { width: 100%; height: 100%; object-fit: cover; }

.goods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.goods-card {
  background: var(--card);
  border: 1px solid rgba(235,230,223,.9);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.goods-card .cover {
  aspect-ratio: 1 / 1;
  height: auto;
  background: linear-gradient(180deg, #f7f3ee, #efe8df);
  display: grid;
  place-items: center;
  color: #b7aea4;
  font-size: 12px;
}
.goods-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.goods-card .body { padding: 10px; }
.goods-card .name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.goods-card .meta {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.goods-card .price {
  color: var(--brand);
  font-weight: 800;
  font-size: 15px;
}
.goods-card .sales { color: var(--muted); font-size: 11px; }

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(560px, 100%);
  height: calc(var(--tab-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: none;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  z-index: 30;
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.tabbar a.active { color: var(--brand); }
.tabbar .ico {
  width: 20px; height: 20px; display: block; position: relative;
  opacity: .55;
}
.tabbar a.active .ico { opacity: 1; }
.tabbar .ico-home::before {
  content: ''; position: absolute; inset: 2px 3px 4px;
  border: 1.8px solid currentColor; border-radius: 3px 3px 1px 1px;
}
.tabbar .ico-home::after {
  content: ''; position: absolute; left: 50%; top: 0;
  width: 10px; height: 10px; margin-left: -5px;
  border-left: 1.8px solid currentColor; border-top: 1.8px solid currentColor;
  transform: rotate(45deg); transform-origin: center;
}
.tabbar .ico-cat::before {
  content: ''; position: absolute; inset: 3px;
  border: 1.8px solid currentColor; border-radius: 2px;
  background:
    linear-gradient(currentColor, currentColor) center/1.6px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center/100% 1.6px no-repeat;
}
.tabbar .ico-order::before,
.tabbar .ico-order::after {
  content: ''; position: absolute; left: 4px; right: 4px; height: 1.8px;
  background: currentColor; border-radius: 1px;
}
.tabbar .ico-order::before { top: 5px; box-shadow: 0 5px 0 currentColor; }
.tabbar .ico-order::after { top: 15px; }
.tabbar .ico-user::before {
  content: ''; position: absolute; left: 50%; top: 2px;
  width: 8px; height: 8px; margin-left: -4px;
  border: 1.8px solid currentColor; border-radius: 50%;
}
.tabbar .ico-user::after {
  content: ''; position: absolute; left: 3px; right: 3px; bottom: 2px; height: 7px;
  border: 1.8px solid currentColor; border-bottom: 0; border-radius: 8px 8px 0 0;
}

.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.loading {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.btn.block { width: 100%; }
.btn.ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn:disabled { opacity: .55; cursor: not-allowed; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  max-width: min(92%, 420px);
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(28, 24, 22, 0.92);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  white-space: pre-wrap;
  word-break: break-word;
}
.toast.show { opacity: 1; }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.login-card {
  width: min(420px, 100%);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px 22px 24px;
}
.login-card h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}
.login-card .sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}
.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  outline: none;
}
.field input:focus { border-color: #f0a58a; box-shadow: 0 0 0 3px rgba(228,87,46,.12); }
.tabs-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  background: #f3f5f8;
  padding: 4px;
  border-radius: 12px;
}
.tabs-switch button {
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}
.tabs-switch button.active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 4px 12px rgba(255, 81, 64, .1);
}

.cat-layout {
  display: grid;
  grid-template-columns: 108px 1fr;
  min-height: calc(100vh - 56px);
}
.cat-side {
  background: #efe9e1;
  overflow-y: auto;
}
.cat-side button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 14px 12px;
  color: #5d5862;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.cat-side button.active {
  background: #fff;
  color: var(--brand);
  position: relative;
}
.cat-side button.active::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: var(--brand);
}
.cat-main { background: #fff; padding: 12px; overflow-y: auto; }
.sub-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.sub-pills button {
  border: 1px solid var(--line);
  background: #faf7f3;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.sub-pills button.active {
  border-color: #f0b59f;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 700;
}

.user-hero {
  margin: 12px 16px 14px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2b2622, #4a3b32);
  color: #fff;
  box-shadow: var(--shadow);
}
.user-hero .row { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 54px; height: 54px; border-radius: 16px;
  background: rgba(255,255,255,.15);
  overflow: hidden;
  display: grid; place-items: center;
  font-weight: 800;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-hero .name { font-size: 18px; font-weight: 800; }
.user-hero .meta { opacity: .8; font-size: 12px; margin-top: 4px; }
.balance-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.balance-box .num { font-size: 28px; font-weight: 800; }
.menu-list {
  margin: 0 var(--gutter) 20px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.menu-list a, .menu-list button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.menu-list a:last-child, .menu-list button:last-child { border-bottom: 0; }
.menu-list .arrow { color: var(--muted); }

.order-tabs {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  background: transparent;
  border: 0;
}
.order-tabs button {
  flex: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.order-tabs button.active {
  color: var(--brand);
  border-color: #ffd5cd;
  background: var(--brand-soft);
}
.order-list {
  padding: 0;
  margin: 0;
}
.order-card {
  margin: 0 var(--gutter) 8px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 14px;
  box-shadow: var(--shadow);
}
.order-card .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.order-card .status { color: var(--brand); font-weight: 700; flex: none; }
.order-card .body {
  display: flex; gap: 12px; align-items: flex-start;
  text-decoration: none; color: inherit;
}
.order-card .thumb {
  width: 72px; height: 72px; border-radius: 12px;
  background: #f3f4f6; overflow: hidden; flex: none;
  display: grid; place-items: center;
  color: #9ca3af; font-size: 18px; font-weight: 800;
}
.order-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-card .info { min-width: 0; flex: 1; padding-top: 2px; }
.order-card .gname {
  font-size: 14px; font-weight: 700; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.order-card .gmeta { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.order-card .gmeta.param {
  word-break: break-word;
  white-space: pre-wrap;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8f9fb;
  color: #5b6472;
}
.order-card .foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f2f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.order-card .amount { font-weight: 800; color: var(--brand); font-size: 16px; }
.order-card .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.order-card .actions button,
.order-card .actions .link {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center;
  text-decoration: none; color: var(--text);
}
.order-card .actions .danger { color: var(--danger); border-color: #f0c4c4; }

.detail-cover {
  margin: 12px 16px;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: #efe9e1;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-panel {
  margin: 0 16px 16px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--line);
}
.detail-panel .price { color: var(--brand); font-size: 24px; font-weight: 800; }
.detail-panel .name { margin-top: 8px; font-size: 18px; font-weight: 800; line-height: 1.4; }
.detail-panel .tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 700;
}
.desc { margin-top: 14px; color: #555; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.bottom-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(560px, 100%);
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  z-index: 30;
}
body:has(.page.page-mall.with-bottom) .bottom-bar {
  width: min(960px, 100%);
}
.page.with-bottom { padding-bottom: calc(72px + var(--safe-bottom)); }

.form-card {
  margin: 12px 16px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--line);
}
.form-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
}
.qty button {
  width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: #f3f4f6; cursor: pointer; font-weight: 800; color: #454b57;
}
.qty input {
  width: 56px; height: 30px; border: 0; text-align: center; outline: none;
}
textarea.input, input.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  outline: none;
  background: #fff;
}
textarea.input { min-height: 96px; resize: vertical; }

.record-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.record-item:last-child { border-bottom: 0; }
.record-item .t { font-weight: 700; font-size: 14px; }
.record-item .s { color: var(--muted); font-size: 12px; margin-top: 4px; }
.record-item .money { font-weight: 800; }
.record-item .money.plus { color: var(--ok); }
.record-item .money.minus { color: var(--brand); }

/* ===== 来粉粉风格首页 ===== */
body { background: #f5f6f8; }
/* ===== 首页间距体系统一（对齐来粉粉：左右 8px gutter） ===== */
.page.page-mall {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 16px 0 24px;
}
.page.page-mall.inner {
  width: min(1120px, 100%);
  background: transparent;
  padding-top: 8px;
}

.home-top-stack {
  padding: 0;
  margin: 0;
}
.home-top-stack > * + * {
  margin-top: 0; /* 改由各块独立 margin，避免叠距 */
}

.van-notice-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: auto;
  height: 42px;
  margin: 0 8px 8px;
  padding: 0 16px;
  cursor: pointer;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  background: #fff6ef;
  border: 1px solid #ff6650;
  border-radius: 12px;
  box-sizing: border-box;
}
.van-notice-bar__left-icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.van-notice-bar__left-icon .van-icon__image {
  display: block;
  width: 22px;
  height: 22px;
}
.van-notice-bar__wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.van-notice-bar__content {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #333;
}
.van-notice-bar__content p { display: inline; margin: 0; }
.van-notice-bar__content strong { font-weight: 700; }
.van-notice-bar__right-icon {
  flex: none;
  min-width: 24px;
  text-align: right;
  color: #999;
  font-size: 18px;
  line-height: 1;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr);
  gap: 16px;
  align-items: stretch;
  margin: 0 8px 16px;
}
.mall-header {
  position: sticky; top: 0; z-index: 40;
  height: 54px;
  background: linear-gradient(105deg, #ff7c3f 0%, #ff6251 68%, #fb594b 100%);
  box-shadow: 0 5px 18px rgba(93,36,23,.12);
}
.mall-back {
  width: 34px; height: 34px; flex: none;
  border: 0; border-radius: 10px;
  background: rgba(255,255,255,.22); color: #fff;
  font-size: 16px; cursor: pointer;
}
.mall-header-spacer { flex: 1; min-width: 0; }
.mall-logo span.inner-title {
  max-width: 140px; overflow: hidden; text-overflow: ellipsis;
}
.sub-panel {
  margin: 8px var(--gutter);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.sub-panel.compact { padding: 12px; }
.products-shell.fav-shell {
  margin: 8px var(--gutter) 0;
  padding: 0;
}
.panel-title {
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 15px;
}
.page-hero-orange {
  margin: 8px var(--gutter) 8px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff7c3f 0%, #ff6251 68%, #fb594b 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255,91,69,.22);
}
.page-hero-orange .label { opacity: .85; font-size: 12px; }
.page-hero-orange .value { margin-top: 8px; font-size: 28px; font-weight: 800; }
.page-hero-orange .value.sm { font-size: 22px; }
.page-hero-orange .meta { margin-top: 6px; opacity: .85; font-size: 12px; }
.page-hero-orange .actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.page-hero-orange .actions a, .page-hero-orange .actions button {
  height: 34px; padding: 0 14px; border-radius: 9px; border: 0;
  background: rgba(255,255,255,.95); color: #ff5140; font-weight: 700; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; text-decoration: none;
}
.page-hero-orange .user-row {
  display: flex; align-items: center; gap: 12px;
}
.page-hero-orange .user-avatar {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255,255,255,.2); display: grid; place-items: center;
  font-size: 22px; font-weight: 800; overflow: hidden; flex: none;
}
.page-hero-orange .user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15,23,42,.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.profile-modal {
  width: min(400px, 100%);
  background: #fff; border-radius: 18px; padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.profile-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 8px;
}
.profile-modal-head h3 {
  margin: 0; font-size: 18px; font-weight: 800; color: var(--text);
}
.profile-close {
  width: 32px; height: 32px; border: 0; border-radius: 10px;
  background: #f3f4f6; color: #6b7280; font-size: 20px; line-height: 1; cursor: pointer;
}
.profile-tip {
  margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.5;
}
.profile-label {
  display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: #6b7280;
}
.profile-actions {
  display: flex; gap: 10px; margin-top: 16px;
}
.profile-actions .btn { flex: 1; }

.page-hero-orange .user-balance {
  margin-top: 16px; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.page-hero-orange .user-balance .actions { margin-top: 0; }
.page-hero-orange .user-balance .value { margin-top: 4px; }
.cat-layout-mall {
  display: grid;
  grid-template-columns: 118px 1fr;
  min-height: calc(100vh - 54px);
  margin: 0;
  background: #fff;
  border-radius: 0;
}
.cat-side-mall {
  background: linear-gradient(180deg, #ff8d37, #ff6650);
  overflow-y: auto;
  color: #ffe6d6;
}
.cat-side-mall button {
  display: block; width: 100%; border: 0; background: transparent;
  text-align: left; padding: 0 12px; height: 48px; line-height: 48px;
  color: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.cat-side-mall button.active {
  background: linear-gradient(135deg, #ffbd8a, #ffc9c2); color: #fff;
}
.cat-main-mall { background: #fff; padding: 12px; overflow-y: auto; }
.cat-main-mall .products-shell { padding: 0; }
.cat-main-mall .sub-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
/* ---------- 软件产品详情（官网介绍风） ---------- */
.app-detail-page {
  padding-bottom: 36px;
}
.app-hero {
  position: relative;
  margin: 0 var(--gutter) 16px;
  border: 1px solid rgba(255, 209, 196, 0.7);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, #fffdfb 0%, #fff5ef 48%, #ffe8df 100%);
  box-shadow: 0 18px 48px rgba(255, 81, 64, 0.08);
}
.app-hero-bg {
  position: absolute;
  inset: auto -10% -40% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 120, 90, 0.22), transparent 68%);
  pointer-events: none;
}
.app-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px 28px 24px;
}
.app-icon {
  width: 180px;
  aspect-ratio: 1 / 1;
  border-radius: 36px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(31, 36, 46, 0.12);
  display: grid;
  place-items: center;
  flex: none;
}
.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.app-kicker {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 81, 64, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.app-title {
  margin: 10px 0 0;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.app-tags { margin-top: 12px; }
.app-lead {
  margin: 12px 0 0;
  max-width: 520px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}
.app-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  max-width: 560px;
}
.app-stat {
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
}
.app-stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.app-stat-value {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  word-break: break-all;
}
.app-stat-value.brand { color: var(--brand); }
.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.app-actions .app-buy {
  min-width: 148px;
  height: 46px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(255, 81, 64, 0.28);
}
.app-actions .app-fav,
.app-actions .app-trial {
  min-width: 96px;
  height: 46px;
  border-radius: 12px;
}
.app-actions .app-trial {
  color: #8a5a00;
  border-color: #f3e0a8;
  background: #fff8e8;
  font-weight: 800;
}
.app-actions .app-trial[hidden],
.app-mobile-bar [hidden] {
  display: none !important;
}
.app-actions .app-fav.on {
  color: var(--brand);
  border-color: #ffd5cd;
  background: var(--brand-soft);
}
.app-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.app-price-inline {
  display: none;
  margin-left: 4px;
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
}
.app-platforms {
  margin: 0 var(--gutter) 18px;
  padding: 22px 24px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.app-platforms[hidden] { display: none !important; }
.app-platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.app-platform-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffdf7, #fff8e8);
  border: 1px solid #f3e0a8;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.app-intro {
  margin: 0 var(--gutter) 18px;
  padding: 22px 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.app-intro-head {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f2f5;
}
.app-intro-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.app-intro-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.app-intro-body {
  margin-top: 0;
  font-size: 15px;
  line-height: 1.9;
}
.app-intro-body img {
  border-radius: 14px;
  margin: 16px 0;
}
.app-mobile-bar {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 12px;
  align-items: start;
  margin: 0 var(--gutter) 24px;
}
.detail-main, .detail-side {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 16px;
  min-width: 0;
}
.detail-side {
  position: sticky;
  top: 70px;
}
.detail-cover-wide {
  width: 100%; aspect-ratio: 1 / 1; max-width: 420px; max-height: none; height: auto;
  border-radius: 14px; overflow: hidden;
  background: #f3f4f6; display: grid; place-items: center; color: #9ca3af; margin-bottom: 14px;
}
.detail-cover-wide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-cover-fallback {
  font-size: 56px; font-weight: 800; color: #c5cad3; line-height: 1;
  user-select: none;
}
.sk-detail-cover {
  width: 100%; height: 100%; min-height: 180px; border-radius: 0;
}
.detail-name {
  font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.4;
}
.detail-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.detail-section {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid #f1f2f5;
}
.detail-section-title {
  margin: 0 0 10px;
  font-size: 15px; font-weight: 800; color: var(--text);
}
.detail-desc {
  color: #333; line-height: 1.85; font-size: 15px;
  word-break: break-word; overflow-wrap: anywhere;
}
.detail-desc.is-empty { color: var(--muted); }
.detail-desc p { margin: 0 0 12px; }
.detail-desc p:last-child { margin-bottom: 0; }
.detail-desc img {
  display: block; width: 100%; max-width: 100%; height: auto;
  margin: 12px 0; border-radius: 10px; background: #f3f4f6; cursor: zoom-in;
}
.detail-side-top { margin-bottom: 4px; }
.detail-price {
  font-size: 28px; font-weight: 800; color: var(--brand); line-height: 1.2;
}
.detail-price small,
.detail-cta-price small {
  display: inline-block; margin-top: 4px;
  font-size: 13px; color: #888; font-weight: 600;
}
.detail-meta {
  list-style: none; margin: 14px 0 0; padding: 0;
  border-top: 1px solid #f1f2f5;
}
.detail-meta li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 0;
  border-bottom: 1px solid #f5f6f8;
  font-size: 13px;
}
.detail-meta li:last-child { border-bottom: 0; }
.detail-meta .k { color: var(--muted); font-weight: 600; flex: none; }
.detail-meta .v { color: var(--text); font-weight: 700; text-align: right; word-break: break-all; }
.detail-cta {
  display: flex; gap: 8px; margin-top: 16px; align-items: center;
}
.detail-cta-price {
  display: none;
  flex: none;
  min-width: 0;
  font-size: 18px; font-weight: 800; color: var(--brand); line-height: 1.15;
}
.detail-cta-price small {
  display: block; margin-top: 2px; font-size: 11px;
}
.detail-cta .btn { flex: 1; }
.detail-cta .btn.ghost { flex: 0 0 96px; }
.detail-cta .btn.ghost.on {
  color: var(--brand); border-color: #ffd5cd; background: var(--brand-soft);
}

.detail-orders {
  margin: 0 var(--gutter) 24px;
}
.detail-orders-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 0 2px;
}
.detail-orders-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.detail-orders-head .sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.detail-orders-head .link {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}
.detail-orders .order-list {
  margin: 0;
}
.detail-orders .order-card {
  margin-left: 0;
  margin-right: 0;
}
.detail-orders .empty {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.detail-orders .loading {
  margin-top: 4px;
}
.order-goods {
  display: flex; gap: 12px; align-items: center;
}
.order-goods .thumb {
  width: 72px; height: 72px; border-radius: 14px; overflow: hidden;
  background: #f3f4f6; flex: none;
  display: grid; place-items: center;
  color: #9ca3af; font-size: 20px; font-weight: 800;
}
.order-goods .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-goods .name { font-weight: 800; color: var(--text); }
.order-goods .price { margin-top: 6px; color: var(--brand); font-weight: 800; }
.order-form-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.order-form-row label, .order-form-row > span {
  font-weight: 700; color: var(--text);
}
.order-form-row.total { margin-top: 16px; margin-bottom: 0; }
.order-form-row .amount {
  color: var(--brand); font-size: 22px; font-weight: 800;
}
.order-form-tip {
  margin-bottom: 8px; color: var(--muted); font-size: 12px;
}
.order-form-gap { margin-top: 12px; }
.pay-tabs {
  display: flex; gap: 8px; margin-top: 16px;
}
.pay-tabs button {
  flex: 1; height: 38px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--muted); font-weight: 700; cursor: pointer;
}
.pay-tabs button.active {
  color: var(--brand); border-color: #ffd5cd; background: var(--brand-soft);
}
.pay-tabs button:disabled { opacity: .45; cursor: not-allowed; }
.pay-hint {
  margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.5;
}
.pay-hint.pay-hint-warn {
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: 10px;
  padding: 8px 10px;
}
.pay-card-box { margin-top: 8px; }
.pay-card-box textarea.input {
  min-height: 96px; width: 100%;
}
.order-field { margin-top: 12px; }
.order-field label {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 700; color: var(--text);
}
.order-field label .req { color: #ff5140; margin-left: 2px; }
.order-field .input { width: 100%; }
.order-form-row .gmeta.param,
.gmeta.param { white-space: pre-wrap; }
.login-page {
  min-height: 100vh;
  background: #f5f6f8;
}
.login-page .mall-header .mall-account { display: none; }
.login-wrap-mall {
  min-height: calc(100vh - 54px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px var(--gutter);
}
.login-card-mall {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(31,36,46,.08);
  padding: 28px 22px 24px;
}
.login-card-mall h1 {
  margin: 0 0 6px; font-size: 24px; color: var(--text); font-weight: 800;
}
.login-card-mall .sub {
  margin: 0 0 18px; color: var(--muted); font-size: 13px;
}
@media (max-width: 860px) {
  .app-detail-page {
    padding-bottom: calc(88px + var(--safe-bottom));
  }
  .app-hero {
    margin: 0 8px 12px;
    border-radius: 18px;
  }
  .app-hero-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 16px 16px;
    text-align: center;
  }
  .app-icon {
    width: 112px;
    margin: 0 auto;
    border-radius: 28px;
  }
  .app-title {
    font-size: 24px;
  }
  .app-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .app-tags {
    justify-content: center;
  }
  .app-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
  .app-actions {
    justify-content: center;
    display: none !important; /* 移动端用底部栏 */
  }
  .app-intro {
    margin: 0 8px 12px;
    padding: 16px 14px 18px;
    border-radius: 16px;
  }
  .app-intro-head h2 { font-size: 18px; }
  .app-mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 12px calc(10px + var(--safe-bottom));
    background: rgba(255,255,255,.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(31,36,46,.06);
    backdrop-filter: blur(8px);
  }
  .app-mobile-price {
    flex: 1;
    min-width: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--brand);
  }
  .app-mobile-bar .btn { flex: none; min-width: 88px; }
  .app-mobile-bar .btn.ghost.on {
    color: var(--brand);
    border-color: #ffd5cd;
    background: var(--brand-soft);
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 var(--gutter) 88px;
  }
  .detail-side {
    position: static;
    order: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 12px;
  }
  .detail-main { order: -1; }
  .detail-cover-wide {
    aspect-ratio: 1 / 1;
    max-width: 100%;
    max-height: none;
    border-radius: 12px;
  }
  .detail-name { font-size: 18px; }
  .detail-side-top .detail-price { display: none; }
  .detail-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    margin: 0;
    padding: 10px 12px calc(10px + var(--safe-bottom));
    background: rgba(255,255,255,.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(31,36,46,.06);
    backdrop-filter: blur(8px);
  }
  .detail-cta-price {
    display: block;
    flex: 0 0 auto;
    max-width: 34%;
    margin-right: 4px;
  }
  .detail-cta .btn { height: 44px; }
  .detail-cta .btn.ghost { flex: 0 0 76px; }
  .detail-orders {
    margin: 0 8px 96px;
  }
}
@media (min-width: 761px) {
  .cat-layout-mall {
    grid-template-columns: 200px 1fr;
    margin: 8px var(--gutter) 24px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    min-height: 70vh;
  }
  .cat-side-mall {
    background: #fff;
    color: #454b57;
    border-right: 1px solid #edf0f4;
  }
  .cat-side-mall button.active {
    background: #fff1ed; color: #ff5140;
  }
}
.mall-header-inner {
  height: 100%;
  width: calc(100% - 40px);
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mall-logo {
  flex: 0 0 168px;
  width: 168px;
  display: flex; align-items: center; gap: 7px;
  color: #fff; font-size: 14px; font-weight: 800; min-width: 0;
}
.mall-logo img { width: 76px; height: 32px; border-radius: 6px; object-fit: contain; background: #fff; }
.mall-logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mall-account {
  margin-left: auto;
  height: 38px; min-width: 224px;
  padding: 0 10px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 11px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 6px 18px rgba(124,36,18,.13);
  color: #24262d;
}
.account-main { display: flex; align-items: center; gap: 6px; min-width: 0; }
.account-avatar {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #fff0e8, #ffe5dc);
  font-size: 12px; font-weight: 800; color: #ff5b3f; flex: none;
}
.account-name {
  max-width: 68px; font-size: 12px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.account-balance {
  padding-left: 8px; border-left: 1px solid #f0dfd8;
  font-size: 10px; color: #8a8f99; white-space: nowrap;
}
.account-balance strong { display: block; margin-top: 1px; color: #ff5b3f; font-size: 12px; }
.account-quick { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.account-quick a {
  padding: 5px 6px; border-radius: 7px; color: #5c606a; font-size: 11px; white-space: nowrap;
}
.account-quick a:hover { color: #ff5b3f; background: #fff0eb; }

.home-hero-banner, .home-hero-notices { min-width: 0; height: 270px; }
.home-hero-banner {
  position: relative;
  overflow: hidden; border-radius: 16px;
  background: #15100b; box-shadow: 0 10px 28px rgba(31,36,46,.1);
  user-select: none;
  touch-action: pan-y;
}
.banner-slider { width: 100%; height: 100%; position: relative; }
.banner-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.banner-slide.active {
  opacity: 1; visibility: visible; z-index: 1;
  pointer-events: auto;
}
.banner-slide a {
  display: block; width: 100%; height: 100%;
}
.banner-slide img {
  width: 100%; height: 100%; display: block; object-fit: cover;
}
.banner-fallback {
  width: 100%; height: 100%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #ff8a5b, #e4572e); font-weight: 800; font-size: 22px;
}
.banner-nav {
  position: absolute; top: 50%; z-index: 4;
  width: 40px; height: 40px; margin-top: -20px;
  border: 0; border-radius: 50%;
  background: rgba(15, 18, 24, .42); color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  opacity: .92;
  transition: opacity .2s, background .2s, transform .2s, box-shadow .2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.banner-nav svg {
  width: 18px; height: 18px;
  display: block;
  pointer-events: none;
}
.banner-nav:hover {
  background: rgba(255,91,69,.95);
  transform: scale(1.06);
  opacity: 1;
}
.banner-nav:active { transform: scale(.96); }
.banner-prev { left: 14px; }
.banner-next { right: 14px; }
.banner-nav.is-hidden,
.banner-nav[disabled] {
  opacity: 0 !important;
  pointer-events: none;
  visibility: hidden;
}
.banner-dots {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3;
  display: flex; justify-content: center; gap: 6px;
  pointer-events: none;
}
.banner-dots button {
  width: 7px; height: 7px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.45); cursor: pointer;
  pointer-events: auto;
  padding: 0;
  transition: width .2s, background .2s;
}
.banner-dots button.on { background: #fff; width: 18px; border-radius: 999px; }

.home-hero-notices .home-article-panel {
  box-sizing: border-box; height: 270px; margin: 0; padding: 12px 14px;
  border: 1px solid #edf0f4; border-radius: 16px; background: #fff;
  box-shadow: 0 10px 28px rgba(31,36,46,.06);
  display: flex; flex-direction: column;
}
.home-article-header {
  margin-bottom: 8px; font-weight: 800; font-size: 14px; color: #20232a;
  display: flex; justify-content: space-between; align-items: center; flex: none;
}
.home-article-header a {
  font-size: 12px; color: #9aa0aa; font-weight: 600; text-decoration: none;
}
.home-article-header a:hover { color: #ff5140; }
.home-article-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.home-article-card {
  flex: 1;
  min-height: 0;
  height: auto;
  border: 1px solid #f1f2f5; border-radius: 9px; background: #fcfcfd;
  display: flex; align-items: center; padding: 0; overflow: hidden; cursor: pointer;
  transition: border-color .15s, background .15s;
  text-decoration: none; color: inherit;
}
.home-article-card:hover {
  border-color: #ffd5cd; background: #fff8f6;
}
.home-article-cover {
  width: 48px; align-self: stretch; flex: 0 0 48px; background: #fff1ed; color: #ff5b3f;
  display: grid; place-items: center; font-size: 10px; font-weight: 700; overflow: hidden;
}
.home-article-card-body {
  flex: 1; min-width: 0; padding: 3px 10px;
  display: flex; align-items: center;
}
.home-article-title {
  width: 100%;
  font-size: 13px; line-height: 18px; color: #444;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

.article-list { display: flex; flex-direction: column; gap: 0; }
.article-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.article-item:last-child { border-bottom: 0; }
.article-item:hover .article-item-title { color: #ff5140; }
.article-item-body { flex: 1; min-width: 0; }
.article-item-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.article-item-meta { margin-top: 4px; font-size: 12px; color: var(--muted); }
.article-item .arrow { color: var(--muted); font-size: 18px; }
.article-back {
  display: inline-block; margin-bottom: 12px; color: var(--muted);
  font-size: 13px; text-decoration: none;
}
.article-back:hover { color: #ff5140; }
.article-detail-cover {
  width: 100%; max-height: 220px; margin: 12px 0 0; border-radius: 12px; overflow: hidden;
  background: #f3f4f6; display: grid; place-items: center;
}
.article-detail-cover img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.article-detail-title {
  margin: 0; font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.35;
}
.article-detail-meta { margin-top: 8px; font-size: 12px; color: var(--muted); }
.article-detail-content,
.rich-content {
  margin-top: 16px; font-size: 15px; line-height: 1.85; color: #333;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.article-detail-content p,
.rich-content p { margin: 0 0 12px; }
.article-detail-content p:last-child,
.rich-content p:last-child { margin-bottom: 0; }
.article-detail-content img,
.rich-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: 10px;
  background: #f3f4f6;
  cursor: zoom-in;
}
.article-detail-content video,
.rich-content video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: 10px;
}

/* 商品说明：管理平台 / 用户端展示海报（多图，一行三张） */
.rich-content .showcase-block,
.detail-desc .showcase-block {
  margin: 18px 0;
  padding: 0 0 18px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #ff3b4a 0%, #e8182f 55%, #d41026 100%);
  box-shadow: 0 14px 36px rgba(216, 20, 40, 0.28);
}
.rich-content .showcase-head,
.detail-desc .showcase-head {
  padding: 18px 16px 12px;
  text-align: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}
.rich-content .showcase-body,
.detail-desc .showcase-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}
.rich-content .showcase-block img,
.detail-desc .showcase-block img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  margin: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  cursor: zoom-in;
}
.rich-content .showcase-admin img,
.detail-desc .showcase-admin img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
@media (max-width: 560px) {
  .rich-content .showcase-body,
  .detail-desc .showcase-body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0 8px;
    padding: 8px;
  }
  .rich-content .showcase-head,
  .detail-desc .showcase-head {
    font-size: 18px;
    padding: 14px 10px 8px;
  }
}

.mobile-category-menu { display: none; }

.catalog-sentinel {
  height: 1px;
  margin-top: -1px;
  pointer-events: none;
}
.catalog-section {
  position: relative;
  margin: 8px;
  padding: 0 0 20px;
  border: 1px solid rgba(232,235,241,.92);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 12px 36px rgba(35,38,45,.06);
}
.catalog-sticky {
  position: sticky;
  top: 54px;
  z-index: 25;
  padding: 20px 22px 18px;
  border-radius: 17px 17px 12px 12px;
  background: rgba(255,255,255,.98);
  transition: box-shadow .2s ease, border-radius .2s ease;
}
.catalog-sticky.is-pinned {
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 28px rgba(31,36,46,.1);
  border-bottom: 1px solid #edf0f4;
}
.catalog-head {
  display: flex; align-items: center; padding-bottom: 15px; border-bottom: 1px solid #edf0f5; gap: 8px;
}
.catalog-title-icon {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff785e, #ff4f3f);
  box-shadow: 0 6px 16px rgba(255,79,63,.22);
  color: #fff; font-size: 12px; font-weight: 800;
  transform: none;
}
.catalog-title-icon::before { content: '▶'; line-height: 1; }
.catalog-title { font-size: 19px; font-weight: 800; color: #20232a; }
.catalog-subtitle { margin-left: 10px; color: #9aa0aa; font-size: 13px; flex: 1; min-width: 0; }
.catalog-actions {
  margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none;
}
.catalog-action-btn {
  margin-left: 0; padding: 7px 12px; border: 1px solid #e8ebf0; border-radius: 9px;
  background: #fff; color: #60656f; font-size: 12px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; line-height: 1.2;
  transition: border-color .15s, color .15s, background .15s;
}
.catalog-action-btn:hover {
  border-color: #ff8b79; color: #ff5b45; background: #fff8f6;
}
.category-line { display: flex; align-items: flex-start; gap: 16px; padding-top: 16px; }
.category-line.secondary {
  margin-top: 15px; padding: 14px 16px;
  background: linear-gradient(90deg, #f7f9fc, #fbfcfe);
  border: 1px solid #edf0f4; border-radius: 12px;
}
.category-label { flex: 0 0 72px; padding-top: 10px; color: #343943; font-size: 14px; font-weight: 800; white-space: nowrap; }
.category-options { display: flex; flex: 1; min-width: 0; flex-wrap: wrap; gap: 10px 12px; }
.category-pill {
  border: 1px solid transparent; border-radius: 10px; padding: 9px 14px;
  background: #f7f8fb; color: #454b57; font-size: 14px; font-weight: 600; cursor: pointer;
}
.category-pill:hover { border-color: #ffd2c9; color: #ff5a46; background: #fff6f3; }
.category-pill.active {
  border-color: #ffd5cd; color: #ff5140;
  background: linear-gradient(135deg, #fff1ed, #ffe7e2);
  box-shadow: 0 5px 14px rgba(255,91,69,.1);
}
.class-announcement {
  margin: 0 0 12px; padding: 12px 16px;
  border: 1px solid #ffb04a; border-left: 5px solid #ff7a00;
  background: #fffaf0; color: #7a4300; font-size: 14px; line-height: 1.7;
  word-break: break-word; white-space: pre-wrap; font-weight: 600;
}
.products-shell { padding: 18px 20px 0; transition: padding .2s ease; }
.px-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.products-shell.with-images .px-grid,
.products-shell.no-images .px-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.px-goods-card {
  position: relative;
  display: flex; flex-direction: column; gap: 0;
  min-height: 142px;
  border: 1px solid #eceff3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(27,31,39,.04);
  padding: 14px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.px-goods-card:hover {
  transform: translateY(-2px);
  border-color: #ffd5cd;
  box-shadow: 0 14px 32px rgba(255,91,69,.1);
}
.products-shell.with-images .px-goods-card {
  padding: 0 0 14px;
  overflow: hidden;
}
.px-goods-card .fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: rgba(255,255,255,.92); color: #c4c4c4; cursor: pointer; font-size: 14px;
}
.px-goods-card .fav-btn.on { color: #ff5b3f; }
.px-goods-card .px-cover {
  width: 100%; aspect-ratio: 1 / 1; height: auto; border-radius: 0; overflow: hidden; flex: none;
  background: #f3f4f6; display: grid; place-items: center; color: #9ca3af; margin-bottom: 12px;
  position: relative; text-decoration: none;
}
.products-shell.no-images .px-cover { display: none !important; }
.products-shell.with-images .px-cover { display: grid; }
.products-shell.with-images .px-goods-card .content { padding: 0 14px; }
.px-goods-card .px-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.px-cover-sale {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  padding: 2px 8px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 11px; line-height: 18px; border-radius: 0 8px 0 0;
}
.px-cover-tag {
  position: absolute; left: 0; top: 0; z-index: 1;
  padding: 2px 8px;
  background: linear-gradient(135deg, #ff785e, #ff4f3f); color: #fff;
  font-size: 11px; line-height: 18px; border-radius: 0 0 8px 0; font-weight: 700;
}
.px-goods-card .content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.px-goods-card[data-detail] { cursor: pointer; }
.px-goods-card .goods-title {
  display: block; color: #333; font-size: 14px; font-weight: 500; line-height: 20px;
  min-height: 40px; overflow-wrap: anywhere; word-break: break-word;
}
.goods-meta { margin-top: 8px; color: #9aa0aa; font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badge {
  display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 700;
  background: #f3f4f6; color: #6b7280;
}
.badge.recommend { background: #fff1ed; color: #ff5140; }
.badge.stop { background: #fee2e2; color: #dc2626; }
.lv-price {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--lv, #e4572e) 12%, #fff);
  color: var(--lv, #e4572e); font-weight: 700;
}
.goods-foot {
  margin-top: auto; padding-top: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.goods-foot .price { color: #ff5b3f; font-size: 18px; font-weight: 800; }
.goods-foot .price small { font-size: 12px; color: #9aa0aa; font-weight: 600; }
.buy-btn {
  position: relative; z-index: 5;
  height: 34px; padding: 0 14px; border-radius: 8px;
  background: linear-gradient(135deg, #ff785e, #ff4f3f); color: #fff;
  font-size: 13px; font-weight: 700; display: inline-flex; align-items: center;
  text-decoration: none;
}
.buy-btn.disabled { opacity: .5; pointer-events: none; }
.load-next {
  margin: 16px auto 8px; width: fit-content; padding: 8px 18px;
  border-radius: 999px; background: #f7f8fb; cursor: pointer;
}

/* ===== 首页骨架屏 ===== */
@keyframes skShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.sk {
  background: linear-gradient(90deg, #e8eaef 0%, #f5f6f8 45%, #e8eaef 90%);
  background-size: 220% 100%;
  animation: skShimmer 1.15s ease-in-out infinite;
  border-radius: 10px;
}
.sk-banner {
  position: absolute; inset: 0;
  border-radius: 16px;
  background: linear-gradient(110deg, #2a2420 0%, #3d342e 40%, #2a2420 80%);
  background-size: 220% 100%;
  animation: skShimmer 1.3s ease-in-out infinite;
}
.sk-banner::after {
  content: '';
  position: absolute; left: 16px; right: 16px; bottom: 18px;
  height: 10px; border-radius: 999px;
  background: rgba(255,255,255,.12);
}
.sk-fade-out {
  animation: skFadeOut .28s ease forwards;
  pointer-events: none;
}
@keyframes skFadeOut {
  to { opacity: 0; transform: translateY(4px); }
}
.sk-mobile-cat {
  display: none;
  gap: 8px;
  padding: 0 2px 4px;
  overflow: hidden;
}
.sk-mobile-cat .sk {
  flex: 0 0 72px;
  height: 30px;
  border-radius: 999px;
}
.sk-notice-card {
  flex: 1;
  min-height: 38px;
  height: auto;
  border: 1px solid #f1f2f5;
  border-radius: 9px;
  background: #fcfcfd;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.sk-notice-cover {
  width: 48px; flex: 0 0 48px;
  border-radius: 0;
}
.sk-notice-line {
  flex: 1;
  height: 12px;
  margin: auto 12px;
  border-radius: 6px;
}
.sk-notice-bar {
  pointer-events: none;
}
.sk-pill {
  display: inline-block;
  width: 64px; height: 30px;
  border-radius: 999px;
  vertical-align: middle;
}
.sk-goods {
  border: 1px solid #eceff3;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  padding-bottom: 14px;
  box-shadow: 0 7px 20px rgba(27,31,39,.04);
}
.sk-goods .sk-cover {
  width: 100%; aspect-ratio: 1 / 1; height: auto;
  border-radius: 0;
  margin-bottom: 12px;
}
.products-shell.no-images .sk-goods .sk-cover { display: none; }
.sk-goods .sk-line {
  height: 14px; margin: 0 14px 10px; border-radius: 6px;
}
.sk-goods .sk-line.short { width: 55%; }
.sk-goods .sk-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin: 18px 14px 0; gap: 10px;
}
.sk-goods .sk-foot i {
  display: block; height: 22px; border-radius: 6px;
  background: linear-gradient(90deg, #eef0f3 0%, #f7f8fa 40%, #eef0f3 80%);
  background-size: 200% 100%;
  animation: skShimmer 1.2s ease-in-out infinite;
}
.sk-goods .sk-foot i:first-child { width: 72px; }
.sk-goods .sk-foot i:last-child { width: 78px; height: 34px; border-radius: 8px; }

.sk-order {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 14px;
  padding: 14px;
  margin: 0 var(--gutter) 10px;
  box-shadow: 0 7px 20px rgba(27,31,39,.04);
}
.sk-order .sk-row {
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.sk-order .sk-body {
  display: flex; gap: 12px; margin-bottom: 12px;
}
.sk-order .sk-thumb {
  width: 72px; height: 72px; border-radius: 12px; flex: none;
}
.sk-order .sk-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.sk-order .sk-line { height: 12px; border-radius: 6px; }
.sk-order .sk-line.w60 { width: 60%; }
.sk-order .sk-line.w40 { width: 40%; }
.sk-order .sk-line.w28 { width: 28%; height: 14px; }
.sk-order .sk-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding-top: 4px;
}
.sk-order .sk-btn {
  width: 72px; height: 30px; border-radius: 8px;
}

.sk-article-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid #f1f2f5;
}
.sk-article-item:last-child { border-bottom: 0; }
.sk-article-item .sk-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sk-article-item .sk-line { height: 13px; border-radius: 6px; }
.sk-article-item .sk-line.w70 { width: 70%; }
.sk-article-item .sk-line.w35 { width: 35%; height: 11px; }
.sk-article-item .sk-arrow {
  width: 14px; height: 14px; border-radius: 4px; flex: none;
}

.sk-article-detail .sk-back { width: 88px; height: 14px; margin-bottom: 16px; border-radius: 6px; }
.sk-article-detail .sk-title { width: 68%; height: 22px; margin-bottom: 10px; border-radius: 8px; }
.sk-article-detail .sk-meta { width: 36%; height: 12px; margin-bottom: 18px; border-radius: 6px; }
.sk-article-detail .sk-cover {
  width: 100%; height: 180px; border-radius: 12px; margin-bottom: 16px;
}
.sk-article-detail .sk-p {
  height: 13px; border-radius: 6px; margin-bottom: 10px;
}
.sk-article-detail .sk-p.w90 { width: 90%; }
.sk-article-detail .sk-p.w75 { width: 75%; }
.sk-article-detail .sk-p.w55 { width: 55%; }

.sk-cat-side {
  display: flex; flex-direction: column; gap: 8px; padding: 10px 8px;
}
.sk-cat-side .sk {
  height: 36px; border-radius: 10px;
}
.sk-cat-side .sk:nth-child(1) { width: 100%; }
.sk-cat-side .sk:nth-child(2) { width: 92%; }
.sk-cat-side .sk:nth-child(3) { width: 88%; }
.sk-cat-side .sk:nth-child(4) { width: 94%; }
.sk-cat-side .sk:nth-child(5) { width: 80%; }
.sk-cat-side .sk:nth-child(6) { width: 86%; }

.sk-order-goods {
  display: flex; gap: 12px; align-items: center;
}
.sk-order-goods .sk-thumb {
  width: 72px; height: 72px; border-radius: 12px; flex: none;
}
.sk-order-goods .sk-info { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sk-order-goods .sk-line { height: 13px; border-radius: 6px; }
.sk-order-goods .sk-line.w70 { width: 70%; }
.sk-order-goods .sk-line.w40 { width: 40%; }

.sk-detail-side .sk-price {
  width: 42%; height: 28px; border-radius: 8px; margin-bottom: 16px;
}
.sk-detail-side .sk-meta-row {
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px;
}
.sk-detail-side .sk-meta-row .sk { height: 12px; border-radius: 6px; }
.sk-detail-side .sk-meta-row .sk:first-child { width: 28%; }
.sk-detail-side .sk-meta-row .sk:last-child { width: 36%; }
.sk-detail-cta {
  display: flex; gap: 8px; margin-top: 18px; align-items: center;
}
.sk-detail-cta .sk-price-sm { width: 64px; height: 22px; border-radius: 6px; }
.sk-detail-cta .sk-btn { flex: 1; height: 40px; border-radius: 12px; }

@media (max-width: 760px) {
  .sk-goods .sk-cover { aspect-ratio: 1 / 1; height: auto; }
  .sk-order { margin-left: 8px; margin-right: 8px; }
}

.notice-mask {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15,23,42,.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.notice-modal {
  width: min(440px, 100%); max-height: 70vh; overflow: auto;
  background: #fff; border-radius: 16px; padding: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.notice-title { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.notice-body {
  color: #444; font-size: 14px; line-height: 1.7; margin-bottom: 16px;
  word-break: break-word; max-height: min(60vh, 480px); overflow: auto;
}
.notice-body img {
  display: block; width: 100%; max-width: 100%; height: auto;
  margin: 10px 0; border-radius: 8px;
}

.kefu-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15,23,42,.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.kefu-modal {
  width: min(420px, 100%); max-height: 70vh; overflow: auto;
  background: #fff; border-radius: 16px; padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.kefu-title {
  font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 12px;
}
.kefu-body {
  color: #444; font-size: 14px; line-height: 1.7; margin-bottom: 16px;
  word-break: break-word;
}
.kefu-body img { max-width: 100%; height: auto; border-radius: 8px; }
.kefu-text {
  margin: 0; font-family: inherit; white-space: pre-wrap; word-break: break-word;
  font-size: 14px; line-height: 1.7; color: #444;
}
.kefu-empty { margin: 0; color: var(--muted); }

.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }

@media (max-width: 980px) {
  .mall-header-inner { width: calc(100% - 32px); }
  .mall-logo { flex-basis: 150px; width: 150px; }
  .home-hero {
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 12px;
  }
  .px-grid,
  .products-shell.with-images .px-grid,
  .products-shell.no-images .px-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-quick a:nth-child(2) { display: none; }
}
@media (max-width: 760px) {
  .tabbar { display: grid; width: 100%; left: 0; transform: none; }
  .page:not(.no-tab) {
    padding-bottom: calc(var(--tab-h) + var(--safe-bottom) + 18px);
  }
  .page.page-mall:not(.no-tab) {
    padding-bottom: calc(var(--tab-h) + var(--safe-bottom) + 24px);
  }

  .mall-header-inner:not(:has(.mall-back)) .mall-logo span { display: none; }
  .mall-logo {
    flex-basis: 82px; width: 82px;
  }
  .mall-logo img { width: 56px; height: 28px; }
  .mall-logo span {
    max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .mall-account { min-width: 145px; }
  .account-balance { display: none; }
  .account-quick a:nth-child(1),
  .account-quick a:nth-child(2) { display: none; }

  .home-top-stack { padding: 0; margin: 0; }
  .van-notice-bar { margin: 0 8px 8px; }
  .home-hero {
    display: flex; flex-direction: column; gap: 10px;
    margin: 0 8px 8px;
  }
  .home-hero-banner {
    display: block;
    height: 168px;
    border-radius: 14px;
  }
  .banner-nav {
    width: 34px; height: 34px; margin-top: -17px;
    opacity: .9;
  }
  .banner-nav svg { width: 16px; height: 16px; }
  .banner-prev { left: 8px; }
  .banner-next { right: 8px; }
  .banner-dots { bottom: 8px; }
  .banner-fallback { font-size: 16px; }
  .sk-mobile-cat { display: flex; }
  .home-hero-notices { height: auto; }
  .home-hero-notices .home-article-panel {
    height: auto;
    padding: 12px;
    border-radius: 14px;
  }
  .home-article-header { margin-bottom: 10px; font-size: 15px; }
  .home-article-grid {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 0 2px;
    margin: 0;
    scrollbar-width: none;
  }
  .home-article-grid::-webkit-scrollbar { display: none; }
  .home-article-card {
    flex: 0 0 152px;
    width: 152px;
    height: 72px;
    scroll-snap-align: start;
  }
  .sk-notice-card {
    flex: 0 0 152px;
    width: 152px;
    height: 72px;
  }
  .sk-notice-card .sk-notice-cover {
    width: 52px; flex: 0 0 52px; align-self: stretch;
  }
  .sk-notice-card .sk-notice-line {
    height: 10px;
    margin: 14px 10px auto;
  }
  .home-article-cover {
    width: 52px; height: 72px; flex: 0 0 52px; align-self: auto;
    font-size: 11px;
  }
  .home-article-card-body { padding: 8px 10px; align-items: flex-start; }
  .home-article-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 18px;
    max-height: 36px;
    font-size: 13px;
  }

  /* 公告列表 / 详情页 / 内页对齐 */
  .page.page-mall.inner {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .page.page-mall.inner > .sub-panel,
  .page.page-mall.inner .order-card,
  .page.page-mall.inner .detail-layout {
    margin-left: 8px;
    margin-right: 8px;
  }
  .page.page-mall.inner > .sub-panel {
    margin-top: 8px;
    margin-bottom: 8px;
    border-radius: 14px;
  }
  .page.page-mall.inner .order-list .empty,
  .page.page-mall.inner > .loading {
    margin: 0 8px;
  }
  .article-item {
    padding: 14px 2px;
    min-height: 52px;
    gap: 10px;
  }
  .article-item-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.35;
  }
  .article-item .arrow {
    flex: none;
    font-size: 22px;
    padding: 0 2px;
  }
  .article-detail-title {
    font-size: 18px;
    line-height: 1.4;
  }
  .article-detail-content {
    font-size: 15px;
    line-height: 1.75;
  }
  .article-detail-content img,
  .article-detail-content video,
  .article-detail-content iframe {
    max-width: 100% !important;
    height: auto !important;
  }
  .article-detail-content table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .catalog-sentinel { display: none; }
  .catalog-section {
    display: flex;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  .catalog-sticky {
    position: sticky;
    top: 54px;
    z-index: 20;
    flex: 0 0 25%;
    width: 25%;
    max-height: calc(100vh - 54px - var(--tab-h));
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    align-self: flex-start;
    border-radius: 0;
    border-bottom: 0;
    box-shadow: none;
    background: linear-gradient(135deg, #ff8d37, #ff6650);
  }
  .catalog-sticky.is-pinned {
    border-radius: 0;
    box-shadow: none;
    border-bottom: 0;
  }
  .catalog-sticky .catalog-head,
  .catalog-sticky > .category-line { display: none; }
  .mobile-category-menu {
    display: block;
    min-height: 100%;
    color: #ffe6d6;
  }
  .mobile-category-list {
    margin: 0;
    padding: 1vh 0;
    list-style: none;
  }
  .mobile-category-all,
  .mobile-category-parent,
  .mobile-category-child {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
  }
  .mobile-category-all,
  .mobile-category-parent {
    height: 3em;
    padding: 0 .5em;
    font-size: 1em;
    font-weight: 500;
    line-height: 3em;
  }
  .mobile-category-all.active,
  .mobile-category-parent.open {
    background: linear-gradient(135deg, #ffbd8a, #ffc9c2);
    color: #fff;
  }
  .mobile-category-parent {
    position: relative;
    padding-right: 1.7em;
  }
  .mobile-category-parent::after {
    position: absolute;
    top: 50%;
    right: .65em;
    width: 6px;
    height: 6px;
    margin-top: -4px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    content: '';
    transform: rotate(45deg);
    transition: transform .18s;
  }
  .mobile-category-parent.open::after {
    margin-top: -1px;
    transform: rotate(225deg);
  }
  .mobile-category-children {
    margin: 0;
    padding: 0;
    list-style: none;
    background: rgba(255,255,255,.1);
  }
  .mobile-category-child {
    padding: 0 1.2em;
    font-size: .9em;
    font-weight: 500;
    line-height: 2.8em;
    word-break: break-word;
  }
  .mobile-category-child.active {
    background: rgba(255,255,255,.18);
    color: #fff;
    font-weight: 700;
  }
  .products-shell {
    flex: 1;
    min-width: 0;
    width: 75%;
    padding: 1vw 1vw 10px !important;
    background: #fff;
  }
  .px-grid,
  .products-shell.with-images .px-grid,
  .products-shell.no-images .px-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .products-shell.with-images .px-goods-card .px-cover {
    aspect-ratio: 1 / 1;
    height: auto;
  }
}
.pay-mask {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(20,22,28,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.pay-modal {
  width: min(360px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.pay-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.pay-modal-head h3 { margin: 0; font-size: 17px; }
.pay-amount {
  text-align: center; font-size: 28px; font-weight: 800; color: #16a34a; margin: 8px 0 14px;
}
.pay-qr-wrap {
  display: grid; place-items: center;
  padding: 12px; border: 1px solid #eef0f4; border-radius: 12px; background: #fafbfc;
}
.pay-qr-wrap img { display: block; width: 200px; height: 200px; }
.pay-tip { text-align: center; color: #6b7280; font-size: 13px; margin: 12px 0 14px; }
.pay-actions { display: flex; gap: 8px; }
.pay-actions .btn { flex: 1; }
