:root {
	--bg: #ffffff;
	--muted: #6b7280;
	--accent: #0f62fe;
	--shadow: 0 8px 24px rgba(15, 22, 40, 0.08);
	--container: 1200px;
	--border: #e5e7eb;
	--light-bg: #f9fafb;
}



/* 页眉容器 */
.site-header {
	background: var(--bg);
	box-shadow: 0 2px 10px 1px rgba(0, 0, 0, 0.19);
	position: sticky;
	top: 0;
	z-index: 100;
}

.wrap {
	max-width: var(--container);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 26px 18px;
	position: relative;
}

.logo {
	display: flex;
	align-items: center;
	margin-right: 30px;
	flex-shrink: 0;
}

.logo img {
	height: 60px;
	width: auto;
}

/* 导航区域 */
.nav-container {
	display: flex;
	align-items: center;
	flex: 1;
	justify-content: flex-end;
}

.desktop-nav {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.navtop-item {
	position: relative;
}

.top-link {
	padding: 10px 16px;
	display: inline-flex;
	align-items: center;
	color: #111827;
	text-decoration: none;
	border-radius: 8px;
	font-size: 20px;
	transition: all 0.2s;
	white-space: nowrap;
}

.top-link:hover,
.top-link:focus {
	background: #f1f5f9;
	color: var(--accent);
	outline: none;
}

.top-link i {
	margin-left: 6px;
	font-size: 14px;
	color: #9ca3af;
	transition: transform 0.3s;
}

.navtop-item:hover .top-link i {
	transform: rotate(180deg);
}

/* 鼠标悬停过渡区域 */
.mega-container {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 16px;
	z-index: 95;
}

/* Mega menu */
.mega {
	position: absolute;
	top: calc(100% + 16px);
	left: 0;
	display: none;
	width: min(920px, 80vw);
	background: var(--bg);
	padding: 20px;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	box-shadow: var(--shadow);
	border-radius: 12px;
	z-index: 90;
	opacity: 0;
	/* 这里去掉 transform: translateY(10px); 避免看起来“横向出现” */
	transition: opacity 0.25s ease, top 0.25s ease;
}

.navtop-item:hover .mega {
	display: grid;
	opacity: 1;
	/* 用 top 微调产生轻微的下拉感 */
	top: calc(100% + 12px);
}

.mega h4 {
	margin: 0 0 5px 0;
	font-size: 15px;
	color: #0f172a;
	font-weight: 600;
	padding-bottom: 8px;
	/* border-bottom: 1px solid var(--border); */
}

.mega h4 a {
	margin: 0 0 5px 0;
	font-size: 15px;
	color: #0f172a;
	font-weight: 600;
	padding-bottom: 8px;
}

.mega ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mega a {
	text-decoration: none;
	color: var(--muted);
	font-size: 14px;
	transition: color 0.2s;
	display: block;
	padding: 1px 0;
}

.mega a:hover {
	color: var(--accent);
}

.col {
	min-width: 160px;
}

.mega .col .sub {
	font-size: 13px;
	color: #374151;
	margin-top: 8px;
	margin-bottom: 8px;
	font-weight: 500;
}

/* 搜索区域 */
.search-container {
	display: flex;
	align-items: center;
	margin-left: 20px;
}

.search-wrap {
	display: flex;
	align-items: center;
	background: #f8fafc;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s ease;
	width: 40px;
	border: 1px solid transparent;
}

.search-wrap.expanded {
	width: 260px;
	border: 1px solid var(--border);
}

.search-input {
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 14px;
	color: #111827;
	width: 0;
	padding: 0;
	transition: all 0.3s ease;
}

.search-wrap.expanded .search-input {
	width: 200px;
	padding: 8px 12px;
}

.search-icon,
.search-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	cursor: pointer;
	color: var(--muted);
	border: none;
	background: transparent;
}

.search-submit {
	display: none;
	color: var(--accent);
}

.search-wrap.expanded .search-submit {
	display: flex;
}

