:root {
	--primary-color: #f37b1d;
	--secondary-color: #FF9500;
	--bg-color: #F5F5F5;
	--card-bg: #FFFFFF;
	--text-color: #333;
	--text-light: #999;
	--border-color: #EEE;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	max-width: 900px;
	margin: 0 auto;
	position: relative;
}

/* 顶部导航栏 */
.header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
	color: white;
	padding: 10px 12px;
	display: flex;
	align-items: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.location {
	display: flex;
	align-items: center;
	font-size: 14px;
	margin-right: 10px;
	white-space: nowrap;
	color: white;
	text-decoration: none;
}

.location img {
	width: 16px;
	height: 16px;
	margin-right: 4px;
}

.search-box {
	flex: 1;
	position: relative;
}

.search-box input {
	width: 100%;
	height: 32px;
	border: none;
	border-radius: 16px;
	padding: 0 15px 0 35px;
	font-size: 13px;
	background-color: rgba(255, 255, 255, 0.9);
}

.search-box::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 8px;
	width: 16px;
	height: 16px;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"   viewBox="0 0 24 24" fill="%23999"><path d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 0 0 1.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 0 0-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 0 0 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') no-repeat;
}

/* 轮播图 */
.slider-container {
	position: relative;
	width: 100%;
	height: 25vh;
	overflow: hidden;
	margin: 8px 0;
}

.slider {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform 0.3s ease;
}

.slider-item {
	flex: 0 0 100%;
	height: 100%;
}

.slider-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
}

.slider-dots {
	position: absolute;
	bottom: 10px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
}

.slider-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	margin: 0 3px;
	transition: all 0.3s;
}

.slider-dot.active   {
	width: 12px;
	border-radius: 3px;
	background-color: white;
}

/* 功能入口 */
.entrance {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background-color: var(--card-bg);
	padding: 12px 0;
	border-radius: 8px;
	margin: 8px;
}

.entrance-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
}

.entrance-icon {
	width: 40px;
	height: 40px;
	margin-bottom: 6px;
}

.entrance-title {
	font-size: 12px;
	color: var(--text-color);
}

/* 活动列表 */
.section-title {
	display: flex;
	align-items: center;
	padding: 12px;
	font-size: 16px;
	font-weight: bold;
}

.section-title img {
	width: 100px;
	height: 20px;
	margin-right: 8px;
}

.activity-list {
	margin: 0 8px;
	display: grid;
	gap: 10px;
}

/* PC端两列，移动端单列 */
@media (min-width: 768px) {
	.activity-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

.activity-card {
	background-color: var(--card-bg);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.activity-card a {
	display: flex;
	text-decoration: none;
	color: inherit;
	padding: 12px;
	height: 100%;
}

.activity-image {
	width: 120px;
	height: 90px;
	border-radius: 6px;
	object-fit: cover;
	margin-right: 12px;
}

.activity-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.activity-title {
	font-size: 15px;
	font-weight: bold;
	margin-bottom: 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.activity-info {
	font-size: 12px;
	color: var(--text-light);
	margin-bottom: 6px;
}

.activity-time {
	display: flex;
	align-items: center;
	font-size: 12px;
	color: var(--text-light);
}

.activity-time img {
	width: 14px;
	height: 14px;
	margin-right: 4px;
}

.progress-container {
	margin-top: 8px;
}

.progress-bar {
	height: 4px;
	background-color: #EBEBEB;
	border-radius: 2px;
	overflow: hidden;
}

.progress {
	height: 100%;
	background-color: var(--primary-color);
	width: 50%;
}

/* 底部导航 */
.footer-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: white;
	display: flex;
	justify-content: space-around;
	padding: 8px 0;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
	max-width: 900px;
	margin: 0 auto;
	z-index: 90;
}

.nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: var(--text-light);
}

.nav-item.active   {
	color: var(--primary-color);
}

.nav-icon {
	width: 24px;
	height: 24px;
	margin-bottom: 4px;
}

.nav-text {
	font-size: 10px;
}

/* 页脚信息 */
.footer-info {
	padding: 20px 12px 60px;
	text-align: center;
	font-size: 12px;
	color: var(--text-light);
	line-height: 1.6;
}

.footer-info a {
	color: var(--text-light);
	text-decoration: none;
	margin: 0 5px;
}

/* 响应式调整 */
@media (min-width: 768px) {
	.slider-container {
		height: 200px;
	}
	
	.entrance-icon {
		width: 48px;
		height: 48px;
	}
	
	.entrance-title {
		font-size: 14px;
	}
	
	.activity-card {
		margin-bottom: 0;
	}
}