/* ============================================================
   首页（index.html）BCG 风格样式
   依赖 assets/ai-agents.css 提供的基础设计系统（nav/footer）
   ============================================================ */

/* ---------- Hero ---------- */
.home-hero {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 64px 0 96px;
  isolation: isolate;
  background: linear-gradient(125deg, #d9f5a8 0%, #e4f9e9 46%, #d4fff2 100%);
}

/* Soft, continuously drifting color fields add motion behind the hero copy. */
.home-hero::before {
  content: "";
  position: absolute;
  inset: -24%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  filter: blur(18px);
  background:
    linear-gradient(112deg, transparent 38%, rgba(247, 255, 250, 0.84) 48%, rgba(235, 255, 249, 0.68) 56%, transparent 66%),
    radial-gradient(ellipse 42% 62% at 20% 28%, rgba(157, 244, 93, 0.92) 0%, transparent 72%),
    radial-gradient(ellipse 38% 64% at 82% 22%, rgba(18, 210, 172, 0.88) 0%, transparent 72%),
    radial-gradient(ellipse 44% 48% at 56% 82%, rgba(230, 255, 229, 0.94) 0%, transparent 74%);
  transform: translate3d(-8%, -4%, 0) scale(1.06);
  animation: heroAuroraDrift 13s ease-in-out infinite alternate;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: -28% -16%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.88;
  background: linear-gradient(112deg, transparent 30%, rgba(139, 250, 150, 0.48) 43%, rgba(250, 255, 252, 0.98) 50%, rgba(104, 235, 198, 0.5) 57%, transparent 70%);
  transform: translate3d(22%, -2%, 0) scale(1.06);
  animation: heroRibbonDrift 8s ease-in-out infinite alternate;
}
@keyframes heroAuroraDrift {
  from { transform: translate3d(-11%, -6%, 0) scale(1.06); }
  to   { transform: translate3d(11%, 6%, 0) scale(1.16); }
}
@keyframes heroRibbonDrift {
  from { transform: translate3d(22%, -2%, 0) scale(1.06); }
  to   { transform: translate3d(-22%, 2%, 0) scale(1.1); }
}

/* Hero entrance animations (staggered fade-up) */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroVideoIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.home-eyebrow,
.home-title,
.home-sub,
.home-cta {
  animation: heroFadeUp 0.9s var(--ease-standard) both;
}
.home-eyebrow { animation-delay: 0.15s; }
.home-title   { animation-delay: 0.35s; }
.home-sub     { animation-delay: 0.55s; }
.home-cta     { animation-delay: 0.75s; }
.home-scroll-hint {
  animation: heroFadeUp 0.9s var(--ease-standard) 1.1s both;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .home-hero-video,
  .home-hero::before,
  .home-hero::after,
  .home-eyebrow,
  .home-title,
  .home-sub,
  .home-cta,
  .home-scroll-hint,
  .home-scroll-hint span {
    animation: none;
  }
  .home-hero::before,
  .home-hero::after { transform: none; }
  .home-hero-video { display: none; }
}
.home-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
  animation: heroVideoIn 1.6s var(--ease-standard) both;
}
.home-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0.02) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0.06) 72%, rgba(255, 255, 255, 0.34) 100%);
  pointer-events: none;
}
.home-hero .container {
  position: relative;
  z-index: 1;
}
.home-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #558B2F;
  margin-bottom: 32px;
}
.home-eyebrow--dark {
  color: #558B2F;
  margin-bottom: 20px;
}
.home-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 9.5vw, 112px);
  line-height: 1.08;
  color: #17301B;
  letter-spacing: 0.01em;
  max-width: 14em;
  margin-bottom: 36px;
}
.home-sub {
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.6;
  color: #4a5a4e;
  font-weight: 400;
  max-width: 34em;
  margin-bottom: 48px;
}
.home-cta {
  display: inline-block;
  background: #8BC34A;
  color: #14280f;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--motion-base) var(--ease-standard), transform var(--motion-base) var(--ease-standard);
}
.home-cta:hover {
  background: #7CB342;
  transform: translateY(-2px);
}

