body {
  margin: 0;
  overflow: hidden; /* 防止櫻花超出滾動條 */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7f0f6; /* 淺粉色背景 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative; /* 為了讓絕對定位的元素能相對於 body 定位 */
}

/* --- 櫻花飄落特效 --- */
.sakura-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* 讓櫻花不阻擋滑鼠點擊 */
  z-index: -1; /* 確保櫻花在最底層 */
}

.sakura-petal {
  position: absolute;
  background-color: #ffb6c1; /* 櫻花粉色 */
  border-radius: 50%;
  opacity: 0.8;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(-10%) rotate(0deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(105%) rotate(360deg);
    opacity: 0;
  }
}

/* --- 天氣顯示 --- */
#weather-display {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 8px 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-size: 1.1em;
  color: #333;
  z-index: 10; /* 確保在最上層 */
}
#weather-display img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

/* --- 和服女孩 --- */
#girl-container {
  position: relative; /* 為了讓 hitbox 和 speech-bubble 相對於女孩定位 */
  text-align: center;
  margin-top: 50px; /* 往下移一點，讓天氣有空間 */
  z-index: 1; /* 確保女孩在櫻花上面 */
}
#girl-image {
  max-width: 300px; /* 控制女孩圖片大小 */
  height: auto;
  display: block; /* 移除圖片下方空白 */
  margin: 0 auto; /* 水平置中 */
  transition: transform 0.1s ease; /* 點擊時的小動畫 */
}
#girl-image:active { /* 點擊時微微縮小 */
  transform: scale(0.98);
}

/* 互動點 (預設是透明的，只佔位) */
.hitbox {
  position: absolute;
  /* background-color: rgba(255, 0, 0, 0.3); /* 调试时显示区域 */
  cursor: pointer;
  border-radius: 50%; /* 讓點擊區域更自然 */
}

#face-hitbox {
  width: 80px; /* 臉部大小 */
  height: 80px;
  top: 20px; /* 調整到女孩臉部的位置 */
  left: calc(50% - 40px); /* 水平置中 */
}

#hand-hitbox {
  width: 60px; /* 手部大小 */
  height: 60px;
  top: 180px; /* 調整到女孩手部的位置 */
  left: calc(50% + 50px); /* 假設手在右邊 */
}

/* 說話泡泡 */
#speech-bubble {
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 15px;
  padding: 10px 15px;
  max-width: 150px;
  font-size: 0.9em;
  color: #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  /* 初始位置，你可以根據女孩圖片調整 */
  top: 50px; 
  left: calc(50% + 100px); 
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none; /* 不阻擋點擊 */
}
.hidden {
  opacity: 0;
  visibility: hidden;
}

/* 底部連結或文字 */
.footer {
  margin-top: 30px;
  text-align: center;
  color: #666;
  font-size: 0.9em;
  z-index: 1;
}
.footer a {
  color: #e83e8c;
  text-decoration: none;
  font-weight: bold;
}
.footer a:hover {
  text-decoration: underline;
}