/* ============================================
   Pet-Lumina Elite - Global Stylesheet
   品牌色系：暖沙舒膚色 (#F5EBE0) | 森境深綠 (#3D5A5C) | 夕落柔金 (#E3B7A0)
   設計語彙：溫潤侘寂 (Warm Minimalism)、有機線條、療癒系微互動
   ============================================ */

:root {
  --color-sand: #F5EBE0;
  --color-green: #3D5A5C;
  --color-gold: #E3B7A0;
  --color-light-gray: #F9F7F4;
  --color-dark-text: #2C3E3F;
  --color-border: #E8DDD5;
  --shadow-soft: 0 4px 15px rgba(61, 90, 92, 0.08);
  --shadow-medium: 0 8px 25px rgba(61, 90, 92, 0.12);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Segoe UI', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-sand);
  color: var(--color-dark-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============ 排版基礎 ============ */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-green);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  color: var(--color-dark-text);
  margin-bottom: 1rem;
  font-size: 1rem;
}

a {
  color: var(--color-green);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-gold);
}

/* ============ 導航列 ============ */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-green) !important;
  letter-spacing: 0.5px;
}

.navbar-brand span {
  color: var(--color-gold);
}

.nav-link {
  color: var(--color-dark-text) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-green) !important;
}

/* ============ 按鈕樣式 ============ */
.btn {
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-green);
  color: white;
}

.btn-primary:hover {
  background-color: #2a4547;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

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

.btn-gold:hover {
  background-color: #d9a890;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-green);
  color: var(--color-green);
}

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

/* ============ 卡片樣式 ============ */
.card {
  border: none;
  border-radius: 20px;
  background-color: white;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-5px);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--color-green);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* ============ 圖片樣式 ============ */
img {
  border-radius: 20px;
  max-width: 100%;
  height: auto;
}

.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ============ Hero Section ============ */
.hero {
  background: linear-gradient(135deg, var(--color-sand) 0%, #faf5f0 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(227, 183, 160, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

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

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: slideInDown 0.8s ease;
}

.hero-content p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
  animation: slideInUp 0.8s ease 0.2s both;
}

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

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ 頁尾 ============ */
footer {
  background-color: var(--color-green);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

footer h5 {
  color: var(--color-gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

footer a {
  color: #e8ddd5;
  transition: var(--transition-smooth);
}

footer a:hover {
  color: var(--color-gold);
}

footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #c4b5a8;
}

/* ============ 表單樣式 ============ */
.form-control, .form-select {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 0.2rem rgba(227, 183, 160, 0.25);
}

.form-label {
  color: var(--color-green);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ============ 警告框樣式 ============ */
.alert {
  border-radius: 15px;
  border: none;
  padding: 1.25rem;
}

.alert-warning {
  background-color: #fff8e1;
  color: #856404;
}

.alert-success {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.alert-info {
  background-color: #e1f5fe;
  color: #01579b;
}

/* ============ 手風琴樣式 ============ */
.accordion-button {
  background-color: white;
  color: var(--color-green);
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.accordion-button:not(.collapsed) {
  background-color: var(--color-sand);
  color: var(--color-green);
}

.accordion-button:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 0.25rem rgba(227, 183, 160, 0.25);
}

.accordion-body {
  background-color: white;
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 1.5rem;
}

/* ============ 標籤與徽章 ============ */
.badge {
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.badge-primary {
  background-color: var(--color-green);
  color: white;
}

.badge-gold {
  background-color: var(--color-gold);
  color: white;
}

/* ============ 呼吸感動畫 ============ */
@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.breathe {
  animation: breathe 3s ease-in-out infinite;
}

/* ============ 響應式設計 ============ */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* ============ 特殊效果 ============ */
.glow-text {
  text-shadow: 0 0 20px rgba(227, 183, 160, 0.3);
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============ 計數器與數據視覺化 ============ */
.stat-box {
  background: linear-gradient(135deg, var(--color-sand) 0%, white 100%);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  border-left: 4px solid var(--color-gold);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-green);
  margin: 0.5rem 0;
}

.stat-label {
  font-size: 0.95rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============ 圓環圖容器 ============ */
.chart-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.chart-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

.chart-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-green);
}

.chart-unit {
  font-size: 0.85rem;
  color: #999;
  margin-top: 0.25rem;
}
