@charset "utf-8";
a {
	color: #212529;
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
/* 产品列表区域*/
	.product-area {
	flex: 1;
	margin-left: 0;
	padding: 0px 0 20px 20px;
	/* 调整内边距，减少与侧边栏的间距*/
	transition: margin-left 0.3s ease-in-out;
}
.product-header {
	margin-bottom: 24px;
	/* 减少标题下方间距*/
	padding-top: 16px;
}
.product-header h2 {
	font-size: 26px;
	font-weight: bold;
	color: #1e293b;
}
.product-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	/* 稍微减少产品卡片间距*/
	
}
.product-card {
	background-color: white;
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	transition: transform 0.2s;
}
.product-card:hover {
	transform: translateY(-4px);
}
.product-image {
	width: 100%;
	height: 180px;
	/* 稍微减少图片高度*/
	object-fit: cover;
	background-color: #e2e8f0;
}
.product-title {
	padding: 14px;
	/* 稍微减少内边距*/
	font-size: 16px;
	font-weight: 500;
	text-align: center;
}
/* 响应式设计*/
	@media (min-width: 768px) {
	.product-list {
	grid-template-columns: repeat(3, 1fr);
}
} 
/* 新闻列表容器*/
	.newslist-container {
	margin: 0 auto;
	gap: 24px;
	display: flex;
	flex-direction: column;
}
/* 单条新闻卡片*/
	.news-item {
	display: flex;
	background-color: #fff;
	border-radius: 2px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}
