/* 昀枢优选 - 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f5f6fa; color: #333; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 12px; }

/* 顶栏 */
.topbar { background: #ff5000; color: #fff; padding: 10px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.topbar .nav a { margin-left: 16px; font-size: 14px; }
.topbar .nav a:hover { opacity: .85; }

/* 平台切换 */
.platform-tabs { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.platform-tabs .tab { padding: 8px 18px; background: #fff; border: 1px solid #e0e0e0; border-radius: 18px; cursor: pointer; font-size: 14px; }
.platform-tabs .tab.active { background: #ff5000; color: #fff; border-color: #ff5000; }

/* 搜索筛选区 */
.search-bar { background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.search-bar .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.search-bar .row:last-child { margin-bottom: 0; }
.search-input { flex: 1; min-width: 220px; padding: 9px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.btn { padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; }
.btn-primary { background: #ff5000; color: #fff; }
.btn-plain { background: #f0f0f0; color: #333; }
.price-quick { padding: 6px 12px; border: 1px solid #ddd; border-radius: 14px; background: #fff; cursor: pointer; font-size: 13px; }
.price-quick.active { background: #ffe9e0; border-color: #ff5000; color: #ff5000; }
.price-input { width: 90px; padding: 7px 10px; border: 1px solid #ddd; border-radius: 6px; }
.select-sort { padding: 8px; border: 1px solid #ddd; border-radius: 6px; }

/* 推广坑位 */
.ad-section { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.ad-card { width: calc(33.333% - 8px); background: linear-gradient(135deg, #fff7f0, #ffefe4); border: 1px solid #ffd9c2; border-radius: 10px; padding: 12px; position: relative; }
.ad-tag { position: absolute; top: 8px; right: 8px; background: #ff5000; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.ad-card .name { font-size: 14px; font-weight: 600; margin: 6px 0; }

/* 区块标题 */
.section-title { font-size: 16px; font-weight: 700; margin: 14px 0 10px; display: flex; align-items: center; gap: 6px; }
.section-title .bar { width: 4px; height: 16px; background: #ff5000; border-radius: 2px; }

/* 商品卡片网格 */
.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.goods-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: .2s; }
.goods-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.goods-card .thumb { height: 150px; background: linear-gradient(135deg, #f3f4f8, #e9ebf2); display: flex; align-items: center; justify-content: center; font-size: 36px; color: #ff5000; }
.goods-card .body { padding: 10px; }
.goods-card .name { font-size: 13px; line-height: 1.4; height: 36px; overflow: hidden; }
.goods-card .shop { font-size: 12px; color: #999; margin: 4px 0; }
.goods-card .price-row { display: flex; align-items: baseline; gap: 8px; }
.price-now { color: #ff5000; font-size: 20px; font-weight: 700; }
.price-now small { font-size: 12px; }
.price-old { color: #bbb; font-size: 12px; text-decoration: line-through; }
.coupon-tag { background: #ffe9e0; color: #ff5000; font-size: 12px; padding: 1px 6px; border-radius: 4px; }
.demo-tag { background: #e8f0fe; color: #2f6fed; font-size: 12px; padding: 1px 6px; border-radius: 4px; }
.ad-tag-sm { background: #ff5000; color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 4px; margin-right: 4px; }
.comm { font-size: 12px; color: #2f9e44; margin-top: 6px; }
.goods-card .link { display: inline-block; margin-top: 8px; background: #ff5000; color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 14px; }

/* 弹窗/抽屉 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 100; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 10px; width: 400px; max-width: 92vw; padding: 22px; max-height: 86vh; overflow-y: auto; }
.modal h3 { margin-bottom: 14px; }
.modal .form-item { margin-bottom: 12px; }
.modal .form-item label { display: block; font-size: 13px; color: #666; margin-bottom: 4px; }
.modal .form-item input, .modal .form-item select { width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 6px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* 钱包 */
.wallet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.wallet-card { background: #fff; border-radius: 10px; padding: 14px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.wallet-card .num { font-size: 22px; font-weight: 700; color: #ff5000; margin-top: 4px; }
.wallet-card .label { font-size: 13px; color: #666; }
.order-list .o-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 13px; }
.o-locked { color: #aaa; }
.o-unlocked { color: #2f9e44; }

/* 表格 */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
th, td { padding: 9px 10px; border-bottom: 1px solid #eee; font-size: 13px; text-align: left; }
th { background: #f7f7f9; font-weight: 600; }

.notice { margin-top: 20px; background: #fff8e6; border: 1px solid #ffe3a3; color: #8a6d1a; border-radius: 8px; padding: 10px 14px; font-size: 13px; }
.empty { text-align: center; color: #999; padding: 30px 0; }

/* 虚拟购买动态条 */
.buy-ticker { position: fixed; right: 16px; bottom: 16px; max-width: 330px; background: rgba(255,255,255,.97); border: 1px solid #ffd9c2; border-left: 3px solid #ff5000; border-radius: 8px; padding: 9px 14px; font-size: 13px; color: #555; box-shadow: 0 4px 16px rgba(0,0,0,.12); z-index: 999; display: none; }
.buy-ticker .buy-txt { display: flex; gap: 6px; align-items: center; }
.buy-ticker .buy-ico { color: #ff5000; font-size: 14px; }
.buy-ticker .buy-name { color: #ff5000; font-weight: 600; }
.v-heat { color: #ff5000; font-weight: 600; }
