/* home-footer.css — 功能卡片光效+底部品牌+动画优化+云纹+今日运势子卡+响应式 */
/* ===== 功能卡片呼吸光效 ===== */
.feature-card-breath-glow {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-md) + 2px);
  background: radial-gradient(ellipse at 50% 50%, var(--card-glow), transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.5s;
  animation: featureBreathGlow 4s ease-in-out infinite;
  animation-play-state: paused;
}
.feature-card-themed:hover .feature-card-breath-glow {
  opacity: 1;
  animation-play-state: running;
}
@keyframes featureBreathGlow {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.04); }
}

/* ===== 底部品牌区域 ===== */
.home-brand-footer {
  text-align: center;
  padding: 32px 0 20px;
}
.home-wuxing-divider {
  border: none;
  height: 1.5px;
  background: linear-gradient(90deg,
    transparent 0%,
    #F39C12 15%,  /* 金 */
    #27AE60 30%,  /* 木 */
    #3498DB 50%,  /* 水 */
    #E74C3C 70%,  /* 火 */
    #8B6914 85%,  /* 土 */
    transparent 100%
  );
  opacity: 0.35;
  margin-bottom: 28px;
}
.home-brand-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: brandFadeIn 1s ease-out 0.5s both;
}
.home-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  filter: drop-shadow(0 2px 8px rgba(13, 6, 40, 0.2));
}

/* 动画LOGO增强 */
.home-brand-logo--animated {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 4px 16px rgba(13, 6, 40, 0.35))
         drop-shadow(0 0 20px rgba(241, 196, 15, 0.12));
  transition: filter 0.6s ease, transform 0.6s ease;
}
.home-brand-bagua-ring:hover .home-brand-logo--animated {
  filter: drop-shadow(0 6px 24px rgba(13, 6, 40, 0.5))
         drop-shadow(0 0 30px rgba(241, 196, 15, 0.25));
  transform: scale(1.05);
}

/* 八卦环装饰 — 更大尺寸 */
.home-brand-bagua-ring {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* 外层锥形渐变光环 — 旋转 */
.home-brand-bagua-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: conic-gradient(from 0deg,
    rgba(241, 196, 15, 0.3),
    rgba(108, 92, 231, 0.2),
    rgba(241, 196, 15, 0.1),
    rgba(108, 92, 231, 0.3),
    rgba(241, 196, 15, 0.3)
  ) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: brandBaguaSpin 20s linear infinite;
}

/* 外层虚线环 — 反向旋转 */
.home-brand-bagua-ring::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(108, 92, 231, 0.08);
  animation: brandBaguaSpin 35s linear infinite reverse;
}

/* 最外层呼吸光晕 */
.home-brand-bagua-ring .home-brand-logo--animated {
  width: 80px;
  height: 80px;
}

@keyframes brandBaguaSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* 品牌副标语 */
.home-brand-copy {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.2em;
  opacity: 0.5;
  margin-top: 2px;
}
.home-brand-name {
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.15em;
  font-weight: 500;
}
.home-brand-quote {
  font-size: 11px;
  color: var(--text-tertiary);
  opacity: 0.7;
  font-style: italic;
  max-width: 320px;
  line-height: 1.6;
}
@keyframes brandFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 动画性能优化 ===== */
.home-logo-svg,
.home-logo-ring,
.home-logo-particle,
.home-aurora-ring,
.home-logo-core {
  will-change: transform, opacity;
}
.feature-card {
  will-change: opacity, transform;
}
.feature-card-themed {
  will-change: opacity, transform;
}
.qg-score-circle,
.hd-score-circle {
  will-change: stroke-dashoffset;
}
.feature-card-breath-glow {
  will-change: opacity;
}
.home-brand-bagua-ring::before,
.home-brand-bagua-ring::after {
  will-change: transform;
}
.home-brand-logo--animated {
  will-change: filter, transform;
}

