/* ===========================================================================
   sport_theme · repfind 视觉元素总集
   设计 token:
     - 主色 #E53935 / 强调 #C62828 / 浅 #FF6659
     - 深 #1A1A1A / 卡白 #fff
     - 圆角: sm 6px / md 10px / lg 14px / pill 50px
     - 字体: Inter (主) + Oswald (强调标签)
   覆盖范围:
     1. 商品卡片收藏按钮 (.sp-fav-badge)
     2. 趋势角标 (.sp-trend-badge / .sp-trend-blaze/hot/rise)
     3. NEW 角标 (.sp-new-badge)
     4. 详情页收藏 + 想买双按钮 (.sp-action-btn.is-fav / .is-wish)
     5. 详情页趋势横幅 (.sp-trend-banner)
   移动端 80% 流量 → 触摸目标 ≥44px / GPU 友好动画 / 紧凑布局优先
=========================================================================== */

/* ============== 1. 商品卡片收藏按钮 (右上角) ============== */
.sp-fav-badge {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 5;
	min-width: 36px;
	min-height: 36px;
	padding: 8px;
	border: none;
	background: rgba(255, 255, 255, 0.9);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border-radius: 50%;
	color: #1A1A1A;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
	-webkit-tap-highlight-color: transparent;
}
.sp-fav-badge:active {
	transform: scale(0.92);
	background: #E53935;
	color: #fff;
}
/* 已收藏状态: user_actions.js 通过 .is-active 切换, .is-faved 是历史兼容别名 */
.sp-fav-badge.is-active,
.sp-fav-badge.is-faved {
	background: #E53935;
	color: #fff;
}
.sp-fav-badge.is-active i,
.sp-fav-badge.is-faved i {
	color: #fff;
}
.sp-fav-badge[data-busy="1"] {
	opacity: 0.6;
	pointer-events: none;
}
.sp-fav-badge i {
	pointer-events: none;
	line-height: 1;
}