/* 手机菜单按钮 */
.mobile-menu-button {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	cursor: pointer;
	color: var(--muted);
	border-radius: 8px;
	margin-left: 10px;
}

.mobile-menu-button:hover {
	background: #f1f5f9;
}

/* 手机面板 */
#mobile-toggle {
	display: none;
}

.mobile-panel {
	position: fixed;
	left: 0;
	top: 0;
	height: 100vh;
	width: 84%;
	max-width: 360px;
	background: var(--bg);
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	z-index: 200;
	box-shadow: 10px 0 30px rgba(11, 15, 22, 0.12);
	padding: 20px;
	overflow: auto;
	display: flex;
	flex-direction: column;
}

#mobile-toggle:checked+.mobile-panel {
	transform: translateX(0);
}

.mobile-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--border);
}

.mobile-header .logo img {
	height: 32px;
}

.close-menu {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: var(--muted);
}

/* 手机版搜索框默认隐藏 */
.mobile-search {
	display: none;
	background: #f3f4f6;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 20px;
}

/* 只在菜单展开时显示 */
#mobile-toggle:checked~.mobile-panel .mobile-search {
	display: flex;
}

.mobile-search input {
	flex: 1;
	border: 0;
	outline: 0;
	background: transparent;
	padding: 12px 15px;
	font-size: 15px;
}

.mobile-search button {
	background: none;
	border: none;
	padding: 0 15px;
	cursor: pointer;
	color: var(--accent);
}

.mobile-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.mobile-item {
	border-bottom: 1px solid var(--border);
}

.mobile-item>a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 10px;
	text-decoration: none;
	color: #111827;
	font-weight: 500;
	position: relative;
}

.mobile-item>a i {
	transition: transform 0.3s ease;
	font-size: 14px;
}

.mobile-item.open>a i {
	transform: rotate(90deg);
}

.mobile-sub {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	background: var(--light-bg);
}

.mobile-sub.open {
	max-height: 1000px;
}

.mobile-sub .mobile-item {
	border-bottom: 1px solid #edf2f7;
	padding-left: 20px;
}

.mobile-sub-2 {
	background: #f3f4f6;
}

.mobile-sub-2 .mobile-item {
	padding-left: 30px;
}

.mobile-sub-3 {
	background: #e5e7eb;
}

/* 最下级分类样式优化 */
.mobile-sub-3 .mobile-item {
	padding-left: 40px;
	border-bottom: none;
}

.mobile-sub-3 a {
	font-weight: normal;
	color: #4b5563;
	padding: 12px 8px;
	text-decoration: none;
	display: block;
	position: relative;
	transition: all 0.2s;
	border-bottom: none !important;
}

.mobile-sub-3 a:before {
	content: "•";
	color: var(--accent);
	margin-right: 8px;
	font-size: 16px;
}

.mobile-sub-3 a:hover {
	color: var(--accent);
	background-color: rgba(15, 98, 254, 0.05);
}


/* 页面内容 */
.content {
	max-width: var(--container);
	margin: 30px auto;
	padding: 0 20px;
}

.demo-section {
	background: #fff;
	padding: 25px;
	border-radius: 12px;
	box-shadow: var(--shadow);
}

.demo-section h2 {
	margin-bottom: 15px;
	color: #1f2937;
}

.demo-section p {
	color: var(--muted);
	line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 1024px) {
	.mega {
		width: min(800px, 85vw);
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 900px) {
	.desktop-nav {
		display: none;
	}

	.search-wrap {
		width: 40px;
	}

	.search-wrap.expanded {
		width: 220px;
	}

	.search-wrap.expanded .search-input {
		width: 160px;
	}

	.mobile-menu-button {
		display: flex;
	}

	.nav-container {
		justify-content: flex-end;
	}
}

@media (max-width: 600px) {
	.wrap {
		padding: 10px 15px;
	}

	.logo img {
		height: 32px;
	}

	.search-wrap.expanded {
		width: 180px;
	}

	.search-wrap.expanded .search-input {
		width: 120px;
	}
}

/* 遮罩层 */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 150;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

#mobile-toggle:checked~.overlay {
	opacity: 1;
	visibility: visible;
}

