/**
 * GEO AI Habits — 双可视化卡片（geo- 前缀）
 * 动效主通道：transform / opacity / filter / stroke-dashoffset / background-position（连接线流光）
 */

@property --geo-border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.geo-habits-card,
.geo-habits-card * {
  box-sizing: border-box;
}

.geo-habits-card {
  --geo-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --geo-left-stagger: 260ms;
  --geo-left-dur: 500ms;
  --geo-surface: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(248, 250, 252, 0.88) 45%,
    rgba(241, 245, 249, 0.92) 100%
  );
  --geo-radial: radial-gradient(
      120% 80% at 12% 0%,
      rgba(99, 102, 241, 0.09) 0%,
      transparent 55%
    ),
    radial-gradient(90% 60% at 92% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  position: relative;
  border-radius: 20px;
  padding: clamp(0.6rem, 1.1vw, 0.95rem);
  min-height: clamp(110px, 12vh, 175px);
  background: var(--geo-surface);
  background-color: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 18px 48px -24px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(148, 163, 184, 0.12);
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.55s var(--geo-ease),
    opacity 0.55s var(--geo-ease);
  will-change: transform, opacity;
}

.geo-habits-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--geo-radial);
  opacity: 0.5;
  z-index: 0;
}

.geo-habits-card__border-spin {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  padding: 1px;
  background: conic-gradient(
    from var(--geo-border-angle),
    rgba(99, 102, 241, 0.22),
    rgba(59, 130, 246, 0.12),
    rgba(168, 85, 247, 0.18),
    rgba(99, 102, 241, 0.22)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  animation: geo-border-angle-rotate 10s linear infinite;
}

@keyframes geo-border-angle-rotate {
  to {
    --geo-border-angle: 360deg;
  }
}

.geo-habits-card__inner {
  position: relative;
  z-index: 2;
  height: 100%;
}

.geo-habits-card:hover {
  transform: translate3d(0, -3px, 0) scale(1.005);
}

.geo-habits-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.geo-habits-card__subtitle {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.625;
  max-width: 52rem;
  margin-bottom: clamp(0.4rem, 0.9vw, 0.6rem);
}

/* ========== Behavior card ========== */
.geo-behavior-card {
  --geo-legacy-item-ms: 148ms;
}

.geo-behavior-card .geo-habits-card__inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.geo-behavior-card__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(40px, 56px) minmax(0, 1fr);
  gap: clamp(0.32rem, 0.85vw, 0.62rem);
  align-items: stretch;
  min-height: clamp(88px, 9vh, 140px);
}

/* 双路径对比：居中标题 + 步骤列表 */
.geo-path-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 14px;
  padding: clamp(0.45rem, 0.9vw, 0.65rem);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
}

.geo-path-panel--ai {
  background: linear-gradient(165deg, rgba(239, 246, 255, 0.55) 0%, rgba(255, 255, 255, 0.52) 100%);
  border-color: rgba(191, 219, 254, 0.75);
}

.geo-path-banner {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.geo-path-steps {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.geo-path-step {
  font-size: 1rem;
  line-height: 1.5;
  color: #334155;
  padding: 0.28rem 0.35rem;
  border-radius: 8px;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition:
    opacity 0.48s var(--geo-ease),
    transform 0.52s var(--geo-ease);
}

.geo-path-panel--trad .geo-path-step:nth-child(1) {
  transition-delay: 0ms;
}
.geo-path-panel--trad .geo-path-step:nth-child(2) {
  transition-delay: 70ms;
}
.geo-path-panel--trad .geo-path-step:nth-child(3) {
  transition-delay: 140ms;
}
.geo-path-panel--trad .geo-path-step:nth-child(4) {
  transition-delay: 210ms;
}
.geo-path-panel--trad .geo-path-step:nth-child(5) {
  transition-delay: 280ms;
}

.geo-path-panel--ai .geo-path-step:nth-child(1) {
  transition-delay: 0ms;
}
.geo-path-panel--ai .geo-path-step:nth-child(2) {
  transition-delay: 90ms;
}
.geo-path-panel--ai .geo-path-step:nth-child(3) {
  transition-delay: 180ms;
}

.geo-behavior-card.geo-trad-on .geo-path-panel--trad .geo-path-step {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.geo-behavior-card.geo-ai-on .geo-path-panel--ai .geo-path-step {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.geo-path-step__text {
  display: block;
}

.geo-path-step--highlight {
  padding: 0.4rem 0.4rem 0.45rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px solid rgba(129, 140, 248, 0.35);
}

.geo-path-step__text--stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
}

.geo-path-step__line1 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e40af;
}

.geo-path-step__line2 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2563eb;
  letter-spacing: 0.02em;
}

.geo-behavior-foot {
  flex-shrink: 0;
  margin-top: clamp(0.45rem, 1vw, 0.65rem);
  padding: 0.5rem 0.55rem;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.625;
  color: #475569;
  text-align: center;
  background: rgba(248, 250, 252, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.85);
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition:
    opacity 0.5s var(--geo-ease),
    transform 0.52s var(--geo-ease);
}

.geo-behavior-card.geo-foot-on .geo-behavior-foot {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 无时间线「演变」：一次性展示，关闭箭头呼吸/流光与路径交错延迟 */
.geo-behavior-card.geo-behavior-static.geo-phase-arrow-soft .geo-behavior-arrow__svg {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.22));
}

