/* 全局样式设置 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
/* 设置默认字体为 "PingFang SC"、"Microsoft YaHei" 或无衬线字体。 */

/* 页面主体样式 */
body {
	background-color: #f5f5f5;
	color: #333;
	line-height: 1.6;
}

/* 页面主体样式*/
a {
	text-decoration: none;
	color: inherit;
}
/* 列表样式*/
ul {
	list-style: none;
}
/* 按钮样式 .btn */
.btn {
	display: inline-block;
	padding: 10px 20px;
	background: linear-gradient(to right, #ff2441, #ff6b6b);
	color: white;
	border-radius: 30px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(255, 36, 65, 0.3);
}
/* 鼠标悬停时轻微上移并加深阴影。*/
.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(255, 36, 65, 0.4);
}

/* 顶部导航样式 */
.header {
	position: sticky;
	top: 0;
	background-color: white;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	z-index: 1000;
}
/* 导航容器*/
.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 15px 20px;
}
/* logo样式 .btn */
.logo {
	display: flex;
	align-items: center;
	font-size: 24px;
	font-weight: 700;
	color: #ff2441;
}

.logo-icon {
	margin-right: 8px;
	font-size: 26px;
}
/* 搜索框样式 .btn */
.search-bar {
	flex: 0 1 500px;
	margin: 0 20px;
	position: relative;
}
/* 搜索输入框样式  .btn */
.search-bar input {
	width: 100%;
	padding: 12px 20px 12px 45px;
	border-radius: 30px;
	border: 1px solid #eee;
	background-color: #f8f8f8;
	font-size: 14px;
	transition: all 0.3s;
}
/* 输入框聚焦状态样式 */
.search-bar input:focus {
	outline: none;
	border-color: #ff2441;
	background-color: white;
	box-shadow: 0 0 0 2px rgba(255, 36, 65, 0.2);
}
/* 搜索图标伪元素 */
.search-bar::before {
	content: "\f002";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
	font-size: 16px;
}
/* 导航链接 */
.nav-links {
	display: flex;
	align-items: center;
	gap: 30px;
}
/* 导航链接项a 垂直排列图标与文字，用于导航菜单。*/
.nav-links a {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 12px;
	transition: color 0.3s;
}
/* 导航链接项a i 定义导航图标的大小与间距。*/
.nav-links a i {
	font-size: 20px;
	margin-bottom: 4px;
}
/* 导航链接悬停样式 鼠标悬停时改变链接颜色。 */
.nav-links a:hover {
	color: #ff2441;
}

/* 轮播图样式   轮播图容器*/
.slider-container {
	position: relative;
	max-width: 1200px;
	margin: 20px auto;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
/* 轮播图样式   定义轮播图的高度*/
.slider {
	position: relative;
	height: 400px;
}
/* 轮播图样式    单个轮播项*/
.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 1s ease;
	background-size: cover;
	background-position: center;
}
/* 轮播图样式  当前轮播项 激活状态下淡入当前幻灯片。*/
.slide.active {
	opacity: 1;
}
/* 轮播图样式   定义轮播图中的文字内容区域。*/
.slide-content {
	position: absolute;
	top: 50%;
	left: 80px;
	transform: translateY(-50%);
	color: white;
	max-width: 450px;
}
/* 轮播图样式   轮播标题*/
.slide-content h2 {
	font-size: 42px;
	margin-bottom: 15px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
/* 轮播图样式   轮播描述*/
.slide-content p {
	font-size: 18px;
	margin-bottom: 25px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
/* 轮播图样式 定义轮播图底部分页点的位置和布局。*/
.slider-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
}
/* 轮播图样式 定义分页点的默认样式。*/
.dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background-color 0.3s;
}
/*  激活分页点 激活状态下放大并变为纯白色。*/
.dot.active {
	background-color: white;
	transform: scale(1.2);
}

