/* 城市容器样式 - 确保城市间有清晰分离 */
.city-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* 12px 的间距 */
    row-gap: 8px; /* 行间距稍小 */
}

/* 城市链接样式 */
.city-link {
    display: inline-block;
    padding: 4px 12px;
    margin: 0;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.city-link:hover {
    color: #0066cc;
    background-color: #eff6ff;
    border-color: #93c5fd;
    transform: scale(1.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 其他基础样式 */
.province-title {
    font-size: 16px;
    font-weight: bold;
    color: #1f2937;
    margin-top: 24px;
    margin-bottom: 8px;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.highlight {
    background-color: #fef3c7;
    color: #92400e;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 500;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 16px;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #bfdbfe;
}

/* 全局样式 */
body {
    @apply bg-gray-50;
}

/* 导航栏样式 */
header {
    @apply card;
}

/* 热门城市样式 */
#hot-cities {
    @apply card;
}

/* 城市列表样式 */
#city-list > div {
    @apply card;
}

#city-list .province-title {
    @apply card-title mb-4 pb-2 border-b border-gray-100 mt-0;
}

/* 搜索结果样式 */
#search-results:not(.hidden) {
    @apply block;
}

#search-results.hidden {
    @apply hidden;
}

#search-results .card {
    @apply mt-4;
}

#results-container {
    @apply space-y-2;
}

/* 搜索状态指示器 */
.search-status {
    @apply text-sm text-gray-500 italic mt-2;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .city-container {
        gap: 8px;
        row-gap: 6px;
    }
    
    .city-link {
        padding: 3px 8px;
        font-size: 12px;
    }
    
    header {
        padding: 12px;
    }
    
    .card {
        padding: 12px;
    }
}

/* 加载动画（可选） */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.3s ease-out forwards;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(5) {
    animation-delay: 0.5s;
}