/* Scroll hint */
.home-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(27, 94, 32, 0.35);
  border-radius: 14px;
}
.home-scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #1B5E20;
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Impact ---------- */
.home-impact {
  padding: 96px 0 64px;
  background: var(--surface);
}
.home-impact-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.15;
  color: #17301B;
  margin-bottom: 22px;
}
.home-impact-lead {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.7;
  color: #4a5a4e;
  max-width: 56em;
  margin-bottom: 40px;
}
/* Business rail (BCG-style carousel) */
.impact-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 18px;
}
.impact-more {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #17301B;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.impact-more:hover { color: #1B5E20; }

.impact-rail {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-inline: max(22px, calc((100% - var(--container-max)) / 2 + 22px)) max(22px, calc((100% - var(--container-max)) / 2 + 22px));
  padding-bottom: 8px;
  /* 隐藏原生滚动条，使用共享的圆点分页导航。 */
  scrollbar-width: none;
}
.impact-rail::-webkit-scrollbar { display: none; }
.home-impact > .scroll-dots { max-width: var(--container-max); margin-inline: auto; padding-inline: 22px; }

.impact-card2 {
  position: relative;
  flex: 0 0 300px;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  scroll-snap-align: start;
  text-decoration: none;
  background: var(--surface);
  transition: transform 0.25s var(--ease-standard), box-shadow 0.25s var(--ease-standard);
}
.impact-card2:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(20, 70, 34, 0.18);
}
.impact-card2 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-standard);
}
.impact-card2:hover img { transform: scale(1.04); }

.impact-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 12px 18px 10px;
  box-shadow: 0 4px 14px rgba(20, 40, 20, 0.10);
}
.impact-chip strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #17301B;
  line-height: 1.1;
}
.impact-chip span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c6b5e;
  text-align: center;
}

.impact-panel {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 16px 20px 18px;
}
.impact-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #3c4a3e;
  margin-bottom: 6px;
}
.impact-panel h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: #14231a;
  margin: 0;
}

/* ---------- Insights ---------- */
.home-insights {
  padding: 112px 0;
  background: #ffffff;
}
.home-insights-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.home-insights-lead {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--fg-2);
  margin: 0;
}
.home-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.hinsight {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.22s var(--ease-standard),
              transform 0.22s var(--ease-standard),
              border-color 0.22s var(--ease-standard);
}
.hinsight:hover {
  box-shadow: 0 20px 40px rgba(20, 70, 34, 0.12), 0 8px 16px rgba(20, 70, 34, 0.08);
  transform: translateY(-8px);
  border-color: rgba(27, 94, 32, 0.3);
}
.hinsight .card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.insight-cover {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.insight-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.22s var(--ease-standard);
}
.hinsight:hover .insight-cover img { transform: scale(1.05); }
.cover-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #8BC34A;
  color: #14280f;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  z-index: 2;
}
.insight-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.insight-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--muted);
  margin-bottom: 12px;
}
.insight-meta .cat { color: #1B5E20; font-weight: 600; }
.insight-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.insight-meta .date { color: var(--muted); }
.insight-body h3 {
  font-size: var(--text-lg);
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--fg);
}
.insight-body p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--muted);
  flex: 1;
  margin: 0;
}
.insight-body .read {
  margin-top: 20px;
  color: var(--fg-2);
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.insight-body .read svg { width: 13px; height: 13px; }
.home-insights-foot {
  margin-top: 40px;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
}
.home-insights-foot a { color: #1B5E20; font-weight: 600; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .impact-card2 { flex-basis: 260px; }
  .home-insights-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
}
@media (max-width: 640px) {
  .home-hero { padding: 48px 0 72px; }
  .home-title { margin-bottom: 24px; }
  .home-sub { margin-bottom: 36px; }
  .home-impact { padding: 64px 0 48px; }
  .impact-card2 { flex-basis: 240px; }
  .impact-panel h3 { font-size: 17px; }
  .home-insights-grid { grid-template-columns: 1fr; }
}
