/* ==========================================================
   区块层：Hero / 技术栈跑马灯 / 系统导航 / 平台能力 / 架构 / CTA / 页脚
   ========================================================== */

/* ============================ Hero ============================ */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-h) + 76px);
  padding-bottom: 96px;
  background: linear-gradient(168deg, var(--hero-1) 0%, var(--hero-2) 62%, var(--hero-1) 100%);
  color: var(--hero-text);
  overflow: hidden;
}

/* 背景层（极光 + 网格 + 噪点） */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* 极光光斑 */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  pointer-events: none;
  will-change: transform;
}
.aurora--1 {
  width: 520px; height: 520px;
  top: -180px; left: -80px;
  background: radial-gradient(circle, #4f46e5, transparent 65%);
  animation: float-1 18s var(--ease-out) infinite;
}
.aurora--2 {
  width: 480px; height: 480px;
  top: -120px; right: -100px;
  background: radial-gradient(circle, #06b6d4, transparent 65%);
  opacity: .42;
  animation: float-2 22s var(--ease-out) infinite;
}
.aurora--3 {
  width: 420px; height: 420px;
  bottom: -220px; left: 42%;
  background: radial-gradient(circle, #7c3aed, transparent 65%);
  opacity: .38;
  animation: float-1 26s var(--ease-out) infinite reverse;
}

.hero__inner { position: relative; z-index: 1; text-align: center; }

.hero__title { margin-top: 26px; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, #a5b4fc, #c4b5fd 40%, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 22px auto 0;
  max-width: 660px;
  color: var(--hero-muted);
  font-size: clamp(15px, 1.5vw, 17.5px);
}

.hero__actions {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* 数据统计 */
.hero__stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 34px;
  border-top: 1px solid var(--hero-line);
}
.stat__num {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff, #b9c2ec);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__num small { font-size: .55em; opacity: .6; }
.stat__label { margin-top: 4px; font-size: 12.5px; color: var(--hero-muted); }

/* Hero 里的产品化视觉：网关路由面板 */
.mock {
  margin-top: 62px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 100px rgba(3, 6, 18, .55);
  overflow: hidden;
  text-align: left;
  transform: perspective(1400px) rotateX(2deg);
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding-inline: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .04);
}
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.mock__dots i:first-child { background: #f97066; }
.mock__dots i:nth-child(2) { background: #fdb022; }
.mock__dots i:nth-child(3) { background: #32d583; }
.mock__url {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .62);
}
.mock__pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 9px;
  border-radius: 6px;
  color: #c7d2fe;
  background: rgba(99, 102, 241, .22);
  border: 1px solid rgba(129, 140, 248, .35);
}
.mock__body { padding: 8px 6px 12px; }
.mock__row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
}
.mock__row--head {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
  padding-bottom: 6px;
}
.mock__row:not(.mock__row--head):hover { background: rgba(255, 255, 255, .05); }
.mock__path { color: #a5b4fc; font-family: var(--font-mono); font-size: 12.5px; }
.mock__target { color: rgba(255, 255, 255, .72); font-family: var(--font-mono); font-size: 12.5px; }
.mock__code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #6ee7b7;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(18, 183, 106, .14);
  border: 1px solid rgba(52, 211, 153, .28);
}
.mock__arrow { color: rgba(255, 255, 255, .3); }
.mock__row-tail { text-align: right; }

/* ============================ 技术栈跑马灯 ============================ */
.marquee {
  position: relative;
  padding-block: 26px;
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.marquee__item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
}

/* ============================ 系统导航 ============================ */
.systems__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.sys {
  grid-column: span 2;
  min-height: 216px;
}
.sys--wide { grid-column: span 3; }

.sys__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.sys__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--sh-brand);
  transition: transform var(--dur-3) var(--ease-spring);
}
.sys__icon .ic { width: 22px; height: 22px; }
.sys:hover .sys__icon { transform: scale(1.06) rotate(-3deg); }

.sys__title {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.sys__path {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--brand-400);
}
.sys__desc { margin-top: 12px; font-size: 13.8px; color: var(--muted); }
.sys__tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.sys__foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-400);
}
.sys__foot .ic { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease-spring); }
.sys:hover .sys__foot .ic { transform: translateX(4px); }
.sys__target {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
}

/* ============================ 平台能力（Bento） ============================ */
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ft { grid-column: span 1; }
.ft--2 { grid-column: span 2; }