/* ===== prefers-reduced-motion 适配 ===== */
@media (prefers-reduced-motion: reduce) {
  .home-logo-particle,
  .home-aurora-ring,
  .home-logo-ring-2,
  .home-logo-ring-3 {
    animation: none !important;
  }
  .home-logo-core {
    animation: none !important;
  }
  .home-logo-core::before,
  .home-logo-core::after {
    animation: none !important;
  }
  .home-title-glow {
    animation: none !important;
    background-size: 100% 100% !important;
  }
  .home-subtitle-aurora {
    animation: none !important;
    background-size: 100% 100% !important;
  }
  .home-slogan-typewriter {
    animation: none !important;
    opacity: 1 !important;
  }
  .btn-cta-explore {
    animation: none !important;
    opacity: 1 !important;
  }
  .btn-cta-explore i {
    animation: none !important;
  }
  .feature-card {
    opacity: 1 !important;
    transform: none !important;
    transition: box-shadow 0.3s, background 0.3s !important;
  }
  .feature-card-themed {
    opacity: 1 !important;
    transform: none !important;
    transition: box-shadow 0.3s, background 0.3s !important;
  }
  .fade-in-up {
    animation: none !important;
    opacity: 1 !important;
  }
  .orb {
    animation: none !important;
  }
  .feature-card-breath-glow {
    animation: none !important;
    display: none;
  }
  .home-brand-bagua-ring::before,
  .home-brand-bagua-ring::after {
    animation: none !important;
  }
}

/* ===== 首页云纹底纹装饰 ===== */
.home-hero-section::before {
  content: '';
  position: absolute;
  inset: -60px -40px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.025;
  background:
    radial-gradient(ellipse 80px 80px at 15% 20%, var(--accent), transparent),
    radial-gradient(ellipse 60px 60px at 85% 30%, var(--gold), transparent),
    radial-gradient(ellipse 70px 70px at 50% 80%, var(--accent-light), transparent),
    radial-gradient(ellipse 50px 50px at 25% 65%, var(--rose), transparent),
    radial-gradient(ellipse 55px 55px at 75% 75%, var(--teal), transparent);
}

