@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

body {
  font-family: "microsoft yahei", "Poppins", sans-serif;
  background: linear-gradient(135deg, #3c4c8b, #c49191, #fdbb2d);
  color: #fff;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 1000px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

header {
  background: rgb(36, 35, 35);
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(248, 248, 248, 0.1);
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
  background: linear-gradient(to right, #2686da, #45d1d8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.tagline {
  color: #a0d2ff;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.search-container {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}

#provinceSearch {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 50px 0 0 50px;
  font-size: 16px;
  background: rgba(218, 187, 187, 0.1);
  color: white;
  outline: none;
}

#provinceSearch::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#searchButton {
  padding: 14px 25px;
  background: linear-gradient(to right, #4facfe, #00f2fe);
  border: none;
  border-radius: 0 50px 50px 0;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#searchButton:hover {
  background: linear-gradient(to right, #3a8fd4, #00c8d6);
  transform: translateY(-2px);
}

.current-location {
  text-align: center;
  margin: 10px 0;
  color: #a0d2ff;
  font-size: 1.1rem;
}

.weather-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 30px;
}

@media (max-width: 768px) {
  .weather-display {
    grid-template-columns: 1fr;
  }
}

.main-weather {
  background: rgba(245, 241, 241, 0.1);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.temperature {
  font-size: 5rem;
  font-weight: 700;
  margin: 10px 0;
  background: linear-gradient(to bottom, #fff, #a0d2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.weather-icon {
  font-size: 5rem;
  margin: 15px 0;
  color: #4facfe;
}

.weather-description {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #a0d2ff;
}

.weather-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 100%;
}

.detail-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.detail-card i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #4facfe;
}

.detail-value {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 5px 0;
}

.detail-label {
  font-size: 0.9rem;
  color: #a0d2ff;
}

.advice-section {
  display: flex;
  flex-direction: column;
}

.clothing-advice {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  flex: 1;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #4facfe;
  display: flex;
  align-items: center;
}

.section-title i {
  margin-right: 10px;
}

.clothing-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.clothing-item {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.clothing-item:hover {
  transform: translateY(-5px);
  background: rgba(74, 144, 226, 0.3);
}

.clothing-item i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #4facfe;
}

.video-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  flex: 1;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 15px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.forecast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.5);
}

.forecast-day {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
}

.forecast-date {
  font-weight: 600;
  margin-bottom: 10px;
  color: #a0d2ff;
}

.forecast-icon {
  font-size: 2rem;
  color: #4facfe;
  margin: 10px 0;
}

.forecast-temp {
  font-size: 1.3rem;
  font-weight: 600;
}

footer {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: #a0d2ff;
  font-size: 0.9rem;
}

.highlight {
  color: #4facfe;
  font-weight: 500;
}
