* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #FFE066 0%, #FFD93D 50%, #F7931E 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* 皮卡丘背景装饰 */
.bg-pikachu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-pikachu::before,
.bg-pikachu::after {
  content: '⚡';
  position: absolute;
  font-size: 80px;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}

.bg-pikachu::before {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.bg-pikachu::after {
  top: 60%;
  right: 5%;
  font-size: 100px;
  animation-delay: 3s;
}

.pika-left,
.pika-right {
  position: absolute;
  font-size: 120px;
  opacity: 0.1;
}

.pika-left {
  top: 20%;
  left: -20px;
  animation: float 5s ease-in-out infinite;
}

.pika-right {
  bottom: 10%;
  right: -10px;
  font-size: 150px;
  animation: float 7s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  width: 100%;
  position: relative;
  z-index: 2;
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 15px;
  font-size: 28px;
}

/* 生日区域 */
.birthday-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding: 0 10px;
}

/* 生日提醒 */
.birthday-reminders {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 200px;
}

.birthday-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #FFD93D 0%, #FF6B6B 100%);
  border-radius: 25px;
  color: white;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.birthday-item .days-count {
  font-weight: bold;
  font-size: 16px;
  color: #fff;
}

.birthday-item.today {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.5);
  }
}

/* 生日照片 */
.birthday-photo {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 140px;
  height: 100px;
  flex-shrink: 0;
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  opacity: 0.7; /* 淡化效果 */
  transition: opacity 0.3s;
  display: block;
}

.photo-img:hover {
  opacity: 1;
}

/* 搜索框 */
.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.search-box input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  transition: border-color 0.3s;
  outline: none;
}

.search-box input:focus {
  border-color: #FFD93D;
}

.search-box button {
  padding: 12px 20px;
  background: linear-gradient(135deg, #FFD93D 0%, #FF6B6B 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.search-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

/* 快捷城市 */
.quick-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.quick-cities button {
  padding: 6px 14px;
  background: #f0f0f0;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.quick-cities button:hover {
  background: #FFD93D;
  color: #333;
}

/* 主内容区域 */
.main-content {
  display: flex;
  gap: 20px;
}

/* 左侧面板 */
.left-panel {
  flex: 1;
  min-width: 0;
}

/* 当前天气显示 */
.weather-display {
  text-align: center;
  padding: 25px;
  background: linear-gradient(135deg, #FFF9E6 0%, #FFF3CD 100%);
  border-radius: 15px;
  margin-bottom: 20px;
  border: 2px solid #FFD93D;
}

.city-name {
  font-size: 22px;
  color: #333;
  margin-bottom: 8px;
}

.weather-icon {
  font-size: 70px;
  margin: 15px 0;
}

.temperature {
  font-size: 44px;
  font-weight: bold;
  color: #333;
}

.description {
  font-size: 16px;
  color: #666;
  margin-bottom: 15px;
}

.details {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #FFE066;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-item span:first-child {
  font-size: 13px;
  color: #888;
}

.detail-item span:last-child {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* 15天趋势 */
.forecast-section {
  background: #FFF9E6;
  border-radius: 15px;
  padding: 15px;
  border: 2px solid #FFE066;
}

.forecast-section h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
  text-align: center;
}

.forecast-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 450px;
  overflow-y: auto;
}

.forecast-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: white;
  border-radius: 10px;
  transition: transform 0.2s;
}

.forecast-item:hover {
  transform: translateX(5px);
}

.forecast-date {
  font-size: 13px;
  color: #666;
  width: 70px;
}

.forecast-icon {
  font-size: 22px;
}

.forecast-desc {
  font-size: 12px;
  color: #888;
  flex: 1;
  margin: 0 10px;
  text-align: left;
}

.forecast-temp {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  width: 80px;
  text-align: right;
}

.forecast-temp span {
  color: #999;
  font-weight: normal;
  font-size: 11px;
}

/* 右侧面板 - 新闻 */
.right-panel {
  width: 300px;
  flex-shrink: 0;
}

.news-section {
  background: #FFF9E6;
  border-radius: 15px;
  padding: 15px;
  height: fit-content;
  max-height: 700px;
  overflow-y: auto;
  border: 2px solid #FFE066;
}

.news-section h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
  text-align: center;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item {
  padding: 10px;
  background: white;
  border-radius: 10px;
  transition: all 0.2s;
  cursor: pointer;
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 217, 61, 0.3);
}

.news-title {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-source {
  font-size: 11px;
  color: #999;
}

/* 错误提示 */
.error-message {
  text-align: center;
  color: #FF6B6B;
  padding: 15px;
  background: #FFE5E5;
  border-radius: 10px;
  margin-top: 15px;
}

.loading {
  text-align: center;
  color: #888;
  padding: 20px;
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
  
  .right-panel {
    width: 100%;
  }
  
  .container {
    padding: 15px;
  }
  
  .birthday-section {
    flex-direction: column;
  }
  
  .birthday-reminders {
    flex-direction: column;
    gap: 10px;
  }
}