.geo-behavior-card.geo-behavior-static .geo-behavior-arrow__pulse {
  animation: none !important;
}

.geo-behavior-card.geo-behavior-static.geo-phase-arrow-soft .geo-behavior-arrow__shimmer {
  opacity: 0;
  animation: none !important;
}

.geo-behavior-card.geo-behavior-static .geo-path-panel--trad .geo-path-step,
.geo-behavior-card.geo-behavior-static .geo-path-panel--ai .geo-path-step {
  transition-delay: 0ms !important;
}

.geo-legacy-stack {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.geo-legacy-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.48rem;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.geo-legacy-search__icon {
  flex-shrink: 0;
  color: #94a3b8;
  display: flex;
}

.geo-legacy-search__q {
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.geo-legacy-results {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.geo-legacy-result {
  border-radius: 9px;
  padding: 0.38rem 0.45rem 0.4rem;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(248, 250, 252, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.geo-legacy-result__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1d4ed8;
  line-height: 1.35;
  margin-bottom: 0.12rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.geo-legacy-result__url {
  font-size: 1rem;
  color: #059669;
  margin-bottom: 0.18rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.geo-legacy-result__snippet {
  font-size: 1rem;
  line-height: 1.625;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.geo-legacy-search,
.geo-legacy-result {
  opacity: 0;
  transform: translate3d(0, 11px, 0);
  transition:
    opacity 0.64s var(--geo-ease),
    transform 0.72s var(--geo-ease);
  transition-delay: calc(var(--ls, 0) * var(--geo-legacy-item-ms));
}

.geo-behavior-card.geo-legacy-stream .geo-legacy-search,
.geo-behavior-card.geo-legacy-stream .geo-legacy-result {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.geo-behavior-col--legacy {
  justify-content: flex-start;
}

.geo-behavior-col--ai {
  justify-content: flex-start;
}

.geo-behavior-col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.geo-behavior-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.geo-step {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  filter: blur(6px);
  transition:
    opacity var(--geo-left-dur) var(--geo-ease),
    transform var(--geo-left-dur) var(--geo-ease),
    filter var(--geo-left-dur) var(--geo-ease);
  transition-delay: calc(var(--geo-step-i) * var(--geo-left-stagger));
}

.geo-behavior-card.geo-play .geo-step {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.geo-step__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(241, 245, 249, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity calc(var(--geo-left-dur) * 0.85) var(--geo-ease),
    transform calc(var(--geo-left-dur) * 0.95) cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.5s var(--geo-ease);
  transition-delay: calc(var(--geo-step-i) * var(--geo-left-stagger));
  box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
}

.geo-behavior-card.geo-play .geo-step__icon {
  opacity: 1;
  transform: scale(1);
}

.geo-behavior-card.geo-left-settle .geo-path-panel--trad .geo-path-step {
  animation: geo-path-step-breathe 4s var(--geo-ease) infinite;
}

.geo-behavior-card.geo-left-settle .geo-path-panel--trad .geo-path-step:nth-child(2) {
  animation-delay: 0.25s;
}
.geo-behavior-card.geo-left-settle .geo-path-panel--trad .geo-path-step:nth-child(3) {
  animation-delay: 0.5s;
}
.geo-behavior-card.geo-left-settle .geo-path-panel--trad .geo-path-step:nth-child(4) {
  animation-delay: 0.75s;
}
.geo-behavior-card.geo-left-settle .geo-path-panel--trad .geo-path-step:nth-child(5) {
  animation-delay: 1s;
}

@keyframes geo-path-step-breathe {
  0%,
  100% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(241, 245, 249, 0.55);
  }
}

@keyframes geo-legacy-stack-breathe {
  0%,
  100% {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
    border-color: rgba(226, 232, 240, 0.92);
  }
  50% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.75) inset,
      0 10px 28px -18px rgba(15, 23, 42, 0.07);
    border-color: rgba(203, 213, 225, 0.95);
  }
}

@keyframes geo-step-icon-breathe {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
  50% {
    box-shadow: 0 0 12px 1px rgba(99, 102, 241, 0.12);
  }
}

.geo-step__text {
  flex: 1;
  padding-top: 0.15rem;
}

.geo-step__label {
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.5;
}

/* 连接线：流动 + 完成闪 */
.geo-step-connector {
  width: 2px;
  margin-left: 9px;
  height: 11px;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scaleY(0.55);
  transform-origin: top center;
  transition:
    opacity 0.4s var(--geo-ease),
    transform 0.48s var(--geo-ease),
    filter 0.35s var(--geo-ease);
  transition-delay: calc(var(--geo-conn-i) * var(--geo-left-stagger) + var(--geo-left-stagger) * 0.35);
}

.geo-behavior-card.geo-play .geo-step-connector {
  opacity: 1;
  transform: scaleY(1);
}

.geo-step-connector__track {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(148, 163, 184, 0.45) 0%,
    rgba(99, 102, 241, 0.35) 50%,
    rgba(59, 130, 246, 0.28) 100%
  );
  background-size: 100% 220%;
  animation: geo-conn-flow-pos 2.4s linear infinite;
  animation-play-state: paused;
}

.geo-behavior-card.geo-play .geo-step-connector__track {
  animation-play-state: running;
}

@keyframes geo-conn-flow-pos {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 0% 100%;
  }
}

.geo-step-connector.geo-conn-boost {
  animation: geo-conn-flash 320ms var(--geo-ease) 1 forwards;
}

@keyframes geo-conn-flash {
  0% {
    filter: brightness(1);
    transform: scaleY(1);
  }
  40% {
    filter: brightness(1.45);
    transform: scaleY(1.08);
  }
  100% {
    filter: brightness(1);
    transform: scaleY(1);
  }
}

.geo-behavior-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 48px;
}

.geo-behavior-arrow__svg {
  width: clamp(36px, 5.5vw, 52px);
  height: auto;
  overflow: visible;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.92);
  transition:
    opacity 0.55s var(--geo-ease),
    transform 0.6s var(--geo-ease),
    filter 0.45s var(--geo-ease);
}

.geo-behavior-card.geo-phase-arrow-soft .geo-behavior-arrow__svg {
  opacity: 0.55;
  transform: translate3d(0, 0, 0) scale(1);
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.35));
}

