/* ================================================================
    TicketII 票務系統 - 共用樣式表
    包含：CSS 變數、字體、容器系統、按鈕、表單元素等
   ================================================================ */

/* ============================================================
    0. 字型載入 - 必須放在最前面
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Chiron+GoRound+TC:wght@200..900&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap");

/* ============================================================
    修正 Tailwind CSS 的 webkit-text-size-adjust 警告
   ============================================================ */
@layer base {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}

/* ============================================================
    1. CSS 變數定義
   ============================================================ */
:root {
  /* 主色系 */
  --color-primary: #fb8d98;
  --color-primary-hover: #e97c87;
  --color-primary-light: #ffc4cb;
  --color-primary-dark: #e5758a;
  /* 次要色系 */
  --color-secondary: #6c757d;
  --color-secondary-hover: #5a6268;
  --color-accent: #ec7580;
  --color-panel: #fce1ef;
  --color-card: #d8e8ff;
  /* 灰階 */
  --color-gray: #4b5563;
  --color-gray-light: #d1d5db;
  --color-milk: #ffffff;
  /* 狀態色 */
  --color-success: #28a745;
  --color-success-hover: #218838;
  --color-success-border: #1e7e34;
  --color-danger: #dc3545;
  --color-danger-hover: #c82333;
  --color-danger-border: #bd2130;
  --color-warning: #ffc107;
  --color-info: #17a2b8;
  /* 舊版品牌色 (保留相容性) */
  --brand-red: #e1251b;
  --brand-red-dark: #b81d16;
  --brand-pink: #fb8d98;
  --brand-pink-dark: #e64b5f;
  --brand-gray-50: #fafbfc;
  --brand-gray-100: #f5f6f8;
  --brand-gray-200: #eef0f3;
  --text-dark: #222;
  --text-muted: #6c757d;
  --color-oklch-btn3: oklch(0.7 0.15 15);
  /* 漸層 */
  --gradient-pink: linear-gradient(90deg, #fce1ef 0%, #fb8d98 100%);
  /* 陰影 */
  --shadow-card: 0 2px 8px 0 rgba(251, 141, 152, 0.15);
  --shadow-pulse: 0 0 0 1px rgba(251, 141, 152, 0.3),
    0 4px 6px -1px rgba(251, 141, 152, 0.1);
  /* 字體 */
  --font-family-sans: "Chiron GoRound TC", "Merriweather", system-ui, sans-serif;
  /* 容器內距 */
  --container-padding-default: 15px;
  --container-padding-sm: 20px;
  --container-padding-md: 30px;
  --container-padding-lg: 40px;
  --container-padding-xl: 50px;
  --container-padding-2xl: 60px;
  /* 容器最大寬度 */
  --container-max-width-sm: 540px;
  --container-max-width-md: 720px;
  --container-max-width-lg: 960px;
  --container-max-width-xl: 1140px;
  --container-max-width-2xl: 1320px;
}

/* ============================================================
    2. 基礎樣式
   ============================================================ */
body {
  font-family: var(--font-family-sans);
}

/* ============================================================
    3. 容器系統（響應式設計）
   ============================================================ */

/* 統一容器：site-container
   - 手機版（< 640px）：左右 padding 較小，全寬
   - 平板版（640px - 1024px）：中等 padding，有最大寬度限制
   - 桌面版（≥ 1024px）：較大 padding，固定最大寬度
*/

.site-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  /* 手機版：最小 padding，保留更多內容空間 */
  padding-left: 1rem; /* 16px */
  padding-right: 1rem; /* 16px */
}

/* 平板版：sm (≥ 640px) */
@media (min-width: 640px) {
  .site-container {
    padding-left: 1.5rem; /* 24px */
    padding-right: 1.5rem; /* 24px */
  }
}

/* 桌面版：md (≥ 768px) */
@media (min-width: 768px) {
  .site-container {
    padding-left: 2rem; /* 32px */
    padding-right: 2rem; /* 32px */
    max-width: 768px; /* 限制最大寬度 */
  }
}

/* 桌面版：lg (≥ 1024px) */
@media (min-width: 1024px) {
  .site-container {
    padding-left: 2rem; /* 32px */
    padding-right: 2rem; /* 32px */
    max-width: 1024px; /* 主要內容區最大寬度 */
  }
}

