:root {
  --shop-main:#f0524f;--shop-main-2:#f5483f;--shop-accent:#ff5a2b;--shop-soft:#fff2e8
}

* { box-sizing: border-box; }
html,body { overflow-x: hidden; }
body { margin: 0; background: #f0f2f5; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
.sm-page { width: 100%; max-width: 480px; margin: 0 auto; background: #f0f2f5; min-height: 100vh; padding-bottom: 62px; overflow-x: hidden; }

.sm-search { display: flex; gap: 8px; padding: 10px 12px; background: #fff; }
.sm-search input { flex: 1; min-width: 0; width: 0; border: 1.5px solid var(--shop-main); border-radius: 20px; padding: 9px 14px; font-size: 13px; outline: none; color: #999; }
.sm-search-btn { flex: 0 0 76px; text-align: center; background: linear-gradient(135deg, #ff7a45, var(--shop-main-2)); color: #fff; border-radius: 20px; font-size: 14px; line-height: 36px; text-decoration: none; }

.sm-banner { margin: 0 0 10px; }
.sm-banner img { width: 100%; display: block; }
.sm-banner-ph { background: linear-gradient(135deg, #35a9f5, #1e7fe0); color: #fff; padding: 26px 16px 22px; text-align: center; }
.sm-b1 { font-size: 12px; opacity: .95; margin-bottom: 14px; }
.sm-b2 { font-size: 26px; font-weight: 800; letter-spacing: 2px; }
.sm-b2 span { color: #ffe94d; }
.sm-b3 { display: inline-block; margin-top: 16px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.5); border-radius: 16px; padding: 6px 16px; font-size: 13px; }

.sm-nav { display: flex; background: #fff; padding: 14px 0 16px; margin-bottom: 10px; }
.sm-nav a { flex: 1; text-align: center; text-decoration: none; color: #333; }
.sm-nav i { display: block; width: 46px; height: 46px; line-height: 46px; border-radius: 14px; margin: 0 auto 7px; color: #fff; font-style: normal; font-size: 18px; font-weight: 700; }
.sm-nav .i1 { background: linear-gradient(135deg, #5b8def, #3a6df0); }
.sm-nav .i2 { background: linear-gradient(135deg, #ff9a5a, #f5643b); }
.sm-nav .i3 { background: linear-gradient(135deg, #ff7d7d, #f0403f); }
.sm-nav span { font-size: 13px; }

.sm-filter { background: #fff; margin: 0 0 10px; padding: 12px 12px 4px; }
.sm-filter-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sm-sel { font-size: 14px; color: #333; }
.sm-sel.right { margin-left: auto; color: var(--shop-main); }
.sm-chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; }
.sm-chips::-webkit-scrollbar { display: none; }
.sm-chip { flex: 0 0 auto; border: 1px solid #e5e7eb; border-radius: 16px; padding: 5px 18px; font-size: 14px; color: #333; text-decoration: none; background: #fff; }
.sm-chip.on { border-color: var(--shop-main); color: var(--shop-main); }

.sm-list { padding: 0 10px; }
.sm-item { background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 10px; position: relative; }
.sm-main { display: flex; gap: 10px; }
.sm-pic { position: relative; width: 130px; height: 150px; flex: 0 0 130px; border-radius: 8px; overflow: hidden; background: #eef2f7; }
.sm-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-pic-ph { display: flex; align-items: center; justify-content: center; height: 100%; color: #94a3b8; font-size: 12px; }
.sm-top { position: absolute; left: 0; top: 0; background: linear-gradient(135deg, #ffb62e, #ff8a00); color: #fff; font-size: 11px; padding: 2px 8px; border-bottom-right-radius: 8px; font-weight: 700; }
.sm-top.top2 { background: linear-gradient(135deg, #c3cbdc, #9aa7bd); }
.sm-hot { position: absolute; right: 0; top: 0; width: 22px; height: 22px; background: var(--shop-accent); color: #fff; font-size: 11px; text-align: center; line-height: 22px; border-bottom-left-radius: 8px; }

.sm-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sm-title { word-break: break-all; font-size: 16px; font-weight: 700; margin: 0 0 8px; line-height: 1.3; overflow: hidden; }
.sm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sm-tag { font-size: 12px; padding: 3px 8px; border-radius: 4px; }
.sm-tag.t0 { background: var(--shop-soft); color: #fa8c16; }
.sm-tag.t1 { background: #f0fff4; color: #22a06b; }
.sm-tag.t2 { background: #eef4ff; color: #2f6fed; }
.sm-views { font-size: 13px; color: #666; margin-top: auto; margin-bottom: 8px; }
.sm-views b { color: var(--shop-main); font-size: 15px; }
.sm-apply { white-space: nowrap; align-self: flex-end; background: linear-gradient(135deg, var(--shop-accent), var(--shop-main-2)); color: #fff; text-decoration: none; font-size: 15px; font-weight: 600; padding: 9px 26px; border-radius: 22px; }
.sm-flow { margin-top: 10px; font-size: 13px; color: #9aa3b1; }

.sm-end { text-align: center; color: #9aa3b1; font-size: 13px; padding: 18px 0 26px; }

.sm-bar { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; display: flex; background: #fff; border-top: 1px solid #eef1f5; padding: 6px 0 8px; }
.sm-bar a { flex: 1; text-align: center; text-decoration: none; color: #9aa3b1; }
.sm-bar i { display: block; font-style: normal; font-size: 19px; line-height: 22px; }
.sm-bar span { font-size: 11px; }
.sm-bar a.on { color: var(--shop-main); }
.sm-empty { text-align: center; color: #9aa3b1; padding: 60px 0; font-size: 13px; }

select.sm-sel{border:0;background:transparent;font-size:14px;color:#333;appearance:none;-webkit-appearance:none;padding-right:4px}
select.sm-sel.right{color:var(--shop-main)}
/* ===== 商城前台字体统一（与后台同源 DefaultFont） ===== */
.gm-body { font-family: "DefaultFont", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
