/* 全局统一风格 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #F8F8F8; font: 14px/1.6 "Microsoft YaHei", Arial, sans-serif; color: #333; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 15px; }

/* 头部 (继承首页风格) */
header { background: #333; color: #fff; height: 60px; line-height: 60px; position: sticky; top: 0; z-index: 999; }
.header-box { display: flex; justify-content: space-between; align-items: center; }
.logo-area { font-size: 18px; font-weight: bold; }

/* 搜索框区域 */
.search-city-bar { background: #fff; padding: 30px 0; border-bottom: 1px solid #eee; text-align: center; }
.search-city-bar h1 { font-size: 24px; margin-bottom: 20px; color: #222; }
.search-input-box { max-width: 500px; margin: 0 auto; display: flex; border: 2px solid #2EAFBB; border-radius: 4px; overflow: hidden; }
.search-input-box input { flex: 1; border: none; padding: 12px; outline: none; font-size: 15px; }
.search-input-box button { background: #2EAFBB; color: #fff; border: none; padding: 0 25px; cursor: pointer; font-weight: bold; }

/* 城市区块通用样式 */
.city-section { background: #fff; border-radius: 8px; padding: 25px; margin: 25px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.section-hd { font-size: 18px; font-weight: bold; margin-bottom: 20px; padding-left: 10px; border-left: 4px solid #2EAFBB; }

/* 当前/热门城市列表 */
.city-list-inline { display: flex; flex-wrap: wrap; gap: 12px; }
.city-list-inline a { background: #f5f5f5; padding: 8px 20px; border-radius: 4px; font-size: 14px; border: 1px solid transparent; }
.city-list-inline a:hover, .city-list-inline a.active { background: #E6F8F9; border-color: #2EAFBB; color: #2EAFBB; }

/* 字母索引定位 */
.letter-nav { background: #fff; padding: 15px 0; position: sticky; top: 60px; z-index: 98; border-bottom: 1px solid #eee; }
.letter-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.letter-list a { width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 50%; font-weight: bold; color: #666; font-size: 13px; }
.letter-list a:hover { background: #2EAFBB; color: #fff; }

/* 字母分组列表 */
.letter-group { margin-bottom: 30px; display: flex; }
.group-tit { width: 60px; font-size: 24px; font-weight: bold; color: #2EAFBB; flex-shrink: 0; }
.group-cities { flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.group-cities a { padding: 5px 0; color: #666; }
.group-cities a:hover { color: #2EAFBB; }

/* 底部版权 */
footer { background: #333; color: #999; padding: 40px 0; text-align: center; }

/* 响应式调整 */
@media (max-width: 992px) {
    .group-cities { grid-template-columns: repeat(4, 1fr); }
    .search-city-bar h1 { font-size: 20px; }
}
@media (max-width: 768px) {
    .group-cities { grid-template-columns: repeat(3, 1fr); }
    .group-tit { width: 40px; font-size: 20px; }
    .letter-list { gap: 5px; }
    .letter-list a { width: 25px; height: 25px; line-height: 25px; font-size: 12px; }
    .search-input-box { margin: 0 15px; }
}