.ft__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  color: var(--brand-500);
  background: color-mix(in srgb, var(--brand-500) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-500) 18%, transparent);
  margin-bottom: 18px;
}
.ft__icon .ic { width: 20px; height: 20px; }
[data-theme="dark"] .ft__icon { color: var(--brand-400); }
.ft__title { font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.ft__desc { margin-top: 8px; font-size: 13.8px; color: var(--muted); }

/* 大卡里放一个装饰性的 mini 图表 */
.ft__viz {
  margin-top: 20px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 62px;
}
.ft__viz i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--brand-400), color-mix(in srgb, var(--brand-500) 18%, transparent));
  height: var(--h, 40%);
  animation: bar-in var(--dur-4) var(--ease-expo) both;
  animation-delay: var(--d, 0ms);
}

/* ============================ 服务架构 ============================ */
.arch {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 240px at 50% 0%, color-mix(in srgb, var(--brand-500) 8%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--sh-2);
  padding: 40px 32px;
}
.arch__flow { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

.arch__node {
  position: relative;
  min-width: 150px;
  padding: 15px 20px;
  text-align: center;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--sh-1);
}
.arch__node .ic {
  width: 20px;
  height: 20px;
  margin: 0 auto 5px;
  opacity: .85;
}
.arch__node small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  font-family: var(--font-mono);
}
.arch__node--gw {
  color: #fff;
  border-color: transparent;
  background: var(--grad-brand);
  box-shadow: var(--sh-brand);
}
.arch__node--gw small { color: rgba(255, 255, 255, .78); }

/* 连接线 + 流动光点 */
.arch__link {
  position: relative;
  width: 92px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--line-2), color-mix(in srgb, var(--brand-500) 55%, var(--line-2)));
  overflow: hidden;
}
.arch__link::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 34px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: flow 2.6s var(--ease-out) infinite;
}

.arch__fan { margin-top: 30px; }
.arch__group + .arch__group { margin-top: 26px; }
.arch__group-title {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.arch__nodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.arch__leaf {
  position: relative;
  padding: 14px 16px;
  text-align: center;
  border-radius: var(--r-sm);
  border: 1px dashed var(--line-2);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
  transition: border-color var(--dur-2), transform var(--dur-2) var(--ease-spring), background var(--dur-2);
}
.arch__leaf small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}
.arch__leaf:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-500) 45%, var(--line-2));
  background: var(--surface);
}
.arch__note {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ============================ 联系我们 ============================ */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.contact-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contact-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--sh-brand);
  transition: transform var(--dur-3) var(--ease-spring);
}
.contact-card__icon .ic { width: 22px; height: 22px; }
.contact-card:hover .contact-card__icon { transform: scale(1.06) rotate(-3deg); }

.contact-card__value {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 700;
  letter-spacing: -.02em;
  word-break: break-all;
}
.contact-card__hint { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.contact-card__actions {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* 复制成功态 */
.btn.is-copied {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 45%, transparent);
  background: color-mix(in srgb, var(--ok) 10%, transparent);
}

.contact__hours {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--muted);
}
.contact__hours .ic { width: 17px; height: 17px; color: var(--brand-400); }

/* ============================ CTA ============================ */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  padding: 66px 48px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed 55%, #06b6d4);
  box-shadow: var(--sh-3);
}
.cta__glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(80px);
  background: rgba(255, 255, 255, .28);
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; }
.cta .h2 { color: #fff; }
.cta__lead {
  margin: 16px auto 0;
  max-width: 560px;
  color: rgba(255, 255, 255, .86);
  font-size: 16px;
}
.cta__actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cta__btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding-inline: 26px;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-600);
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  transition: transform var(--dur-2) var(--ease-spring), box-shadow var(--dur-2);
}
.cta__btn-solid:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0, 0, 0, .24); }

/* ============================ 页脚 ============================ */
.footer {
  position: relative;
  margin-top: 40px;
  padding-top: 64px;
  padding-bottom: 32px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 1px;
  background: var(--grad-hairline);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 40px;
}
.footer__about { margin-top: 16px; max-width: 320px; font-size: 13.5px; color: var(--muted); }
.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.footer__col a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--text-2);
  transition: color var(--dur-2), transform var(--dur-2);
}
.footer__col a:hover { color: var(--brand-400); transform: translateX(2px); }
.footer__bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--faint);
}