/* 寬螢幕：xl (≥ 1280px) */
@media (min-width: 1280px) {
  .site-container {
    padding-left: 2.5rem; /* 40px */
    padding-right: 2.5rem; /* 40px */
    max-width: 1280px; /* 寬螢幕最大寬度 */
  }
}

/* 超寬螢幕：2xl (≥ 1536px) */
@media (min-width: 1536px) {
  .site-container {
    padding-left: 3rem; /* 48px */
    padding-right: 3rem; /* 48px */
    max-width: 1400px; /* 超寬螢幕最大寬度 */
  }
}

/* ============================================================
    容器變體：針對特殊需求
   ============================================================ */

/* 寬容器：適用於需要更多空間的頁面（如活動列表、報表） */
.site-container-wide {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .site-container-wide {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .site-container-wide {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1440px; /* 比標準容器更寬 */
  }
}

@media (min-width: 1536px) {
  .site-container-wide {
    padding-left: 3rem;
    padding-right: 3rem;
    max-width: 1600px;
  }
}

/* 窄容器：適用於表單、登入頁面等需要集中注意力的頁面 */
.site-container-narrow {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .site-container-narrow {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 640px; /* 較窄，適合閱讀 */
  }
}

@media (min-width: 768px) {
  .site-container-narrow {
    max-width: 720px;
  }
}

/* 全寬容器：適用於輪播、Banner 等需要撐滿螢幕的元素 */
.site-container-full {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* ============================================================
    手機版專用工具類別
   ============================================================ */

/* 手機版隱藏 */
.mobile-hide {
  display: none;
}

@media (min-width: 768px) {
  .mobile-hide {
    display: block;
  }
}

/* 桌面版隱藏 */
.desktop-hide {
  display: block;
}

@media (min-width: 768px) {
  .desktop-hide {
    display: none;
  }
}

/* 手機版專用 padding */
.mobile-padding {
  padding: 1rem;
}

@media (min-width: 768px) {
  .mobile-padding {
    padding: 0;
  }
}

/* 桌面版專用 padding */
.desktop-padding {
  padding: 0;
}

@media (min-width: 768px) {
  .desktop-padding {
    padding: 2rem;
  }
}

/* ============================================================
    4. 按鈕系統
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 2px 4px rgba(251, 141, 152, 0.2);
  animation: pulse-animation 2s infinite;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(251, 141, 152, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(251, 141, 152, 0.2);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: white;
  box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.btn-secondary:hover {
  background-color: var(--color-secondary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(251, 141, 152, 0.2);
}

.btn-outline-primary:active {
  transform: translateY(0);
}

/* 按鈕禁用狀態 */
.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  animation: none; /* 移除所有動畫 */
}

/* ============================================================
    5. 表單元素
   ============================================================ */
.form-input,
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s ease-in-out;
  background-color: white;
  color: #111827;
}

.form-input:hover,
.input:hover {
  border-color: #9ca3af;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-input:focus,
.input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(251, 141, 152, 0.15),
    0 4px 8px rgba(251, 141, 152, 0.1);
  transform: translateY(-2px);
}

.form-input:disabled,
.input:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #d1d5db;
  transform: none;
}

/* 文字區域 */
textarea.form-input,
textarea.input {
  min-height: 100px;
  resize: vertical;
}

/* 選擇框 */
select.form-input,
select.input {
  cursor: pointer;
  /* 移除自定義背景圖示，使用瀏覽器原生下拉箭頭 */
}

/* 日期輸入框 */
input[type="date"].form-input,
input[type="date"].input,
input[type="datetime-local"].form-input,
input[type="datetime-local"].input {
  cursor: pointer;
  /* 移除自定義背景圖示，使用瀏覽器原生圖示 */
}

/* ============================================================
    6. 焦點環 (無障礙)
   ============================================================ */
.focus-ring:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ============================================================
    7. 文字工具類
   ============================================================ */
.text-primary {
  color: var(--color-primary);
}

.text-primary-dark {
  color: var(--color-primary-dark);
}

/* ============================================================
    8. 背景工具類
   ============================================================ */
.bg-primary {
  background-color: var(--color-primary);
}

.bg-primary-hover,
.hover\:bg-primary-hover:hover {
  background-color: var(--color-primary-hover);
}

.bg-gradient-pink {
  background: var(--gradient-pink);
  color: #b91c1c; /* 深紅色文字 */
}

/* ============================================================
    9. 邊框工具類
   ============================================================ */
.border-primary {
  border-color: var(--color-primary);
}

/* ============================================================
    10. 連結樣式
   ============================================================ */
