/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  /* 改为粉色渐变背景 */
  background:linear-gradient(135deg, rgb(252 10 10 / 40%), #9369ff);
  /* 改为fixed定位使header固定在顶部 */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  height: 50px;
}

/* 位置选择模态框 */
.location-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* 改为白色背景 */
  background: #fff;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.location-modal.active {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  /* 改为粉色渐变背景 */
  background: linear-gradient(135deg, #ff69b4, #ff1493);
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-back {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  display: none;
}

.modal-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

.search-container {
  padding: 10px;
  /* 改为浅灰色背景 */
  background: #f5f5f5;
}

.search-container .search-box {
  /* 改为白色背景和灰色边框 */
  background: #fff;
  border: 2px solid #ff69b4;
  border-radius: 25px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.15);
  transition: all 0.3s ease;
}

.search-container .search-box:focus-within {
  border-color: #ff1493;
  box-shadow: 0 4px 12px rgba(255, 20, 147, 0.25);
}

.search-container .search-icon {
  width: 20px;
  height: 20px;
  color: #ff1493;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: #333;
  background: transparent;
}

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

.location-tip {
  padding: 10px;
  /* 改为粉色系提示 */
  background: rgba(255, 105, 180, 0.1);
  color: #ff1493;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 16px 0 16px;
  border-radius: 8px;
}

.location-tip-icon {
  width: 20px;
  height: 20px;
}

.modal-body {
  padding: 10px;
}

.section-title {
  font-size: 14px;
  /* 改为深灰色文字 */
  color: #666;
  margin: 10px 0 12px 16px;
  padding: 0 10px;
}

.hot-cities {
  margin-bottom: 10px;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 10px;
}

.city-item {
  padding: 10px 0;
  text-align: center;
  /* 改为浅粉色背景 */
  background: rgba(255, 105, 180, 0.1);
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  /* 改为深色文字 */
  color: #333;
  transition: background 0.2s;
}

/* 移动端使用active替代hover */
.city-item:active {
  background: rgba(255, 105, 180, 0.2);
}

.provinces-section {
  margin-bottom: 10px;
}

.province-item {
  padding: 10px;
  /* 改为浅灰色边框 */
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  /* 改为深色文字 */
  color: #333;
}

.loading,
.error {
  text-align: center;
  padding: 10px;
  /* 改为灰色文字 */
  color: #999;
  cursor: not-allowed;
  pointer-events: none;
}

.error {
  color: #ff4d4f;
}

.province-item:active {
  /* 改为浅灰色背景 */
  background: #f5f5f5;
}

.province-arrow {
  width: 16px;
  height: 16px;
  /* 改为灰色箭头 */
  color: #999;
}

.location {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.location-icon {
  width: 20px;
  height: 18px;
}

.header-logo {
  width: 180px;
  height: 35px;
  object-fit: contain;
  margin-left: -2px;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* 移动端使用active替代hover */
.search-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.3);
}

.search-icon {
  width: 20px;
  height: 20px;
  color: #fff;
}
