/* 廣告庫存歸檔系統 - 自定義樣式 */

/* 動態粒子背景容器 */
#particles-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* 粒子基礎樣式 */
.particle {
  position: absolute;
  border-radius: 50%;
  animation: float-particle linear infinite;
}

/* 粉紅色粒子 */
.particle.pink {
  background: radial-gradient(circle, rgba(255, 105, 180, 0.7) 0%, rgba(255, 105, 180, 0.3) 50%, transparent 100%);
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.5);
}

/* 螢光綠色粒子 */
.particle.neon-green {
  background: radial-gradient(circle, rgba(57, 255, 20, 0.7) 0%, rgba(57, 255, 20, 0.3) 50%, transparent 100%);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

/* 螢光藍色粒子 */
.particle.neon-blue {
  background: radial-gradient(circle, rgba(0, 191, 255, 0.7) 0%, rgba(0, 191, 255, 0.3) 50%, transparent 100%);
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.5);
}

/* 粒子浮動動畫 */
@keyframes float-particle {
  0% {
    transform: translateY(100vh) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-20vh) translateX(var(--drift)) scale(0.8);
    opacity: 0;
  }
}

/* 粒子閃爍效果 */
@keyframes particle-pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

/* 全局背景 - 淡雅植物花卉風格 */
body {
  background: #f5f5f0 url('/background-floral.jpg') no-repeat right bottom;
  background-size: contain;
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

/* 裝飾性花卉插圖容器 */
body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* 左上角裝飾 - 使用背景花卉圖片的延伸 */
body::before {
  top: -50px;
  left: -50px;
  width: 400px;
  height: 400px;
  background: 
    radial-gradient(circle at 30% 30%, rgba(168, 184, 165, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 60% 40%, rgba(198, 214, 195, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 45% 60%, rgba(218, 234, 215, 0.5) 0%, transparent 45%);
  background-size: 200px 200px, 150px 150px, 180px 180px;
  background-position: 0 0, 100px 50px, 50px 150px;
  background-repeat: no-repeat;
  border-radius: 50%;
  filter: blur(25px);
}

/* 右下角裝飾 */
body::after {
  bottom: -50px;
  right: -50px;
  width: 450px;
  height: 450px;
  background: 
    radial-gradient(circle at 70% 70%, rgba(168, 184, 165, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(198, 214, 195, 0.5) 0%, transparent 45%),
    radial-gradient(circle at 55% 40%, rgba(218, 234, 215, 0.4) 0%, transparent 40%);
  background-size: 220px 220px, 180px 180px, 160px 160px;
  background-position: 0 0, 150px 100px, 80px 200px;
  background-repeat: no-repeat;
  border-radius: 50%;
  filter: blur(25px);
}

/* 主容器 */
#app {
  position: relative;
  z-index: 1;
}

/* Glassmorphism 效果 */
.glass-effect {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  border-radius: 16px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(220, 220, 210, 0.3);
  box-shadow: 
    0 4px 20px 0 rgba(31, 38, 135, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 8px 30px 0 rgba(31, 38, 135, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transform: translateY(-2px);
}

/* 按鈕樣式 - 柔和配色 */
.btn-primary {
  background: linear-gradient(135deg, #a8b8a5 0%, #8fa88b 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px 0 rgba(168, 184, 165, 0.3);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #8fa88b 0%, #7a9177 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(168, 184, 165, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px 0 rgba(168, 184, 165, 0.3);
}

/* 次要按鈕 */
.btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: #7a9177;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid rgba(168, 184, 165, 0.3);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(168, 184, 165, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px 0 rgba(168, 184, 165, 0.2);
}

/* 輸入框樣式 */
input, textarea, select {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(168, 184, 165, 0.2);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(168, 184, 165, 0.5);
  box-shadow: 0 0 0 3px rgba(168, 184, 165, 0.1);
  outline: none;
}

/* 文字截斷 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 滾動條樣式 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(245, 245, 240, 0.5);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #a8b8a5 0%, #8fa88b 100%);
  border-radius: 10px;
  border: 2px solid rgba(245, 245, 240, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #8fa88b 0%, #7a9177 100%);
}

/* 動畫 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.glass-card {
  animation: fadeIn 0.3s ease-out;
}

/* 標題樣式 */
h1, h2, h3, h4, h5, h6 {
  color: #5a6e57;
  font-weight: 700;
}

/* 卡片標題 */
.card-title {
  background: linear-gradient(135deg, #a8b8a5 0%, #8fa88b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 陰影效果 */
.shadow-soft {
  box-shadow: 
    0 10px 25px -5px rgba(168, 184, 165, 0.1),
    0 8px 10px -6px rgba(168, 184, 165, 0.1);
}

/* 響應式調整 */
@media (max-width: 768px) {
  .glass-card {
    padding: 1rem;
  }
  
  body {
    background-size: 50%;
  }
  
  /* 移動端縮小裝飾效果 */
  body::before {
    width: 250px;
    height: 250px;
    filter: blur(30px);
  }
  
  body::after {
    width: 300px;
    height: 300px;
    filter: blur(30px);
  }
}

/* 深色文字 */
.text-dark {
  color: #5a6e57;
}

/* 次要文字 */
.text-muted {
  color: #8b9b88;
}

/* 徽章樣式 */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #a8b8a5 0%, #8fa88b 100%);
  color: white;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(168, 184, 165, 0.3);
}

/* 分隔線 */
.divider {
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(168, 184, 165, 0.3) 50%, 
    transparent 100%);
  margin: 1.5rem 0;
}

/* 載入動畫 */
.loading-spinner {
  border: 3px solid rgba(168, 184, 165, 0.3);
  border-top: 3px solid #a8b8a5;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 淡入效果 */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* 滑入效果 */
.slide-in {
  animation: slideIn 0.5s ease-out;
}

/* 浮動效果 */
.float {
  animation: float 3s ease-in-out infinite;
}