.slider-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 0 20px;
}
/*  轮播导航按钮 左右切换 。*/
.slider-nav-btn {
	width: 50px;
	height: 50px;
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	font-size: 24px;
	cursor: pointer;
	transition: all 0.3s;
}
/*鼠标悬停时改变按钮颜色。*/
.slider-nav-btn:hover {
	background-color: rgba(0, 0, 0, 0.6);
}
/* 分类导航样式 */
.categories {
    max-width: 1200px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
/* 分类项目	样式 */
.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: pointer;
}
/* 分类** 悬停样式 鼠标悬停时改变分类颜色。*/
.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}
/* 分类图标样式 */
.category i {
    font-size: 30px;
    color: #ff2441;
    margin-bottom: 15px;
}
/* 分类名称样式 */
.category span {
    font-size: 14px;
    font-weight: 500;
}

/* 分类内容区块样式 */
.category-content {
    display: none; /* 初始隐藏所有分类内容 */
    padding: 20px;
    background-color: #fff;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 显示分类内容 */
.category-content.active {
    display: block;
}


/* 商品区域样式 */
.main-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}
/** 商品标题样式 */
.section-title {
	position: relative;
	margin: 40px 0 25px;
	font-size: 24px;
	font-weight: 700;
	padding-left: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
/** 显示所有按钮样式 */
.section-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 24px;
	background-color: #ff2441;
	border-radius: 2px;
}
/* 查看所有按钮样式 */
.view-all {
	font-size: 14px;
	color: #999;
	transition: color 0.3s;
}
/** 鼠标悬停时改变按钮颜色。*/
.view-all:hover {
	color: #ff2441;
}
/* 商品列表样式 */
.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
/** 商品卡片样式 */
.product-card {
	position: relative;
	background-color: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transition: all 0.3s;
	cursor: pointer;
}
/* 鼠标悬停时改变卡片颜色。*/
.product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
/** 商品图片样式 */
.product-image {
	height: 280px;
	background-size: cover;
	background-position: center;
}
/** 优惠标签样式 */
.badge {
	position: absolute;
	top: 15px;
	left: 15px;
	padding: 4px 12px;
	background-color: #ff2441;
	color: white;
	font-size: 12px;
	border-radius: 4px;
	font-weight: 600;
	z-index: 1;
}
/** 商品信息样式 */
.product-info {
	padding: 15px;
}
/*商品价格样式 */
.product-brand {
	font-size: 14px;
	color: #666;
	margin-bottom: 5px;
}
/** 商品名称样式 */
.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 旧版 WebKit 行限制 */
    line-clamp: 2; /* 标准属性 */
    -webkit-box-orient: vertical; /* 必须配合使用 */
    box-orient: vertical; /* 标准属性 */
}
/** 商品价格样式 */
.product-price {
	font-size: 18px;
	font-weight: 700;
	color: #ff2441;
	margin-bottom: 8px;
}
/** 原价样式 */
.original-price {
	font-size: 14px;
	color: #999;
	text-decoration: line-through;
	margin-left: 8px;
	font-weight: 400;
}
/** 销量样式 */
.sold-count {
	font-size: 13px;
	color: #999;
}

/* 底部样式 */
.footer {
	margin-top: 60px;
	background-color: white;
	border-top: 1px solid #eee;
	padding: 40px 0 20px;
}
/** 底部内容样式 */
.footer-content {
	display: flex;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	justify-content: space-between;
}
/*	底部列样式 */
.footer-column {
	flex: 1;
	padding: 0 15px;
}
/** 底部列标题样式 */
.footer-column h3 {
	font-size: 18px;
	margin-bottom: 20px;
	color: #333;
}
/** 底部列链接样式 */
.footer-column ul li {
	margin-bottom: 12px;
}
/** 底部列链接样式 */
.footer-column ul li a {
	color: #666;
	font-size: 14px;
	transition: color 0.3s;
}
/** 鼠标悬停时改变链接颜色。*/
.footer-column ul li a:hover {
	color: #ff2441;
}
/** 应用下载样式 */
.app-download {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
/** 应用按钮样式 */
.app-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 15px;
	background-color: #333;
	color: white;
	border-radius: 6px;
	font-weight: 500;
	transition: all 0.3s;
}
/** 鼠标悬停时改变按钮颜色。*/
.app-btn:hover {
	background-color: #ff2441;
}
/** 应用图标样式 */
.app-btn i {
	margin-right: 8px;
	font-size: 18px;
}
/*底部版权样式 */
.copyright {
	max-width: 1200px;
	margin: 40px auto 0;
	padding: 20px;
	border-top: 1px solid #eee;
	text-align: center;
	color: #999;
	font-size: 13px;
	line-height: 1.8;
}