/* ============== 2. 趋势角标 (左下角, 同时只显示一个最高档) ============== */
.sp-trend-badge {
	position: absolute;
	left: 6px;
	bottom: 6px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 800;
	font-family: 'Oswald', 'Inter', sans-serif;
	letter-spacing: 0.4px;
	color: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.25);
	pointer-events: none;
	user-select: none;
}
.sp-trend-icon {
	font-size: 12px;
	line-height: 1;
}
.sp-trend-blaze {
	background: linear-gradient(135deg, #FF6659 0%, #E53935 60%, #FF8C00 100%);
	animation: sp-blaze-pulse 1.6s ease-in-out infinite;
}
@keyframes sp-blaze-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.78; }
}
.sp-trend-hot {
	background: linear-gradient(135deg, #FF6659 0%, #E53935 100%);
}
.sp-trend-rise {
	background: linear-gradient(135deg, #FFB300 0%, #FF6659 100%);
}

/* ============== 3. NEW 角标 (右下角) ============== */
.sp-new-badge {
	position: absolute;
	right: 6px;
	bottom: 6px;
	z-index: 4;
	padding: 3px 7px;
	background: #1A1A1A;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	font-family: 'Oswald', 'Inter', sans-serif;
	letter-spacing: 0.6px;
	border-radius: 10px;
	border: 1.5px solid #E53935;
	box-shadow: 0 2px 6px rgba(0,0,0,0.3);
	pointer-events: none;
	user-select: none;
}

/* ============== 4. 详情页收藏 + 想买双按钮 ============== */
/* 容器: 移动端 Buy Link 下方两列等宽 */
.sp-fav-actions {
	display: flex;
	gap: 10px;
	margin-top: 10px;
	width: 100%;
}
.sp-action-btn {
	flex: 1;
	min-height: 44px;
	padding: 10px 14px;
	border: 1.5px solid #1A1A1A;
	background: #fff;
	color: #1A1A1A;
	border-radius: 10px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: all 0.2s ease;
	-webkit-tap-highlight-color: transparent;
	text-decoration: none;
}
.sp-action-btn:active {
	transform: scale(0.97);
}
.sp-action-btn.is-fav:hover,
.sp-action-btn.is-fav:active {
	background: #E53935;
	border-color: #E53935;
	color: #fff;
}
.sp-action-btn.is-wish:hover,
.sp-action-btn.is-wish:active {
	background: #1A1A1A;
	border-color: #1A1A1A;
	color: #fff;
}
/* 已激活状态: user_actions.js 通过 .is-active 切换 */
.sp-action-btn.is-fav.is-active,
.sp-action-btn.is-faved {
	background: #E53935;
	border-color: #E53935;
	color: #fff;
}
.sp-action-btn.is-wish.is-active,
.sp-action-btn.is-wished {
	background: #1A1A1A;
	border-color: #1A1A1A;
	color: #fff;
}
.sp-action-btn[data-busy="1"] {
	opacity: 0.6;
	pointer-events: none;
}
.sp-action-btn i {
	font-size: 16px;
	line-height: 1;
}

/* ============== 5. 详情页趋势横幅 (价格行下方, Buy Link 上方) ============== */
.sp-trend-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 12px 0;
	padding: 12px 14px;
	border-radius: 10px;
	font-family: 'Inter', sans-serif;
	color: #fff;
	box-shadow: 0 4px 12px rgba(0,0,0,0.18);
	min-height: 48px;
}
.sp-trend-banner-icon {
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
}
.sp-trend-banner-text {
	flex: 1;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.2px;
}
.sp-trend-banner-text strong {
	font-family: 'Oswald', 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 800;
	margin-right: 4px;
}
/* Blazing 横幅 - 红橙渐变 + 呼吸光 */
.sp-trend-banner.is-blaze {
	background: linear-gradient(135deg, #FF6659 0%, #E53935 50%, #FF8C00 100%);
	animation: sp-blaze-pulse 1.6s ease-in-out infinite;
}
/* Hot 横幅 - 橙红 */
.sp-trend-banner.is-hot {
	background: linear-gradient(135deg, #FF6659 0%, #E53935 100%);
}
/* Rising 横幅 - 黄橙 */
.sp-trend-banner.is-rise {
	background: linear-gradient(135deg, #FFB300 0%, #FF6659 100%);
}
/* NEW 横幅 - 黑红 */
.sp-trend-banner.is-new {
	background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
	border-left: 3px solid #E53935;
}

/* ============== PC 端 (>= 769px) 适配 ============== */
@media (min-width: 769px) {
	.sp-fav-badge {
		top: 10px;
		right: 10px;
		min-width: 40px;
		min-height: 40px;
		font-size: 18px;
	}
	.sp-trend-badge {
		left: 10px;
		bottom: 10px;
		font-size: 12px;
		padding: 5px 10px;
	}
	.sp-new-badge {
		right: 10px;
		bottom: 10px;
		font-size: 11px;
		padding: 4px 9px;
	}
	/* PC 详情页双按钮可以更大 */
	.sp-action-btn {
		min-height: 48px;
		font-size: 15px;
	}
	/* PC 详情页横幅更高级 */
	.sp-trend-banner {
		padding: 16px 20px;
		min-height: 56px;
	}
	.sp-trend-banner-text {
		font-size: 14px;
	}
	.sp-trend-banner-text strong {
		font-size: 18px;
	}
}

/* ============== 移动端紧凑屏 (≤360px) 进一步优化 ============== */
@media (max-width: 360px) {
	.sp-trend-badge {
		font-size: 10px;
		padding: 3px 6px;
	}
	.sp-new-badge {
		font-size: 9px;
		padding: 2px 6px;
	}
	.sp-trend-banner {
		padding: 10px 12px;
		min-height: 44px;
	}
	.sp-trend-banner-text {
		font-size: 12px;
	}
	.sp-trend-banner-text strong {
		font-size: 14px;
	}
}
