/* =============================================================
   首页专属样式 · home.css
   ============================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 118px) clamp(56px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
}

.hero .glow-orb--brand {
  top: -240px;
  left: 50%;
  width: 900px;
  height: 620px;
  transform: translateX(-50%);
}

.hero .glow-orb--cyan {
  top: 60px;
  right: -160px;
  width: 520px;
  height: 480px;
}

/* 紫色氛围光：左下补一层，画面更有层次 */
.hero .glow-orb--violet {
  bottom: -180px;
  left: -180px;
  width: 560px;
  height: 480px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(36px, 5vw, 68px);
}

.hero-copy h1 {
  margin-top: 22px;
  font-size: clamp(2.1rem, 4.6vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero-copy h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy .lede {
  margin-top: 22px;
  max-width: 560px;
  color: var(--text-2);
  font-size: clamp(0.98rem, 1.5vw, 1.09rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.83rem;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust svg {
  width: 14px;
  height: 14px;
  color: var(--brand-2);
}

/* ---- Hero 右侧：平台实景运行界面截图 ---- */
.hero-visual {
  position: relative;
}

.console {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #0a0d15;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.hero-visual:hover .console {
  transform: translateY(-5px);
  box-shadow: var(--shadow), 0 22px 48px -18px rgba(56, 132, 255, 0.35);
}

.console img {
  display: block;
  width: 100%;
  height: auto;
}

/* 悬浮提示卡 */
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(16, 20, 30, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.78rem;
  animation: floatY 5s ease-in-out infinite;
}

.float-chip--a {
  left: -26px;
  bottom: 54px;
}

.float-chip--b {
  right: -18px;
  top: 44px;
  animation-delay: -2.5s;
}

.float-chip b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--grad-soft);
  color: var(--brand-2);
}

.float-chip b svg {
  width: 14px;
  height: 14px;
}

.float-chip strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

.float-chip small {
  color: var(--text-3);
  font-size: 0.68rem;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ---------- 客户 Logo 墙 ---------- */
.logo-wall {
  position: relative;
  padding-block: clamp(34px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.logo-wall p {
  text-align: center;
  color: var(--text-3);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* logo 墙两端渐隐，更精致 */
.logo-row {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 58px);
  margin-top: 26px;
}

.logo-row span {
  color: #4e576b;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease);
  cursor: default;
}

.logo-row span:hover {
  color: var(--text-2);
}

/* ---------- 数据条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin-inline: auto;
  margin-block: clamp(28px, 4vw, 44px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  padding: clamp(22px, 3vw, 32px) clamp(18px, 2.6vw, 32px);
  background: var(--bg);
  transition: background-color 0.35s var(--ease);
}

.stat:hover {
  background: var(--bg-soft);
}

.stat strong {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  display: block;
  margin-top: 7px;
  color: var(--text-2);
  font-size: 0.85rem;
}

/* ---------- 能力网格 ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cap-card {
  position: relative;
  padding: clamp(26px, 3vw, 34px);
  overflow: hidden;
}

.cap-card::after {
  content: "";
  position: absolute;
  top: -60%;
  right: -30%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 123, 255, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.cap-card:hover::after {
  opacity: 1;
}

.cap-card h3 {
  margin-top: 20px;
  font-size: 1.14rem;
}

.cap-card p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.82;
}

.cap-list {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cap-list li {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--text-3);
  font-size: 0.76rem;
}

/* ---------- 行业解决方案 ---------- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.solution-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.solution-card:hover {
  border-color: rgba(79, 123, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.solution-card .sol-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.solution-card h3 {
  font-size: 1.02rem;
}

.solution-card p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.78;
  flex: 1;
}

.solution-card .sol-num {
  font-family: var(--font-num);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
}

/* ---------- 客户评价 ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quote-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 3vw, 30px);
}

.quote-card .stars {
  display: flex;
  gap: 3px;
  color: #ffb431;
}

.quote-card .stars svg {
  width: 14px;
  height: 14px;
}

.quote-card blockquote {
  flex: 1;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.85;
}

.quote-who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid rgba(79, 123, 255, 0.28);
  color: var(--brand-2);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.quote-who strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
}

.quote-who small {
  color: var(--text-3);
  font-size: 0.78rem;
}

/* ---------- 底部 CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  margin-inline: auto;
  max-width: var(--container);
  padding: clamp(40px, 6vw, 68px) clamp(24px, 5vw, 64px);
  border: 1px solid rgba(79, 123, 255, 0.28);
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse 80% 140% at 50% 0%, rgba(79, 123, 255, 0.2), transparent 65%),
    linear-gradient(165deg, #10141f, #0a0d14);
  text-align: center;
}

.cta-band .glow-orb--cyan {
  bottom: -160px;
  left: 50%;
  width: 400px;
  height: 300px;
  transform: translateX(-50%);
}

.cta-band h2 {
  position: relative;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

.cta-band p {
  position: relative;
  margin: 16px auto 0;
  max-width: 520px;
  color: var(--text-2);
  font-size: 0.98rem;
}

.cta-band .hero-actions {
  position: relative;
  justify-content: center;
  margin-top: 30px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }

  .float-chip--a {
    left: 0;
    bottom: -18px;
  }

  .float-chip--b {
    right: 0;
    top: -18px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .cap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .float-chip {
    font-size: 0.72rem;
    padding: 9px 12px;
  }
}

/* =============================================================
   视觉增强层（2026-10 升级）
   ============================================================= */

/* ---- Hero：底部渐隐融合 + 光晕增强 ---- */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 150px;
  background: linear-gradient(180deg, transparent, rgba(7, 8, 12, 0.92));
  pointer-events: none;
  z-index: 0;
}

.hero .glow-orb--brand {
  opacity: 1.1;
}

/* hero 主标题逐行更聚气 */
.hero-copy h1 {
  text-wrap: balance;
}

/* 渐变强调字加柔光 */
.hero-copy h1 em {
  filter: drop-shadow(0 0 26px rgba(34, 211, 238, 0.35));
}

/* ---- 数据条：hover 渐变光条 + 数字提亮 ---- */
.stat {
  position: relative;
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 2px;
  border-radius: 2px;
  background: var(--grad);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}

.stat:hover::after {
  opacity: 1;
  transform: none;
}

.stat strong {
  transition: filter 0.35s var(--ease);
}

.stat:hover strong {
  filter: brightness(1.3) drop-shadow(0 0 18px rgba(79, 123, 255, 0.45));
}

/* ---- 能力卡：图标徽章 hover 发光上浮 ---- */
.cap-card .icon-badge {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.cap-card:hover .icon-badge {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(79, 123, 255, 0.45), 0 14px 34px -10px rgba(79, 123, 255, 0.65);
}

/* ---- 客户评价：右上角渐变大引号 ---- */
.quote-card::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.6rem;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.55;
  pointer-events: none;
}

/* ---- 底部 CTA：旋转流光边框 ---- */
@property --cta-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--cta-angle),
    rgba(79, 123, 255, 0.05) 0deg,
    rgba(79, 123, 255, 0.05) 250deg,
    rgba(79, 123, 255, 0.95) 305deg,
    rgba(34, 211, 238, 0.95) 330deg,
    rgba(79, 123, 255, 0.05) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: ctaBorderSpin 7s linear infinite;
  pointer-events: none;
}

@keyframes ctaBorderSpin {
  to {
    --cta-angle: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-band::before {
    animation: none;
  }
}
