/* 首页 / 分类 / 搜索 / 秒杀 */

/* 首页头部 */
.home-hd {
  background: linear-gradient(180deg, var(--primary) 0%, #16B066 100%);
  padding: 6px 12px 40px; color: #fff;
}
.home-hd .nav { background: transparent; color: #fff; height: 34px; position: static; }
.home-hd .nav .ic { width: 16px; height: 16px; }
.home-hd .nav b { font-size: 16px; }
.home-hd .nav .dist { font-size: 11px; opacity: .85; }
.home-hd .nav .switch { margin-left: auto; font-size: 12px; display: inline-flex; align-items: center; opacity: .95; }
.search-bar {
  height: 36px; background: #fff; border-radius: var(--r-pill); display: flex; align-items: center;
  gap: 6px; padding: 0 14px; color: var(--text-3); font-size: 13px; margin-top: 6px; cursor: pointer;
}
.search-bar .ic { width: 16px; height: 16px; color: var(--text-3); }

/* 轮播 */
.carousel { position: relative; margin: -30px 12px 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 7; background: #DDD; }
.carousel-track { display: flex; height: 100%; transition: transform .4s ease; }
.slide { flex: 0 0 100%; position: relative; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-cap {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
.slide-cap h4 { font-size: 20px; font-weight: 700; }
.slide-cap p { font-size: 12px; opacity: .95; margin-top: 2px; }
.dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .6); transition: width .2s; }
.dots i.on { width: 16px; background: #fff; }

/* 金刚区 */
.kingkong { display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 4px 8px; margin-top: 8px; }
.kk { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; font-size: 12px; cursor: pointer; }
.kk-ic { width: 46px; height: 46px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; }
.kk-ic .ic { width: 24px; height: 24px; }

/* 限时秒杀 */
.sec-seckill { padding-bottom: 12px; }
.sec-seckill .section-hd { padding-bottom: 4px; }
.countdown { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text-2); font-weight: 400; }
.countdown b {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
  border-radius: 4px; background: var(--text); color: #fff; font-size: 12px; font-weight: 700; padding: 0 3px;
}
.countdown.accent b { background: var(--accent); }
.seckill-x { padding: 4px 12px 0; gap: 8px; }
.seckill-item { flex: none; width: 104px; background: var(--bg); border-radius: var(--r-sm); padding: 6px; cursor: pointer; }
.seckill-item img { width: 92px; height: 92px; border-radius: 6px; object-fit: cover; }
.seckill-item .t { font-size: 12px; line-height: 1.3; height: 31px; margin-top: 4px; }
.seckill-item .p { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
.seckill-item .p .price { font-size: 16px; }
.seckill-item .p s { font-size: 10px; color: var(--text-3); }
.seckill-item .go {
  margin-top: 6px; height: 24px; border-radius: var(--r-pill); background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}

/* PLUS 会员条 */
.plus-strip {
  margin: 8px 12px; border-radius: var(--r-md); background: linear-gradient(90deg, var(--plus-from), var(--plus-to));
  position: relative; overflow: hidden; color: var(--gold); padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px;
}
.bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.plus-strip > * { position: relative; }
.plus-strip h3 { font-size: 16px; letter-spacing: .5px; }
.plus-strip p { font-size: 11px; opacity: .85; margin-top: 2px; }
.plus-strip .btn { min-height: 30px; height: 30px; padding: 0 14px; font-size: 13px; flex: none; }

/* 今日特价 / 瀑布流 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 8px 8px; }
.grid-2 .pcard, .wf .pcard { border: 1px solid var(--divider); }
.save-tag { display: inline-block; font-size: 10px; color: var(--accent); background: var(--accent-light); border-radius: 3px; padding: 1px 5px; }
.wf { display: flex; gap: 8px; padding: 0 8px 8px; }
.wf-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

/* 分类页 */
.cat-nav .search-bar { flex: 1; margin: 0; background: var(--bg); }
.cat-body { flex: 1; min-height: 0; display: flex; }
.cat-left { width: 88px; flex: none; background: #F0F1F3; overflow-y: auto; padding-bottom: 20px; }
.cat-item {
  height: 50px; display: flex; align-items: center; justify-content: center; font-size: 13px;
  color: var(--text-2); position: relative; cursor: pointer;
}
.cat-item.on { background: #fff; color: var(--text); font-weight: 700; }
.cat-item.on::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--primary); }
.cat-right { flex: 1; min-width: 0; overflow-y: auto; padding: 10px 10px 20px; background: #fff; }
.sub-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.sub-chips .chip { height: 26px; padding: 0 11px; font-size: 12px; }
.cat-list { margin-top: 6px; border-radius: var(--r-md); overflow: hidden; background: var(--bg); }
.cat-list .prow { padding: 8px; }
.cat-list .prow img { width: 72px; height: 72px; }
.cat-right .prow-foot .price { font-size: 16px; }

/* 搜索页 */
.search-nav { gap: 8px; }
.search-input { flex: 1; height: 32px; background: var(--bg); border-radius: var(--r-pill); display: flex; align-items: center; padding: 0 12px; gap: 6px; }
.search-input .ic { width: 16px; height: 16px; color: var(--text-3); }
.search-input input { flex: 1; border: 0; background: none; outline: none; font-size: 13px; min-width: 0; }
.search-clear { width: 16px; height: 16px; border-radius: 50%; background: #CCC; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.search-clear .ic { width: 10px; height: 10px; stroke-width: 3; color: #fff; }
.search-btn { font-size: 15px; color: var(--text); font-weight: 500; }
.search-hd { padding: 14px 16px 4px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; }
.search-hd .ic { width: 16px; height: 16px; color: var(--text-3); }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
.chips-wrap .chip { background: #fff; height: 28px; font-size: 12px; padding: 0 12px; }
.hot-chip { display: inline-flex; align-items: center; gap: 4px; }
.hot-chip i {
  font-style: normal; font-size: 10px; font-weight: 700; color: #fff; background: var(--text-3);
  width: 14px; height: 14px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center;
}
.hot-chip i.n1 { background: var(--error); }
.hot-chip i.n2 { background: var(--accent); }
.hot-chip i.n3 { background: var(--warning); }
.result-list { border-radius: var(--r-md); overflow: hidden; margin: 8px 12px; }
.result-tip { padding:10px 16px 0; font-size: 12px; color: var(--text-3); }

/* 秒杀页 */
.seckill-hd {
  background: linear-gradient(135deg, #FF3D1F, #FF7A2F); color: #fff;
  padding: 12px 16px 16px; display: flex; align-items: center; justify-content: space-between;
}
.seckill-hd h2 { font-size: 20px; letter-spacing: 1px; }
.seckill-hd p { font-size: 12px; opacity: .9; margin-top: 2px; }
.cd-big { display: flex; align-items: center; gap: 4px; font-size:13px; }
.cd-big b {
  min-width: 26px; height: 26px; border-radius: 6px; background: rgba(0, 0, 0, .3);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700;
}
.session-tabs { display: flex; background: #fff; }
.session-tab { flex: 1; padding: 10px 0 8px; text-align: center; color: var(--text-2); position: relative; cursor: pointer; border-bottom: 2px solid transparent; }
.session-tab b { display: block; font-size: 15px; }
.session-tab span { font-size: 10px; color: var(--text-3); }
.session-tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.session-tab.on b { font-weight: 700; }
.session-tab.on span { color: var(--accent); }
.session-tab.ended b { color: var(--text-3); }
.seckill-list { margin: 8px 12px; border-radius: var(--r-md); overflow: hidden; }
.seckill-list .prow img { width: 96px; height: 96px; }
.progress-wrap { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.progress-wrap .progress { flex: 1; }
.progress-wrap span { font-size: 10px; color: var(--accent); flex: none; }
.grab-btn {
  height: 30px; padding: 0 14px; border-radius: var(--r-pill);
  background: linear-gradient(90deg, #FF7A2F, #FF3D1F); color: #fff; font-size: 13px; font-weight: 700; flex: none;
}
.grab-btn.disabled { background: #CCC; pointer-events: none; }