.link-muted {
  color: var(--color-gray);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.link-muted:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================================
    11. 卡片樣式
   ============================================================ */
.card {
  background-color: white;
  border-radius: 0.25rem; /* 較小圓角，更像拍立得 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1); /* 拍立得陰影 */
  overflow: hidden;
  border: 12px solid white; /* 增加邊框寬度 */
  border-bottom: 60px solid white; /* 加長底部留白區域 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card:hover {
  transform: scale(1.02); /* hover 時稍微放大 */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.card-body {
  padding: 1.5rem;
}

/* ============================================================
    12. 訊息提示
   ============================================================ */
.error-message {
  color: #dc2626;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.success-message {
  color: #059669;
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  animation: slideInDown 0.3s ease-out;
}

/* ============================================================
    13. 載入動畫
   ============================================================ */
.loading {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
    14. 圖片預覽
   ============================================================ */
.image-preview {
  max-width: 100%;
  border-radius: 0.5rem;
  border: 2px solid var(--color-gray-light);
  transition: all 0.2s ease-in-out;
}

.image-preview:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(251, 141, 152, 0.2);
}

/* ============================================================
    15. 進度條
   ============================================================ */
.progress-bar {
  width: 100%;
  height: 0.5rem;
  background-color: #e5e7eb;
  border-radius: 9999px;
  overflow: visible; /* 允許小人偶顯示在外部 */
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    to right,
    #f6c8d2,
    #eaafaf
  ); /* 淡粉色到綠色漸層 */
  transition: width 0.3s ease-in-out;
  position: relative;
  border-radius: 9999px;
}

/* 跑步小人偶 */
.progress-runner {
  position: absolute;
  right: -12px; /* 小人偶在進度條前端 */
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  animation: runner-bounce 0.6s ease-in-out infinite alternate;
  z-index: 1;
  line-height: 1;
}

/* 跑步彈跳動畫 */
@keyframes runner-bounce {
  0% {
    transform: translateY(-50%) translateX(0px);
  }

  100% {
    transform: translateY(-50%) translateX(2px);
  }
}

/* 響應式調整 */
@media (max-width: 640px) {
  .progress-runner {
    font-size: 1rem;
    right: -10px;
  }
}

/* ============================================================
    16. 工具提示
   ============================================================ */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0.75rem;
  background-color: #1f2937;
  color: white;
  font-size: 0.75rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
  z-index: 1000;
}

/* ============================================================
    17. 陰影工具類
   ============================================================ */
.shadow-card {
  box-shadow: var(--shadow-card);
}

.shadow-pulse {
  box-shadow: var(--shadow-pulse);
}

/* ============================================================
    18. 響應式工具
   ============================================================ */
@media (max-width: 640px) {
  .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
}

/* ============================================================
    19. 動畫效果
   ============================================================ */

/* 抖動動畫 */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.3s ease-in-out;
}

/* 脈衝動畫 */
@keyframes pulse-animation {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(251, 141, 152, 0.3);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(251, 141, 152, 0.08);
  }
}

.pulse-animation {
  animation: pulse-animation 2s infinite;
}

/* 旋轉動畫 (Loading) */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
    20. 狀態徽章 (Badges)
   ============================================================ */
.badge-status {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.badge-pending {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid var(--color-warning);
}

.badge-approved {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid var(--color-success);
}

.badge-rejected {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid var(--color-danger);
}

.badge-required {
  background-color: #f6d4dd;
  color: #92400e;
  border: 1px solid #e693e0;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  display: inline-block;
}

/* ============================================================
    21. 按鈕變體 (Button Variants)
   ============================================================ */
.btn-success {
  background-color: var(--color-success);
  border-color: var(--color-success);
  color: white;
}

.btn-success:hover {
  background-color: var(--color-success-hover);
  border-color: var(--color-success-border);
}

.btn-danger {
  background-color: var(--color-danger);
  border-color: var(--color-danger);
  color: white;
}

.btn-danger:hover {
  background-color: var(--color-danger-hover);
  border-color: var(--color-danger-border);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 6px;
}

.btn-brand {
  background-color: var(--brand-pink);
  border-color: var(--brand-pink);
  color: white;
}

.btn-brand:hover {
  background-color: var(--brand-pink-dark);
  border-color: var(--brand-pink-dark);
}

.btn-warning {
  background-color: #ffd700;
  border-color: #ffd700;
  color: #000;
}

.btn-warning:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  color: #000;
}