/* 默认显示 */
.desktop-only {
	display: block;
}

/* 小于 900px 隐藏（对应你的移动端断点） */
@media (max-width: 500px) {
	.desktop-only {
		display: none !important;
	}
}


/* topnav */

.current-location-wrapper {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 16px;
	/* 小屏内边距 */
	box-sizing: border-box;
}

.current-location {
	padding: 16px 0;
	text-align: left;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	font-size: 16px;
	color: #333;
	border-bottom: 1px dashed #ddd;
}

.current-location ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.current-location li {
	white-space: nowrap;
}

.current-location li:not(:last-child)::after {
	content: ">";
	margin: 0 6px;
	color: #aaa;
}

.current-location li a {
	color: #333;
	/* 统一文字颜色 */
	text-decoration: none;
	/* 去掉下划线 */
}

.current-location li a:hover {
	color: #0e9b43;
	/* 和主题色一致 */
	text-decoration: underline;
	/* 可选：加下划线提示可点击 */
}

.divider-space {
	height: 24px;
	/* 可根据需要调整，比如 32px、40px */
}

/* 响应式优化 */
@media (min-width: 1200px) {
	.current-location-wrapper {
		padding: 0;
	}
}

/*分页*/
.pager {
	text-align: center;
	margin: 20px 0;
}

.pager ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center
}

.pager ul li {
	display: inline-block;
}

.pager ul li a {
	padding: 5px 10px;
	margin: 10px 2px;
	border: #dddddd solid 1px;
	display: inline-block;
	border-radius: 3px;
}

.pager ul li a:hover {
	border: #3ea8e2 solid 1px;
	color: #3ea8e2
}

.pager ul .active a {
	border: #dddddd solid 1px;
	display: inline-block;
	background-color: #eee;
	background-color: #0e9b43;
	border-radius: 3px;
	color: #fff;
}

.pager ul a:not([href]):not([class]):hover {
	border: #dddddd solid 1px;
}

.pager ul .active a:hover {
	color: #fff;
	border: #0e9b43 solid 1px !important;
}

/* 左侧区域 */
.sidebartop {
	border-radius: 5px;
}

/* 表单区域 */
.contact-form {
	border: 3px solid #0e9b43;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 8px;
	margin: 5px 0 5px;
	border: 1px solid #ddd;
	border-radius: 3px;
}

.contact-form button {
	width: 100%;
	padding: 12px;
	background: #0e9b43;
	color: #fff;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-weight: bold;
}

/* 添加或修改你的 CSS 样式 */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	/* 其他样式... */

	/* 确保默认有一个边框 */
	border: 1px solid #ccc;
	transition: border-color 0.3s ease;
	/* 平滑过渡效果 */
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
	/* 当元素获得焦点时，改变边框颜色 */
	border-color: #0e9b43;
	/* 使用你的主题色或其他你喜欢的颜色 */
	outline: none;
	/* 移除默认的outline样式 */
}

/* 右侧区域 */
.main-content {
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	padding: 20px;
	margin-bottom: 60px;
}

/* 面包屑 */
.breadcrumb {
	background: transparent;
	padding: 0;
	margin-bottom: 20px;
}

/* 产品列表 */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
	margin-top: 20px;
}

.product-card {
	border: 1px solid #ddd;
	border-radius: 5px;
	overflow: hidden;
	text-align: center;
}

.product-image {
	padding: 6px;
	background: #f8f8f8;
}

.product-image img {
	max-width: 100%;
	height: auto;
}

.product-desc {
	padding: 15px;
	font-size: 0.9rem;
	color: #666;
}

.product-btn {
	padding: 12px 0;
	background: #0e9b43;
	color: #fff;
	font-weight: bold;
	text-decoration: none;
	display: block;
}

