
/* 1. 顶部 Banner */
.tools-banner {
	position: relative;
	height: 360px;
	background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
	background: url('../image/2建.webp') no-repeat center center;
	background-size: cover;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	color: #fff;
	margin-top: 70px;
}

.tools-banner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.3);
}

.tools-banner-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
	padding: 0 20px;
}

.tools-banner h1 {
	font-size: 42px;
	font-weight: 700;
	margin-bottom: 15px;
	letter-spacing: 2px;
}

.tools-banner p {
	font-size: 18px;
	opacity: 0.9;
	line-height: 1.6;
}

/* 2. 容器调整 */
.product {
	background-color: #f8f9fa;
	padding-bottom: 60px;
}

.layui-container {
	width: 1200px !important;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 15px;
}

/* 3. 分类标签 */
.product-tab {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 18px;
	margin: 50px 0 40px;
	padding: 20px;
	background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%);
	border-radius: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	position: relative;
	backdrop-filter: blur(10px);
}

/* 阻止任何伪元素显示 */
.product-tab::before,
.product-tab::after {
	content: none !important;
	display: none !important;
}

.product-tab-item {
	position: relative;
	padding: 12px 28px;
	border-radius: 50px;
	background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
	color: #555;
	font-size: 15px;
	font-weight: 500;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 2px solid transparent;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
	text-decoration: none;
	cursor: pointer;
	overflow: hidden;
	z-index: 1;
}

/* 添加光晕效果 */
.product-tab-item::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(2, 146, 254, 0.3) 0%, transparent 70%);
	transform: translate(-50%, -50%);
	transition: width 0.6s ease, height 0.6s ease;
	z-index: -1;
}

.product-tab-item:hover::before {
	width: 300px;
	height: 300px;
}

.product-tab-item:hover {
	color: #0292fe;
	border-color: #0292fe;
	transform: translateY(-4px) scale(1.05);
	box-shadow: 0 8px 20px rgba(2, 146, 254, 0.25), inset 0 1px 0 rgba(255, 255, 255, 1);
	background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
}