.geo-behavior-card.geo-phase-arrow-soft .geo-behavior-arrow__pulse {
  animation: geo-arrow-breathe 2.8s var(--geo-ease) infinite;
  animation-play-state: running;
}

@keyframes geo-arrow-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.9;
  }
}

.geo-behavior-arrow__pulse {
  transform-origin: center;
  animation-play-state: paused;
}

.geo-behavior-arrow__shimmer {
  position: absolute;
  width: 36%;
  height: 130%;
  left: 32%;
  top: -15%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 45%,
    transparent 88%
  );
  opacity: 0;
  transform: translate3d(-50%, 0, 0) skewX(-10deg);
  pointer-events: none;
  mix-blend-mode: overlay;
}

.geo-behavior-card.geo-phase-arrow-soft .geo-behavior-arrow__shimmer {
  opacity: 0.35;
  animation: geo-arrow-shimmer-slow 3.2s var(--geo-ease) infinite;
}

@keyframes geo-arrow-shimmer-slow {
  0% {
    transform: translate3d(-55%, 0, 0) skewX(-10deg);
  }
  100% {
    transform: translate3d(55%, 0, 0) skewX(-10deg);
  }
}

.geo-behavior-arrow__burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    60% 80% at 50% 50%,
    rgba(99, 102, 241, 0.35) 0%,
    transparent 70%
  );
  transform: scale(0.85);
}

.geo-behavior-card.geo-phase-arrow-burst .geo-behavior-arrow__burst {
  animation: geo-arrow-burst-once 0.75s var(--geo-ease) 1 forwards;
}

.geo-behavior-card.geo-phase-arrow-burst .geo-behavior-arrow__svg {
  animation: geo-arrow-burst-scale 0.75s var(--geo-ease) 1 forwards;
}

@keyframes geo-arrow-burst-once {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  35% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}

@keyframes geo-arrow-burst-scale {
  0% {
    filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.35));
  }
  40% {
    filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.55));
    transform: scale(1.08);
  }
  100% {
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.3));
    transform: scale(1);
  }
}

.geo-behavior-arrow__burst-wave {
  position: absolute;
  width: 120%;
  height: 100%;
  left: -10%;
  top: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 48%,
    transparent 96%
  );
  opacity: 0;
  transform: translate3d(-30%, 0, 0) scaleX(0.6);
}

.geo-behavior-card.geo-phase-arrow-burst .geo-behavior-arrow__burst-wave {
  animation: geo-burst-wave 0.7s var(--geo-ease) 1 forwards;
}

@keyframes geo-burst-wave {
  0% {
    opacity: 0;
    transform: translate3d(-35%, 0, 0) scaleX(0.5);
  }
  30% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate3d(35%, 0, 0) scaleX(1.1);
  }
}

/* 右侧 AI 列：与左侧同时起步，更快结束 */
.geo-behavior-ai {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.geo-ai-input {
  border-radius: 11px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.65);
  padding: 0.45rem 0.6rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #334155;
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  opacity: 0;
  transform: translate3d(22px, 0, 0);
  filter: blur(4px);
  transition:
    opacity 0.42s var(--geo-ease),
    transform 0.48s var(--geo-ease),
    filter 0.48s var(--geo-ease);
}

