@charset "utf-8";
/* ============================================================================
 * 团购首页版 + 团购列表页皮肤（group_buy.dwt / group_buy_list.dwt 专用）
 * Group-buy home & list page skin
 * 深圳市爱租网络有限公司2016-2026
 * Shenzhen iZucn Network Co.,Ltd. 2016-2026
 * ============================================================================
 * 说明：
 *   1. 全部选择器限定在 .gb-page 作用域内，仅由 group_buy.dwt / group_buy_list.dwt
 *      引入，不影响秒杀列表页（seckill 复用了 .gb-index-list 类名）与其它活动页；
 *   2. 颜色一律引用主题变量并保留兜底值：var(--color-primary,#232f3e)、
 *      var(--color-promo,#febd69)、var(--color-price,#2f2f34)，多站点无需改代码；
 *   3. 布局：原卡片为 232px / 212px 定宽 float，宽屏（.w1200=1600px）下留白
 *      约 314px、窄屏换行不齐；改为 grid repeat(5,minmax(0,1fr)) 流式网格，
 *      任意容器宽度下均铺满，1260px / 1024px 两档降为 4 / 3 列；
 *   4. 已兼容 RTL（阿拉伯语）书写方向（逻辑属性）；
 *   5. 功能钩子零改动：倒计时 yomi（.lefttime 内 days/hours/minutes/seconds）、
 *      排序切换链接（.sort-item）、搜索提交（f-search）、异步加载
 *      （.gb-index-list 内 ul，页面级 asyLoadfloor.js），全部依赖原有
 *      类名与 DOM 结构，本文件只重写外观。
 * ==========================================================================*/

