/* =========================================================
   三十电子商务 - 移动端商城设计系统
   配色/字体/圆角/阴影对照 APP设计-商城电商.pdf
   ========================================================= */

:root {
  --c-primary: #ff3b30;
  --c-primary-light: #fff0ef;
  --c-secondary: #ff7a45;
  --c-bg: #f5f5f7;
  --c-card: #ffffff;
  --c-text: #1a1a1a;
  --c-text-m: #666666;
  --c-text-l: #999999;
  --c-border: #eeeeee;
  --c-green: #07c160;
  --c-orange: #ff9500;
  --c-blue: #2b85e4;
  --c-purple: #7b45ff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-h: 56px;
  --tabbar-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--c-bg); overflow-x: hidden; }
/* 桌面浏览器里把移动端布局约束为手机宽度并居中，模拟手机呈现 */
@media (min-width: 481px) {
  body { background: #e6e8ec; }
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
}
#app {
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background: var(--c-bg);
  box-shadow: 0 0 24px rgba(0,0,0,0.06);
  overflow-x: hidden;
}

/* 通用工具 */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.grow { flex: 1; }
.text-cut {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.text-cut-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { justify-content: center; align-items: center; }
.price { color: var(--c-primary); font-weight: 600; }
.price::before { content: "¥"; font-size: 0.78em; margin-right: 2px; }
.badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--c-primary); color: #fff; font-size: 11px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
}

/* 页面容器 */
.page {
  min-height: 100%; background: var(--c-bg);
  padding-top: var(--header-h); padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom));
}
.page.no-pad-top { padding-top: 0; }
.page.no-pad-bottom { padding-bottom: 0; }

/* 顶部导航 */
.s-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 100;
  height: var(--header-h); padding: 0 16px;
  background: var(--c-card); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 12px;
}
.s-header .logo-text { font-size: 18px; font-weight: 700; }
.s-header .search-bar {
  flex: 1; height: 36px; background: #f2f2f2; border-radius: 18px;
  display: flex; align-items: center; padding: 0 12px; gap: 6px; color: var(--c-text-l);
}
.s-header .search-bar input {
  flex: 1; border: 0; background: transparent; outline: 0; font-size: 14px; color: var(--c-text);
}
.s-header .icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.s-header .icon-btn svg { width: 22px; height: 22px; stroke: var(--c-text); }

/* 返回头部 */
.s-nav {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 100;
  height: var(--header-h); background: var(--c-card);
  display: flex; align-items: center; padding: 0 12px; gap: 8px;
  box-shadow: var(--shadow-sm);
}
.s-nav .back { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.s-nav .title { flex: 1; text-align: center; font-size: 17px; font-weight: 600; padding-right: 32px; }

/* 底部 4 Tab */
.s-tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 100;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--c-card); box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
  display: flex; justify-content: space-around; align-items: flex-start; padding-top: 8px;
}
.s-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--c-text-l); font-size: 11px; background: transparent; border: 0; padding: 4px 0;
  position: relative;
}
.s-tab svg { width: 24px; height: 24px; stroke-width: 1.8; }
.s-tab.on { color: var(--c-primary); }
.s-tab.on svg { stroke: var(--c-primary); fill: rgba(255,59,48,0.08); }
.s-tab .cart-badge {
  position: absolute; top: 0; left: 50%;
  transform: translateX(6px);
  min-width: 16px; height: 16px; background: var(--c-primary); color: #fff;
  font-size: 10px; border-radius: 8px; padding: 0 4px; display: flex; align-items: center; justify-content: center;
}