.geo-behavior-card.geo-play .geo-ai-input,
.geo-behavior-card.geo-right-reveal .geo-ai-input {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.geo-ai-input__text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.geo-ai-input__caret {
  width: 2px;
  height: 0.75rem;
  margin-left: 2px;
  background: #6366f1;
  border-radius: 1px;
  opacity: 1;
  animation: geo-caret-blink 1s steps(1, end) infinite;
}

@keyframes geo-caret-blink {
  50% {
    opacity: 0;
  }
}

.geo-ai-core {
  position: relative;
  border-radius: 12px;
  padding: 0.5rem 0.65rem 0.55rem;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 38%, #3b82f6 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 12px 32px -12px rgba(79, 70, 229, 0.55);
  opacity: 0;
  transform: translate3d(12px, 0, 0) scale(0.92);
  filter: blur(4px);
  transition:
    opacity 0.48s var(--geo-ease),
    transform 0.52s var(--geo-ease),
    filter 0.5s var(--geo-ease);
}

.geo-behavior-card.geo-phase-r-core .geo-ai-core {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.geo-ai-core:hover {
  transform: translate3d(0, -1px, 0) scale(1.01);
}

.geo-ai-core__shimmer-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 42%,
    transparent 62%
  );
  opacity: 0;
  transform: translate3d(-60%, 0, 0);
  pointer-events: none;
}

.geo-behavior-card.geo-phase-r-core .geo-ai-core__shimmer-sweep {
  opacity: 1;
  animation: geo-core-shimmer 1.35s var(--geo-ease) 1 forwards;
}

@keyframes geo-core-shimmer {
  0% {
    transform: translate3d(-55%, 0, 0);
    opacity: 0;
  }
  25% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(55%, 0, 0);
    opacity: 0;
  }
}

.geo-ai-core__label {
  position: relative;
  z-index: 1;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
  margin-bottom: 0.2rem;
}

.geo-ai-core__title {
  position: relative;
  z-index: 1;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.geo-ai-core__tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.geo-ai-tag {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  filter: blur(5px);
  transition:
    opacity 0.36s var(--geo-ease),
    transform 0.42s cubic-bezier(0.34, 1.45, 0.64, 1),
    filter 0.4s var(--geo-ease),
    box-shadow 0.4s var(--geo-ease);
}

.geo-behavior-card.geo-phase-r-tags .geo-ai-tag:nth-child(1) {
  transition-delay: 0ms;
}
.geo-behavior-card.geo-phase-r-tags .geo-ai-tag:nth-child(2) {
  transition-delay: 70ms;
}
.geo-behavior-card.geo-phase-r-tags .geo-ai-tag:nth-child(3) {
  transition-delay: 140ms;
}

.geo-behavior-card.geo-phase-r-tags .geo-ai-tag {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
}

.geo-ai-core__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.38), transparent 55%);
  opacity: 0.28;
  pointer-events: none;
  mix-blend-mode: soft-light;
  transition: opacity 0.45s var(--geo-ease), transform 0.45s var(--geo-ease);
}

.geo-behavior-card.geo-phase-r-glow .geo-ai-core__glow {
  opacity: 0.58;
  transform: scale(1.06);
}

.geo-ai-core__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.geo-ai-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  opacity: 0;
  animation: geo-particle-float 5.5s var(--geo-ease) infinite;
}

.geo-behavior-card.geo-phase-r-core .geo-ai-particle {
  opacity: 1;
}

.geo-ai-particle:nth-child(1) {
  left: 12%;
  top: 20%;
  animation-delay: 0s;
}
.geo-ai-particle:nth-child(2) {
  left: 78%;
  top: 28%;
  animation-delay: 0.8s;
}
.geo-ai-particle:nth-child(3) {
  left: 55%;
  top: 65%;
  animation-delay: 1.4s;
}
.geo-ai-particle:nth-child(4) {
  left: 30%;
  top: 72%;
  animation-delay: 2s;
}

@keyframes geo-particle-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.25;
  }
  50% {
    transform: translate3d(4px, -10px, 0);
    opacity: 0.65;
  }
}

.geo-ai-result {
  position: relative;
  border-radius: 11px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.45rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
  color: #0f172a;
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(0.96);
  filter: blur(3px);
  transition:
    opacity 0.42s var(--geo-ease),
    transform 0.48s cubic-bezier(0.34, 1.45, 0.64, 1),
    filter 0.42s var(--geo-ease);
}

.geo-behavior-card.geo-phase-r-result .geo-ai-result {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.geo-behavior-card.geo-phase-r-result-pulse .geo-ai-result {
  animation: geo-result-pulse 0.65s var(--geo-ease) 1;
}

@keyframes geo-result-pulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

.geo-ai-result__particles {
  position: absolute;
  inset: -6px;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}

.geo-ai-result__dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.35);
  left: 50%;
  top: 50%;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.2);
}

.geo-behavior-card.geo-phase-r-result .geo-ai-result__dot {
  animation: geo-result-dot 0.85s var(--geo-ease) 1 forwards;
}