.news-item:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
/* 新闻缩略图*/
	.news-thumbnail {
	width: 280px;
	height: 300px;
	flex-shrink: 0;
}
.news-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* 保持图片比例，避免拉伸变形*/
	
}
/* 新闻内容区（标题+摘要+阅读更多）*/
	.news-content {
	flex: 1;
	padding: 10px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.news-title {
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 12px;
	line-height: 1.4;
}
.news-excerpt {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	margin-bottom: 16px;
	flex: 1;
	/* 让摘要占满剩余空间，确保阅读更多在右下角*/
	
}
.news-readmore {
	align-self: flex-end;
	/* 右对齐阅读更多*/
	text-decoration: none;
	color: #3498db;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.3s ease;
}
.news-readmore:hover {
	color: #2980b9;
}
/* 分页导航*/
	.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 32px;
}
.pagination-btn {
	padding: 8px 16px;
	border: 1px solid #ddd;
	border-radius: 2px;
	background-color: #fff;
	color: #666;
	text-decoration: none;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
}
.pagination-btn:hover {
	border-color: #3498db;
	color: #3498db;
}
.pagination-btn.active {
	background-color: #3498db;
	color: #fff;
	border-color: #3498db;
}
.pagination-btn.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}
/* 响应式适配（移动端）*/
	@media (max-width: 768px) {
	.news-item {
	flex-direction: column;
	/* 移动端垂直排列：图片在上，内容在下*/
	
}
.news-thumbnail {
	width: 100%;
	height: 160px;
	/* 移动端图片高度适配*/
	
}
.news-title {
	font-size: 16px;
}
.news-excerpt {
	font-size: 13px;
}
.pagination-btn {
	padding: 6px 12px;
	font-size: 13px;
}
} 
/* 新闻头部*/
	.news-header {
	margin-bottom: 30px;
}
.news-title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 15px;
	color: #222;
}
.news-meta {
	display: flex;
	align-items: center;
	font-size: 14px;
	color: #666;
	margin-bottom: 20px;
}
.news-date, .news-author {
	display: flex;
	align-items: center;
}
.news-date::after {
	content: "•";
	margin: 0 10px;
	color: #ccc;
}
.news-meta svg {
	margin-right: 6px;
	width: 16px;
	height: 16px;
}
/* 新闻封面图*/
	.news-cover {
	width: 100%;
	border-radius: 2px;
	overflow: hidden;
	margin-bottom: 30px;
}
.news-cover img {
	width: 100%;
	height: auto;
	display: block;
}
.cover-caption {
	font-size: 13px;
	color: #777;
	padding: 8px 0;
	text-align: center;
}
/* 新闻正文*/
	.news-content {
	font-size: 16px;
	color: #444;
}
.news-content p {
	margin-bottom: 20px;
	line-height: 1.8;
}
.news-content h3 {
	font-size: 20px;
	color: #222;
}
.news-content img {
	max-width: 100%;
	height: auto;
	margin: 25px auto;
	display: block;
	border-radius: 2px;
}
/* 引用样式*/
	.news-quote {
	border-left: 3px solid #3498db;
	padding: 10px 15px;
	margin: 25px 0;
	background-color: #f0f7ff;
	font-style: italic;
	color: #555;
}
/* 上下篇导航*/
	.news-navigation {
	padding: 20px 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
}
.nav-prev, .nav-next {
	width: 48%;
}
.nav-label {
	font-size: 13px;
	color: #666;
	margin-bottom: 5px;
	display: block;
}
.nav-link {
	color: #3498db;
	text-decoration: none;
	font-size: 15px;
	line-height: 1.5;
	transition: color 0.2s ease;
}
.nav-link:hover {
	color: #2980b9;
	text-decoration: underline;
}
.nav-disabled {
	color: #ccc;
	cursor: not-allowed;
}
.nav-disabled:hover {
	color: #ccc;
	text-decoration: none;
}
/* 标签区域*/
	.news-tags {
	margin: 30px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.news-tag {
	text-decoration: none;
	font-size: 13px;
	color: #3498db;
	padding: 5px 12px;
	border: 1px solid #e1eaf5;
	border-radius: 2px;
	transition: all 0.2s ease;
}
.news-tag:hover {
	background-color: #3498db;
	color: white;
	border-color: #3498db;
}
/* 相关新闻*/
	.related-news {
	margin-top: 50px;
	padding-top: 30px;
}
.related-title {
	font-size: 18px;
	margin-bottom: 20px;
	color: #222;
	font-weight: 600;
}
.related-list {
	display: grid;
	grid-template-columns: 1fr;
}
.related-item {
	padding: 10px 0;
	border-radius: 2px;
	transition: transform 0.2s ease;
}
.related-item:hover {
	transform: translateY(-3px);
}
.related-link {
	text-decoration: none;
	color: #333;
}
.related-link:hover {
	color: #3498db;
}
/* 响应式设计*/
	@media (max-width: 768px) {
	.news-title {
	font-size: 24px;
}
.news-container {
	padding: 20px 15px;
}
.news-content {
	font-size: 15px;
}
.news-content h3 {
	font-size: 18px;
}
.news-navigation {
	flex-direction: column;
	gap: 15px;
}
.nav-prev, .nav-next {
	width: 100%;
}
}
.news-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 32px;
}
.pagination-btn {
	padding: 8px 16px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fff;
	color: #666;
	text-decoration: none;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
}
.pagination-btn:hover {
	border-color: #3498db;
	color: #3498db;
}
.pagination-btn.active {
	background-color: #3498db;
	color: #fff;
	border-color: #3498db;
}
.pagination-btn.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}
.sidebar {
	width: 280px;
	height: 100%;
	background-color: #ffffff;
	border-right: 1px solid #e5e7eb;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
}
.sidebar-header {
	padding: 16px 20px;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.sidebar-header h2 {
	font-size: 18px;
	font-weight: 600;
	color: #1f2937;
	margin: 0;
}
.close-sidebar {
	background: none;
	border: none;
	color: #6b7280;
	cursor: pointer;
	display: none;
	/* 桌面端隐藏*/
	font-size: 18px;
}
/* 导航菜单*/
	.nav-menu2 {
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-item {
	border-bottom: 1px solid #f3f4f6;
}
/* 分类切换按钮*/
	.category-toggle {
	width: 100%;
	padding: 14px 20px;
	background: none;
	border: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	color: #374151;
	text-align: left;
	transition: background-color 0.2s ease;
}
.category-toggle:hover {
	background-color: #f9fafb;
}
.category-toggle:focus {
	outline: none;
	background-color: #f3f4f6;
}
/* 箭头图标*/
	.chevron {
	font-size: 12px;
	color: #9ca3af;
	transition: transform 0.3s ease;
}
/* 子菜单样式*/
	.category-submenu {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.35s ease-out;
	background-color: #f9fafb;
}
.category-submenu.active {
	max-height: 500px;
	/* 足够容纳子菜单内容*/
	transition: max-height 0.5s ease-in;
}
.submenu-link {
	display: block;
	padding: 12px 20px 12px 36px;
	color: #4b5563;
	text-decoration: none;
	font-size: 14px;
	transition: all 0.2s ease;
}
.submenu-link:hover {
	color: #1d4ed8;
	background-color: #f1f5f9;
	padding-left: 38px;
}
.submenu-link.active {
	color: #1d4ed8;
	font-weight: 500;
	background-color: #eff6ff;
}
@media (max-width: 768px) {
	/* 手机端完全隐藏侧边栏*/
	.sidebar {
	display: none !important;
}
.close-sidebar {
	display: none !important;
}
}
:root {
	--primary: #3B82F6;
	--primary-light: #60A5FA;
	--primary-dark: #2563EB;
	--secondary: #64748B;
	--neutral: #F1F5F9;
	--dark: #1E293B;
	--light-gray: #F8FAFC;
	--border-gray: #E2E8F0;
	--white: #FFFFFF;
	--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	--shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
	--transition: all 0.3s ease-in-out;
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	background-color: #F9FAFB;
	color: var(--dark);
	line-height: 1.6;
}
.product-container {
	margin: 0 auto;
}
.product-name {
	margin-bottom: 2rem;
}
.product-name h1 {
	font-size: clamp(1.8rem, 4vw, 2rem);
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: var(--dark);
}
.underline {
	width: 60px;
	height: 3px;
	background-color: var(--primary);
	border-radius: 3px;
}
.product-content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-bottom: 3rem;
}
@media (min-width: 1024px) {
	.product-content {
	grid-template-columns: 1fr 1fr;
}
} .image-gallery {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.main-image-container {
	border-radius: 8px;
	transition: var(--transition);
}
.main-image-container:hover {
	box-shadow: var(--shadow-hover);
}
.main-image {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	transition: var(--transition);
}
.thumbnail-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.75rem;
}
.thumbnail-item {
	cursor: pointer;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: var(--transition);
}
.thumbnail-item:hover {
	box-shadow: var(--shadow);
}
.thumbnail {
	width: 100%;
	height: 6rem;
	object-fit: cover;
	transition: var(--transition);
}
.product-image-active {
	border: 2px solid var(--primary);
}
.product-info {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.info-card {
	border-radius: 8px;
	padding: 1.5rem;
}
.info-card h2 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1rem;
}
.info-card p {
	color: var(--secondary);
	margin-bottom: 1.5rem;
	line-height: 1.7;
}
.info-card h3 {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
}
.spec-list {
	list-style: none;
	margin-bottom: 1.5rem;
}
.spec-list li {
	display: flex;
	justify-content: space-between;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--border-gray);
}
.spec-list li:last-child {
	border-bottom: none;
}
.spec-list span:first-child {
	color: var(--secondary);
}
.button-group {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
@media (min-width: 640px) {
	.button-group {
	flex-direction: row;
}
} .btn-link {
	text-decoration: none;
}
.btn {
	padding: 0.75rem 1.5rem;
	border-radius: 6px;
	font-weight: 500;
	font-size: 1rem;
	cursor: pointer;
	transition: var(--transition);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: none;
	width: 100%;
}
@media (min-width: 640px) {
	.btn {
	width: auto;
}
} .btn-primary {
	background-color: var(--primary);
	color: white;
	box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}
.btn-primary:hover {
	background-color: var(--primary-dark);
	box-shadow: 0 6px 10px rgba(59, 130, 246, 0.3);
}
.btn-secondary {
	background-color: var(--white);
	color: var(--primary);
	border: 1px solid var(--primary);
}
.btn-secondary:hover {
	background-color: rgba(59, 130, 246, 0.05);
}
.tabs-container {
	background-color: var(--white);
	border-radius: 8px;
	box-shadow: var(--shadow);
	margin-bottom: 3rem;
	overflow: hidden;
}
.tabs-nav {
	display: flex;
	border-bottom: 1px solid var(--border-gray);
	overflow-x: auto;
}
.tab-button {
	padding: 1rem 1.5rem;
	font-weight: 500;
	border: none;
	background: none;
	cursor: pointer;
	transition: var(--transition);
	border-bottom: 2px solid transparent;
	white-space: nowrap;
}
.tab-active {
	color: var(--primary);
	border-bottom-color: var(--primary);
}

.tab-button:not(.tab-active) {
	color: var(--secondary);
}
.tab-button:not(.tab-active):hover {
	color: var(--primary);
}
.tab-content {
	padding: 1.5rem;
	display: none;
}
#detail-tab {
	display: block;
}
.tab-content img {
	max-width: 100%;
	margin: auto;
}
.tab-content h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1rem;
}
.detail-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}
@media (min-width: 768px) {
	.detail-grid {
	grid-template-columns: 1fr 1fr;
}
} .feature-list {
	list-style: none;
	margin-bottom: 1.5rem;
}
.feature-list li {
	display: flex;
	margin-bottom: 0.75rem;
}
.feature-list i {
	color: var(--primary);
	margin-right: 1rem;
	margin-top: 0.25rem;
}
.shipping-options {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 1.5rem 0;
}
@media (min-width: 768px) {
	.shipping-options {
	grid-template-columns: repeat(3, 1fr);
}
} .shipping-option {
	background-color: var(--neutral);
	padding: 1rem;
	border-radius: 6px;
}
.shipping-option h4 {
	font-weight: 600;
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.shipping-option h4 i {
	color: var(--primary);
}
.shipping-option p:first-of-type {
	color: var(--secondary);
	margin-bottom: 0.5rem;
}
.payment-options {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
	.payment-options {
	grid-template-columns: 1fr 1fr;
}
} .payment-option {
	display: flex;
	gap: 1rem;
	padding: 0.75rem;
	border: 1px solid var(--border-gray);
	border-radius: 6px;
	transition: var(--transition);
}
.payment-option:hover {
	border-color: var(--primary);
}
.payment-option i {
	font-size: 1.5rem;
	margin-top: 0.25rem;
}
.payment-info h4 {
	font-weight: 600;
	margin-bottom: 0.25rem;
}
.payment-info p {
	color: var(--secondary);
	font-size: 0.875rem;
}
.security-info {
	background-color: var(--neutral);
	padding: 1rem;
	border-radius: 6px;
}
.security-info h4 {
	font-weight: 600;
	margin-bottom: 0.5rem;
}
.security-info p {
	color: var(--secondary);
	font-size: 0.875rem;
}
.popular-products {
	margin-bottom: 2rem;
}
.section-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
}
.section-title span {
	display: flex;
	align-items: center;
}
.section-title:after {
	content: '';
	flex-grow: 1;
	height: 1px;
	background-color: var(--border-gray);
	margin-left: 1rem;
}
.products-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}
@media (min-width: 640px) {
	.products-grid {
	grid-template-columns: repeat(2, 1fr);
}
} @media (min-width: 1024px) {
	.products-grid {
	grid-template-columns: repeat(3, 1fr);
}
} .product-card {
	background-color: var(--white);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: var(--transition);
}
.product-card:hover {
	box-shadow: var(--shadow-hover);
}
.product-image-container {
	position: relative;
	overflow: hidden;
}
.product-image {
	width: 100%;
	height: 12rem;
	object-fit: cover;
	transition: var(--transition);
}
.product-card:hover .product-image {
	transform: scale(1.05);
}
.product-details {
	}
.product-title {
	font-weight: 600;
	margin-bottom: 0.5rem;
	transition: var(--transition);
}
.product-card:hover .product-title {
	color: var(--primary);
}
.product-description {
	color: var(--secondary);
	font-size: 0.875rem;
	margin-bottom: 0.75rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.view-details {
	color: var(--primary);
	font-weight: 500;
	font-size: 0.875rem;
	cursor: pointer;
	transition: var(--transition);
	display: flex;
	align-items: center;
	gap: 0.25rem;
	background: none;
	border: none;
	padding: 0;
}
.view-details:hover {
	color: var(--primary-dark);
}
.view-details-link {
	text-decoration: none;
	color: inherit;
}