/* ===== 今日运势子卡片 ===== */
.fortune-sub-card {
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}
.fortune-sub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.fortune-sub-career {
  background: linear-gradient(145deg, #fffbeb, #fef3c7);
  border-color: rgba(245, 158, 11, 0.12);
}
.fortune-sub-love {
  background: linear-gradient(145deg, #fff1f2, #fce7f3);
  border-color: rgba(244, 63, 94, 0.12);
}
.fortune-sub-wealth {
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  border-color: rgba(16, 185, 129, 0.12);
}
.fortune-sub-health {
  background: linear-gradient(145deg, #ecfeff, #cffafe);
  border-color: rgba(6, 182, 212, 0.12);
}

/* ===== 首页响应式适配 ===== */
@media (max-width: 640px) {
  .home-logo-stage--compact {
    width: 100px;
    height: 100px;
  }
  .home-logo-stage--compact .home-aurora-ring { inset: -20px; }
  .home-logo-stage--compact .home-logo-ring-1 { inset: -7px; }
  .home-logo-stage--compact .home-logo-ring-2 { inset: -13px; }
  .home-logo-stage--compact .home-logo-ring-3 { inset: -18px; }
  .home-logo-stage--compact .home-logo-core { inset: 4px; }
  .home-logo-stage--compact .home-logo-particle {
    --dist: 36px !important;
  }
  .quick-glance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .qg-yi-ji {
    gap: 2px;
  }
  .home-brand-quote {
    max-width: 260px;
    font-size: 10px;
  }
  /* 四列→两列 */
  .feature-card-themed {
    padding: 16px;
  }
  .feature-card-icon-themed {
    width: 48px;
    height: 48px;
  }
  .feature-card-module-logo {
    width: 48px;
    height: 48px;
  }
  /* 天机速览仪表盘 640px */
  .hd-dashboard {
    padding: 16px;
  }
  .hd-top-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .hd-cell-value {
    font-size: 18px;
  }
  .hd-fortune-dims-v2 .hd-dim-row {
    padding: 6px 6px;
  }
  .hd-dual-panel {
    grid-template-columns: 45% 55%;
    gap: 12px;
  }
  .hd-guest-cta {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .hd-guest-cta-text {
    justify-content: center;
  }
  /* Guest 新增组件 640px 适配 */
  .hd-lucky-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  .hd-lucky-item {
    padding: 6px 2px;
  }
  .hd-wxgk-flow {
    flex-direction: column;
    gap: 4px;
  }
  .hd-guest-sc-bar {
    padding: 8px 10px;
  }
  .hd-guest-sc-bar-text {
    font-size: 11px;
  }
  .hd-score-ring-guest {
    width: 48px;
    height: 48px;
  }
  .home-brand-bagua-ring::after {
    display: none;
  }
}

@media (max-width: 380px) {
  .home-logo-particle,
  .home-aurora-ring,
  .home-logo-ring-2,
  .home-logo-ring-3 {
    display: none !important;
  }
  .home-logo-stage--compact {
    width: 80px;
    height: 80px;
  }
  .home-logo-stage--compact .home-logo-ring-1 { inset: -5px; }
  .home-logo-stage--compact .home-logo-core { inset: 3px; }
  .quick-glance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .qg-item-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .btn-cta-explore {
    padding: 8px 20px;
    font-size: 12px;
  }
  /* 天机速览仪表盘 380px */
  .hd-dashboard {
    padding: 12px;
  }
  .hd-title {
    font-size: 14px;
  }
  .hd-top-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hd-info-cell {
    padding: 10px 6px;
  }
  .hd-cell-value {
    font-size: 16px;
  }
  .hd-cell-icon {
    font-size: 16px;
  }
  /* 双栏在极小屏幕下堆叠 */
  .hd-dual-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hd-dual-right {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 10px;
  }
  .hd-tj-svg {
    max-width: 160px;
  }
  .hd-tj-pct-label {
    display: none;
  }
  .hd-tj-bagua {
    display: none;
  }
  .hd-sc-advice-inline {
    font-size: 9px;
  }
  .hd-fortune-dims-v2 .hd-dim-row {
    padding: 5px 4px;
  }
  .hd-dim-row > i {
    font-size: 13px;
  }
  .hd-dim-row-label {
    font-size: 11px;
  }
  .hd-dim-dot {
    font-size: 10px;
  }
  .hd-yiji-tags {
    gap: 3px;
  }
  .hd-yi-tag,
  .hd-ji-tag {
    font-size: 9px;
    padding: 1px 6px;
  }
  .hd-guest-cta-text {
    font-size: 11px;
  }
  /* Guest 新增组件 380px 适配 */
  .hd-lucky-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
  }
  .hd-lucky-item {
    padding: 5px 2px;
  }
  .hd-lucky-icon {
    font-size: 14px;
  }
  .hd-lucky-label {
    font-size: 8px;
  }
  .hd-lucky-value {
    font-size: 11px;
  }
  .hd-wxgk-tag {
    font-size: 10px;
    padding: 3px 8px;
  }
  .hd-guest-sc-bar {
    padding: 6px 8px;
    gap: 6px;
  }
  .hd-guest-sc-bar-icon {
    font-size: 15px;
  }
  .hd-guest-sc-bar-text {
    font-size: 10px;
  }
  .hd-score-ring-guest {
    width: 42px;
    height: 42px;
  }
  .hd-score-lock-icon {
    font-size: 14px;
  }
  .hd-guest-unlock-hint {
    font-size: 8px;
  }
  .hd-guest-wx-trait {
    font-size: 9px;
  }
  .home-brand-bagua-ring {
    width: 44px;
    height: 44px;
  }
  .home-brand-bagua-ring .home-brand-logo {
    width: 36px;
    height: 36px;
  }
}