.btn-info {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
}

.btn-info:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  color: white;
}

.btn-blue {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.btn-blue:hover {
  background-color: #2563eb;
  border-color: #2563eb;
  color: white;
}

.btn-green {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
}

.btn-green:hover {
  background-color: #059669;
  border-color: #059669;
  color: white;
}

.btn-yellow {
  background-color: #f59e0b;
  border-color: #f59e0b;
  color: white;
}

.btn-yellow:hover {
  background-color: #d97706;
  border-color: #d97706;
  color: white;
}

.btn-purple {
  background-color: #8b5cf6;
  border-color: #8b5cf6;
  color: white;
}

.btn-purple:hover {
  background-color: #7c3aed;
  border-color: #7c3aed;
  color: white;
}

.btn-indigo {
  background-color: #6366f1;
  border-color: #6366f1;
  color: white;
}

.btn-indigo:hover {
  background-color: #4f46e5;
  border-color: #4f46e5;
  color: white;
}

.btn-pink {
  background-color: #ec4899;
  border-color: #ec4899;
  color: white;
}

.btn-pink:hover {
  background-color: #db2777;
  border-color: #db2777;
  color: white;
}

.btn-teal {
  background-color: #14b8a6;
  border-color: #14b8a6;
  color: white;
}

.btn-teal:hover {
  background-color: #0d9488;
  border-color: #0d9488;
  color: white;
}

.btn-orange {
  background-color: #f97316;
  border-color: #f97316;
  color: white;
}

.btn-orange:hover {
  background-color: #ea580c;
  border-color: #ea580c;
  color: white;
}

.btn-gray {
  background-color: #6b7280;
  border-color: #6b7280;
  color: white;
}

.btn-gray:hover {
  background-color: #4b5563;
  border-color: #4b5563;
  color: white;
}

.btn-outline-brand {
  background-color: transparent;
  border: 1px solid var(--brand-pink);
  color: var(--brand-pink);
}

.btn-outline-brand:hover {
  background-color: var(--brand-pink);
  color: white;
}

/* ============================================================
    22. 分頁 (Pagination)
   ============================================================ */
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 0.25rem;
}

.pagination .page-item {
  display: inline-block;
}

.pagination .page-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--brand-pink);
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: all 0.2s;
}

.pagination .page-link:hover {
  background-color: var(--brand-gray-100);
  color: var(--brand-pink-dark);
}

.pagination .page-item.active .page-link {
  background-color: var(--brand-pink);
  border-color: var(--brand-pink);
  color: white;
}

.pagination .page-item.disabled .page-link {
  color: var(--text-muted);
  pointer-events: none;
  opacity: 0.6;
}

/* ============================================================
    23. Toast 通知 (Toast Notifications)
   ============================================================ */
.toast {
  width: 100%;
  max-width: min(400px, calc(100vw - 2rem)); /* 最大 400px 或螢幕寬度減 2rem */
  min-width: 0; /* 允許縮小 */
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 0 auto; /* 居中對齊 */
}

.toast-body {
  padding: 1rem;
  font-weight: 500;
}

.toast.toast-success {
  background-color: var(--color-success);
  color: white;
}

.toast.toast-error {
  background-color: var(--color-danger);
  color: white;
}

.toast.toast-info {
  background-color: var(--color-info);
  color: white;
}

/* ============================================================
    24. Loading 載入狀態
   ============================================================ */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 0.4rem solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ============================================================
    頁面跳轉 Loading 動畫
   ============================================================ */
.page-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(252, 225, 239, 0.95) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 主要載入動畫容器 */
.page-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* 票券翻轉動畫 */
.ticket-loader {
  position: relative;
  width: 80px;
  height: 80px;
}

.ticket-loader::before,
.ticket-loader::after {
  content: "🎫";
  position: absolute;
  font-size: 2.5rem;
  animation: ticket-bounce 1.4s ease-in-out infinite;
}

.ticket-loader::before {
  left: 0;
  animation-delay: 0s;
}

.ticket-loader::after {
  right: 0;
  animation-delay: 0.7s;
}

@keyframes ticket-bounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-20px) rotate(15deg);
    opacity: 0.7;
  }
}

/* 圓形脈衝載入動畫 */
.pulse-loader {
  position: relative;
  width: 60px;
  height: 60px;
}

.pulse-loader span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--color-primary);
  opacity: 0;
  animation: pulse-ring 1.5s ease-out infinite;
}

