/* ===== 首頁 ===== */
.bg-decoration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.floating-veggie {
  position: absolute;
  font-size: 48px;
  opacity: 0.35;
  animation: floatY 8s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}
.v1 { top: 8%;  left: 6%;  animation-delay: 0s; }
.v2 { top: 18%; right: 8%; animation-delay: 1.2s; font-size: 56px; }
.v3 { top: 38%; left: 12%; animation-delay: 2.5s; }
.v4 { top: 70%; right: 14%; animation-delay: 3.1s; font-size: 60px; }
.v5 { top: 82%; left: 8%;  animation-delay: 1.8s; }
.v6 { top: 12%; right: 30%; animation-delay: 4s; font-size: 40px; }
.v7 { top: 60%; left: 35%; animation-delay: 2s; opacity: 0.2; font-size: 70px; }
.v8 { top: 88%; right: 32%; animation-delay: 0.6s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-22px) rotate(5deg); }
}

/* Header */
.home-header {
  position: relative;
  z-index: 2;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.logo-icon {
  font-size: 36px;
  animation: wiggle 3s ease-in-out infinite;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(8deg); }
}
.logo-text {
  font-size: 26px;
  font-weight: 900;
  color: var(--green-deep);
  letter-spacing: 1px;
}
.logo-sub {
  font-size: 13px;
  color: var(--orange-primary);
  font-weight: 700;
  letter-spacing: 2px;
}

/* 即時狀態列 */
.status-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-radius: 30px;
  font-size: 13px;
  color: var(--text-dark);
  box-shadow: 0 2px 10px rgba(92,184,92,0.1);
  border: 1px solid rgba(92,184,92,0.15);
}
.status-item { display: inline-flex; align-items: center; gap: 6px; }
.status-item strong { color: var(--green-deep); font-weight: 800; }
.status-divider { width: 1px; height: 14px; background: rgba(92,184,92,0.3); }
.status-dot {
  width: 8px;
  height: 8px;
  background: #5cb85c;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(92,184,92,0.7);
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(92,184,92,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(92,184,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(92,184,92,0); }
}

/* Hero */
.home-main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  text-align: center;
}
.hero { margin: 40px 0 80px; }
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}
.title-line1 {
  display: inline-block;
  background: linear-gradient(135deg, var(--green-deep), var(--green-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title-line2 {
  display: block;
  font-size: 0.65em;
  color: var(--orange-deep);
  margin-top: 8px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  letter-spacing: 4px;
}

/* 兩顆浮動按鈕 */
.action-buttons {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 60px 0 40px;
}
.float-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 44px;
  background: #fff;
  border-radius: 60px;
  box-shadow: var(--shadow-soft);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
  overflow: hidden;
  animation: floatBtn 4s ease-in-out infinite;
  min-width: 280px;
}
.btn-driver { animation-delay: 0s; }
.btn-buyer  { animation-delay: 1.5s; }

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

.float-btn:hover {
  transform: translateY(-22px) scale(1.04);
  box-shadow: var(--shadow-hover);
}
.btn-icon {
  font-size: 52px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}
.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.btn-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-dark);
}
.btn-desc {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

/* 按鈕專屬色彩 */
.btn-driver { border: 3px solid var(--green-light); }
.btn-driver .btn-title { color: var(--green-deep); }
.btn-driver:hover { border-color: var(--green-primary); }

.btn-buyer { border: 3px solid var(--orange-light); }
.btn-buyer .btn-title { color: var(--orange-deep); }
.btn-buyer:hover { border-color: var(--orange-primary); }

/* 光暈效果 */
.btn-glow {
  position: absolute;
  inset: 0;
  border-radius: 60px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.6), transparent 70%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.float-btn:hover .btn-glow { opacity: 1; }

.hero-footer {
  margin-top: 40px;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

/* RWD */
@media (max-width: 640px) {
  .home-header { padding: 16px 20px; flex-direction: column; align-items: flex-start; }
  .status-bar { font-size: 12px; padding: 8px 14px; }
  .action-buttons { gap: 24px; }
  .float-btn { min-width: 260px; padding: 22px 32px; }
  .btn-icon { font-size: 42px; }
  .btn-title { font-size: 20px; }
}
