/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: #3385FF;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 顶部导航栏 */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
	flex-wrap: wrap;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 50px;
}

.nav-buttons {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
	margin-top: 10px;
    margin-bottom: 10px;
}

.nav-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #3385FF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 0 10px;
    transition: all 0.3s;
	white-space: nowrap;
}

.nav-button:hover {
    background-color: #ff8c00;
    color: #fff;
    text-decoration: none;
}

.qrcode-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.qrcode-item {
    text-align: center;
    margin-left: 15px;
}

.qrcode-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 5px;
}

.qrcode-item p {
    font-size: 12px;
    color: #666;
}

/* 头部 */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 24px;
    color: #333;
    font-weight: normal;
}

/* 主要内容区 */
.main-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* 热门城市 */
.hot-cities {
    margin-bottom: 30px;
}

.section-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.city-list {
    display: flex;
    flex-wrap: wrap;
}

.city-item {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 10px 10px 0;
    background-color: #f5f5f5;
    border-radius: 4px;
    transition: all 0.3s;
}

.city-item:hover {
    background-color: #3385FF;
    color: #fff;
}

.hot-city-list .city-item {
    background-color: #f0f7ff;
    color: #333;
}

.hot-city-list .city-item:hover {
    background-color: #1e90ff;
    color: #fff;
}

/* 按字母索引的城市列表 */
.cities-by-letter {
    margin-top: 30px;
}

.letter-nav {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.letter-item {
    display: inline-block;
    width: 70px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-weight: bold;
}

.letter-item:hover {
    background-color: #3385FF;
    color: #fff;
}

.city-container {
    margin-top: 20px;
}

.city-group {
    margin-bottom: 25px;
}

.group-title {
    font-size: 16px;
    color: #3385FF;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #3385FF;
}

/* 右侧固定按钮 */
.fixed-buttons {
    position: fixed;
    right: 20px;
    bottom: 50px;
    z-index: 1000;
}

.fixed-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3385FF;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.fixed-button:hover {
    background-color: #ff8c00;
    transform: translateY(-3px);
}

/* 手机端按钮容器 */
.mobile-button-container {
    position: relative;
}

/* 二维码弹窗 */
.qrcode-popup {
    position: absolute;
    right: 60px;
    bottom: 0;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
}

/* 显示二维码弹窗 */
.mobile-button-container:hover .qrcode-popup {
    display: block;
}

/* 横向排列的二维码 */
.qrcode-row {
    display: flex;
}

.qrcode-item {
    text-align: center;
    margin-right: 15px;
}

.qrcode-item:last-child {
    margin-right: 0;
}

.qrcode-item img {
    width: 100px;
    height: 100px;
    margin-bottom: 5px;
}

.qrcode-item p {
    font-size: 12px;
    color: #666;
}

/* 底部 */
.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 12px;
}

/* 搜索框样式 */
.search-box {
    margin-bottom: 20px;
    text-align: center;
}

#city-search {
    width: 500px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-right: 10px;
}

#search-btn {
    padding: 12px 20px;
    background-color: #3385FF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#search-btn:hover {
    background-color: #ff8c00;
}

.search-result {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    display: none;
}

.search-result.active {
    display: block;
}

.search-result h3 {
    margin-bottom: 10px;
    color: #333;
}

.no-result {
    color: #999;
    text-align: center;
    padding: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .logo img {
        height: 40px;
    }

    .page-title {
        font-size: 20px;
    }

    .city-item {
        padding: 6px 12px;
        margin: 0 8px 8px 0;
    }

    .letter-item {
        width: 70px;
        height: 26px;
        line-height: 26px;
    }
}

@media (max-width: 480px) {
    .city-item {
        padding: 5px 10px;
        margin: 0 6px 6px 0;
        font-size: 12px;
    }

    .letter-item {
        width: 70px;
        height: 24px;
        line-height: 24px;
        font-size: 12px;
    }
}
