@charset "utf-8";
/* ============================================================================
 * 积分商城列表页皮肤（exchange_list.dwt 专用）
 * Points mall (exchange goods) list page skin
 * 深圳市爱租网络有限公司2016-2026
 * Shenzhen iZucn Network Co.,Ltd. 2016-2026
 * ============================================================================
 * 说明：
 *   1. 全部选择器限定在 body.exchange-content 作用域内，仅由 exchange_list.dwt
 *      引入；旧样式位于 style.css 的 exchange 段（文件后加载，同特异性覆盖生效）；
 *   2. 颜色/圆角一律引用后台「主题配色」变量并保留兜底值：
 *      var(--color-primary,#232f3e)、var(--color-promo,#febd69)、
 *      var(--color-promo-text,#b2771f)、var(--color-price,#2f2f34)、
 *      var(--radius-*)；多站点换色无需改代码；
 *   3. 顶部横幅（2026-10-15 二次改版）：原 300px 空置横幅仅左侧悬浮积分卡、
 *      右侧大片留白，改为深色渐变 hero——左标题+副标题（文案走语言包
 *      exchange_hero_title / exchange_hero_sub），右白色积分卡；光斑装饰；
 *      广告位 .marBanner 有内容时居中于 hero 上方；
 *   4. 分类导航（2026-10-15 二次改版）：原「·」分隔行内锚点改为白卡选择器
 *      （「分类：」标题列 + 胶囊标签自动换行）；同步修复模板侧取错字段
 *      （$cat.cat_id 不存在）导致全部高亮与空链接，改取 $cat.id；
 *   5. 布局：原卡片 212px 定宽 float 改为 grid repeat(5,minmax(0,1fr)) 流式网格，
 *      宽屏铺满、1260px/1024px/768px 依次降为 4/3/2 列；
 *   6. 积分数字用促销橙强调（积分=可当钱花的优惠），市场价划线灰字；
 *      换购按钮由原「hover 才显示」（触屏不可用）改为常显主题色渐变按钮；
 *   7. 全站兼容 RTL（阿拉伯语）：flex 布局自动镜像 + 逻辑边距；
 *   8. 功能钩子零改动：.mod-list-sort 排序链接、分页（pages.lbi）、
 *      空状态 .no_records、异步加载 ul[ectype=items] 全部依赖原有类名与
 *      DOM 结构，本文件只重写外观。
 * ==========================================================================*/