.geo-ai-result__dot:nth-child(1) {
  animation-delay: 0.05s;
}
.geo-ai-result__dot:nth-child(2) {
  animation-delay: 0.12s;
}
.geo-ai-result__dot:nth-child(3) {
  animation-delay: 0.18s;
}

@keyframes geo-result-dot {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.2);
  }
  40% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(8);
  }
}

.geo-ai-result__check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.geo-ai-result__check path {
  fill: none;
  stroke: #22c55e;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.42s var(--geo-ease);
}

.geo-behavior-card.geo-phase-r-check .geo-ai-result__check path {
  stroke-dashoffset: 0;
}

@media (max-width: 900px) {
  .geo-behavior-card__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .geo-behavior-arrow {
    min-height: 48px;
    transform: rotate(90deg);
  }

  .geo-behavior-arrow__svg {
    width: 42px;
  }

  .geo-ai-particle {
    display: none;
  }

  .geo-step {
    filter: none;
  }

  .geo-ai-input,
  .geo-ai-core {
    filter: none;
  }
}

/* ========== Migration card ========== */
.geo-migration-card__body {
  display: grid;
  /* 桌面：左图右文 — 趋势图约 58%，右侧四个理由 2×2 约 42% */
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
  gap: clamp(0.65rem, 1.5vw, 1.05rem);
  align-items: stretch;
  min-height: 0;
}

.geo-migration-chart-wrap {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.55) 0%, rgba(255, 255, 255, 0.4) 42%, rgba(248, 250, 252, 0.75) 100%);
  border: 1px solid rgba(226, 232, 240, 0.85);
  padding: clamp(0.45rem, 0.9vw, 0.65rem);
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  transition:
    border-color 0.45s var(--geo-ease),
    box-shadow 0.45s var(--geo-ease);
}

.geo-migration-card:hover .geo-migration-chart-wrap {
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.08) inset;
}

.geo-migration-chart-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 50% at 50% 0%, rgba(59, 130, 246, 0.08), transparent 70%);
  pointer-events: none;
}

.geo-migration-chart-head {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.geo-migration-svg-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  transform: translate3d(0, 0, 0);
}

.geo-migration-svg-wrap.geo-chart-float {
  animation: geo-chart-float 6s var(--geo-ease) infinite;
}

@keyframes geo-chart-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -4px, 0);
  }
}

.geo-migration-svg {
  width: 100%;
  height: auto;
  max-height: clamp(120px, 20vh, 188px);
  display: block;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition:
    opacity 0.55s var(--geo-ease),
    transform 0.55s var(--geo-ease);
}

.geo-migration-card.geo-migration-chart-ready .geo-migration-svg {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.geo-area-trad,
.geo-area-ai {
  opacity: 0;
  transition: opacity 0.55s var(--geo-ease);
}

.geo-migration-card.geo-migration-areas-on .geo-area-trad,
.geo-migration-card.geo-migration-areas-on .geo-area-ai {
  opacity: 1;
}

.geo-mig-dot {
  opacity: 0;
  transition: opacity 0.42s var(--geo-ease);
}

.geo-migration-card.geo-migration-chart-ready .geo-mig-dot {
  opacity: 1;
}

.geo-migration-card.geo-migration-chart-ready .geo-mig-dot:nth-child(1) {
  transition-delay: 0.05s;
}
.geo-migration-card.geo-migration-chart-ready .geo-mig-dot:nth-child(2) {
  transition-delay: 0.1s;
}
.geo-migration-card.geo-migration-chart-ready .geo-mig-dot:nth-child(3) {
  transition-delay: 0.15s;
}
.geo-migration-card.geo-migration-chart-ready .geo-mig-dot:nth-child(4) {
  transition-delay: 0.2s;
}
.geo-migration-card.geo-migration-chart-ready .geo-mig-dot:nth-child(5) {
  transition-delay: 0.25s;
}
.geo-migration-card.geo-migration-chart-ready .geo-mig-dot:nth-child(6) {
  transition-delay: 0.3s;
}
.geo-migration-card.geo-migration-chart-ready .geo-mig-dot:nth-child(7) {
  transition-delay: 0.35s;
}
.geo-migration-card.geo-migration-chart-ready .geo-mig-dot:nth-child(8) {
  transition-delay: 0.4s;
}

.geo-chart-grid-anim line {
  opacity: 0.1;
  animation: geo-grid-pulse 4s var(--geo-ease) infinite;
}

.geo-chart-grid-anim line:nth-child(2) {
  animation-delay: 0.6s;
}
.geo-chart-grid-anim line:nth-child(3) {
  animation-delay: 1.2s;
}
.geo-chart-grid-anim line:nth-child(4) {
  animation-delay: 1.8s;
}

@keyframes geo-grid-pulse {
  0%,
  100% {
    opacity: 0.08;
  }
  50% {
    opacity: 0.16;
  }
}

.geo-chart-scan {
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.12;
  animation: geo-chart-scan-move 5s linear infinite;
}

@keyframes geo-chart-scan-move {
  0% {
    transform: translate3d(-20%, 0, 0);
  }
  100% {
    transform: translate3d(20%, 0, 0);
  }
}

.geo-cross-node {
  pointer-events: none;
}

.geo-migration-card.geo-phase-cross .geo-cross-ripple {
  animation: geo-cross-ripple 1.6s var(--geo-ease) infinite;
}

@keyframes geo-cross-ripple {
  0% {
    opacity: 0.35;
    transform: scale(0.65);
  }
  70% {
    opacity: 0;
    transform: scale(1.65);
  }
  100% {
    opacity: 0;
    transform: scale(1.65);
  }
}

.geo-line-glow {
  fill: none;
  pointer-events: none;
  opacity: 0;
}

.geo-migration-card.geo-phase-line-glow .geo-line-glow--trad {
  opacity: 0.22;
  animation: geo-line-glow-fade 0.85s var(--geo-ease) infinite;
}

.geo-migration-card.geo-phase-line-glow .geo-line-glow--ai {
  opacity: 0.18;
  animation: geo-line-glow-fade 0.85s var(--geo-ease) 0.2s infinite;
}

@keyframes geo-line-glow-fade {
  0%,
  100% {
    opacity: 0.12;
  }
  50% {
    opacity: 0.28;
  }
}

/* 曲线接近交叉：强化 glow + pulse（时代切换） */
.geo-migration-card.geo-phase-nexus .geo-line-glow--trad {
  opacity: 0.42 !important;
  animation: geo-nexus-line-pulse 1.05s var(--geo-ease) infinite;
}

.geo-migration-card.geo-phase-nexus .geo-line-glow--ai {
  opacity: 0.38 !important;
  animation: geo-nexus-line-pulse 1.05s var(--geo-ease) 0.12s infinite;
}

.geo-migration-card.geo-phase-nexus #geo-line-trad,
.geo-migration-card.geo-phase-nexus #geo-line-ai {
  filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.35)) drop-shadow(0 0 10px rgba(34, 197, 94, 0.22));
}

