:root {
  --bg: #0f0f11;
  --card: #1a1a1d;
  --card2: #222226;
  --bar-bg: #131316;
  --img-bg: #232327;
  --text: #e8e6e3;
  --text2: #9a9a9f;
  --text3: #85858c;
  --text-soft: #c9c7c2;
  --gold: #d4af37;
  --gold2: #e8c96a;
  --gold-dark: #b8932f;
  --gold-bg: #2a2415;
  --gold-line: #4a3f1d;
  --gold-card: #1a1915;
  --on-gold: #15130a;
  --line: #2a2a2e;
  --danger: #ff5c5c;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --topbar-h: 148px;
  --layui-color-primary: #d4af37;
  --layui-color-primary-light: rgba(212,175,55,.15);
  --layui-color-primary-dark: #b8932f;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
html, body { overflow-x: hidden; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #0a0a0c; color: var(--text); }
a { text-decoration: none; color: inherit; }
img { -webkit-user-select: none; max-width: 100%; opacity: 0; transition: opacity .18s ease; }
img.img-in { opacity: 1; }

.app { max-width: 520px; margin: 0 auto; background: var(--bg); min-height: 100vh; position: relative; }

.topbar { position: sticky; top: 0; z-index: 30; background: var(--bar-bg); border-bottom: 1px solid var(--line); padding: calc(14px + env(safe-area-inset-top) + var(--pwa-extra, 0px)) 14px 0; }
/* PWA 全屏模式（iOS 添加到主屏幕）下顶栏避开灵动岛/状态栏；
   --topbar-h 是 catbar/boardbar 的 sticky 基准，须同步加安全区 */
:root { --pwa-top: env(safe-area-inset-top, 0px); --topbar-h: calc(148px + var(--pwa-top)); }
/* iOS standalone 下 env(safe-area-inset-top) 返回不足值（灵动岛机型实测缺 20~30px），
   display-mode 探测 + 固定补偿兜底；iPhone 灵动岛/刘海机型屏幕高 ≥780pt */
@media all and (display-mode: standalone) and (min-height: 780px) {
  :root { --pwa-extra: 32px; --topbar-h: calc(148px + var(--pwa-top) + 32px); }
  .detail .backrow { padding-top: calc(8px + env(safe-area-inset-top, 0px) + 32px); }
}
@media all and (display-mode: standalone) and (max-height: 779px) {
  :root { --pwa-extra: 12px; --topbar-h: calc(148px + var(--pwa-top) + 12px); }
}
.brandrow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.searchbar { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; position: relative; }
.sugg-box { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--gold-card); border: 1px solid var(--gold-line); border-radius: var(--radius-md); z-index: 50; max-height: 280px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.sugg-item { padding: 11px 14px; font-size: 14px; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.sugg-item.on, .sugg-item:active { background: var(--gold-bg); color: var(--gold); }
.sugg-src { font-size: 11px; color: var(--text3); flex-shrink: 0; margin-left: 12px; }
.hl { color: var(--gold); font-style: normal; font-weight: 700; }
.searchbar input { flex: 1; background: var(--card2); border: 1px solid var(--line); color: var(--text); border-radius: var(--radius-md); padding: 8px 14px; font-size: 14px; outline: none; font-family: inherit; min-width: 0; -webkit-appearance: none; appearance: none; }
.searchbar input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #222226 inset; -webkit-text-fill-color: #e8e6e3; caret-color: #e8e6e3; }
.searchbar input:focus { border-color: var(--gold); }
.searchbar input::-webkit-search-cancel-button { display: none; }
.searchbar button, .cmt-form button, .buybar .buy-btn { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: var(--on-gold); border: 0; border-radius: var(--radius-md); font-weight: 700; }
.searchbar button { flex-shrink: 0; padding: 8px 16px; font-size: 14px; }
.cmt-form button { width: 100%; padding: 9px 0; font-size: 14px; }
.searchbar button:active, .cmt-form button:active, .buybar .buy-btn:active { transform: scale(.96); }
.search-cancel { flex-shrink: 0; color: var(--text2); font-size: 14px; padding: 8px 2px; cursor: pointer; }
.search-clear { flex-shrink: 0; color: var(--text3); font-size: 15px; padding: 8px 4px; cursor: pointer; display: flex; align-items: center; -webkit-tap-highlight-color: transparent; }
.search-clear:active { color: var(--gold); }
.logo { display: flex; align-items: center; color: var(--text); font-size: 20px; font-weight: 900; letter-spacing: 1px; line-height: 1.1; }
.logo-img { width: 36px; height: 36px; margin-right: 10px; display: block; flex-shrink: 0; }
.logo span { color: var(--gold); margin-left: 2px; text-shadow: 0 0 16px rgba(212,175,55,.35); }
.logo-text { display: block; white-space: nowrap; }
.logo .sub { display: block; font-style: normal; font-size: 11px; color: var(--text2); font-weight: 400; letter-spacing: 3px; margin-top: 3px; }
.addhome { flex-shrink: 0; font-size: 11px; color: var(--gold); border: 1px solid rgba(212,175,55,.4); border-radius: var(--radius-sm); padding: 5px 11px; background: transparent; display: inline-flex; align-items: center; gap: 4px; }
.addhome:active { background: rgba(212,175,55,.15); }
.nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav::-webkit-scrollbar { display: none; }
.tab { flex: 1 1 0; min-width: max-content; text-align: center; color: var(--text2); font-size: 15px; padding: 9px 8px; white-space: nowrap; transition: color .15s; }
.tab.active { color: var(--gold); font-weight: 700; border-bottom: 2px solid var(--gold); }

.savebanner { margin: 10px 10px 0; background: var(--gold-card); border: 1px solid var(--gold-line); border-radius: var(--radius-md); padding: 10px 14px; display: flex; align-items: center; gap: 10px; height: 43px; box-sizing: border-box; overflow: hidden; visibility: hidden; margin-top: 0; max-height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; transition: max-height .18s ease, padding .18s ease; }
.savebanner.show { visibility: visible; max-height: 43px; padding-top: 10px; padding-bottom: 10px; border-width: 1px; margin-top: 10px; }
.savebanner .sb-icon { font-size: 17px; color: var(--gold); }
.savebanner .sb-text { font-size: 12px; color: var(--text2); line-height: 1.5; white-space: nowrap; }
.savebanner .sb-text b { color: var(--gold); font-size: 15px; }

.catbar { position: sticky; top: var(--topbar-h); z-index: 9; background: var(--bar-bg); display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.catbar::-webkit-scrollbar { display: none; }
.boardbar { position: sticky; top: var(--topbar-h); z-index: 9; background: var(--bar-bg); display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.boardbar::-webkit-scrollbar { display: none; }

.cat, .board, .bcat, .scat { flex-shrink: 0; color: var(--text2); background: var(--card); border-radius: var(--radius-sm); white-space: nowrap; }
.cat, .bcat, .scat { font-size: 12px; padding: 8px 13px; }
.board { font-size: 13px; padding: 8px 14px; }
.cat.on, .board.active, .bcat.active, .scat.active { background: var(--gold-bg); color: var(--gold); font-weight: 600; }

.sortbar { display: flex; gap: 16px; padding: 9px 12px; overflow-x: auto; scrollbar-width: none; background: var(--bar-bg); border-bottom: 1px solid var(--line); }
.sortbar::-webkit-scrollbar { display: none; }
.sort { flex-shrink: 0; font-size: 13px; color: var(--text2); white-space: nowrap; }
.sort.active { color: var(--gold); font-weight: 600; }

.list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; }
.list.flat { display: block; }
.list.flat .brandcats { margin: -10px -10px 4px; }
.list.flat .brandgrid { padding: 0; }
.list.flat .branditems { padding: 0; }
.card { background: var(--card); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); transition: transform .12s, border-color .12s, box-shadow .12s; display: block; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.card:active { transform: scale(.96); border-color: rgba(212,175,55,.55); }
.thumb { position: relative; aspect-ratio: 1 / 1; background: var(--img-bg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.save-tag { position: absolute; left: 6px; top: 6px; background: rgba(15,15,17,.82); color: var(--gold2); font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: var(--radius-sm); }
.info { padding: 8px 10px 10px; }
.title { font-size: 13px; line-height: 1.45; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.pricerow { margin-top: 6px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.end { color: var(--gold); font-size: 20px; font-weight: 800; }
.end em { font-style: normal; font-size: 12px; }
.ori { color: var(--text3); font-size: 11px; text-decoration: line-through; }
.coupon { color: var(--gold); border: 1px solid var(--gold-line); background: var(--gold-bg); font-size: 11px; padding: 1px 5px; border-radius: var(--radius-sm); }
.meta { margin-top: 5px; font-size: 11px; color: var(--text3); display: flex; justify-content: space-between; }

.skeleton { background: var(--card); border-radius: var(--radius-md); overflow: hidden; }
.skeleton .sk-img { aspect-ratio: 1/1; }
.skeleton .sk-line { height: 13px; border-radius: var(--radius-sm); margin: 8px 10px 0; }
.skeleton .sk-line.w70 { width: 70%; } .skeleton .sk-line.w40 { width: 40%; margin-bottom: 12px; }
.sk { background: linear-gradient(90deg, #202024 25%, #2b2b30 37%, #202024 63%); background-size: 400% 100%; animation: sk 1.2s ease infinite; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes listin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-in { animation: pageIn .25s ease; }
.list-anim { animation: listin .25s ease; }
.card-in { animation: listin .3s ease both; }

.detail { padding: 0 0 74px; }
.detail #detailView, #detailView { overflow-y: auto; height: 100vh; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.detail .backrow { position: sticky; top: 0; z-index: 10; background: rgba(18,18,20,.92); backdrop-filter: blur(6px); padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px; display: flex; justify-content: flex-end; min-height: 30px; }
.detail .backrow .close-x { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--card2); border: 1px solid var(--line); color: var(--text2); font-size: 13px; transition: background .15s, color .15s; }
.detail .backrow .close-x:hover { background: #2f2f34; color: var(--text); }
.detail .backrow .close-x:active { transform: scale(.96); }
.topbar .logo { cursor: pointer; }
.detail .hero { overflow: hidden; position: relative; aspect-ratio: 1 / 1; background: var(--img-bg); }
.detail .hero img { width: 100%; height: 100%; object-fit: cover; object-position: center top; max-width: 100%; background: var(--img-bg); display: block; will-change: transform; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(15,15,17,.6); border: 1px solid var(--gold-line); color: var(--gold); font-size: 15px; display: flex; align-items: center; justify-content: center; z-index: 5; cursor: pointer; }
.hero-arrow.prev { left: 10px; }
.hero-arrow.next { right: 10px; }
.hero-arrow:active { transform: translateY(-50%) scale(.96); }
.detail .thumbs { display: flex; gap: 6px; padding: 8px 12px; background: var(--card); overflow-x: auto; scrollbar-width: none; }
.detail .thumbs img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; border: 2px solid transparent; background: var(--img-bg); }
.detail .thumbs img.on { border-color: var(--gold); }
.detail .body { background: var(--card); padding: 14px; margin-top: 8px; }
.detail .title { font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--text); }
.detail .prices { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 4px; flex-wrap: wrap; }
.detail .prices .end { color: var(--gold); font-size: 30px; font-weight: 800; }
.detail .prices .end em { font-style: normal; font-size: 15px; }
.detail .prices .ori { color: var(--text3); font-size: 14px; text-decoration: line-through; }
.detail .savebig { display: inline-block; color: var(--gold2); font-size: 14px; font-weight: 700; margin-top: 2px; }
.detail .coupontip { display: inline-block; color: var(--gold); background: var(--gold-bg); border: 1px solid var(--gold-line); font-size: 12px; padding: 3px 8px; border-radius: var(--radius-sm); margin: 4px 0 8px; }
.detail .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.detail .tag { font-size: 11px; padding: 3px 8px; border-radius: var(--radius-sm); background: var(--card2); color: var(--text2); }
.detail .tag.shop-link { color: var(--gold); border: 1px solid var(--gold-line); display: inline-flex; align-items: center; gap: 2px; }
.detail .tag.shop-link:active { background: var(--gold-bg); }
.vote { display: flex; gap: 10px; margin-bottom: 12px; }
.vote-btn { flex: 1; text-align: center; font-size: 14px; padding: 8px 0; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--card2); color: var(--text2); }
.vote-btn em { font-style: normal; font-weight: 600; }
.vote-btn.vv.on { background: #16261a; color: #7fd08a; border-color: #2c5a38; }
.vote-btn.nv.on { background: #2a1512; color: #ff7a6e; border-color: #5a2c24; }
.vote-btn:active { transform: scale(.96); }
.detail .guide { margin-top: 6px; }
.detail .guide h3 { font-size: 14px; color: var(--gold); margin-bottom: 8px; }
.detail .guide .guide-box { background: var(--gold-card); border: 1px dashed var(--gold-line); border-radius: var(--radius-sm); padding: 10px; font-size: 14px; line-height: 1.7; color: var(--text-soft); word-break: break-all; overflow-wrap: break-word; }
.detail .desc { font-size: 13px; color: var(--text2); line-height: 1.7; margin-top: 12px; word-break: break-all; overflow-wrap: break-word; }
.detail .related { margin-top: 8px; background: var(--card); padding: 12px 14px; }
.detail .related h3 { font-size: 15px; margin-bottom: 10px; color: var(--text); }
.related-scroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.related-scroll::-webkit-scrollbar { display: none; }
.rel-card { flex-shrink: 0; width: 132px; }
.rel-card img { width: 132px; height: 132px; border-radius: var(--radius-md); background: var(--img-bg); object-fit: cover; display: block; }
.rel-card .t { font-size: 12px; line-height: 1.4; margin-top: 6px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-card .p { color: var(--gold); font-weight: 700; font-size: 15px; margin-top: 4px; }

.comments { margin-top: 8px; background: var(--card); padding: 12px 14px; }
.comments h3 { font-size: 15px; margin-bottom: 10px; color: var(--text); }
.cmt-count { font-size: 12px; color: var(--text2); font-weight: 400; }
.cmt-form input, .cmt-form textarea { width: 100%; border: 1px solid var(--line); background: var(--card2); color: var(--text); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 13px; margin-bottom: 8px; font-family: inherit; outline: none; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
.cmt-form input:focus, .cmt-form textarea:focus { border-color: var(--gold); }
.cmt-list { margin-top: 12px; }
.cmt-empty { text-align: center; color: var(--text2); font-size: 13px; padding: 16px 0; }
.cmt { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cmt:last-child { border-bottom: 0; }
.cmt-head { display: flex; justify-content: space-between; font-size: 12px; }
.cmt-head b { color: var(--text); }
.cmt-head span { color: var(--text3); }
.cmt-body { font-size: 14px; color: var(--text-soft); line-height: 1.6; margin-top: 5px; word-break: break-all; }

.buybar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px; background: var(--bar-bg); border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; z-index: 20; }
.buybar a { flex: 1; text-align: center; padding: 13px 0; border-radius: var(--radius-md); font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.buybar .coupon-btn { background: var(--card2); color: var(--gold); border: 1px solid var(--gold-line); }
.buybar .buy-btn { color: var(--on-gold); }

.loadmore { text-align: center; color: var(--text2); padding: 14px 0 24px; font-size: 13px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 0 24px; }
.pager-btn { background: var(--card2); border: 1px solid var(--gold-line); color: var(--gold); border-radius: var(--radius-md); padding: 8px 18px; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.pager-btn:active { transform: scale(.96); }
.pager-btn[disabled] { opacity: .35; }
.pager-num { font-size: 13px; color: var(--text2); }

.loading { position: fixed; left: 50%; top: 45%; width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(212,175,55,.15); border-top-color: var(--gold); animation: spin .7s cubic-bezier(.6,.2,.4,.8) infinite; z-index: 40; display: none; }
@keyframes spin { 0% { transform: translate(-50%,-50%) rotate(0); } 100% { transform: translate(-50%,-50%) rotate(360deg); } }

.backtop { position: fixed; right: 16px; bottom: 90px; width: 42px; height: 42px; border-radius: 50%; background: var(--gold-card); border: 1px solid var(--gold-line); color: var(--gold); display: flex; align-items: center; justify-content: center; z-index: 30; box-shadow: 0 2px 8px rgba(0,0,0,.4); cursor: pointer; transition: transform .15s, border-color .15s; }
.backtop:active { transform: scale(.96); }
#freshBanner { position: fixed; left: 50%; transform: translateX(-50%); top: 12px; z-index: 60; background: var(--gold); color: var(--on-gold); font-size: 13px; font-weight: 700; padding: 9px 22px; border-radius: var(--radius-md); cursor: pointer; animation: freshIn .25s ease; white-space: nowrap; }
#freshBanner:active { transform: translateX(-50%) scale(.96); }
@keyframes freshIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }

.priceslider { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bar-bg); border-bottom: 1px solid var(--line); }
.ps-label { font-size: 12px; color: var(--text2); white-space: nowrap; }
.ps-val { font-size: 12px; color: var(--gold); white-space: nowrap; }
.priceslider .layui-slider { background: #2a2a2e; }
.priceslider .layui-slider-bar { background: var(--gold); }
.priceslider .layui-slider-wrap-btn { border-color: var(--gold); }

.brandcats { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; background: var(--bar-bg); }
.brandcats::-webkit-scrollbar { display: none; }
.bcat em { font-style: normal; font-size: 11px; color: var(--gold); margin-left: 3px; }
.brandgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; }
.brandcell { min-width: 0; background: var(--card); border-radius: var(--radius-md); padding: 12px 6px 8px; text-align: center; border: 1px solid var(--line); transition: transform .12s, border-color .12s; }
.brandcell:active { transform: scale(.96); }
.brandcell .bimg { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; background: var(--img-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.brandcell .bimg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brandcell .bimg.noimg img { display: none; }
.brandcell .bfall { display: none; font-size: 22px; font-weight: 700; color: var(--gold); }
.brandcell .bimg.noimg .bfall { display: block; }
.brandcell .bn { font-size: 11px; color: var(--text2); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brandcell .bcount { font-size: 11px; color: var(--gold); margin-top: 2px; }
.todaybrand { position: relative; margin: 10px; border-radius: var(--radius-md); overflow: hidden; min-height: 90px; border: 1px solid var(--gold-line); background: var(--gold-card); }
.todaybrand::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,12,.88), rgba(10,10,12,.3)); }
.tb-inner { position: relative; padding: 14px; }
.tb-tag { display: inline-block; font-size: 11px; color: var(--on-gold); background: var(--gold); border-radius: var(--radius-sm); padding: 2px 7px; font-weight: 700; }
.tb-name { font-size: 17px; font-weight: 800; color: var(--text); margin-top: 7px; }
.tb-title { font-size: 12px; color: var(--text2); margin-top: 3px; }
.tb-go { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--gold2); border: 1px solid var(--gold-line); border-radius: var(--radius-sm); padding: 3px 10px; }
.hotstrip { margin: 0 10px 4px; }
.hot-title { font-size: 14px; font-weight: 700; color: var(--text); margin: 4px 0 8px; }
.hot-scroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.hot-scroll::-webkit-scrollbar { display: none; }
.hotcell { flex-shrink: 0; width: 64px; text-align: center; position: relative; }
.hotcell img { width: 48px; height: 48px; border-radius: 50%; background: var(--img-bg); object-fit: contain; display: block; margin: 0 auto; }
.hot-rank { position: absolute; top: -2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-size: 11px; font-weight: 800; line-height: 18px; }
.hot-name { font-size: 11px; color: var(--text2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bsort { display: flex; gap: 14px; padding: 8px 14px; background: var(--card); margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.bsort::-webkit-scrollbar { display: none; }
.bsort-item { flex-shrink: 0; font-size: 12px; color: var(--text2); }
.bsort-item.on { color: var(--gold); font-weight: 600; }
.brandhead { background: var(--card); padding: 10px 14px 12px; margin-bottom: 10px; }
.bh-back { font-size: 13px; color: var(--text); margin-bottom: 8px; display: inline-flex; align-items: center; gap: 4px; }
.bh-main { display: flex; gap: 10px; align-items: center; }
.bh-main img { width: 52px; height: 52px; border-radius: 50%; background: var(--img-bg); object-fit: contain; flex-shrink: 0; }
.bh-name { font-size: 17px; font-weight: 700; color: var(--text); }
.bh-plain { font-size: 12px; color: var(--text2); margin-top: 3px; }
.bh-guide { margin-top: 10px; background: var(--gold-card); border: 1px dashed var(--gold-line); border-radius: var(--radius-sm); padding: 10px; font-size: 13px; line-height: 1.7; color: var(--text-soft); }
.branditems { padding: 0 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.sheet-mask { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; }
.sheet { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; background: var(--card); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 16px 14px calc(20px + env(safe-area-inset-bottom)); animation: up .2s ease; }
@keyframes up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
.sheet-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.sheet-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-height: 55vh; overflow-y: auto; }

.layui-icon { font-size: inherit; }
.layui-badge { background: var(--gold-bg); color: var(--gold); border-radius: var(--radius-sm); }

.guide-layer { background: var(--card) !important; border: 1px solid var(--gold-line) !important; border-radius: var(--radius-lg) !important; box-shadow: none !important; }
.guide-layer .layui-layer-btn { border-top: 1px solid var(--line); padding: 10px 16px 14px; }
.guide-layer .layui-layer-btn0 { background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important; border-color: var(--gold) !important; color: var(--on-gold) !important; border-radius: var(--radius-md) !important; font-weight: 700; }
.guide-layer .layui-layer-content { padding: 20px 18px 8px; color: var(--text); }
.guide-layer .layui-layer-title { background: transparent !important; color: var(--text) !important; border-bottom: none !important; }

.end, .ori, .rel-card .p, .pager-num, .ps-val, .brandcell .bcount { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

@media (min-width: 768px) {
  .app { max-width: 1080px; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .list { grid-template-columns: repeat(3, 1fr); }
  .branditems { grid-template-columns: repeat(3, 1fr); }
  .brandgrid { grid-template-columns: repeat(8, 1fr); }
  .sheet-cats { grid-template-columns: repeat(4, 1fr); }
  .detail .hero, .detail .thumbs, .detail .body, .detail .related, .detail .comments { max-width: 720px; margin-left: auto; margin-right: auto; }
  .detail .hero img { max-width: 100%; }
  .detail .thumbs { padding: 8px 12px; }
  .card:hover { transform: translateY(-2px); border-color: rgba(212,175,55,.55); box-shadow: 0 6px 18px rgba(0,0,0,.45); }
  .card:active { transform: scale(.96); }
  .brandcell:hover { transform: translateY(-2px); border-color: var(--gold-line); }
  .brandcell:active { transform: scale(.96); }
  .cat:hover, .board:hover, .bcat:hover, .scat:hover { color: var(--gold); }
  .pager-btn:hover { border-color: var(--gold); }
  .sugg-item:hover { background: var(--gold-bg); color: var(--gold); }
  .rel-card:hover { opacity: .92; }
  .searchbar button:hover, .cmt-form button:hover, .buybar .buy-btn:hover { opacity: .9; }
  .backtop:hover { border-color: var(--gold); }
}

@media (min-width: 1200px) {
  .list { grid-template-columns: repeat(4, 1fr); }
  .brandgrid { grid-template-columns: repeat(10, 1fr); }
}