.pulse-loader span:nth-child(2) {
  animation-delay: 0.5s;
}

.pulse-loader span:nth-child(3) {
  animation-delay: 1s;
}

.pulse-loader::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(251, 141, 152, 0.5);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.3);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* 三點跳動動畫 */
.dots-loader {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dots-loader span {
  width: 12px;
  height: 12px;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  border-radius: 50%;
  animation: dots-bounce 1.4s ease-in-out infinite;
  box-shadow: 0 4px 8px rgba(251, 141, 152, 0.3);
}

.dots-loader span:nth-child(1) {
  animation-delay: 0s;
}

.dots-loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.dots-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dots-bounce {
  0%,
  80%,
  100% {
    transform: scale(1) translateY(0);
  }
  40% {
    transform: scale(1.2) translateY(-15px);
  }
}

/* 旋轉環形動畫 */
.ring-loader {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(251, 141, 152, 0.2);
  border-top-color: var(--color-primary);
  border-right-color: var(--color-primary-hover);
  border-radius: 50%;
  animation: ring-spin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 載入文字 */
.page-loading-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  letter-spacing: 0.05em;
  animation: text-fade 1.5s ease-in-out infinite;
}

@keyframes text-fade {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* 進度條載入動畫 */
.progress-loader {
  width: 200px;
  height: 4px;
  background-color: rgba(251, 141, 152, 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-loader::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    var(--color-primary-hover),
    transparent
  );
  animation: progress-slide 1.5s ease-in-out infinite;
}

@keyframes progress-slide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* 響應式調整 */
@media (max-width: 640px) {
  .ticket-loader {
    width: 60px;
    height: 60px;
  }

  .ticket-loader::before,
  .ticket-loader::after {
    font-size: 2rem;
  }

  .pulse-loader {
    width: 50px;
    height: 50px;
  }

  .dots-loader span {
    width: 10px;
    height: 10px;
  }

  .progress-loader {
    width: 150px;
  }

  .page-loading-text {
    font-size: 0.875rem;
  }
}

/* 尊重使用者的動畫偏好設定 */
@media (prefers-reduced-motion: reduce) {
  .page-loading-overlay {
    transition: none;
  }

  .ticket-loader::before,
  .ticket-loader::after,
  .pulse-loader span,
  .dots-loader span,
  .ring-loader,
  .page-loading-text,
  .progress-loader::after {
    animation: none;
  }

  .ring-loader {
    border-color: var(--color-primary);
  }
}

/* ============================================================
    特殊組件樣式
   ============================================================ */

/* 粉色標籤 */
.label-pink {
  background: var(--gradient-pink);
  color: #b83260;
  border-radius: 0.5rem;
  padding: 0.25rem 0.75rem;
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.label-pink:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 4px 16px 0 rgba(251, 141, 152, 0.18);
}

/* Section 容器 */
.section-white {
  background: #fff;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  padding: 2rem;
}

.section-wrapper {
  background-color: white;
  padding: 2rem;
  border-radius: 0.75rem;
}

/* 頁首 Box */
.box-header {
  background: var(--gradient-pink);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-card);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 頁面標題區 */
.page-header {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* 品牌色工具類別 */
.text-brand {
  color: var(--brand-pink) !important;
}

.bg-brand {
  background-color: var(--brand-pink) !important;
}

.bg-oklch-btn3 {
  background-color: var(--color-oklch-btn3);
}

.text-milk {
  color: var(--color-milk);
}

/* ============================================================
    通知浮動視窗樣式
   ============================================================ */
.notification-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.notification {
  pointer-events: auto;
  min-width: 300px;
  max-width: 400px;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  backdrop-filter: blur(10px);
  animation: slideInRight 0.3s ease-out;
  transition: all 0.3s ease;
}

.notification:hover {
  transform: translateX(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.notification.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.notification-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.notification-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
}

.notification-message {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}

.notification-close {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  font-size: 18px;
}

.notification-close:hover {
  opacity: 1;
}

/* 通知類型樣式 */
.notification.success {
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.95),
    rgba(33, 136, 56, 0.95)
  );
  color: white;
}

.notification.error {
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.95),
    rgba(200, 35, 51, 0.95)
  );
  color: white;
}

.notification.warning {
  background: linear-gradient(
    135deg,
    rgba(255, 193, 7, 0.95),
    rgba(255, 235, 59, 0.95)
  );
  color: #333;
}

