/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
    background: #F5F7FA;
    color: #1A1A2E;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px 80px;
}

/* ========== 顶部品牌区 ========== */
.brand-header {
    text-align: center;
    padding: 2px 0 10px;
}

.brand-logo {
    font-size: 28px;
    margin-bottom: 6px;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    color: #1A1A2E;
    letter-spacing: 0.5px;
}

.brand-sub {
    font-size: 13px;
    color: #8C8CA1;
    margin-top: 4px;
}

/* ========== 公众号提示条 ========== */
.follow-bar {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s;
}

.follow-bar:active {
    transform: scale(0.98);
}

.follow-bar-text {
    color: #FFF;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.follow-bar-text small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 2px;
}

.follow-bar-btn {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

/* ========== 进群条 ========== */
.group-bar {
    background: #FFF;
    border: 1px solid #E8ECF1;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.group-bar:active {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.group-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.group-bar-icon {
    width: 36px;
    height: 36px;
    background: #07C160;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.group-bar-text {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A2E;
}

.group-bar-text small {
    display: block;
    font-size: 12px;
    color: #8C8CA1;
    font-weight: 400;
}

.group-bar-arrow {
    color: #C4C4D4;
    font-size: 14px;
}

/* ========== 搜索框 ========== */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid #E8ECF1;
    border-radius: 14px;
    background: #FFF;
    font-size: 15px;
    outline: none;
    color: #1A1A2E;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder {
    color: #B0B0C3;
}

.search-input:focus {
    border-color: #667EEA;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #B0B0C3;
    font-size: 16px;
}

/* ========== 统计概览 ========== */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: #FFF;
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    border: 1px solid #E8ECF1;
}

.stat-num {
    font-size: 24px;
    font-weight: 800;
    color: #667EEA;
}

.stat-label {
    font-size: 11px;
    color: #8C8CA1;
    margin-top: 2px;
}

/* ========== 热门城市 ========== */
.hot-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-tag {
    background: #FFF;
    color: #E74C3C;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #FDDEDE;
    transition: all 0.15s;
}

.hot-tag:active {
    transform: scale(0.95);
    background: #FFF5F5;
}

/* ========== 全部展开/折叠 ========== */
.toggle-all-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.toggle-all-btn {
    background: none;
    color: #667EEA;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
}

/* ========== 省份分组 ========== */
.province-group {
    margin-bottom: 6px;
}

.province-btn {
    font-size: 15px;
    font-weight: 700;
    color: #1A1A2E;
    padding: 14px 16px;
    border: none;
    background: #FFF;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 12px;
    border: 1px solid #E8ECF1;
    transition: background 0.15s;
}

.province-btn:active {
    background: #F5F7FA;
}

.province-btn .arrow {
    margin-right: 10px;
    font-size: 10px;
    color: #B0B0C3;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.province-btn.expanded .arrow {
    transform: rotate(90deg);
}

.province-btn span {
    font-size: 12px;
    font-weight: 500;
    color: #8C8CA1;
    margin-left: auto;
    background: #F0F1F5;
    padding: 2px 8px;
    border-radius: 6px;
}

/* ========== 城市列表 ========== */
.city-list {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0 4px 0;
}

/* ========== 城市卡片 ========== */
.city-card {
    background: #FFF;
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #1A1A2E;
    border: 1px solid #E8ECF1;
    transition: all 0.2s;
    gap: 14px;
}

.city-card:active {
    transform: scale(0.98);
    background: #FAFBFD;
}

.city-card.coming {
    opacity: 0.6;
    cursor: pointer;
}

/* 城市图标 */
.city-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #FFF;
    flex-shrink: 0;
}

/* 城市信息 */
.city-info {
    flex: 1;
    min-width: 0;
}

.city-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.city-name {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A2E;
}

.city-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #FFF;
    flex-shrink: 0;
}

.city-tag.hot {
    background: #E74C3C;
}

.city-tag.new {
    background: #667EEA;
}

.city-tag:not(.hot):not(.new) {
    background: #95A5A6;
}

.city-desc {
    font-size: 13px;
    color: #8C8CA1;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.city-arrow {
    color: #C4C4D4;
    font-size: 14px;
    flex-shrink: 0;
}

/* ========== 无结果 ========== */
.no-result {
    text-align: center;
    padding: 40px 20px;
    color: #8C8CA1;
    font-size: 14px;
}

/* ========== 底部提示 ========== */
.footer-tip {
    text-align: center;
    font-size: 12px;
    color: #B0B0C3;
    margin-top: 30px;
    line-height: 1.6;
}

/* ========== 回到顶部 ========== */
.back-top {
    position: fixed;
    bottom: 24px;
    right: 16px;
    background: #FFF;
    color: #667EEA;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #E8ECF1;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 999;
}

/* ========== Toast ========== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(8px);
}

.toast.show {
    opacity: 1;
}