/* 激活状态 */
.product-tab-item-active {
	background: linear-gradient(135deg, #0292fe 0%, #0277cd 100%) !important;
	color: #fff !important;
	border-color: #0292fe !important;
	box-shadow: 0 6px 20px rgba(2, 146, 254, 0.5), 0 0 0 4px rgba(2, 146, 254, 0.1) !important;
	font-weight: 600;
	transform: translateY(-2px) scale(1.08);
}

.product-tab-item-active::before {
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

/* 添加点击波纹效果 */
.product-tab-item:active {
	transform: translateY(-2px) scale(1.02);
	transition: transform 0.1s;
}

/* 4. 搜索框 */
.product-form {
	max-width: 700px;
	margin: 0 auto 60px;
	position: relative;
	display: flex;
	align-items: center;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
	border-radius: 60px;
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	padding: 8px;
	border: 3px solid #e8e8e8;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
}

/* 添加背景光晕 */
.product-form::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(2, 146, 254, 0.05) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.product-form:hover::before,
.product-form:focus-within::before {
	opacity: 1;
}

.product-form:hover {
	border-color: #0292fe;
	box-shadow: 0 12px 40px rgba(2, 146, 254, 0.2), 0 0 0 4px rgba(2, 146, 254, 0.1), inset 0 1px 0 rgba(255, 255, 255, 1);
	transform: translateY(-2px);
}

.product-form:focus-within {
	border-color: #0292fe;
	box-shadow: 0 12px 40px rgba(2, 146, 254, 0.25), 0 0 0 5px rgba(2, 146, 254, 0.15), inset 0 1px 0 rgba(255, 255, 255, 1);
	transform: translateY(-2px);
}

.product-form input {
	flex: 1;
	height: 56px;
	border: none;
	padding: 0 30px;
	font-size: 16px;
	background: transparent;
	outline: none;
	color: #333;
	font-weight: 400;
	transition: all 0.3s ease;
	z-index: 1;
}

.product-form input::placeholder {
	color: #999;
	font-size: 15px;
	transition: all 0.3s ease;
}

.product-form input:focus::placeholder {
	color: #bbb;
	transform: translateX(5px);
}

/* 搜索按钮 */
.product-form i {
	width: 60px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #0292fe 0%, #0277cd 100%);
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 15px rgba(2, 146, 254, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
	position: relative;
	overflow: hidden;
	z-index: 1;
}

/* 按钮光晕效果 */
.product-form i::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	transition: width 0.6s ease, height 0.6s ease;
}

.product-form i:hover::before {
	width: 200px;
	height: 200px;
}

.product-form i:hover {
	background: linear-gradient(135deg, #0277cd 0%, #025fa3 100%);
	transform: scale(1.1) rotate(5deg);
	box-shadow: 0 6px 20px rgba(2, 146, 254, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.product-form i:active {
	transform: scale(1.05) rotate(0deg);
	transition: transform 0.1s;
}

.product-form i img {
	width: 24px;
	height: 24px;
	filter: brightness(0) invert(1);
	transition: transform 0.3s ease;
	z-index: 1;
	position: relative;
}

.product-form i:hover img {
	transform: scale(1.1);
}

/* 5. 产品列表网格 */
.product-list .product-box {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 25px !important;
	margin: 0 !important;
}

/* 6. 产品卡片 */
.product-list .product-item {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	border: 1px solid rgba(0, 0, 0, 0.02);
	height: auto !important;
	width: auto !important;
}

.product-list .product-item:hover {
	transform: translateY(-8px) !important;
	box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.product-list .product-wrap:hover {
	box-shadow: none !important;
	border: none !important;
}

.product-list .product-item-info:hover {
	box-shadow: none !important;
	border: none !important;
}

.product-list .product-item a {
	display: block;
	padding: 0 !important;
	height: 100%;
}

.product-list .product-wrap {
	padding: 0 !important;
	height: 100%;
	display: flex;
	flex-direction: column;
	position: static !important;
	border: none !important;
}

.product-list .product-item-info {
	padding: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative !important;
}

.product-list .product-item-info img {
	width: 100% !important;
	height: 200px !important;
	object-fit: contain !important;
	object-position: center !important;
	border-radius: 8px 8px 0 0;
	margin-bottom: 0 !important;
	margin-top: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	background: #f5f5f5;
	padding: 15px !important;
	box-sizing: border-box !important;
	display: block !important;
}

.product-list .product-item-name {
	font-size: 16px !important;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
	padding: 0 15px !important;
	height: auto !important;
	line-height: 1.4 !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	border: none !important;
}

.product-list .product-item-summery {
	font-size: 13px !important;
	color: #888;
	line-height: 1.5 !important;
	margin-bottom: 15px;
	padding: 0 15px !important;
	height: 40px !important;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}

.product-list .product-item-meta {
	margin-bottom: 10px;
	padding: 0 15px;
	font-size: 12px;
	color: #999;
}

.product-list .product-item-meta span {
	margin-right: 10px;
	background: #f0f2f5;
	padding: 2px 6px;
	border-radius: 4px;
}

.product-list .product-item-price {
	font-size: 18px !important;
	color: #f5222d;
	font-weight: 700;
	margin-top: auto;
	padding: 0 15px 15px 15px !important;
	display: block !important;
}

/* 修复：隐藏器械列表中的推荐/热门标签 */
.product-list .product-item-tag,
.product-list .product-item-tag.recommended,
.product-list .product-item-tag.hot {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
}

/* 修复：隐藏分类标签区域的所有标签 */
.product-tab .product-item-tag,
.product-tab .product-item-tag.recommended,
.product-tab .product-item-tag.hot,
.product-tab-item .product-item-tag,
.product-tab > .product-item-tag {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	position: absolute !important;
	left: -9999px !important;
}

/* 隐藏所有可能出现在顶部区域的标签 */
.product .product-item-tag:not(.recommended-section .product-item-tag) {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
}

/* 最强力的隐藏规则 - 针对所有可能的标签位置 */
.product-tab ~ *:not(.product-form):not(.product-list) .product-item-tag,
.product-tab + * .product-item-tag,
.layui-container > .product-item-tag,
.product > .product-item-tag {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	position: absolute !important;
	left: -99999px !important;
	top: -99999px !important;
}

/* 针对所有在 product-tab 之前的元素 */
.product-tab::before,
* + .product-tab::before {
	content: none !important;
	display: none !important;
}

/* 推荐器械区域保留标签显示 */
.recommended-section .product-item-tag {
	position: absolute;
	top: 25px;
	left: 25px;
	padding: 4px 10px;
	border-radius: 4px;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	z-index: 2;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.recommended-section .product-item-tag.recommended {
	background: linear-gradient(45deg, #ff4d4f, #f5222d);
}

.recommended-section .product-item-tag.hot {
	background: linear-gradient(45deg, #fa8c16, #ffa940);
	left: auto;
	right: 25px;
}

/* 推荐区域器械名称加粗 */
.recommended-section .product-item-name {
	font-weight: 700 !important;
}

/* 空状态居中显示 */
.product-list .empty {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 400px;
	width: 100%;
	grid-column: 1 / -1;
}

.product-list .empty > div {
	text-align: center !important;
	padding: 40px;
}

.product-list .empty img {
	max-width: 300px;
	width: 100%;
	height: auto;
	opacity: 0.6;
	margin: 0 auto;
	display: block;
}

.product-list .empty div[style*="margin-top"] {
	margin-top: 30px !important;
	color: #999 !important;
	font-size: 16px;
	font-weight: 500;
}

/* 分页容器 - 仅做简单居中，不改 Layui 本身样式 */
#pagination {
	text-align: center;
	margin-top: 40px;
	padding: 20px 0;
}

/*
 * index.css 中有全局样式：
 * .layui-laypage a, .layui-laypage span { width:30px; height:30px; line-height:30px; padding:0; }
 * 这会把 “共XX条 / 每页XX条 / 到第X页” 这些文字也压缩成 30px，导致挤在一起。
 * 这里只针对 count / limits / skip 这三块做宽度修正，
 * 让数字按钮仍然保持原来的小方块风格，整体看起来和其它 Layui 分页一致。
 */

/* 统计文字 / 每页选择 / 跳转区域：允许自动宽度 */
#pagination .layui-laypage-count,
#pagination .layui-laypage-limits,
#pagination .layui-laypage-skip {
	width: auto !important;
	height: 30px !important;
	line-height: 30px !important;
	padding: 0 10px !important;
	display: inline-block !important;
	vertical-align: middle !important;
}

/* 每页数量下拉框 / 跳转输入框 */
#pagination .layui-laypage-limits select,
#pagination .layui-laypage-skip input {
	width: auto !important;
	height: 28px !important;
	line-height: 28px !important;
	padding: 0 8px !important;
	vertical-align: middle !important;
}

/* 跳转按钮 */
#pagination .layui-laypage-skip button {
	width: auto !important;
	height: 30px !important;
	line-height: 30px !important;
	padding: 0 12px !important;
	vertical-align: middle !important;
}

/* ==========================================
   tools-detail.html - 器械详情页面样式
   ========================================== */

/* 详情页整体布局 */
.tools-detail {
	padding: 40px 0;
	background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
	min-height: calc(100vh - 145px);
}

.tools-detail-container {
	background: #fff;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 返回按钮美化 */
.back-btn {
	margin-bottom: 20px;
}

.back-btn .layui-btn {
	border-radius: 8px;
	padding: 0 20px;
	height: 40px;
	line-height: 40px;
	font-size: 14px;
	transition: all 0.3s ease;
}

.back-btn .layui-btn:hover {
	background: #0292fe;
	color: #fff;
	border-color: #0292fe;
}

/* 详情头部 */
.tools-detail-header {
	display: flex;
	gap: 40px;
	margin-bottom: 50px;
	padding-bottom: 40px;
	border-bottom: 2px solid #f0f0f0;
}

.tools-detail-image {
	flex: 0 0 450px;
	position: relative;
}

.tools-detail-image img {
	width: 100%;
	height: 350px;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid #eee;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.tools-detail-image img:hover {
	transform: scale(1.02);
}

.tools-detail-info {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.tools-detail-title {
	font-size: 32px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 20px;
	line-height: 1.3;
}

.tools-detail-meta {
	margin-bottom: 25px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.tools-detail-meta .meta-item {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
	border-radius: 6px;
	font-size: 14px;
	color: #555;
	border: 1px solid #e0e0e0;
	transition: all 0.3s ease;
}

.tools-detail-meta .meta-item:hover {
	background: linear-gradient(135deg, #e8ecf1 0%, #d9dfe6 100%);
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tools-detail-price {
	font-size: 36px;
	color: #ff4d4f;
	font-weight: 700;
	margin-bottom: 25px;
	padding: 15px 0;
	border-top: 1px solid #f0f0f0;
	border-bottom: 1px solid #f0f0f0;
}

.tools-detail-tags {
	margin-bottom: 25px;
	display: flex;
	gap: 10px;
}

.tools-detail-tag {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tools-detail-tag.recommended {
	background: linear-gradient(135deg, #ff6b6b 0%, #ff4d4f 100%);
}

.tools-detail-tag.hot {
	background: linear-gradient(135deg, #ffa940 0%, #fa8c16 100%);
}

.tools-detail-description {
	color: #666;
	line-height: 1.8;
	margin-bottom: 25px;
	font-size: 15px;
	padding: 15px;
	background: #f9fafb;
	border-radius: 8px;
	border-left: 4px solid #0292fe;
}

.tools-detail-contact {
	padding: 18px 20px;
	background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
	border-radius: 8px;
	border-left: 4px solid #2196f3;
	margin-top: auto;
}

.tools-detail-contact strong {
	color: #1976d2;
	margin-right: 8px;
}

/* 详情内容区 */
.tools-detail-content {
	margin-top: 40px;
}

.tools-detail-section {
	margin-bottom: 35px;
	padding: 25px;
	background: #fafbfc;
	border-radius: 10px;
	border: 1px solid #e8e8e8;
}

.tools-detail-section h3 {
	font-size: 22px;
	color: #1a1a1a;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 3px solid #0292fe;
	display: inline-block;
	font-weight: 600;
}

.tools-detail-section p {
	color: #555;
	line-height: 1.9;
	margin-bottom: 15px;
	font-size: 15px;
}

.tools-detail-specs {
	background: #fff;
	padding: 25px;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tools-detail-specs pre {
	margin: 0;
	color: #333;
	font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
	white-space: pre-wrap;
	word-wrap: break-word;
	line-height: 1.8;
	font-size: 14px;
}

/* 相关器械推荐 */
.related-tools {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 2px solid #e8e8e8;
}

.related-tools h3 {
	text-align: center;
	margin-bottom: 35px;
	color: #1a1a1a;
	font-size: 26px;
	font-weight: 600;
	position: relative;
	padding-bottom: 15px;
}

.related-tools h3::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	background: linear-gradient(90deg, #0292fe, #7c3aed);
	border-radius: 2px;
}

.related-tools .product-box {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 30px !important;
	margin: 0 !important;
}

.related-tools .product-item {
	flex: 0 0 calc(25% - 22.5px) !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	border: 1px solid rgba(0, 0, 0, 0.02);
}

.related-tools .product-item:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.related-tools .product-item a {
	display: block;
	height: 100%;
}

.related-tools .product-wrap {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.related-tools .product-item-info {
	padding: 15px;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.related-tools .product-item-info img {
	width: 100%;
	height: 200px;
	object-fit: contain;
	object-position: center;
	border-radius: 8px;
	margin-bottom: 15px;
	background: #f5f5f5;
	padding: 10px;
	box-sizing: border-box;
}

.related-tools .product-item-name {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.related-tools .product-item-summery {
	font-size: 13px;
	color: #888;
	line-height: 1.5;
	margin-bottom: 15px;
	height: 40px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}

.related-tools .product-item-price {
	font-size: 18px;
	color: #f5222d;
	font-weight: 700;
	margin-top: auto;
}

/* 桌面端固定布局，不做响应式适配 */

/* ========== 多图片轮播样式 ========== */

/* 轮播图容器 */
.tools-detail-image {
	position: relative;
	width: 100%;
}

.tools-detail-image .layui-carousel {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	margin-bottom: 15px;
}

.tools-detail-image .layui-carousel > div {
	background: #f5f5f5;
}

.tools-detail-image .layui-carousel img {
	width: 100%;
	height: 400px;
	object-fit: contain;
	background: #fff;
	cursor: zoom-in;
	transition: transform 0.3s ease;
}

.tools-detail-image .layui-carousel img:hover {
	transform: scale(1.02);
}

/* 隐藏轮播图指示器，通过缩略图控制 */
.tools-detail-image .layui-carousel-ind {
	display: none !important;
}

/* 轮播箭头样式优化 */
.layui-carousel[lay-arrow="always"] .layui-carousel-arrow {
	opacity: 0.7;
	background-color: rgba(0, 0, 0, 0.5);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.layui-carousel[lay-arrow="always"] .layui-carousel-arrow:hover {
	opacity: 1;
	background-color: rgba(0, 0, 0, 0.7);
	transform: scale(1.1);
}

.layui-carousel[lay-arrow="always"] .layui-carousel-arrow[lay-type="sub"] {
	left: 15px;
}

.layui-carousel[lay-arrow="always"] .layui-carousel-arrow[lay-type="add"] {
	right: 15px;
}

/* 缩略图列表 */
.tools-thumbnails {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 10px 0;
	scrollbar-width: thin;
	scrollbar-color: #ddd #f5f5f5;
}

.tools-thumbnails::-webkit-scrollbar {
	height: 6px;
}

.tools-thumbnails::-webkit-scrollbar-track {
	background: #f5f5f5;
	border-radius: 3px;
}

.tools-thumbnails::-webkit-scrollbar-thumb {
	background: #ddd;
	border-radius: 3px;
	transition: background 0.3s ease;
}

.tools-thumbnails::-webkit-scrollbar-thumb:hover {
	background: #bbb;
}

.thumbnail-item {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	border: 3px solid transparent;
	transition: all 0.3s ease;
	position: relative;
	background: #f5f5f5;
}

.thumbnail-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	cursor: pointer;
}

.thumbnail-item:hover {
	border-color: #1890ff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.thumbnail-item:hover img {
	transform: scale(1.05);
}

.thumbnail-item.active {
	border-color: #0292fe;
	box-shadow: 0 4px 12px rgba(2, 146, 254, 0.4);
}

.thumbnail-item.active::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(2, 146, 254, 0.1);
	pointer-events: none;
}

/* 单张图片样式（没有多图时） */
.tools-detail-image > img {
	width: 100%;
	height: auto;
	max-height: 500px;
	object-fit: contain;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	background: #f5f5f5;
	padding: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
	.tools-detail-image .layui-carousel img {
		height: 250px;
	}
	
	.thumbnail-item {
		width: 60px;
		height: 60px;
	}
	
	.layui-carousel[lay-arrow="always"] .layui-carousel-arrow {
		width: 32px;
		height: 32px;
	}
}