.product-image img {
	max-width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.product-image img:hover {
	transform: scale(1.05);
}

.product-desc p a {
	color: #666;
	text-decoration: none;
}

.product-desc p a:hover {
	color: #0e9b43;
	text-decoration: underline;
}



/* 响应式调整 */
@media (max-width: 768px) {
	.product-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	}
}

/* 侧边导航 */
.sidebar {
	background: #fff;
	border: 3px solid #0e9b43;
	margin-top: 20px;
	margin-bottom: 50px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar .sidebar-title {
	background: #3a8b3a;
	color: #fff;
	font-size: 18px;
	font-weight: bold;
	padding: 10px 15px;
}

.sidebar .menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar .menu-item {
	border-bottom: 1px solid #eee;
}

.sidebar .menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 15px;
	font-weight: bold;
	cursor: pointer;
	user-select: none;
}

.sidebar .menu-header a {
	text-decoration: none;
	color: inherit;
	flex: 1;
}

.sidebar .menu-header:hover {
	background: #f7f7f7;
}

.sidebar .submenu {
	list-style: none;
	margin: 0;
	padding: 0 0 5px 25px;
	display: none;
}

.sidebar .submenu li:hover {
	background: #f7f7f7;
}

.sidebar .submenu li a {
	display: block;
	padding: 6px 0;
	/* 调整内边距 */
	margin: 4px 0;
	/* 增加上下间距 */
	font-size: 14px;
	text-decoration: none;
	color: #333;
}

.sidebar .submenu li a:hover {
	color: #3a8b3a;
}

.rotate {
	transform: rotate(180deg);
	transition: transform 0.3s;
}

/* 手机端隐藏侧边导航 */
@media (max-width: 768px) {
	.sidebar {
		display: none;
	}
}

/* 全局重置 & 响应式基础 */
img {
	display: inline-block;
	max-width: 100%;
	height: auto;
}

/* 响应式表格核心样式 */
table {
	width: 100% !important;
	/* 强制覆盖 width="948" */
	max-width: 100%;
	/* 防止超出容器 */
	overflow-x: auto;
	/* 如果内容实在太多，允许横向滚动 */
	display: block;
	/* 在小屏上让 overflow-x 生效 */
	border-collapse: collapse;
	margin-bottom: 20px;
}

/* 手机横屏或平板以上设备：恢复原宽度（可选） */
@media (min-width: 768px) {
	table {
		width: 948px !important;
		margin: 0 auto;
		/* 居中显示 */
		margin-bottom: 20px;
	}
}

/* 保持你原来的其他样式 */
th,
td {
	padding: 8px 12px;
	text-align: left;
	border: 1px solid #ccc;
}

tr:nth-child(even) {
	background-color: #fafafa;
}

/* —————————— 外层容器：总宽度75%，居中 —————————— */
.detail-wrapper {
	max-width: 75%;
	padding: 0 15px;
	border: 1px solid #ccc;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	margin-bottom: 50px;
	padding-bottom: 20px;
}

/* —————————— 图文并排区域 —————————— */
.media-row {
	display: flex;
	gap: 30px;
	align-items: flex-start;
	padding: 15px 0px 35px 0px;
	border-radius: 16px;
	transition: box-shadow 0.3s ease;
}

.media-image {
	flex: 0 0 533px;
	border-radius: 5px;
	overflow: hidden;
}

.media-image img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.media-image img:hover {
	transform: scale(1.03);
}

.media-info {
	flex: 1;
}

.media-info h1 {
	font-size: 26px;
	font-weight: 700;
	color: #222;
	margin-bottom: 8px;
	line-height: 1.3;
}

.subtitle {
	font-size: 18px;
	color: #666;
	margin-bottom: 25px;
}

/* ———— 信息区块 ———— */
.info-section {
	margin-bottom: 2px;
}

.info-section h3 {
	font-size: 16px;
	font-weight: 600;
	color: #0e9b43;
	margin-bottom: 12px;
	padding-bottom: 6px;
	border-bottom: 1px dashed #e0e0e0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.info-section ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.info-section li {
	margin-bottom: 3px;
	font-size: 15px;
	color: #444;
	line-height: 2.2;
	border-bottom: 1px dashed #e0e0e0;
}