.geo-migration-card.geo-phase-nexus .geo-cross-node {
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.4)) drop-shadow(0 0 14px rgba(34, 197, 94, 0.25));
}

.geo-migration-card.geo-phase-nexus .geo-cross-ripple {
  animation: geo-cross-nexus-pulse 1.15s var(--geo-ease) infinite;
  opacity: 1;
}

@keyframes geo-nexus-line-pulse {
  0%,
  100% {
    opacity: 0.28;
  }
  50% {
    opacity: 0.52;
  }
}

@keyframes geo-cross-nexus-pulse {
  0%,
  100% {
    stroke-opacity: 0.42;
  }
  50% {
    stroke-opacity: 0.95;
  }
}

.geo-migration-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(min-content, auto);
  gap: 0.48rem 0.52rem;
  align-content: start;
  min-width: 0;
}

.geo-migration-reasons__head {
  grid-column: 1 / -1;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 0.1rem;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition:
    opacity 0.4s var(--geo-ease),
    transform 0.45s var(--geo-ease);
}

.geo-migration-card.geo-play-reasons .geo-migration-reasons__head {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.geo-reason {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.32rem;
  padding: 0.48rem 0.5rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(248, 250, 252, 0.55);
  backdrop-filter: blur(10px) saturate(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  min-height: 0;
  transition:
    opacity 0.45s var(--geo-ease),
    transform 0.45s var(--geo-ease),
    border-color 0.35s var(--geo-ease),
    background 0.35s var(--geo-ease),
    box-shadow 0.35s var(--geo-ease);
  transition-delay: var(--geo-delay, 0ms);
}

.geo-reason > div:last-child {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.geo-migration-card.geo-play-reasons .geo-reason {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.geo-migration-card.geo-migration-static .geo-reason,
.geo-migration-card.geo-migration-static .geo-migration-reasons__head {
  transition-delay: 0ms !important;
}

.geo-reason:hover {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(99, 102, 241, 0.22);
  background: rgba(239, 246, 255, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 10px 28px -18px rgba(15, 23, 42, 0.12);
}

.geo-reason__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 246, 255, 0.95);
  color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12);
  transition:
    box-shadow 0.35s var(--geo-ease),
    transform 0.35s var(--geo-ease);
}

.geo-reason:hover .geo-reason__icon {
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35), 0 0 20px rgba(59, 130, 246, 0.18);
  transform: scale(1.04);
}

.geo-reason__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.geo-reason__desc {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.625;
  margin: 0;
}

.geo-chart-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 12;
  min-width: 120px;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.5;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 28px -16px rgba(15, 23, 42, 0.25);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 6px, 0) scale(0.96);
  transition:
    opacity 0.25s var(--geo-ease),
    transform 0.25s var(--geo-ease);
}

.geo-chart-tooltip.geo-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.geo-node-ripple {
  pointer-events: none;
  opacity: 0.12;
  transform-origin: center;
  transform: scale(0.85);
  transition:
    opacity 0.35s var(--geo-ease),
    transform 0.45s var(--geo-ease);
}

