.layout {
    display: block;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: var(--shadow);
    margin-bottom: 9px;
    overflow: hidden;
}

.ad-list {
    display: grid;
    gap: 6px;
    margin-bottom: 9px;
}

.ad-item {
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(90deg, #111, #222, #ff2d86);
    color: #fff;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

.city-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    box-shadow: none;
    padding: 14px 16px 16px;
}

/* 一级：热门城市 + 大区文字列表 */
.region-list {
    font-size: 14px;
    line-height: 1.9;
    color: #333;
}

.region-row {
    display: inline;
}

.region-row + .region-row::before {
    content: " ";
}

.region-label {
    color: #c45c4a;
    font-weight: 600;
    margin-right: 4px;
    white-space: nowrap;
}

.region-link {
    color: #333;
    text-decoration: none;
    margin-right: 10px;
    white-space: nowrap;
}

.region-link:hover {
    color: #c45c4a;
}

/* 二级：区县标签 + 数量角标 */
.district-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.district-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 88px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    box-sizing: border-box;
    transition: border-color .15s ease, background .15s ease;
}

.district-tag:hover {
    border-color: #4a90d9;
}

.district-tag.active {
    border-color: #4a90d9;
    background: #eef5fc;
    color: #333;
}

.district-name {
    flex: 1;
    white-space: nowrap;
}

.district-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 5px;
    border-radius: 3px;
    background: #888;
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

body.dark .city-card {
    background: #303030;
    border-color: #444;
    box-shadow: none;
}

body.dark .region-label {
    color: #e88a7a;
}

body.dark .region-link {
    color: #ddd;
}

body.dark .region-link:hover {
    color: #e88a7a;
}

body.dark .district-tag {
    background: #363636;
    border-color: #555;
    color: #ddd;
}

body.dark .district-tag:hover,
body.dark .district-tag.active {
    border-color: #4a90d9;
    background: #2a3a4a;
    color: #fff;
}

body.dark .district-count {
    background: #666;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.meta-icon {
    width: 15px;
    height: 15px;
    display: block;
    flex-shrink: 0;
}

.meta-item svg {
    color: currentColor;
}