.notification.info {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.95),
    rgba(147, 197, 253, 0.95)
  );
  color: white;
}

/* 響應式調整 */
@media (max-width: 640px) {
  .notification-container {
    top: 70px;
    right: 10px;
    left: 10px;
  }

  .notification {
    min-width: auto;
    max-width: none;
  }
}

/* ============================================================
    26. 進階色彩與陰影工具 (共用步驟樣式)
   ============================================================ */

.bg-primary\/5 {
  background-color: rgba(251, 141, 152, 0.05);
}

.bg-primary\/10 {
  background-color: rgba(251, 141, 152, 0.1);
}

.bg-primary\/20 {
  background-color: rgba(251, 141, 152, 0.2);
}

.border-primary\/20 {
  border-color: rgba(251, 141, 152, 0.2);
}

.border-primary\/30 {
  border-color: rgba(251, 141, 152, 0.3);
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-primary\/10 {
  --tw-gradient-from: rgba(251, 141, 152, 0.1) var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(251, 141, 152, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-primary\/5 {
  --tw-gradient-to: rgba(251, 141, 152, 0.05) var(--tw-gradient-to-position);
}

.shadow-primary\/10 {
  box-shadow: 0 10px 15px -3px rgba(251, 141, 152, 0.1),
    0 4px 6px -2px rgba(251, 141, 152, 0.05);
}

.shadow-primary\/40 {
  box-shadow: 0 10px 15px -3px rgba(251, 141, 152, 0.4),
    0 4px 6px -2px rgba(251, 141, 152, 0.2);
}

.hover\:bg-primary:hover {
  background-color: var(--color-primary);
}

.hover\:bg-primary-hover:hover {
  background-color: var(--color-primary-hover);
}

.hover\:text-white:hover {
  color: white;
}

.focus\:border-primary:focus {
  border-color: var(--color-primary);
}

.focus\:shadow-lg:focus {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.focus\:shadow-primary\/10:focus {
  box-shadow: 0 0 0 3px rgba(251, 141, 152, 0.1);
}

/* ============================================================
    27. 步驟導覽共用樣式
   ============================================================ */

.step-connector::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -50%;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
  z-index: 10;
  background: linear-gradient(
    90deg,
    rgba(251, 141, 152, 0.3) 0%,
    rgba(251, 141, 152, 0.1) 100%
  );
}

.step-item:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(251, 141, 152, 0.3);
}

.step-number {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-title {
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .step-connector::after {
    display: none;
  }

  .step-item {
    margin-bottom: 1rem;
  }
}

/* ============================================================
    28. 舞台樣式 (Stage Design)
   ============================================================ */

/* 基礎舞台樣式 */
.stage {
  position: relative;
  background: linear-gradient(135deg, #434343 0%, #000000 100%);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 0.75rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 1px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* 舞台光暈效果 */
.stage::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: radial-gradient(
    circle,
    rgba(251, 141, 152, 0.15) 0%,
    transparent 70%
  );
  animation: stage-glow 3s ease-in-out infinite;
  pointer-events: none;
}

/* 舞台聚光燈效果 */
.stage::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  transform: translateX(-50%) skewX(-20deg);
  pointer-events: none;
  opacity: 0.6;
}

/* 舞台文字容器 */
.stage-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* 舞台圖示動畫 */
.stage-icon {
  display: inline-block;
  animation: stage-icon-float 2s ease-in-out infinite;
}

.stage-icon:first-child {
  animation-delay: 0s;
}

.stage-icon:last-child {
  animation-delay: 1s;
}

/* Hover 效果 */
.stage:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 2px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* 舞台變體：彩虹舞台 */
.stage-rainbow {
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #f5576c 75%,
    #ffd700 100%
  );
  background-size: 200% 200%;
  animation: stage-rainbow 8s ease infinite;
}

/* 舞台變體：金色舞台 */
.stage-gold {
  background: linear-gradient(135deg, #f4c430 0%, #c9a226 100%);
  color: #2d1f0f;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* 舞台變體：霓虹舞台 */
.stage-neon {
  background: #0a0a0a;
  color: #fff;
  border: 2px solid #ff006e;
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.5), 0 0 40px rgba(255, 0, 110, 0.3),
    inset 0 0 20px rgba(255, 0, 110, 0.1);
  text-shadow: 0 0 10px #ff006e, 0 0 20px #ff006e, 0 0 30px #ff006e;
}

/* 舞台變體：簡約舞台 */
.stage-minimal {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 動畫定義 */
@keyframes stage-glow {
  0%,
  100% {
    opacity: 0.3;
    transform: rotate(0deg) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: rotate(180deg) scale(1.1);
  }
}

@keyframes stage-icon-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-3px) rotate(-5deg);
  }
  75% {
    transform: translateY(3px) rotate(5deg);
  }
}

@keyframes stage-rainbow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 響應式調整 */
@media (max-width: 768px) {
  .stage {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .stage-content {
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .stage {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* ============================================================
    29. 座位圖樣式 (Seat Map)
   ============================================================ */

/* 座位圖容器 */
.seat-map-container {
  overflow-x: auto;
  padding: 1.5rem;
  background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 座位圖例容器 */
.seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.seat-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.seat-legend-item:hover {
  background-color: #f3f4f6;
  transform: translateY(-1px);
}

.seat-legend-box {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  border: 1px solid currentColor;
  flex-shrink: 0;
}

/* 響應式調整 */
@media (max-width: 640px) {
  .seat-legend {
    gap: 1rem;
  }

  .seat-legend-item {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
  }

  .seat-legend-box {
    width: 1rem;
    height: 1rem;
  }
}

/* ============================================================
    30. 呼吸燈效果 (Breathing Light Effect)
   ============================================================ */

/* 呼吸燈動畫定義 */
@keyframes breathing-glow {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(251, 141, 152, 0.2),
      0 0 0 0 rgba(251, 141, 152, 0);
  }
  50% {
    box-shadow: 0 4px 16px rgba(251, 141, 152, 0.4),
      0 0 20px 4px rgba(251, 141, 152, 0.3);
  }
}

/* 基礎呼吸燈類別 */
.breathing-light {
  transition: all 0.3s ease;
}

.breathing-light:hover {
  animation: breathing-glow 2s ease-in-out infinite;
  transform: translateY(-2px);
}

/* 呼吸燈變體：快速 */
.breathing-light-fast:hover {
  animation: breathing-glow 1s ease-in-out infinite;
}

/* 呼吸燈變體：慢速 */
.breathing-light-slow:hover {
  animation: breathing-glow 3s ease-in-out infinite;
}

/* 卡片專用呼吸燈 */
.card-breathing {
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.card-breathing:hover {
  animation: breathing-glow 2s ease-in-out infinite;
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(251, 141, 152, 0.2);
}

/* 按鈕呼吸燈（覆寫預設脈衝動畫） */
.btn-breathing {
  animation: none;
}

.btn-breathing:hover {
  animation: breathing-glow 1.5s ease-in-out infinite;
  transform: translateY(-2px);
}

/* 多色呼吸燈動畫 */
@keyframes breathing-rainbow {
  0% {
    box-shadow: 0 4px 16px rgba(251, 141, 152, 0.4),
      0 0 20px 4px rgba(251, 141, 152, 0.3);
  }
  25% {
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4),
      0 0 20px 4px rgba(139, 92, 246, 0.3);
  }
  50% {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4),
      0 0 20px 4px rgba(16, 185, 129, 0.3);
  }
  75% {
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4),
      0 0 20px 4px rgba(249, 115, 22, 0.3);
  }
  100% {
    box-shadow: 0 4px 16px rgba(251, 141, 152, 0.4),
      0 0 20px 4px rgba(251, 141, 152, 0.3);
  }
}

/* 彩虹呼吸燈 */
.breathing-rainbow:hover {
  animation: breathing-rainbow 4s ease-in-out infinite;
  transform: translateY(-2px);
}

/* 藍色呼吸燈 */
@keyframes breathing-blue {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2), 0 0 0 0 rgba(59, 130, 246, 0);
  }
  50% {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4),
      0 0 20px 4px rgba(59, 130, 246, 0.3);
  }
}