/* ---------- 1. 页面底 ---------- */
body.exchange-content{ background:var(--color-bg,#f8f8f8); }

/* ---------- 2. 顶部横幅：积分商城 hero（深色渐变 + 左文案右积分卡） ---------- */
body.exchange-content .exchange-banner{
	min-height:0; height:auto;
	background:linear-gradient(120deg,#1a2530 0%,var(--color-primary,#232f3e) 55%,#33445c 100%);
}
/* 光斑装饰（与秒杀 hero 同一视觉语言；pointer-events:none 避免遮挡广告点选） */
body.exchange-content .exchange-banner::before{
	content:""; position:absolute; inset-inline-start:-120px; top:-140px;
	width:420px; height:420px; border-radius:50%;
	background:radial-gradient(circle,rgba(254,189,105,.22),rgba(254,189,105,0) 68%);
	pointer-events:none;
}
body.exchange-content .exchange-banner::after{
	content:""; position:absolute; inset-inline-end:-90px; bottom:-170px;
	width:400px; height:400px; border-radius:50%;
	background:radial-gradient(circle,rgba(254,189,105,.14),rgba(254,189,105,0) 70%);
	pointer-events:none;
}
body.exchange-content .exchange-banner .w1200{ position:relative; z-index:1; padding-top:28px; padding-bottom:28px; }
body.exchange-content .exchange-banner .marBanner{ margin-bottom:18px; text-align:center; }
body.exchange-content .exchange-hero{
	display:flex; align-items:center; justify-content:space-between;
	gap:24px 40px; flex-wrap:wrap;
}
body.exchange-content .exchange-hero-txt{ min-width:0; }
body.exchange-content .exchange-hero-tit{
	position:relative; padding-inline-start:18px;
	font-size:30px; font-weight:700; line-height:1.25; color:#fff;
}
body.exchange-content .exchange-hero-tit::before{
	content:""; position:absolute; inset-inline-start:0; top:50%; transform:translateY(-50%);
	width:6px; height:28px; border-radius:4px;
	background:linear-gradient(180deg,var(--color-promo,#febd69),#ff9f2e);
}
body.exchange-content .exchange-hero-sub{
	margin-top:10px; padding-inline-start:18px;
	font-size:14px; line-height:1.6; color:rgba(255,255,255,.72);
}
/* 用户积分卡（横幅右侧白卡；登录显示积分/余额，未登录显示登录/注册） */
body.exchange-content .exchange-score{
	position:static;
	display:flex; align-items:center; flex-wrap:wrap; gap:26px;
	box-sizing:border-box; width:auto;
	min-width:0; max-width:100%; height:auto;
	padding:16px 24px;
	background:var(--color-card,#fff);
	border-radius:var(--radius-lg,14px);
	box-shadow:0 12px 28px rgba(0,0,0,.18);
	overflow:visible;
}
body.exchange-content .exchange-score .u-info{
	display:flex; align-items:center; gap:12px;
	padding:0; text-align:start;
}
body.exchange-content .exchange-score .u-info .u-avatar{
	float:none; display:block; width:52px; height:52px;
	margin:0; padding:0; border:0; border-radius:50%;
}
body.exchange-content .exchange-score .u-info .u-avatar img{ display:block; width:52px; height:52px; border-radius:50%; }
body.exchange-content .exchange-score .u-info .u-name{ max-width:180px; font-size:14px; line-height:1.5; color:#333; }
body.exchange-content .exchange-score .u-info .u-name strong{ font-weight:600; }
body.exchange-content .exchange-score .u-info .u-name a{ color:#333; }
body.exchange-content .exchange-score .u-info .u-name a:hover{ color:var(--color-primary,#232f3e); }
body.exchange-content .exchange-score .score-info{ display:flex; align-items:center; gap:0; padding:0; overflow:visible; }
body.exchange-content .exchange-score .score-info .item{
	float:none; white-space:nowrap; text-align:start;
	width:auto; padding:0 22px;
}
body.exchange-content .exchange-score .score-info .item:first-child{
	padding-inline-start:0;
	border:none; border-inline-end:1px solid #eef0f3;
	margin:0;
}
body.exchange-content .exchange-score .score-info .item p{ font-size:12px; color:var(--color-text-muted,#999); }
body.exchange-content .exchange-score .score-info .item .num{
	color:var(--color-primary,#232f3e);
	font-size:20px; font-weight:700; line-height:1.4;
	font-variant-numeric:tabular-nums;
	white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
/* 可用积分（第一格）：促销橙强调 */
body.exchange-content .exchange-score .score-info .item:first-child .num{
	color:var(--color-promo-text,#b2771f);
}
/* 登录 / 注册按钮：胶囊化，hover 填充主题色 */
body.exchange-content .exchange-score .score-info .login-button,
body.exchange-content .exchange-score .score-info .register_button{
	float:none; display:inline-flex; align-items:center; justify-content:center;
	box-sizing:border-box; width:auto; height:34px; line-height:1;
	margin:0; padding:0 22px;
	border:1px solid var(--color-primary,#232f3e);
	border-radius:999px;
	color:var(--color-primary,#232f3e); font-size:13px;
	background:transparent;
	transition:all .2s ease;
}
body.exchange-content .exchange-score .score-info .login-button{ margin-inline-start:0; margin-inline-end:10px; }
body.exchange-content .exchange-score .score-info .login-button:hover,
body.exchange-content .exchange-score .score-info .register_button:hover{
	background:var(--color-primary,#232f3e);
	border-color:var(--color-primary,#232f3e);
	color:#fff;
}

/* ---------- 3. 分类导航（白卡选择器：「分类：」标题列 + 胶囊标签） ---------- */
body.exchange-content .exchange-cate{
	background:var(--color-bg,#f8f8f8);
	line-height:normal; font-size:13px;
	padding:16px 0 2px;
}
body.exchange-content .exchange-cate .cate-wrap{
	display:flex; align-items:flex-start; gap:14px;
	box-sizing:border-box;
	padding:16px 20px; background:var(--color-card,#fff);
	border:1px solid #eef0f3; border-radius:var(--radius-lg,14px);
	box-shadow:0 2px 8px rgba(35,47,62,.04);
}
body.exchange-content .exchange-cate .cate-tit{ flex:0 0 auto; line-height:30px; color:#8c8c8c; white-space:nowrap; }
body.exchange-content .exchange-cate .cate-list{
	flex:1 1 auto; min-width:0;
	display:flex; flex-wrap:wrap; gap:8px 10px;
	overflow:visible;
}
body.exchange-content .exchange-cate .cate-list a{
	display:inline-block; box-sizing:border-box;
	max-width:100%; height:30px; line-height:28px; padding:0 14px;
	margin:0;
	overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
	border:1px solid #e4e7ed; border-radius:999px;
	background:var(--color-card,#fff); color:#555; font-size:13px;
	transition:all .2s ease;
}
body.exchange-content .exchange-cate .cate-list a:hover{ border-color:var(--color-primary,#232f3e); color:var(--color-primary,#232f3e); }
body.exchange-content .exchange-cate .cate-list a.curr{
	border-color:transparent; font-weight:500;
	background:linear-gradient(135deg,var(--color-primary,#232f3e) 0%,var(--color-primary-dark,#33445c) 100%);
	color:#fff;
	box-shadow:0 4px 10px rgba(35,47,62,.2);
}

/* ---------- 4. 排序条（胶囊排序项） ---------- */
body.exchange-content .exchange-main{ padding:14px 0 44px; background:var(--color-bg,#f8f8f8); }
body.exchange-content .mod-list-sort{
	display:flex; align-items:center; flex-wrap:wrap; gap:8px;
	height:auto; line-height:normal; margin:0 0 16px; color:#8c8c8c;
}
body.exchange-content .mod-list-sort .sort-t{ float:none; margin:0; margin-inline-end:6px; font-size:13px; color:#8c8c8c; }
body.exchange-content .mod-list-sort .sort-l{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
body.exchange-content .mod-list-sort .sort-item{
	float:none; box-sizing:border-box; width:auto; min-width:88px; flex:0 0 auto;
	white-space:nowrap;
	height:32px; line-height:30px; padding:0 14px; margin:0;
	border:1px solid #e4e7ed; border-radius:999px;
	background:var(--color-card,#fff); color:#555; font-size:13px; text-align:center;
	transition:all .2s ease;
}
body.exchange-content .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; }
body.exchange-content .mod-list-sort .sort-item:hover{ border-color:var(--color-primary,#232f3e); color:var(--color-primary,#232f3e); }
body.exchange-content .mod-list-sort .sort-item.curr{
	border-color:transparent;
	background:linear-gradient(135deg,var(--color-primary,#232f3e) 0%,var(--color-primary-dark,#33445c) 100%);
	color:#fff;
	box-shadow:0 4px 10px rgba(35,47,62,.2);
}

/* ---------- 5. 商品网格（5 列流式铺满） ---------- */
body.exchange-content .exchange-list ul{
	margin:0; padding:0;
	display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px;
}
/* clearfix 伪元素（base.css content:"."）在 grid 容器中会成为占位网格项，须清除 */
body.exchange-content .exchange-list ul::before,
body.exchange-content .exchange-list ul::after{ content:none !important; display:none !important; }

/* ---------- 6. 兑换卡片 ---------- */
body.exchange-content .exchange-list li.mod-shadow-card{
	float:none; width:auto; min-width:0; margin:0; padding:12px;
	display:flex; flex-direction:column;
	background:var(--color-card,#fff);
	border:1px solid #eef0f3; border-radius:var(--radius-lg,14px);
	box-shadow:0 2px 8px rgba(35,47,62,.05);
	transition:box-shadow .25s ease, transform .25s ease;
}
body.exchange-content .exchange-list li.mod-shadow-card:hover{
	border-color:#e8eaee;
	box-shadow:0 10px 24px rgba(35,47,62,.12);
	transform:translate3d(0,-3px,0);
}
body.exchange-content .exchange-list .img{ display:block; position:relative; margin-bottom:10px; border-radius:var(--radius-md,10px); overflow:hidden; background:#f7f8fa; }
body.exchange-content .exchange-list .img img{
	display:block; width:100%; height:auto;
	aspect-ratio:1/1; object-fit:cover;
	margin:0; transition:transform .35s ease;
}
body.exchange-content .exchange-list li:hover .img img{ transform:scale(1.05); }

/* 积分 / 市场价行 */
body.exchange-content .exchange-list li > .clearfix{
	display:flex; align-items:baseline; justify-content:space-between; gap:8px;
	margin:0 2px 6px;
}
body.exchange-content .exchange-list li > .clearfix::before,
body.exchange-content .exchange-list li > .clearfix::after{ content:none !important; display:none !important; }
body.exchange-content .exchange-list .score{
	float:none; display:inline-flex; align-items:baseline; gap:3px;
	min-width:0; white-space:nowrap;
	color:var(--color-promo-text,#b2771f); font-size:13px; line-height:1.3;
}
body.exchange-content .exchange-list .score b{
	font-size:22px; font-weight:700; line-height:1.1;
	color:var(--color-promo-text,#b2771f);
	font-variant-numeric:tabular-nums;
}
body.exchange-content .exchange-list .market{
	float:none; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
	line-height:1.5; font-size:12px;
	color:var(--color-text-muted,#999); text-decoration:line-through;
	font-variant-numeric:tabular-nums;
}

/* 商品名（两行截断） */
body.exchange-content .exchange-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;
}
body.exchange-content .exchange-list .name:hover{ color:var(--color-primary,#232f3e); }

/* 已兑换人数 */
body.exchange-content .exchange-list .already{
	display:flex; align-items:center; gap:4px;
	margin:0 2px 10px; font-size:12px; color:var(--color-text-muted,#999);
}
body.exchange-content .exchange-list .already i{ margin:0; font-size:13px; color:#a5adba; }

/* 兑换按钮：常显（替代原 hover 才显示，触屏可用） */
body.exchange-content .exchange-list .ex-btn{
	float:none; margin-top:auto;
	display:block; box-sizing:border-box;
	height:36px; line-height:36px;
	border-radius:var(--radius-md,10px);
	color:#fff; font-size:14px; font-weight:500; text-align:center;
	background:linear-gradient(135deg,var(--color-primary,#232f3e) 0%,var(--color-primary-dark,#33445c) 100%);
	box-shadow:0 4px 10px rgba(35,47,62,.18);
	opacity:1; filter:none;
	transition:all .25s ease;
}
body.exchange-content .exchange-list .ex-btn:hover{
	box-shadow:0 6px 14px rgba(35,47,62,.28);
	transform:translate3d(0,-1px,0);
	filter:brightness(1.06);
}

/* ---------- 7. 空状态 ---------- */
body.exchange-content .no_records.no_records_tc{ height:auto; padding:72px 0; }

/* ---------- 8. 窄屏降级 ---------- */
@media screen and (max-width:1260px){
	body.exchange-content .exchange-list ul{ grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media screen and (max-width:1100px){
	body.exchange-content .exchange-hero{ flex-direction:column; align-items:stretch; }
	body.exchange-content .exchange-score{ width:100%; }
}
@media screen and (max-width:1024px){
	body.exchange-content .exchange-list ul{ grid-template-columns:repeat(3,minmax(0,1fr)); }
	body.exchange-content .exchange-cate .cate-wrap{ flex-direction:column; gap:10px; }
	body.exchange-content .exchange-cate .cate-tit{ line-height:1.4; }
}
@media screen and (max-width:768px){
	body.exchange-content .exchange-list ul{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
	body.exchange-content .exchange-list .score b{ font-size:19px; }
	body.exchange-content .exchange-hero-tit{ font-size:24px; }
	body.exchange-content .exchange-score{ flex-wrap:wrap; gap:14px 18px; padding:16px 18px; }
}
