/* 版面对齐参照站：App 下载横幅、搜索页首、分类文字标签、信任条、宣传条、无框商品卡、深色页脚和图位。
   颜色都走 styles.css 的变量，主题色 --accent 可在后台改。 */

@media (min-width: 560px) {
  body { background: radial-gradient(120% 90% at 50% 0%, #3b2a1f 0%, #17120e 62%); }
  .phone { box-shadow: 0 46px 120px -30px rgba(0, 0, 0, .9), 0 0 0 10px #111; }
}
.desk .only-m { display: none !important; }
.status { background: #fff; }

/* App 下载横幅 */
.app-banner { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 4px; border-bottom: 1px solid var(--line); background: #fff; }
.ab-x { width: 32px; height: 32px; display: grid; place-items: center; color: #999; flex: none; }
.ab-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.ab-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 14px; flex: none; overflow: hidden; }
.ab-icon img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ab-txt { flex: 1; min-width: 0; line-height: 1.3; }
.ab-txt b { display: block; font-size: 14px; font-weight: 700; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-txt small { display: block; font-size: 12px; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-get { height: 28px; padding: 0 16px; border-radius: 16px; background: #0086FF; color: #fff; font-weight: 700; font-size: 14px; flex: none; }

/* 搜索页首 */
.m-head { display: flex; align-items: center; gap: 4px; padding: 8px 6px 4px 12px; background: #fff; }
.mh-brand { display: flex; align-items: center; gap: 6px; flex: none; max-width: 160px; overflow: hidden; }
.mh-brand .logo { font-size: 21px; color: var(--accent); }
.mh-brand .logo-note { display: none; }
.mh-search { flex: 1; min-width: 0; height: 34px; border-radius: 17px; background: #ececec; color: #666; display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 15px; margin-left: 4px; }
.mh-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.mh-search span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-ic { width: 40px; height: 40px; display: grid; place-items: center; position: relative; flex: none; color: #222; }
.mh-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mh-ic .badge { top: 2px; left: 22px; }

/* 分类文字标签 */
.ctabs { display: flex; gap: 22px; overflow-x: auto; padding: 0 12px; height: 42px; align-items: center; scrollbar-width: none; background: #fff; }
.ctabs::-webkit-scrollbar { display: none; }
.ctabs button { flex: none; font-size: 15px; font-weight: 500; color: #777; height: 42px; position: relative; }
.ctabs button.on { color: #000; }
.ctabs button.on::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 4px; height: 3px; border-radius: 3px; background: #000; }

/* 信任条（绿色）与宣传条 */
.trust-wrap { padding: 6px 8px; background: #f6f6f6; }
.trustbar { width: 100%; height: 30px; border-radius: 6px; background: var(--trust); color: #fff; display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 13px; text-align: left; }
.trustbar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.trustbar b { font-weight: 500; white-space: nowrap; }
.tb-items { margin-left: auto; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.tb-items i { width: 1px; height: 12px; background: rgba(255, 255, 255, .5); }
.tb-go { font-size: 16px; }
.promo-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--accent-soft); }
.ps-item { display: flex; align-items: center; gap: 5px; padding: 7px 6px; text-align: left; min-width: 0; min-height: 44px; }
.ps-item + .ps-item { border-left: 1px solid color-mix(in srgb, var(--accent) 18%, #fff); }
.ps-item svg { width: 18px; height: 18px; fill: none; stroke: var(--accent-deep); stroke-width: 1.8; flex: none; }
.ps-item span { min-width: 0; line-height: 1.25; }
.ps-item b { display: block; font-size: 12.5px; color: var(--accent-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-item small { display: block; font-size: 10.5px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 首页区块 */
#v-home .sec { margin-top: 14px; }
.gb-sec .sec-h h2, .rec-title { font-size: 17px; font-weight: 700; color: #222; }
.rec-title { padding: 0 12px; margin-bottom: 8px; }
.more-wrap { display: flex; justify-content: center; padding: 18px 0 4px; }
.more-btn { height: 40px; padding: 0 34px; border: 1px solid #222; background: #fff; color: #222; font-size: 14px; font-weight: 600; }

/* 价格：币种和小数小、整数大，黑色 */
.price-line { display: inline-flex; align-items: baseline; gap: 3px; min-width: 0; white-space: nowrap; }
.pz { color: #222; font-weight: 620; letter-spacing: -.01em; }
.pz .p-cur { font-size: 13px; font-weight: 600; margin-right: 1px; }
.pz .p-int { font-size: 18px; font-weight: 700; }
.pz .p-dec { font-size: 13px; font-weight: 700; }
.p-from { font-size: 11.5px; color: #777; font-weight: 400; }

/* 无框商品卡 */
.grid { gap: 10px 8px; padding: 0 8px; }
.pcard { border: 0; border-radius: 0; background: #fff; }
.pcard:active { transform: none; opacity: .85; }
.pcard .ph { background: #f6f6f6; }
.pcard .body { padding: 6px 2px 4px; gap: 3px; }
.pcard .t { font-size: 13px; color: #555; -webkit-line-clamp: 1; min-height: 0; line-height: 1.5; }
.pcard .row { margin-top: 2px; }
.pcard .add { width: 43px; height: 28px; border-radius: 14px; border: 1px solid #222; color: #222; flex: none; }
.pcard .add svg { width: 20px; height: 20px; stroke-width: 1.8; }
.pcard .ph .tag { background: var(--accent); color: #fff; border-radius: 4px; }
.gmini .t { font-size: 13px; color: #555; }
.gmini .tag.size { background: var(--accent); color: #fff; }
.cat-grid .pcard .pz .p-int { font-size: 16px; }

/* 页脚：链接栏、App 下载、社群、安全认证、付款方式 */
.site-footer { margin-top: 28px; background: #1e1e1e; color: #fff; padding: 24px 16px 20px; }
#v-home .site-footer { margin-bottom: calc(-1 * (env(safe-area-inset-bottom) + var(--tab-h) + 28px)); padding-bottom: calc(env(safe-area-inset-bottom) + var(--tab-h) + 44px); }
.site-footer h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: #fff; }
.ft-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
.ft-col button { display: block; color: #bbb; font-size: 12.5px; text-align: left; padding: 4px 0; line-height: 1.4; }
.ft-app { grid-column: 1 / -1; }
.ft-app ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 12px; }
.ft-app li { font-size: 12.5px; color: #bbb; }
.ft-app li::before { content: "✓ "; color: #ADFFA2; }
.ft-app-row { display: flex; gap: 12px; align-items: center; }
.store-btns { display: flex; flex-direction: column; gap: 8px; }
.store-btn { display: flex; flex-direction: column; justify-content: center; height: 42px; padding: 0 14px; min-width: 136px; border-radius: 8px; background: #000; border: 1px solid #555; color: #fff; text-decoration: none; line-height: 1.15; }
.store-btn small { font-size: 10px; color: #ccc; }
.store-btn b { font-size: 15px; }
.app-qr { width: 92px; height: 92px; border-radius: 8px; background: #fff; object-fit: contain; flex: none; }
.ft-row { display: grid; gap: 18px; margin-top: 22px; }
.ft-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-icons a, .ft-icons button { display: inline-flex; }
.slot-ph { display: inline-flex; align-items: center; justify-content: center; text-align: center; font-size: 10px; line-height: 1.1; border: 1px dashed #8a8a8a; color: #444; background: #fff; overflow: hidden; }
.ic-social { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.ic-social { width: 40px; height: 40px; }
.ic-social.slot-ph { background: #2e2e2e; color: #ddd; font-size: 8px; border-color: #666; word-break: break-all; padding: 2px; }
.ic-cert { height: 30px; min-width: 64px; padding: 0 6px; border-radius: 4px; object-fit: contain; background: #fff; }
.ic-pay { width: 46px; height: 30px; border-radius: 4px; object-fit: contain; background: #fff; }
.app-qr.slot-ph { color: #666; font-size: 12px; }
.ft-note { margin-top: 10px; font-size: 11.5px; color: #999; line-height: 1.5; }
.ft-bottom { margin-top: 22px; padding-top: 14px; border-top: 1px solid #333; font-size: 12px; color: #aaa; }
.ft-bottom button { color: #aaa; font-size: 12px; }

/* 我的：App 下载卡和页脚 */
.me-app { margin: 10px 10px 0; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ma-row { display: flex; gap: 12px; align-items: center; }
.ma-row b { display: block; font-size: 15px; }
.me-app .app-qr { width: 64px; height: 64px; border: 1px solid var(--line); }
.me-app .store-btns { flex-direction: row; }
.me-app .store-btn { flex: 1; min-width: 0; }
.me-foot { margin-top: 16px; }
.me-foot .site-footer { margin-top: 0; }
.app-sheet { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.app-sheet .app-qr { border: 1px solid var(--line); }

/* 其他配色细节 */
.price { color: #222; }
.pdp-price .price, .total .price, .fee.total .price, .cart-bar .sum .price, .gcard .price, .prog-hero .big b { color: var(--accent); }
.tabbar { background: rgba(255, 255, 255, .96); }
.tabbar button.on { color: var(--accent); }
.home-head { display: none; }
