/* ============================================================
   GradX 官网 — 首页区块样式
   ============================================================ */

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 56px 0 70px;
  background:
    radial-gradient(900px 420px at 78% 8%, rgba(123, 63, 228, 0.14), transparent 62%),
    radial-gradient(900px 460px at 12% 100%, rgba(43, 92, 255, 0.10), transparent 60%),
    linear-gradient(180deg, #eaf1ff 0%, #f6f9ff 70%, #ffffff 100%);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(43, 92, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 92, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(720px 460px at 55% 42%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(720px 460px at 55% 42%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.15fr 1.05fr;
  gap: 26px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 46px;
  line-height: 1.28;
  letter-spacing: 0.01em;
  margin: 22px 0 20px;
}
.grad-text {
  color: transparent;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-desc {
  font-size: 15.5px;
  color: var(--c-text);
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- 中央 3D GX ---- */
.hero-visual {
  position: relative;
  height: 400px;
  display: grid;
  place-items: center;
}
.gx-3d {
  width: min(420px, 96%);
  filter: drop-shadow(0 22px 44px rgba(46, 44, 190, 0.3));
  animation: gx-breathe 6s ease-in-out infinite;
}
.gx-3d img { width: 100%; height: auto; }
@keyframes gx-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}
.orbit {
  position: absolute;
  border: 1.5px solid rgba(90, 110, 255, 0.28);
  border-radius: 50%;
}
.orbit--1 {
  width: 380px; height: 380px;
  transform: rotateX(62deg) rotateZ(-18deg);
  border-style: dashed;
  border-color: rgba(90, 110, 255, 0.35);
}
.orbit--2 {
  width: 470px; height: 470px;
  transform: rotateX(64deg) rotateZ(14deg);
  border-color: rgba(140, 100, 255, 0.22);
}

.float-tag {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(30, 50, 140, 0.14);
  animation: floaty 5s ease-in-out infinite;
}
.float-tag b { font-size: 14px; color: var(--c-ink); }
.float-tag i { font-style: normal; font-size: 10.5px; color: var(--c-text-light); }
.tag-product { top: 8%; left: 4%; }
.tag-ai { top: 6%; right: 2%; animation-delay: -1.6s; }
.tag-data { bottom: 22%; left: -2%; animation-delay: -3.2s; }
.tag-cloud { bottom: 6%; right: 8%; animation-delay: -2.4s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---- 仪表盘 mock ---- */
.dash {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(227, 233, 245, 0.9);
  box-shadow: 0 26px 60px rgba(26, 44, 120, 0.16);
  overflow: hidden;
  font-size: 12px;
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--c-line);
}
.dash-brand { display: flex; align-items: center; gap: 8px; }
.dash-logo { width: 24px; height: 24px; border-radius: 7px; }
.dash-brand b { font-size: 13.5px; }
.dash-head-right { display: flex; align-items: center; gap: 10px; color: #9aa4bd; }
.dash-head-right svg { width: 15px; height: 15px; }
.dash-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6b26b, #e8865a);
}

.dash-body { display: grid; grid-template-columns: 120px 1fr; }
html[lang="en"] .hero-copy h1 { font-size: 38px; }

.dash-side {
  padding: 10px 8px;
  background: #f7faff;
  border-right: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-side li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #6a7692;
  font-size: 11.5px;
}
.dash-side li svg { width: 13px; height: 13px; flex: none; }
.dash-side li.on {
  background: var(--grad-main);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(60, 80, 240, 0.32);
}

.dash-main { padding: 12px 14px 14px; }
.dash-welcome { display: flex; flex-direction: column; margin-bottom: 10px; }
.dash-welcome b { font-size: 13px; }
.dash-welcome span { font-size: 10.5px; color: var(--c-text-light); }

.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat {
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 8px 9px;
  display: grid;
  gap: 1px;
  background: linear-gradient(180deg, #fbfcff, #f4f7ff);
}
.stat span { font-size: 10px; color: var(--c-text-light); }
.stat b { font-size: 14.5px; letter-spacing: 0.01em; }
.stat i { font-style: normal; font-size: 9.5px; }
.stat i.up { color: #17b26a; }

.dash-lower { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
.panel-title { font-size: 11.5px; font-weight: 700; margin-bottom: 7px; }

.dash-chart { border: 1px solid var(--c-line); border-radius: 10px; padding: 9px 10px 8px; }
.trend { width: 100%; height: 82px; }
.trend-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-line 2.2s 0.5s ease forwards;
}
.trend-area { opacity: 0; animation: fade-in 1s 1.8s ease forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
.trend-x { display: flex; justify-content: space-between; font-size: 8.5px; color: #a3adc4; margin-top: 4px; }

.dash-ai { border: 1px solid var(--c-line); border-radius: 10px; padding: 9px 10px; background: linear-gradient(180deg, #fbfcff, #f5f7ff); }
.ai-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 500;
  color: var(--c-primary);
  background: rgba(43, 92, 255, 0.08);
  vertical-align: 1px;
}
.ai-msg {
  display: flex;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 8px;
  color: #5c6883;
  font-size: 10px;
  line-height: 1.55;
}
.ai-ic {
  width: 20px; height: 20px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 6px;
  background: var(--grad-main);
  color: #fff;
}
.ai-ic svg { width: 12px; height: 12px; }
.ai-input {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 5px 5px 5px 11px;
  color: #aab3c8;
  font-size: 10px;
}
.ai-send {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-main);
  color: #fff;
}
.ai-send svg { width: 10px; height: 10px; }

/* ============================================================
   产品矩阵
   ============================================================ */
.section { padding: 76px 0; }

.products { background: #fff; }
.products-inner {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 48px;
  align-items: start;
}
.section-side h2 {
  font-size: 32px;
  margin: 18px 0 14px;
}
.section-side p {
  font-size: 15px;
  color: var(--c-text);
  margin-bottom: 22px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.p-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: 0 4px 18px rgba(24, 48, 120, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.p-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: rgba(43, 92, 255, 0.35);
}
.p-ic {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 8px;
  box-shadow: 0 8px 18px rgba(43, 92, 255, 0.28);
}
.p-ic svg { width: 23px; height: 23px; }
.ic-blue { background: linear-gradient(135deg, #3b6bff, #2b4fe0); }
.ic-indigo { background: linear-gradient(135deg, #4f6bff, #3b3fe0); }
.ic-sky { background: linear-gradient(135deg, #38a7ff, #2470f0); }
.ic-purple { background: linear-gradient(135deg, #8b5cf6, #6d3fe0); }
.ic-blueviolet { background: linear-gradient(135deg, #6366f1, #4437d8); }
.ic-violet { background: linear-gradient(135deg, #a855f7, #7c3aed); }

.p-arrow {
  position: absolute;
  top: 20px; right: 18px;
  color: #b6bfd4;
  transition: color 0.25s ease, transform 0.25s ease;
}
.p-arrow svg { width: 17px; height: 17px; }
.p-card:hover .p-arrow { color: var(--c-primary); transform: translate(2px, -2px); }

.p-card h3 { font-size: 17px; }
.p-sub { font-size: 13px; color: var(--c-primary); font-weight: 600; }
.p-desc { font-size: 13px; color: var(--c-text-light); line-height: 1.65; }
.p-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.p-tags li {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--c-bg-soft);
  color: #5b74c9;
  border: 1px solid rgba(43, 92, 255, 0.14);
}

/* ============================================================
   Agent 时代
   ============================================================ */
.agent-wrap { padding-top: 10px; }
.agent-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 30px;
  align-items: center;
  border-radius: 26px;
  padding: 52px 46px;
  overflow: hidden;
  background:
    radial-gradient(560px 320px at 50% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(115deg, #5a6bff 0%, #6a4ff0 48%, #8b3fe4 100%);
  box-shadow: 0 30px 70px rgba(70, 60, 220, 0.35);
  color: #fff;
}
.agent-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.agent-left { position: relative; }
.agent-left h2 { font-size: 27px; margin: 16px 0 14px; line-height: 1.35; }
.agent-left p { font-size: 14px; color: #e6e9ff; margin-bottom: 26px; line-height: 1.8; }

/* 中央球体 */
.agent-center { position: relative; height: 330px; display: grid; place-items: center; }
.agent-orbit {
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.4);
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.agent-core {
  position: relative;
  width: 132px; height: 132px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: radial-gradient(circle at 32% 28%, #a9b6ff, #5b5bf5 58%, #3a2fd0);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.12),
    0 0 60px rgba(180, 190, 255, 0.55),
    0 20px 44px rgba(20, 20, 120, 0.4);
  animation: floaty 5s ease-in-out infinite;
}
.agent-core svg { width: 44px; height: 44px; }
.agent-core b { font-size: 14px; letter-spacing: 0.02em; }

.agent-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--c-ink);
  border-radius: 14px;
  padding: 11px 16px;
  box-shadow: 0 12px 30px rgba(20, 20, 110, 0.3);
  animation: floaty 6s ease-in-out infinite;
  white-space: nowrap;
}
.agent-card b { display: block; font-size: 13px; }
.agent-card i { font-style: normal; font-size: 10.5px; color: var(--c-text-light); }
.agent-ic {
  width: 30px; height: 30px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--c-bg-soft);
  color: var(--c-primary);
}
.agent-ic svg { width: 16px; height: 16px; }
.ac-1 { top: 12%; left: 0; }
.ac-2 { top: 12%; right: 0; animation-delay: -1.5s; }
.ac-3 { bottom: 14%; left: 2%; animation-delay: -3s; }
.ac-4 { bottom: 14%; right: 2%; animation-delay: -4.5s; }

/* 右侧清单 */
.agent-right { position: relative; }
.agent-right h3 { font-size: 19px; margin-bottom: 16px; }
.agent-right ul { display: grid; gap: 12px; margin-bottom: 24px; }
.agent-right li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  color: #eef0ff;
}
.chk {
  width: 20px; height: 20px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}
.chk svg { width: 10px; height: 10px; }

.agent-art {
  position: relative;
  height: 110px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
  border: 1px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.aa-orb {
  position: absolute;
  right: 14px; bottom: -8px;
  width: 78px; height: 78px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 800;
  background: radial-gradient(circle at 32% 28%, #c3ccff, #7d7dff 60%, #4b3fe0);
  box-shadow: 0 0 34px rgba(200, 210, 255, 0.6);
}
.aa-chip {
  position: absolute;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.35);
}
.aa-1 { width: 74px; height: 12px; left: 16px; top: 26px; }
.aa-2 { width: 52px; height: 12px; left: 16px; top: 48px; opacity: 0.7; }

/* ============================================================
   技术能力 + 成功案例
   ============================================================ */
.tech-cases { background: linear-gradient(180deg, #fff 0%, #f4f8ff 100%); }
.tech-cases-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}
.sec-head { display: flex; align-items: center; gap: 14px; }
.sec-head h2 { font-size: 27px; }
.badge--eng {
  background: transparent;
  border: 1px solid rgba(43, 92, 255, 0.35);
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 4px 12px;
}
.sec-sub { font-size: 18px; margin: 14px 0 8px; }
.sec-desc { font-size: 14px; color: var(--c-text); margin-bottom: 14px; }

.tech-label { font-size: 13px; color: var(--c-text-light); margin: 20px 0 12px; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: 0 4px 18px rgba(24, 48, 120, 0.05);
  max-width: 520px;
}
.tech {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 8px 4px;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.tech:hover { background: var(--c-bg-soft); transform: translateY(-3px); }
.tech i { font-style: normal; font-size: 11.5px; color: var(--c-ink-soft); }
.t-ic {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--c-bg-softer);
  border: 1px solid var(--c-line);
  font-weight: 800;
  font-size: 12px;
}
.t-ic svg { width: 24px; height: 24px; }
.t-ic.go { color: #00add8; font-style: italic; }
.t-ic.php { color: #777bb3; font-style: italic; font-size: 11px; }
.t-ic.ts { background: #3178c6; color: #fff; border: none; }

/* 案例 */
.case-list { display: grid; gap: 14px; margin-top: 18px; }
.case-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(24, 48, 120, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.case-pic { display: block; height: 100%; min-height: 108px; }
.case-pic svg { width: 100%; height: 100%; }
.case-body { padding: 14px 16px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.case-body h4 { font-size: 15.5px; }
.case-body .p-tags { margin-top: 0; }
.case-link { font-size: 13px; margin-top: 4px; }

/* ============================================================
   CTA 横幅
   ============================================================ */
.cta {
  position: relative;
  background: linear-gradient(180deg, #0d1b4d 0%, #101d5e 55%, #0a1440 100%);
  color: #fff;
  overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-bg svg {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%; height: 62%;
  opacity: 0.85;
}
.star {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #cfe0ff;
  opacity: 0.8;
  animation: twinkle 3.4s ease-in-out infinite;
}
.s1 { top: 22%; left: 12%; }
.s2 { top: 14%; left: 32%; animation-delay: -1s; }
.s3 { top: 26%; left: 55%; animation-delay: -2s; }
.s4 { top: 12%; left: 72%; animation-delay: -0.5s; }
.s5 { top: 30%; left: 88%; animation-delay: -2.6s; }
.s6 { top: 18%; left: 44%; animation-delay: -1.6s; width: 2px; height: 2px; }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.95; }
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 62px;
  padding-bottom: 96px;
  flex-wrap: wrap;
}
.cta h2 { font-size: 27px; margin-bottom: 10px; }
.cta p { font-size: 14.5px; color: #b9c4ee; }

/* ============================================================
   Footer 补充
   ============================================================ */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 30px;
  border-top: 1px solid var(--c-line);
  flex-wrap: wrap;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1200px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero-copy { grid-column: 1 / -1; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-desc br { display: none; }
  .dash { display: none; }
  .products-inner { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-panel { grid-template-columns: 1fr; text-align: center; }
  .agent-center { order: 2; }
  .agent-right { order: 3; }
  .tech-cases-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-copy h1 { font-size: 34px; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; }
  .orbit--1 { width: 280px; height: 280px; }
  .orbit--2 { width: 350px; height: 350px; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
}