/*快捷导航样式 */
.quick-nav {
	max-width: 1200px;
	margin: 20px auto;
	background: white;
	border-radius: 12px;
	padding: 15px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	display: flex;
	overflow-x: auto;
	scrollbar-width: none; /* Firefox */
}
/* 隐藏滚动条 */
.quick-nav::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}
/* 快捷导航项目样式 */
.quick-nav-item {
	flex: 0 0 auto;
	padding: 8px 20px;
	margin-right: 10px;
	border-radius: 20px;
	background: #f8f8f8;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s;
}
/** 鼠标悬停时改变导航颜色。*/
.quick-nav-item:hover,
.quick-nav-item.active {
	background: linear-gradient(to right, #ff2441, #ff6b6b);
	color: white;
}

/*回到顶部 */
.back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	background-color: rgba(255, 36, 65, 0.9);
	color: white;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	opacity: 0;
	transition: all 0.3s;
	z-index: 999;
	box-shadow: 0 4px 12px rgba(255, 36, 65, 0.3);
}
/** 显示回到顶部按钮。*/
.back-to-top.visible {
	opacity: 1;
}
/* 鼠标悬停时改变按钮颜色。*/
.back-to-top:hover {
	background-color: #ff2441;
	transform: translateY(-5px);
}

/*移动设备样式  根据不同屏幕尺寸调整布局结构。*/
@media (max-width: 992px) {
	.products {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.categories {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.search-bar {
		flex: 0 1 300px;
	}
	
	.slide-content h2 {
		font-size: 32px;
	}
	
	.slide-content {
		left: 40px;
	}
}

@media (max-width: 768px) {
	.nav-container {
		flex-wrap: wrap;
	}
	
	.logo {
		order: 1;
	}
	
	.search-bar {
		order: 3;
		flex: 1 0 100%;
		margin: 15px 0 0;
	}
	
	.nav-links {
		order: 2;
		gap: 20px;
	}
	
	.products {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.categories {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.slider {
		height: 300px;
	}
	
	.slide-content h2 {
		font-size: 24px;
	}
	
	.slide-content p {
		font-size: 16px;
	}
	
	.footer-content {
		flex-wrap: wrap;
	}
	
	.footer-column {
		flex: 0 0 50%;
		margin-bottom: 30px;
	}
}

@media (max-width: 576px) {
	.products {
		grid-template-columns: 1fr;
	}
	
	.categories {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.slider {
		height: 250px;
	}
	
	.slide-content {
		left: 20px;
		max-width: 80%;
	}
	
	.slide-content h2 {
		font-size: 20px;
	}
	
	.slide-content p {
		font-size: 14px;
		margin-bottom: 15px;
	}
	
	.btn {
		padding: 8px 16px;
		font-size: 14px;
	}
	
	.nav-links a span {
		display: none;
	}
	
	.nav-links a i {
		font-size: 18px;
		margin-bottom: 0;
	}
	
	.footer-column {
		flex: 0 0 100%;
	}
}

/* 潮鞋专区特色样式 */
.sneaker-banner {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
/** 潮鞋专区标题样式 */
.sneaker-banner h2 {
    font-size: 32px;
    margin-bottom: 10px;
}
/** 潮鞋专区描述样式 */
.sneaker-banner p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}
/** 潮鞋专区标签样式 */
.sneaker-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px 15px;
    margin: 10px 5px;
    font-size: 14px;
    transition: all 0.3s;
}
/** 鼠标悬停时改变标签颜色。*/
.sneaker-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}