.breathing-light-blue:hover {
  animation: breathing-blue 2s ease-in-out infinite;
}

/* 綠色呼吸燈 */
@keyframes breathing-green {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2), 0 0 0 0 rgba(16, 185, 129, 0);
  }
  50% {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4),
      0 0 20px 4px rgba(16, 185, 129, 0.3);
  }
}

.breathing-light-green:hover {
  animation: breathing-green 2s ease-in-out infinite;
}

/* 紫色呼吸燈 */
@keyframes breathing-purple {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2), 0 0 0 0 rgba(139, 92, 246, 0);
  }
  50% {
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4),
      0 0 20px 4px rgba(139, 92, 246, 0.3);
  }
}

.breathing-light-purple:hover {
  animation: breathing-purple 2s ease-in-out infinite;
}

/* 金色呼吸燈 */
@keyframes breathing-gold {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2), 0 0 0 0 rgba(245, 158, 11, 0);
  }
  50% {
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4),
      0 0 20px 4px rgba(245, 158, 11, 0.3);
  }
}

.breathing-light-gold:hover {
  animation: breathing-gold 2s ease-in-out infinite;
}

/* 微妙呼吸燈（更細緻的效果） */
@keyframes breathing-subtle {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(251, 141, 152, 0.15),
      0 0 0 0 rgba(251, 141, 152, 0);
  }
  50% {
    box-shadow: 0 4px 12px rgba(251, 141, 152, 0.25),
      0 0 15px 3px rgba(251, 141, 152, 0.2);
  }
}

