/* ==========================================================================
   hero_rich.css — 主目錄 Hero 區精品升級
   - 阿米旁加家人排成一列
   - 漸層 + 浮雕大標題
   - 4 個精品玻璃統計卡
   - 全暗色背景 + 光暈
   ========================================================================== */

.home-header.hero-rich {
  position: relative;
  padding: 40px 24px 32px;
  margin-bottom: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg,
    rgba(26,21,48,.85) 0%,
    rgba(61,45,77,.75) 50%,
    rgba(122,40,140,.6) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 16px 48px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2);
  overflow: hidden;
}

/* 背景光暈 */
.hero-bg-glow {
  position: absolute; inset: -40%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,209,102,.3), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(255,107,157,.3), transparent 40%),
    radial-gradient(circle at 40% 90%, rgba(199,125,255,.3), transparent 40%);
  filter: blur(60px);
  z-index: 0;
  animation: glowDrift 12s ease-in-out infinite;
}
@keyframes glowDrift {
  0%,100% { transform: translate(0,0); }
  33% { transform: translate(30px,-20px); }
  66% { transform: translate(-20px,30px); }
}

/* 家人排隊 */
.hero-row {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: flex-end;
  margin-bottom: 12px;
}
.hero-family {
  display: flex; align-items: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}
.hero-family .hf {
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.4));
  transition: transform .3s;
}
.hero-family .hf:hover {
  transform: translateY(-8px) scale(1.05);
}
.hero-family .hf-ami {
  height: 150px;
  filter: drop-shadow(0 12px 28px rgba(255,209,102,.5))
          drop-shadow(0 0 24px rgba(255,107,157,.3));
  animation: amiBob 3s ease-in-out infinite;
  z-index: 2;
}
@keyframes amiBob {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
.hero-family .hf-1, .hero-family .hf-5 { height: 95px; opacity: .9; }
.hero-family .hf-2, .hero-family .hf-4 { height: 105px; opacity: .95; }

/* 主標題 浮雕大字 */
.hero-title {
  position: relative; z-index: 2;
  text-align: center;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  margin: 8px 0;
  background: linear-gradient(135deg, #FFD166, #FF6B9D, #C77DFF) !important;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.6));
  letter-spacing: 0.02em;
}
.hero-title span {
  font-size: 0.65em;
  display: block;
  margin-top: 4px;
}

/* 副標 */
.hero-tagline {
  position: relative; z-index: 2;
  text-align: center;
  color: rgba(255,255,255,.92);
  font-size: clamp(13px, 1.6vw, 17px);
  line-height: 1.7;
  margin: 12px auto 24px;
  max-width: 700px;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  font-weight: 600;
}

/* 4 個玻璃統計卡 */
.hero-stats {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}
.stat-card {
  background: linear-gradient(135deg,
    rgba(255,255,255,.18) 0%,
    rgba(255,255,255,.08) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 18px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.3),
              inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .2s;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card .stat-num {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  background: linear-gradient(135deg, #FFD166, #FF6B9D);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  filter: drop-shadow(0 0 12px rgba(255,209,102,.4));
}
.stat-card .stat-label {
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  letter-spacing: 0.05em;
}

/* RWD 手機 */
@media (max-width: 700px) {
  .home-header.hero-rich { padding: 24px 16px; }
  .hero-family .hf { height: 70px; }
  .hero-family .hf-ami { height: 100px; }
  .hero-family .hf-1, .hero-family .hf-5 { height: 60px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