.geo-pt-wrap:hover .geo-node-ripple,
.geo-pt-wrap:focus-within .geo-node-ripple {
  opacity: 0.55;
  transform: scale(1.35);
}

.geo-pt-dot {
  transform-origin: center;
  transition:
    opacity 0.38s cubic-bezier(0.34, 1.45, 0.64, 1),
    transform 0.45s cubic-bezier(0.34, 1.45, 0.64, 1);
}

@media (max-width: 900px) {
  .geo-migration-card__body {
    grid-template-columns: 1fr;
    gap: clamp(0.55rem, 1.2vw, 0.85rem);
    min-height: 0;
  }

  .geo-migration-svg-wrap.geo-chart-float {
    animation: none;
  }

  .geo-migration-reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .geo-migration-reasons {
    grid-template-columns: 1fr;
  }

  .geo-reason {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.5rem;
    row-gap: 0.12rem;
    align-items: start;
    padding: 0.55rem 0.62rem;
  }

  .geo-reason__icon {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .geo-reason > div:last-child {
    display: contents;
  }

  .geo-reason__title {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    line-height: 30px;
  }

  .geo-reason__desc {
    grid-column: 2;
    grid-row: 2;
    padding-left: 0;
  }
}

/* ========== 双模块 + 右侧「用户行为变化带来的启示」小卡片 ========== */
[aria-labelledby="ai-search-habits-heading"].no-dot-bg {
  background-image: none;
  background-attachment: scroll;
  /* 左右两列间距（勿与上下模块间距混用） */
  --ai-habits-col-gap: clamp(1rem, 2.4vw, 1.65rem);
  /* 设计稿参考：左侧 demo 目标最小高度（与 720×415.16 比例一致；JS 会取 max(自然高度, 此值)） */
  --ai-habits-demo-target-min-h: 300px;
  /* 右侧 insight 2×2 单元格间距（行列统一） */
  --ai-habits-insight-gap: 10px;
}

.ai-habits-pair-row {
  display: grid;
  column-gap: var(--ai-habits-col-gap, 1.25rem);
  row-gap: 0;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .ai-habits-pair-row {
    grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
    align-items: stretch;
  }
}

@media (max-width: 1023px) {
  .ai-habits-pair-row {
    grid-template-columns: 1fr;
  }
}

.ai-habits-pair-row__demo {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

@media (min-width: 1024px) {
  /* 左侧 demo：与右侧同高拉伸；min-height 由 JS 与 --ai-habits-demo-target-min-h 对齐双行 */
  .ai-habits-pair-row__demo .ai-habits-card-slot {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .ai-habits-pair-row__demo .geo-habits-card {
    flex: 1 1 auto;
    min-height: 0 !important;
    height: 100%;
    max-height: none;
    display: flex;
    flex-direction: column;
  }

  .ai-habits-pair-row__demo .geo-habits-card__inner {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .ai-habits-pair-row__demo .geo-habits-card__inner > header {
    flex-shrink: 0;
  }

  /* 行为卡主栅格占满标题下剩余高度 */
  .ai-habits-pair-row__demo .geo-behavior-card__grid {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
  }

  .ai-habits-pair-row__demo .geo-behavior-col {
    min-height: 0;
  }

  /* 迁移卡主体占满剩余高度；左图右卡同高 */
  .ai-habits-pair-row__demo .geo-migration-card__body {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    align-items: stretch;
  }

  .ai-habits-pair-row__demo .geo-migration-chart-wrap {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .ai-habits-pair-row__demo .geo-migration-svg-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ai-habits-pair-row__demo .geo-migration-reasons {
    height: 100%;
    min-height: 0;
    align-content: stretch;
  }
}

.ai-habits-insights {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

@media (min-width: 1024px) {
  .ai-habits-insights {
    height: 100%;
    align-self: stretch;
  }

  .ai-habits-insights__grid {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: repeat(2, 1fr);
    gap: var(--ai-habits-insight-gap, 10px);
    align-content: stretch;
  }

  [aria-labelledby="ai-search-habits-heading"] .ai-habits-insight {
    min-height: 0;
    height: 100%;
    align-items: center;
    box-sizing: border-box;
  }

  .ai-habits-insight__body {
    justify-content: center;
  }

  .ai-habits-insight__text {
    flex: 0 1 auto;
  }
}

.ai-habits-insights__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ai-habits-insight-gap, 10px);
  align-items: stretch;
  width: 100%;
}

.ai-habits-insight {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.58rem;
  min-height: clamp(6.75rem, 12vh, 9.25rem);
  height: 100%;
  padding: 0.72rem 0.82rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 10px 36px -28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px) saturate(1.12);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
  transition:
    border-color 0.45s var(--geo-ease),
    box-shadow 0.45s var(--geo-ease),
    transform 0.5s var(--geo-ease);
}

/* 与全站 .reveal 一致：进入视口时上浮淡入（main.js 加 .active）；置于基础样式之后以免 transition 被覆盖 */
[aria-labelledby="ai-search-habits-heading"] .ai-habits-insight.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s var(--geo-ease),
    box-shadow 0.45s var(--geo-ease);
}

[aria-labelledby="ai-search-habits-heading"] .ai-habits-insight.reveal.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[aria-labelledby="ai-search-habits-heading"] .ai-habits-insight.reveal.active:hover {
  transform: translate3d(0, -6px, 0);
}

.ai-habits-insight:hover {
  transform: translate3d(0, -6px, 0);
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 0 0 1px rgba(99, 102, 241, 0.12),
    0 22px 48px -22px rgba(15, 23, 42, 0.14);
}

.ai-habits-insight__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-habits-insight__icon svg {
  width: 20px;
  height: 20px;
}

.ai-habits-insight__icon--purple {
  background: #eef2ff;
  color: #6366f1;
}

.ai-habits-insight__icon--mint {
  background: #ecfdf5;
  color: #059669;
}

.ai-habits-insight__icon--sky {
  background: #eff6ff;
  color: #2563eb;
}

.ai-habits-insight__icon--peach {
  background: #fff7ed;
  color: #ea580c;
}

.ai-habits-insight__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ai-habits-insight__heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.15rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.ai-habits-insight__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.625;
  color: #64748b;
  flex: 1;
}

@media (max-width: 640px) {
  .geo-habits-card {
    border-radius: 16px;
    padding: 0.7rem;
  }

  .geo-habits-card__title {
    font-size: 1rem;
  }

  .geo-habits-card__subtitle,
  .geo-path-step {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .geo-path-panel {
    border-radius: 12px;
    padding: 0.6rem;
  }

  .geo-path-banner {
    font-size: 0.9rem;
  }

  .geo-migration-card__body {
    gap: 0.75rem;
  }

  .geo-migration-chart-wrap {
    min-height: 12rem;
  }

  .ai-habits-insights__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, auto);
    gap: 0.55rem;
  }

  .ai-habits-insight {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.6rem;
    row-gap: 0.2rem;
    min-height: 0;
    height: auto;
    padding: 0.75rem;
    border-radius: 12px;
    align-items: start;
  }

  .ai-habits-insight__icon {
    grid-column: 1;
    grid-row: 1;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    align-self: start;
  }

  .ai-habits-insight__body {
    display: contents;
  }

  .ai-habits-insight__heading {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    align-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }

  .ai-habits-insight__heading {
    font-size: 1rem;
  }

  .ai-habits-insight__text {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
  }
}