/* 卡片 */
.s-card {
  margin: 12px; padding: 14px; background: var(--c-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.s-card-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 17px; font-weight: 700; margin-bottom: 12px;
}
.s-card-title .sub { font-size: 13px; color: var(--c-text-l); font-weight: 400; }

/* 轮播 banner */
.banner-wrap { margin: 12px; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.banner-wrap img { width: 100%; height: 140px; object-fit: cover; display: block; }
.banner-dots {
  position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px;
}
.banner-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.banner-dots span.on { background: #fff; width: 12px; border-radius: 3px; }

/* 金刚区 */
.king-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 4px;
  padding: 10px 4px; text-align: center;
}
.king-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.king-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; background: linear-gradient(135deg, #fff0ef, #ffe8e6);
}
.king-item span { font-size: 12px; color: var(--c-text); }

/* 秒杀时间轴 */
.seckill-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.seckill-head .tag {
  background: var(--c-primary); color: #fff; font-size: 12px; padding: 3px 8px;
  border-radius: 10px 0 10px 0; font-weight: 700;
}
.seckill-head .cd { font-size: 14px; color: var(--c-primary); font-weight: 600; }
.seckill-head .cd span {
  background: #1a1a1a; color: #fff; padding: 2px 4px; border-radius: 4px; margin: 0 2px;
}
.seckill-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
}
.seckill-card {
  flex: 0 0 88px; text-align: center;
}
.seckill-card img { width: 80px; height: 80px; border-radius: var(--radius-md); object-fit: cover; }
.seckill-card .price { font-size: 14px; }
.seckill-card .old { text-decoration: line-through; color: var(--c-text-l); font-size: 11px; }

/* 商品卡片 */
.goods-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 12px 12px;
}
.goods-card {
  background: var(--c-card); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.goods-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.goods-card .info { padding: 10px; }
.goods-card .name { font-size: 14px; line-height: 1.4; height: 40px; }
.goods-card .tags { display: flex; gap: 4px; margin: 6px 0; }
.goods-card .tags span { font-size: 10px; padding: 2px 5px; border-radius: 4px; background: var(--c-primary-light); color: var(--c-primary); }
.goods-card .bot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.goods-card .price { font-size: 18px; }
.goods-card .sold { font-size: 11px; color: var(--c-text-l); }
.goods-card .add-cart {
  width: 26px; height: 26px; border-radius: 50%; background: var(--c-primary-light);
  color: var(--c-primary); display: flex; align-items: center; justify-content: center; font-size: 18px;
}

/* 分类页 */
.cat-page { display: flex; height: 100%; }
.cat-sidebar {
  width: 90px; background: #f8f8f8; flex-shrink: 0;
  overflow-y: auto; padding-bottom: 20px;
}
.cat-sidebar .item {
  padding: 16px 8px; font-size: 13px; color: var(--c-text-m); text-align: center;
  border-left: 3px solid transparent; position: relative;
}
.cat-sidebar .item.on { background: #fff; color: var(--c-primary); border-left-color: var(--c-primary); font-weight: 600; }
.cat-main { flex: 1; overflow-y: auto; padding: 12px; background: var(--c-bg); }
.cat-sub-title { font-size: 15px; font-weight: 700; margin: 8px 0; }
.cat-pro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cat-pro { background: #fff; border-radius: var(--radius-md); padding: 8px; text-align: center; }
.cat-pro img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.cat-pro .t { font-size: 12px; margin-top: 6px; }
.cat-pro .p { font-size: 12px; color: var(--c-primary); }

/* 商品详情 */
.pd-page { background: var(--c-bg); }
.pd-swiper { position: relative; }
.pd-swiper img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.pd-swiper .indicator {
  position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.4); color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: 12px;
}
.pd-price-bar {
  background: linear-gradient(90deg, var(--c-primary), #ff7a45);
  color: #fff; padding: 12px 16px; display: flex; align-items: flex-end; gap: 10px;
}
.pd-price-bar .p { font-size: 30px; font-weight: 700; }
.pd-price-bar .p::before { content: "¥"; font-size: 16px; }
.pd-price-bar .old { text-decoration: line-through; opacity: 0.8; font-size: 14px; margin-bottom: 4px; }
.pd-price-bar .tag { background: rgba(255,255,255,0.25); padding: 2px 8px; border-radius: 10px; font-size: 12px; margin-bottom: 4px; }
.pd-info { padding: 14px 16px; background: #fff; }
.pd-info .name { font-size: 18px; font-weight: 700; line-height: 1.5; }
.pd-info .desc { color: var(--c-text-m); font-size: 13px; margin-top: 8px; }
.pd-info .sales-row { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--c-text-l); }
.pd-cell { display: flex; justify-content: space-between; padding: 14px 16px; background: #fff; margin-top: 10px; font-size: 14px; }
.pd-cell .label { color: var(--c-text-m); }
.pd-review { margin-top: 10px; background: #fff; }
.pd-review .head { padding: 14px 16px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--c-border); }
.pd-action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 110;
  background: #fff; display: flex; align-items: center; padding: 8px 12px calc(8px + var(--safe-bottom));
  box-shadow: 0 -2px 12px rgba(0,0,0,0.05); gap: 10px;
}
.pd-action-bar .icon-actions { display: flex; gap: 14px; padding: 0 8px; }
.pd-action-bar .icon-actions .i { display: flex; flex-direction: column; align-items: center; font-size: 10px; color: var(--c-text-m); }
.pd-action-bar .btn { flex: 1; height: 42px; border-radius: 21px; border: 0; color: #fff; font-size: 15px; font-weight: 600; }
.pd-action-bar .btn-cart { background: linear-gradient(90deg, #ffbf00, #ff9500); }
.pd-action-bar .btn-buy { background: linear-gradient(90deg, var(--c-primary), #ff6b5b); }

/* 购物车 */
.cart-page { padding-bottom: calc(110px + var(--safe-bottom)); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--c-text-l); }
.cart-empty img { width: 120px; opacity: 0.6; }
.cart-item {
  margin: 10px 12px; padding: 12px; background: #fff; border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-sm);
}
.cart-check { width: 20px; height: 20px; border: 2px solid #ddd; border-radius: 50%; flex-shrink: 0; }
.cart-check.on { background: var(--c-primary); border-color: var(--c-primary); }
.cart-thumb { width: 80px; height: 80px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; }
.cart-info { flex: 1; min-width: 0; }
.cart-info .name { font-size: 14px; font-weight: 600; }
.cart-info .spec { font-size: 12px; color: var(--c-text-l); margin-top: 2px; }
.cart-info .price { font-size: 16px; margin-top: 4px; }
.cart-stepper {
  display: flex; align-items: center; border: 1px solid var(--c-border); border-radius: 14px; overflow: hidden;
}
.cart-stepper button { width: 28px; height: 28px; background: #fff; border: 0; color: var(--c-text); }
.cart-stepper input { width: 36px; text-align: center; border: 0; font-size: 14px; }
.cart-foot {
  position: fixed; bottom: calc(var(--tabbar-h) + var(--safe-bottom)); left: 0; right: 0; z-index: 105;
  background: #fff; padding: 10px 12px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}
.cart-foot .all { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.cart-foot .total { flex: 1; text-align: right; font-size: 14px; }
.cart-foot .total b { color: var(--c-primary); font-size: 18px; }
.cart-foot .checkout {
  background: linear-gradient(90deg, var(--c-primary), #ff6b5b); color: #fff;
  padding: 10px 22px; border-radius: 20px; border: 0; font-size: 15px; font-weight: 600;
}

/* 我的 */
.me-page { background: var(--c-bg); }
.me-head {
  background: linear-gradient(135deg, #fff0ef, #fff7f6);
  padding: 24px 16px 20px; display: flex; align-items: center; gap: 14px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg); margin-bottom: 12px;
}
.me-head .avatar { width: 64px; height: 64px; border-radius: 50%; background: #ddd; object-fit: cover; }
.me-head .info { flex: 1; }
.me-head .name { font-size: 20px; font-weight: 700; }
.me-head .id { font-size: 12px; color: var(--c-text-l); margin-top: 4px; }
.me-head .msg-icon { position: relative; width: 36px; height: 36px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.me-order-card { margin: 0 12px 12px; }
.me-order-top { display: flex; justify-content: space-between; margin-bottom: 12px; }
.me-order-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center; }
.me-order-grid .i { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--c-text-m); position: relative; }
.me-order-grid .i svg { width: 24px; height: 24px; stroke: var(--c-text-m); }
.me-menu { margin: 0 12px 12px; }
.me-menu .item {
  display: flex; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--c-border); background: transparent; border-left: 0; border-right: 0; border-top: 0; width: 100%;
}
.me-menu .item:last-child { border-bottom: 0; }
.me-menu .ic { width: 28px; font-size: 18px; text-align: center; }
.me-menu .txt { flex: 1; font-size: 15px; text-align: left; }
.me-menu .sub { font-size: 12px; color: var(--c-text-l); }
.me-menu .arrow { color: var(--c-text-l); font-size: 18px; }

/* 推广奖励页 */
.promo-summary { display: flex; flex-direction: column; gap: 6px; }
.promo-summary .code { font-size: 15px; font-weight: 600; }
.promo-summary .fans { font-size: 13px; color: var(--c-text-l); }
.promo-summary .fans b { color: var(--c-primary); }
.promo-row { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #f2f2f2; }
.promo-row:last-child { border-bottom: 0; }
.promo-row .lbl { flex: 1; font-size: 14px; }
.promo-row .cnt { font-size: 12px; color: var(--c-text-l); margin-left: 12px; }
.promo-reward { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #f2f2f2; }
.promo-reward:last-child { border-bottom: 0; }
.promo-reward .t { font-size: 14px; font-weight: 600; }
.promo-reward .sub { font-size: 12px; color: var(--c-text-l); margin-top: 3px; }
.promo-reward .price { font-size: 16px; }

/* 我的钱包 */
.wallet-card {
  background: linear-gradient(135deg, #2b2b2b, #4a4a4a); color: #fff;
  border-radius: var(--radius-lg); padding: 16px; margin: 0 12px 12px;
}
.wallet-card .label { opacity: 0.7; font-size: 13px; }
.wallet-card .amount { font-size: 32px; font-weight: 700; margin: 6px 0; }
.wallet-card .amount::before { content: "¥"; font-size: 18px; }
.wallet-card .row3 { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
.wallet-card .row3 div { text-align: center; }
.wallet-card .row3 .n { font-size: 16px; font-weight: 600; }
.wallet-card .row3 .l { font-size: 11px; opacity: 0.7; }
.wallet-card .row4 { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
.wallet-card .row4 div { text-align: center; }
.wallet-card .row4 .n { font-size: 15px; font-weight: 600; }
.wallet-card .row4 .l { font-size: 11px; opacity: 0.7; }

/* 收货地址 */
.address-card { background: #fff; border-radius: var(--radius-lg); padding: 14px 16px; margin: 0 12px 10px; }
.address-card .top { display: flex; align-items: center; gap: 10px; }
.address-card .top .name { font-weight: 600; }
.address-card .top .phone { color: var(--c-text-l); font-size: 13px; }
.address-card .top .default { margin-left: auto; background: var(--c-primary); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.address-card .addr { color: var(--c-text-m); font-size: 13px; margin: 8px 0; line-height: 1.5; }
.address-card .ops { display: flex; gap: 10px; }
.address-card .ops button { font-size: 13px; padding: 5px 12px; border: 1px solid var(--c-border); border-radius: 8px; background: #fff; }
.address-card .ops .del { color: #ff3b30; border-color: #ffd5d5; }

/* 订单列表 */
.orders-tabs {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
  background: #fff; display: flex; overflow-x: auto; border-bottom: 1px solid var(--c-border);
}
.orders-tabs .t {
  flex-shrink: 0; padding: 12px 14px; font-size: 14px; color: var(--c-text-m); position: relative; white-space: nowrap;
}
.orders-tabs .t.on { color: var(--c-primary); font-weight: 600; }
.orders-tabs .t.on::after {
  content: ""; position: absolute; bottom: 0; left: 20%; right: 20%; height: 3px;
  background: var(--c-primary); border-radius: 2px;
}
.orders-list { padding-top: 44px; }
.order-card { margin: 10px 12px; background: #fff; border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow-sm); }
.order-card .head { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
.order-card .head .no { color: var(--c-text-l); }
.order-card .head .status { color: var(--c-primary); }
.order-item-row { display: flex; gap: 10px; margin-bottom: 8px; }
.order-item-row img { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; }
.order-item-row .info { flex: 1; }
.order-item-row .name { font-size: 14px; }
.order-item-row .spec { font-size: 12px; color: var(--c-text-l); }
.order-item-row .r { text-align: right; }
.order-item-row .price { font-size: 14px; }
.order-card .total-bar { text-align: right; font-size: 13px; color: var(--c-text-m); margin: 8px 0; }
.order-card .total-bar b { color: var(--c-text); }
.order-card .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.order-card .actions button {
  padding: 6px 14px; border-radius: 14px; font-size: 13px; border: 1px solid var(--c-border); background: #fff; color: var(--c-text);
}
.order-card .actions button.primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* 状态标签（全局） */
.status-tag { font-size: 12px; color: var(--c-primary); }
.status-tag.green { color: var(--c-green); }
.status-tag.gray { color: var(--c-text-l); }
.status-tag.orange { color: var(--c-orange); }

/* 提交订单 */
.checkout-page { background: var(--c-bg); padding-bottom: 80px; }
.checkout-addr {
  background: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px;
  border-radius: var(--radius-lg); margin: 12px;
}
.checkout-list { margin: 0 12px; }
.checkout-list .item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--c-border); }
.checkout-list .item img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; }
.checkout-foot {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 110;
  background: #fff; padding: 10px 12px calc(10px + var(--safe-bottom));
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.checkout-foot .sum { font-size: 14px; }
.checkout-foot .sum b { color: var(--c-primary); font-size: 20px; }
.checkout-foot button {
  background: var(--c-primary); color: #fff; border: 0; border-radius: 20px;
  padding: 10px 26px; font-size: 15px; font-weight: 600;
}

/* 消息中心 */
.msg-page { background: var(--c-bg); }
.msg-item { display: flex; gap: 12px; padding: 14px; background: #fff; border-bottom: 1px solid var(--c-border); }
.msg-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary); margin-top: 6px; }
.msg-item .dot.read { background: #ddd; }
.msg-item .title { font-size: 15px; font-weight: 600; }
.msg-item .txt { font-size: 13px; color: var(--c-text-m); margin-top: 4px; }
.msg-item .time { font-size: 12px; color: var(--c-text-l); margin-top: 6px; }

/* 推广海报 */
.poster-page { background: linear-gradient(135deg, #fff0ef, #fff7f6); display: flex; flex-direction: column; align-items: center; justify-content: center; padding-left: 24px; padding-right: 24px; }
.poster-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; text-align: center; width: 100%; max-width: 320px; box-shadow: var(--shadow-lg); }
.poster-card h3 { margin: 0 0 8px; }
.poster-card .qr { width: 180px; height: 180px; margin: 14px auto; background: #f2f2f2; display: flex; align-items: center; justify-content: center; }
.poster-card .code { font-size: 14px; color: var(--c-text-m); }

/* 评价/售后表单 */
.form-page { background: var(--c-bg); }
.form-row { background: #fff; padding: 14px 16px; margin-bottom: 10px; }
.form-row label { display: block; font-size: 14px; color: var(--c-text-m); margin-bottom: 8px; }
.form-row textarea, .form-row input, .form-row select {
  width: 100%; border: 1px solid var(--c-border); border-radius: var(--radius-md);
  padding: 10px; font-size: 14px; outline: 0;
}
.form-row textarea { min-height: 100px; resize: vertical; }
.stars { display: flex; gap: 8px; }
.stars .star { font-size: 28px; color: #ddd; cursor: pointer; }
.stars .star.on { color: var(--c-orange); }
.form-actions { padding: 16px; }
.form-actions button {
  width: 100%; height: 46px; border-radius: 23px; border: 0;
  background: var(--c-primary); color: #fff; font-size: 16px; font-weight: 600;
}

/* 登录/注册 */
.auth-page { background: #fff; min-height: 100%; display: flex; flex-direction: column; padding: 40px 24px; }
.auth-page h1 { font-size: 28px; margin-bottom: 8px; }
.auth-page h2 { font-size: 16px; color: var(--c-text-m); font-weight: 400; margin-bottom: 32px; }
.auth-input { margin-bottom: 16px; }
.auth-input label { font-size: 13px; color: var(--c-text-m); margin-bottom: 6px; display: block; }
.auth-input input {
  width: 100%; height: 46px; border: 1px solid var(--c-border); border-radius: var(--radius-md);
  padding: 0 14px; font-size: 15px; outline: 0;
}
.auth-input input:focus { border-color: var(--c-primary); }
.auth-btn {
  width: 100%; height: 48px; border-radius: 24px; border: 0;
  background: linear-gradient(90deg, var(--c-primary), #ff6b5b); color: #fff;
  font-size: 16px; font-weight: 600; margin-top: 12px;
}
.auth-link { text-align: center; margin-top: 16px; color: var(--c-primary); font-size: 14px; }

/* 加载/空态/提示 */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 4px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.75); color: #fff; padding: 12px 20px; border-radius: 20px;
  font-size: 14px; z-index: 1000; max-width: 70%; text-align: center;
}

/* 响应式微调 */
@media (max-width: 360px) {
  .king-grid { grid-template-columns: repeat(4, 1fr); }
  .goods-grid { gap: 8px; padding: 0 8px 8px; }
}

/* ============ 店铺装修动态模块 ============ */
.home-modules { padding-top: 68px; }
.home-modules > * { margin: 0 12px 12px; }
.home-modules > *:first-child { margin-top: 0; }
.home-modules .goods-grid { padding: 0; }
/* 公告条 */
.notice-bar {
  display: flex; align-items: center; gap: 8px; height: 40px;
  background: var(--c-card); border-radius: var(--radius-md); padding: 0 12px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.notice-ico { font-size: 16px; flex-shrink: 0; }
.notice-track { flex: 1; overflow: hidden; }
.notice-text { font-size: 13px; color: var(--c-text-m); line-height: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-bar.clickable { cursor: pointer; }
.notice-more { color: var(--c-text-l); font-size: 13px; flex-shrink: 0; }
/* 跑马灯 */
.marquee { overflow: hidden; white-space: nowrap; flex: 1; }
.marquee-inner {
  display: inline-block; white-space: nowrap;
  animation: marquee-scroll 16s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-inner { animation-play-state: paused; }
.notice-line { display: inline-block; font-size: 13px; color: var(--c-text-m); line-height: 40px; }
.notice-line .sep { font-style: normal; margin: 0 12px; color: var(--c-text-l); }
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* 公告弹窗 */
.s-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.s-popup { background: #fff; border-radius: 14px; width: 100%; max-width: 340px; max-height: 70vh; overflow: auto; padding: 18px; }
.s-popup-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.s-popup-body { margin-bottom: 16px; }
.notice-item { font-size: 14px; color: var(--c-text-m); padding: 10px 0; border-bottom: 1px dashed var(--line); }
.notice-item:last-child { border-bottom: none; }
/* 通用按钮（弹窗等） */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 18px; border: 0; border-radius: 19px;
  background: #eee; color: #333; font-size: 14px; cursor: pointer;
}
.btn-primary { background: var(--c-primary, #ff3b30); color: #fff; }
.btn-block { display: flex; width: 100%; }
/* 秒杀跑马灯条 */
.seckill-marquee {
  background: linear-gradient(90deg, #ff3b30, #ff7a45);
  color: #fff; font-size: 12px; line-height: 1.4;
  margin: -14px -14px 12px; padding: 7px 14px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.seckill-marquee .marquee-inner { animation-duration: 12s; font-size: 12px; }
.seckill-marquee .marquee-inner span { line-height: 1.4; }
/* 商品组 */
.module-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 17px; font-weight: 700; margin-bottom: 12px;
}
.module-title .sub { font-size: 13px; color: var(--c-text-l); font-weight: 400; }
.goods-grid.list { grid-template-columns: 1fr; }
.goods-grid.list .goods-card { display: flex; }
.goods-grid.list .goods-card img { width: 110px; height: 110px; flex-shrink: 0; }
.goods-grid.list .goods-card .info { flex: 1; }
/* 单图广告 */
.img-card { padding: 0; overflow: hidden; cursor: pointer; }
.img-card img { width: 100%; display: block; }
/* 图片橱窗 */
.window-card { padding: 0; overflow: hidden; }
.window-grid { display: grid; gap: 2px; }
.window-grid > div { aspect-ratio: 1 / 1; overflow: hidden; cursor: pointer; }
.window-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 通用搜索栏（装修 search 模块使用） */
.search-bar {
  display: flex; align-items: center; gap: 6px; height: 38px;
  background: #f2f2f2; border-radius: 19px; padding: 0 14px; color: var(--c-text-l);
}
.search-bar input { flex: 1; border: 0; background: transparent; outline: 0; font-size: 14px; color: var(--c-text); }
