body {
  margin: 0;
  font-family: 'Noto Sans TC', sans-serif;
  background: linear-gradient(135deg, #fafafa, #e0e0e0);
  color: #333;
  overflow-x: hidden;
}

/* 導覽列 */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
  font-weight: bold;
  font-size: 1.5rem;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 首頁主區塊 */
.hero-section {
  text-align: center;
  padding: 10vh 2rem;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(160deg, #f9f9f9 0%, #f0f0f0 100%);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2rem;
}

.button-group {
  display: flex;
  gap: 1rem;
}

button {
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rent-btn {
  background: #007aff;
  color: white;
}

.list-btn {
  background: #34c759;
  color: white;
}

button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* 登入與註冊頁樣式 */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(120deg, #e0eaff, #f9f9f9);
}

.login-container {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 380px;
  text-align: center;
}

.login-container input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.login-container button {
  width: 100%;
  padding: 0.8rem;
  border-radius: 10px;
  background: #007aff;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.login-container button:hover {
  background: #0051c7;
}

.no-account {
  margin-top: 1rem;
}

/* 淡入動畫 */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 1s 0.5s forwards;
}

.fade-in-late {
  opacity: 0;
  animation: fadeIn 1s 1s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: none;
  }
}

footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #888;
}