.price {
	color: #d32f2f;
	font-size: 18px;
	font-weight: 700;
}

.badge {
	background: #0e9b43;
	color: white;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 12px;
	margin-left: 8px;
}

/* ———— 注意事项区块 ———— */
.notice-box {
	background: #f8fafc;
	border: 1px solid #e0e7ff;
	border-radius: 5px;
	padding: 10px;
	margin: 15px 0;
	font-size: 14px;
	color: #555;
}

.notice-box p {
	margin: 6px 0;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.notice-box i {
	color: #0e9b43;
	margin-top: 3px;
}

/* ———— 按钮美化 ———— */
.action-btn {
	background: linear-gradient(135deg, #0e9b43, #0a7a35);
	color: white;
	border: none;
	padding: 10px 10px;
	border-radius: 5px;
	font-weight: 600;
	cursor: pointer;
	font-size: 18px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 4px 10px rgba(14, 155, 67, 0.3);
	transition: all 0.3s ease;
	margin-top: 15px;
}

.action-btn:hover {
	background: linear-gradient(135deg, #0a7a35, #075c28);
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(14, 155, 67, 0.4);
}

/* —————————— 下方正文区域 —————————— */
.detail-body {
	background: #fff;
	border-radius: 16px;
	margin-top: 40px;
}

.detail-body h2 {
	font-size: 22px;
	font-weight: 700;
	color: #3a8b3a;
	margin-bottom: 20px;
	border-bottom: 2px solid #f0f0f0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.detail-body p {
	margin-bottom: 16px;
	line-height: 1.8;
	color: #444;
	font-size: 15px;
	text-align: justify;
}

/* —————————— 响应式：手机端堆叠 —————————— */
@media (max-width: 768px) {
	.detail-wrapper {
		max-width: 95%;
		margin: 20px auto;
	}

	.media-row {
		flex-direction: column;
		padding: 1px 1px;
	}

	.media-image {
		flex: none;
		width: 100%;
		margin-bottom: 25px;
	}

	.media-info h1 {
		font-size: 22px;
	}

	.subtitle {
		font-size: 16px;
	}

	.detail-body {
		padding: 25px 20px;
		margin-top: 30px;
	}

	.detail-body h2 {
		font-size: 20px;
	}
}

/* ===== 返回顶部 ===== */
#backToTop {
	display: none;
	position: fixed;
	bottom: 80px;
	/* 避开底部导航 */
	right: 20px;
	width: 44px;
	height: 44px;
	background-color: #007bff;
	color: white;
	border-radius: 50%;
	text-align: center;
	line-height: 44px;
	font-size: 20px;
	text-decoration: none;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	z-index: 9999;
	transition: background-color 0.3s ease;
}

#backToTop:hover {
	background-color: #0056b3;
}

/* ===== 移动端底部导航 ===== */
.mobile-nav {
	display: none;
	/* 默认隐藏 → 电脑端不显示！ */
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 60px;
	background: #fff;
	border-top: 1px solid #eee;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	z-index: 9998;
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 0;
	margin: 0;
}

.nav-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 23%;
	/* 留点空间给分隔线 */
	height: 100%;
	color: #333;
	text-decoration: none;
	font-size: 12px;
	transition: background 0.2s;
	z-index: 2;
}

.nav-btn i {
	font-size: 18px;
	margin-bottom: 4px;
	color: #007bff;
}

.nav-btn:hover {
	background: #f0f0f0;
	color: #007bff;
}

/* 分隔线样式 */
.nav-divider {
	width: 1px;
	height: 24px;
	background: #ccc;
	opacity: 0.5;
	z-index: 1;
}

/* 手机显示 */
@media (max-width: 768px) {
	.mobile-nav {
		display: flex !important;
	}

	#backToTop {
		display: block;
		bottom: 80px;
	}
}

/* 电脑端强制隐藏（双重保险） */
@media (min-width: 769px) {
	.mobile-nav {
		display: none !important;
	}
}