/* ---------- 疯狂团购区（首页版） ---------- */
.gb-page .gb-crazy{ background:linear-gradient(180deg,#f7f8fa 0%,#fbfcfd 100%); padding:40px 0; }
.gb-page .gb-crazy .crazy-hd{ height:auto; min-height:42px; line-height:42px; margin-bottom:20px; display:flex; align-items:center; justify-content:space-between; }
/* 标题图标：原版为 30x30 旧位图 crazy-icon.png（style.css 中 background 简写），
   统一改为促销橙渐变圆角方块 + 白色闪电（iconfont icon-light \e623）；
   颜色一律走主题变量、RTL 下自动镜像，多站点换色无需改代码 */
.gb-page .gb-crazy .crazy-hd h2{ float:none; padding:0; background:none; display:flex; align-items:center; gap:10px; font-size:26px; font-weight:700; color:var(--color-primary,#232f3e); }
.gb-page .gb-crazy .crazy-hd h2::before{ content:"\e623"; flex:0 0 auto; width:28px; height:28px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; background:linear-gradient(135deg,var(--color-promo,#febd69) 0%,#ff9f2e 100%); box-shadow:0 4px 10px rgba(35,47,62,.18); font-family:"iconfont" !important; font-style:normal; font-size:15px; line-height:1; color:#fff; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }

/* 卡片网格：5 列流式铺满（原 232px 定宽 float 改为自适应） */
.gb-page .gb-crazy .crazy-list{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; width:100%; margin:0; }
.gb-page .gb-crazy .crazy-list::before,
.gb-page .gb-crazy .crazy-list::after{ content:none !important; display:none !important; }
.gb-page .gb-crazy .crazy-list > li.mod-shadow-card{ float:none; width:auto; min-width:0; margin:0; box-sizing:border-box; display:flex; flex-direction:column; padding:12px; background:#fff; border:1px solid #eef0f3; border-radius:12px; box-shadow:0 2px 8px rgba(35,47,62,.05); }
.gb-page .gb-crazy .crazy-list > li.mod-shadow-card:hover{ border-color:#e8eaee; box-shadow:0 10px 24px rgba(35,47,62,.12); transform:translate3d(0,-3px,0); }
.gb-page .gb-crazy .crazy-list .img{ display:block; margin-bottom:10px; border-radius:8px; overflow:hidden; background:#f7f8fa; }
.gb-page .gb-crazy .crazy-list .img img{ display:block; width:100%; height:auto; aspect-ratio:1/1; object-fit:cover; transition:transform .35s ease; }
.gb-page .gb-crazy .crazy-list > li:hover .img img{ transform:scale(1.05); }
.gb-page .gb-crazy .crazy-list .price{ margin:0 2px 6px; font-size:20px; font-weight:700; line-height:1.3; text-align:start; color:var(--color-price,#2f2f34); font-variant-numeric:tabular-nums; }
.gb-page .gb-crazy .crazy-list .price em{ font-style:normal; font-size:14px; font-weight:600; margin-inline-end:1px; }
.gb-page .gb-crazy .crazy-list .name{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; white-space:normal; height:40px; margin:0 2px 8px; overflow:hidden; font-size:13px; line-height:20px; color:#333; }
.gb-page .gb-crazy .crazy-list .name:hover{ color:var(--color-primary,#232f3e); }
.gb-page .gb-crazy .crazy-list .crazy-btn{ margin-top:auto; display:block; height:36px; line-height:36px; border-radius:8px; color:#fff; font-size:14px; font-weight:500; text-align:center; background:linear-gradient(135deg,var(--color-primary,#232f3e) 0%,#33445c 100%); box-shadow:0 4px 10px rgba(35,47,62,.18); transition:all .25s; }
.gb-page .gb-crazy .crazy-list .crazy-btn:hover{ background:#1b2531; box-shadow:0 6px 14px rgba(35,47,62,.28); }
.gb-page .gb-crazy .crazy-list .crazy-btn.bid_end{ background:#f0f1f3; color:#9aa2ad; box-shadow:none; cursor:default; }

/* ---------- 倒计时行（疯狂区 + 热门区共用） ---------- */
.gb-page .crazy-list .lefttime,
.gb-page .gb-index-list .lefttime{ display:flex; align-items:center; gap:3px; margin:0 2px 10px; font-size:12px; line-height:1.5; color:#8c8c8c; }
.gb-page .crazy-list .lefttime .iconfont,
.gb-page .gb-index-list .lefttime .iconfont{ font-size:13px; color:#a5adba; }
.gb-page .crazy-list .lefttime span.days,
.gb-page .crazy-list .lefttime span.hours,
.gb-page .crazy-list .lefttime span.minutes,
.gb-page .crazy-list .lefttime span.seconds,
.gb-page .gb-index-list .lefttime span.days,
.gb-page .gb-index-list .lefttime span.hours,
.gb-page .gb-index-list .lefttime span.minutes,
.gb-page .gb-index-list .lefttime span.seconds{ min-width:16px; text-align:center; font-weight:600; color:var(--color-price,#2f2f34); font-variant-numeric:tabular-nums; }
.gb-page .crazy-list .lefttime em,
.gb-page .gb-index-list .lefttime em{ font-style:normal; color:#c2c6cd; }

.gb-page .gb-index-main{ padding-top:36px; padding-bottom:8px; }
/* 热门区容器同时携带 .w1200 类，但其旧样式 padding 简写（40px 0 0）已把左右内边距清零；
   这里按 .w1200 的响应式断点镜像补偿左右内边距，保证与疯狂团购区左右缘对齐 */
@media screen and (min-width:1660px){
.gb-page .gb-index-main{ padding-left:38px !important; padding-right:38px !important; }
}
@media screen and (max-width:1220px){
.gb-page .gb-index-main{ padding-left:16px !important; padding-right:16px !important; }
}
.gb-page .gb-index-main > h2{ position:relative; margin-bottom:20px; padding-inline-start:16px; font-size:26px; font-weight:700; line-height:1.3; color:var(--color-primary,#232f3e); }
.gb-page .gb-index-main > h2::before{ content:""; position:absolute; inset-inline-start:0; top:50%; transform:translateY(-50%); width:6px; height:24px; border-radius:4px; background:linear-gradient(180deg,var(--color-promo,#febd69),#ff9f2e); }

/* 卡片网格（首页版热门区 + 列表页共用）：5 列流式铺满 */
.gb-page .gb-index-list > ul{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; width:100%; margin:0; }
.gb-page .gb-index-list > ul::before,
.gb-page .gb-index-list > ul::after{ content:none !important; display:none !important; }
.gb-page .gb-index-list > ul > li.mod-shadow-card{ float:none; width:auto; min-width:0; margin:0; box-sizing:border-box; display:flex; flex-direction:column; padding:12px; background:#fff; border:1px solid #eef0f3; border-radius:12px; box-shadow:0 2px 8px rgba(35,47,62,.05); }
.gb-page .gb-index-list > ul > li.mod-shadow-card:hover{ border-color:#e8eaee; box-shadow:0 10px 24px rgba(35,47,62,.12); transform:translate3d(0,-3px,0); }
.gb-page .gb-index-list .img{ display:block; margin-bottom:10px; border-radius:8px; overflow:hidden; background:#f7f8fa; }
.gb-page .gb-index-list .img img{ display:block; width:100%; height:auto; aspect-ratio:1/1; object-fit:cover; margin:0; transition:transform .35s ease; }
.gb-page .gb-index-list > ul > li:hover .img img{ transform:scale(1.05); }
.gb-page .gb-index-list li > .clearfix{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin:0 2px 6px; }
.gb-page .gb-index-list li > .clearfix::before,
.gb-page .gb-index-list li > .clearfix::after{ content:none !important; display:none !important; }
.gb-page .gb-index-list .price{ float:none; font-size:20px; font-weight:700; line-height:1.3; color:var(--color-price,#2f2f34); font-variant-numeric:tabular-nums; }
.gb-page .gb-index-list .price em{ font-style:normal; font-size:14px; font-weight:600; margin-inline-end:1px; }
.gb-page .gb-index-list .man{ float:none; line-height:1.5; font-size:12px; color:#8c8c8c; white-space:nowrap; }
.gb-page .gb-index-list .name{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; white-space:normal; height:40px; margin:0 2px 8px; overflow:hidden; font-size:13px; line-height:20px; color:#333; }
.gb-page .gb-index-list .name:hover{ color:var(--color-primary,#232f3e); }
.gb-page .gb-index-list .gb-btn{ margin-top:auto; display:block; height:36px; line-height:36px; border-radius:8px; color:#fff; font-size:14px; font-weight:500; text-align:center; background:linear-gradient(135deg,var(--color-primary,#232f3e) 0%,#33445c 100%); box-shadow:0 4px 10px rgba(35,47,62,.18); transition:all .25s; }
.gb-page .gb-index-list .gb-btn:hover{ background:#1b2531; box-shadow:0 6px 14px rgba(35,47,62,.28); }
.gb-page .gb-index-list .gb-btn.bid_end{ background:#f0f1f3; color:#9aa2ad; box-shadow:none; cursor:default; }

/* 查看全部团购（首页版） */
.gb-page .gb-btn-all{ display:block; box-sizing:border-box; width:100%; max-width:560px; margin:28px auto 32px; height:48px; line-height:46px; border:1px solid #dfe3e9; border-radius:999px; background:#fff; color:var(--color-primary,#232f3e); font-size:15px; font-weight:500; text-align:center; transition:all .25s; }
.gb-page .gb-btn-all:hover{ background:var(--color-primary,#232f3e); border-color:var(--color-primary,#232f3e); color:#fff; box-shadow:0 8px 20px rgba(35,47,62,.22); }

/* ---------- 列表页：分类筛选（.gb-selector） ----------
   旧样式为 #d2d2d2 点线框 + 定宽 100px 列表项（长语言分类名被截断），
   改为白卡 + 胶囊标签自动换行，选中态主题色填充 */
.gb-page .selector.gb-selector{ background:transparent; margin-bottom:0; }
.gb-page .gb-selector .s-line{ border:0; margin-top:0; }
.gb-page .gb-selector .s-l-wrap{ display:flex; align-items:flex-start; gap:14px; padding:16px 20px; background:#fff; border:1px solid #eef0f3; border-radius:12px; box-shadow:0 2px 8px rgba(35,47,62,.04); }
.gb-page .gb-selector .s-l-tit{ float:none; flex:0 0 auto; width:auto; padding:0; line-height:30px; font-size:14px; color:#8c8c8c; white-space:nowrap; }
.gb-page .gb-selector .s-l-value{ float:none; flex:1 1 auto; min-width:0; margin-left:0; padding:0; overflow:visible; }
.gb-page .gb-selector .s-l-v-list ul{ display:flex; flex-wrap:wrap; gap:8px 10px; }
.gb-page .gb-selector .s-l-v-list li{ float:none; width:auto; margin:0; overflow:visible; }
.gb-page .gb-selector .s-l-v-list li a{ display:inline-block; box-sizing:border-box; max-width:100%; height:30px; line-height:28px; padding:0 14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; border:1px solid #e4e7ed; border-radius:999px; background:#fff; color:#555; font-size:13px; transition:all .2s; }
.gb-page .gb-selector .s-l-v-list li a:hover{ border-color:var(--color-primary,#232f3e); color:var(--color-primary,#232f3e); }
.gb-page .gb-selector .s-l-v-list li.curr a,
.gb-page .gb-selector .s-l-v-list li a.shaixuan{ border-color:transparent; background:linear-gradient(135deg,var(--color-primary,#232f3e) 0%,#33445c 100%); color:#fff; font-weight:500; box-shadow:0 4px 10px rgba(35,47,62,.2); }

/* ---------- 列表页：排序 / 搜索条（.mod-list-sort） ----------
   旧样式为 28px 直角灰框，改为胶囊排序项 + 圆角搜索框，自动换行 */
.gb-page .mod-list-sort{ height:auto; line-height:normal; margin:16px 0; color:#8c8c8c; }
.gb-page .mod-list-sort form.sort{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 20px; width:100%; }
.gb-page .mod-list-sort .sort-l{ float:none; display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.gb-page .mod-list-sort .sort-t{ float:none; margin:0 6px 0 0; margin-inline-end:6px; font-size:13px; color:#8c8c8c; }
.gb-page .mod-list-sort .sort-item{ float:none; box-sizing:border-box; width:auto; min-width:88px; height:32px; line-height:30px; padding:0 14px; margin:0; border:1px solid #e4e7ed; border-radius:999px; background:#fff; color:#555; font-size:13px; text-align:center; transition:all .2s; }
.gb-page .mod-list-sort .sort-item .iconfont{ margin:0 -4px 0 4px; margin-inline-start:4px; margin-inline-end:-4px; font-size:12px; vertical-align:middle; }
.gb-page .mod-list-sort .sort-item:hover{ border-color:var(--color-primary,#232f3e); color:var(--color-primary,#232f3e); }
.gb-page .mod-list-sort .sort-item.curr{ border-color:transparent; background:linear-gradient(135deg,var(--color-primary,#232f3e) 0%,#33445c 100%); color:#fff; box-shadow:0 4px 10px rgba(35,47,62,.2); }
.gb-page .mod-list-sort .f-search{ float:none; display:flex; align-items:center; gap:8px; }
.gb-page .mod-list-sort .f-search .text{ float:none; box-sizing:border-box; width:220px; height:36px; line-height:36px; padding:0 16px; border:1px solid #e4e7ed; border-radius:999px; background:#fff; font-size:13px; color:#333; outline:none; transition:border-color .2s, box-shadow .2s; }
.gb-page .mod-list-sort .f-search .text:focus{ border-color:var(--color-primary,#232f3e); box-shadow:0 0 0 3px rgba(35,47,62,.08); }
.gb-page .mod-list-sort .f-search .btn{ float:none; box-sizing:border-box; height:36px; line-height:34px; min-width:76px; margin:0; padding:0 18px; border:1px solid transparent; border-radius:999px; color:#fff; font-size:13px; text-align:center; background:linear-gradient(135deg,var(--color-primary,#232f3e) 0%,#33445c 100%); box-shadow:0 4px 10px rgba(35,47,62,.2); transition:all .25s; }
.gb-page .mod-list-sort .f-search .btn:hover{ background:#1b2531; }

/* ---------- 列表页：空状态 / 异步加载 ---------- */
.gb-page .gb-index-list + .no_records,
.gb-page .no_records.no_records_tc{ height:auto; padding:72px 0; }
.gb-page .floor-loading{ padding:20px 0; }

/* ---------- RTL（阿拉伯语）方向修正 ---------- */
[dir="rtl"] .gb-page .mod-list-sort .sort-t{ margin:0 0 0 6px; }
[dir="rtl"] .gb-page .mod-list-sort .sort-item .iconfont{ margin:0 4px 0 -4px; }
[dir="rtl"] .gb-page .gb-selector .s-l-value{ margin-left:0; margin-right:0; }

/* ---------- 窄屏降级 ---------- */
@media screen and (max-width:1260px){
.gb-page .gb-crazy .crazy-list,
.gb-page .gb-index-list > ul{ grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media screen and (max-width:1024px){
.gb-page .gb-crazy .crazy-list,
.gb-page .gb-index-list > ul{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.gb-page .gb-selector .s-l-wrap{ flex-direction:column; gap:10px; }
.gb-page .gb-selector .s-l-tit{ line-height:1.4; }
.gb-page .mod-list-sort form.sort{ flex-direction:column; align-items:stretch; }
.gb-page .mod-list-sort .f-search{ width:100%; }
.gb-page .mod-list-sort .f-search .text{ flex:1 1 auto; width:auto; }
}