.breathing-light-subtle:hover {
  animation: breathing-subtle 2.5s ease-in-out infinite;
  transform: translateY(-1px);
}

/* 強烈呼吸燈（更明顯的效果） */
@keyframes breathing-intense {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(251, 141, 152, 0.3),
      0 0 0 0 rgba(251, 141, 152, 0);
  }
  50% {
    box-shadow: 0 8px 24px rgba(251, 141, 152, 0.5),
      0 0 30px 6px rgba(251, 141, 152, 0.4);
  }
}

.breathing-light-intense:hover {
  animation: breathing-intense 1.5s ease-in-out infinite;
  transform: translateY(-4px) scale(1.03);
}

/* 響應式調整 */
@media (max-width: 768px) {
  /* 在小螢幕上減弱呼吸燈效果，避免過於耗能 */
  .breathing-light:hover,
  .card-breathing:hover {
    animation-duration: 2.5s;
  }

  .breathing-light-intense:hover {
    transform: translateY(-2px) scale(1.01);
  }
}

@media (prefers-reduced-motion: reduce) {
  /* 尊重使用者的動畫偏好設定 */
  .breathing-light:hover,
  .card-breathing:hover,
  .breathing-light-fast:hover,
  .breathing-light-slow:hover,
  .breathing-rainbow:hover,
  .breathing-light-blue:hover,
  .breathing-light-green:hover,
  .breathing-light-purple:hover,
  .breathing-light-gold:hover,
  .breathing-light-subtle:hover,
  .breathing-light-intense:hover {
    animation: none;
    box-shadow: 0 4px 16px rgba(251, 141, 152, 0.3);
  }
}

/* ============================================================
    15. DatePicker 樣式 (Flowbite 日期選擇器)
   ============================================================ */

.datepicker-input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-left: 2.5rem; /* 預留 icon 空間 */
  background-color: #fff;
  border: 1px solid var(--color-gray-light);
  border-radius: 0.5rem;
  color: var(--text-dark);
  font-size: 0.875rem;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.datepicker-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(251, 141, 152, 0.2); /* var(--color-primary) with opacity */
}

.datepicker-input::placeholder {
  color: var(--text-muted);
}

/* 調整 Flowbite Datepicker 彈出視窗樣式與層級 */
.datepicker {
  z-index: 50 !important; /* 確保在最上層 */
  font-family: var(--font-family-sans);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-panel);
}

.datepicker-header {
  background-color: #fff;
  border-bottom: 1px solid var(--brand-gray-200);
  border-radius: 0.75rem 0.75rem 0 0;
  padding: 0.75rem;
}

.datepicker-title {
  color: var(--text-dark);
  font-weight: 600;
}

.datepicker-controls button {
  background-color: transparent;
  color: var(--color-gray);
  border-radius: 0.5rem;
}

.datepicker-controls button:hover {
  background-color: var(--brand-gray-100);
  color: var(--color-primary);
}

.datepicker-cell {
  border-radius: 0.5rem;
}

.datepicker-cell:hover {
  background-color: var(--color-panel);
  color: var(--color-primary-dark);
}

.datepicker-cell.selected,
.datepicker-cell.selected:hover {
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.datepicker-cell.today {
  font-weight: 600;
  color: var(--color-primary);
}

.datepicker-cell.focused {
  background-color: var(--brand-gray-100);
}

/* Range Picker 中間的 '至' */
.date-rangepicker-separator {
  color: var(--text-muted);
  margin: 0 0.5rem;
}