@media (max-width: 480px) {
  .ai-habits-insights__grid {
    grid-template-columns: 1fr;
  }
}

.ai-habits-card-slot .geo-habits-card {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 0.6s var(--geo-ease),
    transform 0.65s var(--geo-ease);
}

.ai-habits-card-slot.geo-slot-rise .geo-habits-card {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 品牌背书（section 底部中央） */
.ai-habits-trust {
  margin-top: clamp(56px, 5vw, 80px);
  margin-left: auto;
  margin-right: auto;
  max-width: 28rem;
  text-align: center;
  padding-top: clamp(1.1rem, 2vw, 1.5rem);
}

.ai-habits-trust__rule {
  height: 1px;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto 1.15rem;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(99, 102, 241, 0.22) 22%,
    rgba(148, 163, 184, 0.45) 50%,
    rgba(34, 197, 94, 0.2) 78%,
    transparent 100%
  );
  opacity: 0.9;
}

.ai-habits-trust__text {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #94a3b8;
  line-height: 1.625;
}

.ai-habits-trust__hl {
  font-weight: 600;
  letter-spacing: 0;
  background: linear-gradient(105deg, #6366f1 0%, #3b82f6 45%, #22c55e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[aria-labelledby="ai-search-habits-heading"] .ai-habits-trust.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.12s cubic-bezier(0.22, 1, 0.36, 1);
}

[aria-labelledby="ai-search-habits-heading"] .ai-habits-trust.reveal.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .geo-step-connector__track,
  .geo-behavior-arrow__pulse,
  .geo-behavior-arrow__shimmer,
  .geo-ai-particle,
  .geo-migration-svg-wrap.geo-chart-float,
  .geo-habits-card__border-spin,
  .geo-chart-grid-anim line,
  .geo-chart-scan,
  .geo-cross-ripple,
  .geo-line-glow {
    animation: none !important;
  }

  .geo-step {
    filter: none !important;
  }

  .geo-ai-input,
  .geo-ai-core,
  .geo-ai-result,
  .geo-ai-tag {
    filter: none !important;
  }

  .geo-path-panel .geo-path-step {
    transition: none !important;
  }

  [aria-labelledby="ai-search-habits-heading"] .ai-habits-trust.reveal {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  [aria-labelledby="ai-search-habits-heading"] .ai-habits-insight.reveal,
  [aria-labelledby="ai-search-habits-heading"] .ai-habits-insight.reveal.active {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .geo-behavior-card.geo-left-settle .geo-path-panel--trad .geo-path-step {
    animation: none !important;
  }

  .ai-habits-insight:hover {
    transform: none !important;
  }
}
