* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* 改為 hidden */
  background: linear-gradient(135deg, #fde7f1 0%, #facbdb 100%);
}

/* ====== Loading 樣式 ====== */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fde7f1 0%, #facbdb 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 添加 Loading 文字提示 */
.loading::after {
  content: '載入圖片中...';
  position: absolute;
  bottom: 30%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-align: center;
  animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ====== 背景容器 ====== */
.container {
  /* position: relative; */
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100svh;
  /* opacity: 0;
  transition: opacity 0.5s ease; */
}

/* .container.show {
  opacity: 1;
} */

/* ====== 背景圖片 ====== */
.container .background-img {
  width: 100%;
  /* height: 100%; */
  /* opacity: 0;
  transition: opacity 0.5s ease; */
}

/* .container .background-img.loaded {
  opacity: 1;
} */