* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    /* 移除底部padding，因为footer不再固定 */
    padding-top: 51px;
    /* 确保底部没有间隙 */
    margin-bottom: 0;
    padding-bottom: 0;
}

.header {
	color: white;
	padding: 2px;
	padding-left:10px;
	padding-right:10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(to right, #8944ff, #fa65c5);
	font-size: 16px;
	height:51px;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
}

.header-left {
	display: flex;
	align-items: center;
	gap: 0px;
	font-size: 12px;
	color:#fff;
}

.header-center {
	font-size: 24px;
	font-weight: bold;
	margin-left: -5%;
}

.header-right {
	color: white;
}

.header-icon {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.container {
	max-width: 600px;
	margin: 0 auto;
	background: #fff;
	min-height: 100vh;
}

.headers {
	background: #fff;
	padding: 15px;
	border-bottom: 1px solid #e5e5e5;
}

.search-box {
	position: relative;
}

.search-box input {
	width: 100%;
	padding: 10px 15px 10px 40px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	outline: none;
}

.search-box input:focus {
	border-color: #999;
}

.search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
}

.location-prompt {
	margin: 10px;
	padding: 12px 15px;
	background: #f9f9f9;
	border-radius: 8px;
	color: #666;
	font-size: 14px;
	display: flex;
	align-items: center;
}

.location-prompt svg {
	margin-right: 8px;
	flex-shrink: 0;
}

.page-title {
	padding: 20px 15px 10px;
	font-size: 16px;
	font-weight: 600;
	color: #333;
	background: #f5f5f5;
}

.letter-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
	padding: 15px;
	background: #f5f5f5;
}

.letter-btn {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 12px;
	text-align: center;
	color: #333;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
}

.letter-btn:active {
	background: #f0f0f0;
}

.city-section {
	margin-bottom: 0px;
}

.section-title {
	padding: 15px;
	padding-bottom: 5px;
	font-size: 14px;
	color: #666;
	background: #f5f5f5;
	font-weight: 500;
}

.city-list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	/* 增加间距和改变背景色，使按钮更突出 */
	gap: 10px;
	padding: 10px;
	background: #f5f5f5;
}

/* 将.city-link改为.city-item以匹配HTML中的class名 */
.city-item {
	background: #fff;
	/* 改为和字母按钮一样的样式 */
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
	color: #333;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	display: block;
	transition: all 0.2s;
	cursor: pointer;
}

.city-item:active {
	background: #f0f0f0;
}

/* 超过4个字的城市统一使用10px字体 */
.city-item.long-name,
.city-item.very-long-name {
	font-size: 10px;
	padding: 12px 6px;
}

.hidden {
	display: none !important;
}

.clearfix::after {
	content: "";
	display: table;
	clear: both;
}
.fl {
	float: left;
}
/* 添加底部footer样式 */
.footer {
	background: #fff;
	padding: 20px;
	/* 移除padding-bottom: 40px，使footer紧贴页面底部 */
	text-align: center;
	border-top: 1px solid #e5e5e5;
}

.footer-breadcrumb {
	color: #999;
	font-size: 14px;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #f0f0f0;
}

.footer-icons {
	display: flex;
	justify-content: center;
	gap: 40px;
	margin-bottom: 20px;
}

.footer-icon-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #666;
}

.footer-icon-circle {
	width: 60px;
	height: 60px;
	border: 2px solid #ddd;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-icon-circle svg {
	width: 30px;
	height: 30px;
	fill: #666;
}

.footer-icon-label {
	font-size: 14px;
	color: #666;
}

.footer-links {
	color: #999;
	font-size: 12px;
}

.footer-links a {
	color: #999;
	text-decoration: none;
	margin: 0 5px;
}

.footer-links a:hover {
	color: #666;
}

.notext {
	text-decoration:none;
}