/* 設定全域字體與背景顏色 */
body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #1a1a1a; /* 深色背景 */
  color: #f5f5f5; /* 淺色文字 */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

/* 主容器的樣式設計 */
.container {
  background-color: #2d2d2d;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); /* 陰影讓畫面更有立體感 */
  width: 100%;
  max-width: 400px;
}

/* 標題樣式 */
h1 {
  margin-top: 0;
  color: #ff9800; /* 亮橘色點綴 */
  text-align: center;
}

p {
  text-align: center;
  color: #b3b3b3;
  margin-bottom: 24px;
}

/* 表單群組的間距設定 */
.form-group {
  margin-bottom: 20px;
}

/* 標籤文字樣式 */
label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

/* 輸入框與下拉選單樣式 */
input[type="text"],
input[type="tel"],
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #3d3d3d;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.3s;
}

/* 獲得焦點時的樣式 */
input[type="text"]:focus,
input[type="tel"]:focus,
select:focus {
  outline: none;
  border-color: #ff9800;
}

/* 按鈕樣式設計 */
button {
  width: 100%;
  padding: 14px;
  background-color: #ff9800;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
}

/* 按鈕滑鼠移過去的特效 */
button:hover {
  background-color: #e68a00;
}

/* 按鈕點擊時的微動畫 */
button:active {
  transform: scale(0.98);
}

/* 提示訊息文字樣式 */
.message {
  text-align: center;
  font-weight: bold;
  margin-top: 16px;
  min-height: 24px; /* 保留高度避免畫面跳動 */
}

/* 成功與錯誤訊息的顏色 */
.success { color: #4caf50; }
.error { color: #f44336; }

/* 分隔線 */
hr {
  border: 0;
  height: 1px;
  background: #444;
  margin: 30px 0;
}

/* 歷史訂單列表樣式 */
.order-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 每筆訂單的樣式 */
.order-list li {
  background-color: #3d3d3d;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid #ff9800; /* 左側亮色裝飾條 */
}

.order-time {
  font-size: 12px;
  color: #999;
}
