/* Cities 页面增强样式 */

/* 搜索统计样式 */
.search-stats {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #dee2e6;
}

.stats-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.stats-summary span {
  background: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  border: 1px solid #dee2e6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 城市列表增强样式 */
.collection-item {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.collection-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.city-wrapper {
  padding: 20px;
}

.city-name {
  font-size: 18px;
  font-weight: 600;
  color: #212529;
  margin-bottom: 8px;
}

.country-name {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 4px;
}

.statics-wrapper {
  background: #f8f9fa;
  padding: 16px 20px;
  border-top: 1px solid #e9ecef;
}

.flex-block {
  margin-bottom: 12px;
}

.flex-block:last-child {
  margin-bottom: 0;
}

.statics-number {
  font-size: 20px;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 4px;
}

.statics-unit {
  font-size: 12px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 搜索栏增强样式 */
.search-bar-wrapper {
  position: relative;
}

.search-bar {
  border-radius: 25px;
  border: 2px solid #e9ecef;
  padding: 12px 20px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.search-bar:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
  outline: none;
}

/* 加载状态样式 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: #6c757d;
}

.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #e9ecef;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .stats-summary {
    flex-direction: column;
    align-items: stretch;
  }
  
  .stats-summary span {
    text-align: center;
  }
  
  .city-wrapper {
    padding: 16px;
  }
  
  .statics-wrapper {
    padding: 12px 16px;
  }
}

/* 空状态样式 */
.w-dyn-empty {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.w-dyn-empty::before {
  content: '🏙️';
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

/* 错误状态样式 */
.w-form-fail {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
  text-align: center;
}
