body {}

main {}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background-color: #f5f5f5;
	max-width: 375px;
	margin: 0 auto;
	min-height: 100vh;
}



.banner-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	aspect-ratio: 16/9;
	/* 默认16:9比例 */
}

.slides {
	position: relative;
	width: 100%;
	height: 100%;
}

.slide {
	position: absolute;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: all 1s ease;
	transform: translateX(-100%);
	display: flex;
	justify-content: center;
	align-items: center;
	background: #000;
	/* 深色背景用于填充空白 */
}

.slide.active {
	opacity: 1;
	transform: translateX(0);
}

.slide.next {
	transform: translateX(100%);
}

.slide img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	/* 关键属性：保持图片完整比例 */
}

.controls {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 0 20px;
}

.control-btn {
	background: rgba(255, 255, 255, 0.8);
	border: none;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
}

.control-btn:hover {
	background: white;
	transform: scale(1.1);
}

.dots {
	position: absolute;
	bottom: 20px;
	right: 20px;
	display: flex;
	gap: 10px;
}

.dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: all 0.3s ease;
}

.dot.active {
	background: white;
	transform: scale(1.2);
}

/* 图片列表部分 */
.image-grid {
	background: white;
	padding: 15px 10px;
	margin-bottom: 10px;
}

.grid-container {
	display: flex;

	gap: 15px;
}

.grid-item {
	text-align: center;
	flex: 0 0 calc(25% - 15px);
	/* 基础宽度计算 */
	box-sizing: border-box;
	width: 20%;
}

.grid-item img {
	width: 100%;
	border-radius: 10px;
	object-fit: cover;
}

.grid-item span {
	font-size: 14px;
	color: #333;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 文字列表部分 */
.text-grid {
	background: white;
	padding: 20px 15px;
	margin-bottom: 20px;
}

.text-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.text-item {
	background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
	color: white;
	padding: 9px 10px;
	border-radius: 30px;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: transform 0.2s;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.text-item:hover {
	transform: translateY(-2px);
}

/* 底部文字 */
.footer-text {
	text-align: center;
	padding: 20px;
	font-size: 14px;
	color: #666;
	background: white;
	margin-top: 10px;
}

/* 分隔线 */
.divider {
	height: 1px;
	background: #eee;
	margin: 0 15px;
}

/* nav */