/* ============================================================
 * 汇流量官网 - Hero 首屏专属样式（暗黑赛博紫 / 纯 CSS 同心圆轨道）
 * 无 Three.js · 打字机 · 旋转 conic 边框 · Logo 无缝滚动
 * ============================================================ */

/* ---------- 旋转 conic-gradient 边框（@property 注册角度） ---------- */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.btn-border-wrap {
  position: relative;
  display: inline-flex;
  padding: 2px;
  border-radius: 50px;
  background: conic-gradient(from var(--border-angle), #A068FF, #070319, #A068FF, #070319, #A068FF);
  animation: rotate-border 3s linear infinite;
  -webkit-mask: none;
}
@keyframes rotate-border { to { --border-angle: 360deg; } }
.btn-border-wrap .btn {
  position: relative;
  border-radius: 50px;
  background: #000;
  color: #fff;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  z-index: 1;
}
/* hover 时紫色从左滑入填充 */
.btn-border-wrap .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #A068FF;
  transform: translateX(-100%);
  transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}
.btn-border-wrap .btn:hover::after { transform: translateX(0); }

/* 导航 CTA（覆盖 style.css 中的渐变 .nav-cta） */
.nav-cta-wrap .nav-cta {
  padding: 10px 24px;
  background: #000;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
}
.nav-cta-wrap .nav-cta::after { background: #A068FF; }
.nav-cta-wrap .nav-cta:hover { color: #fff; box-shadow: none; }

/* ---------- 导航栏：单行 + 宽容器 ---------- */
.navbar .nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1920px;
  padding: 0 64px;
}
.brand-logo {
  height: 32px !important;
  width: 32px !important;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(160, 104, 255, 0.35);
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #FFFFFF;
}
.nav-links a:not(.nav-cta)::after {
  height: 2px;
  background: linear-gradient(90deg, #A068FF, #00E5FF);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 18px; }

/* ---------- 首屏布局 ---------- */
section.hero.hero-v2 {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 30px) 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #060218 0%, #070319 100%);
}

/* v4.3 首屏 3D 背景层：左上呼吸光斑 + 浮动几何图形 + 透视网格地面 */
.hero-v2::before {
  content: '';
  position: absolute;
  top: -160px; left: -80px;
  width: 720px; height: 620px;
  background: radial-gradient(circle at 30% 30%, rgba(160, 104, 255, 0.22), transparent 65%);
  filter: blur(50px);
  animation: heroGlowBreathe 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes heroGlowBreathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
/* 透视网格地面 */
.hero-v2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 220%;
  height: 55%;
  transform: translateX(-50%) perspective(620px) rotateX(62deg);
  transform-origin: center bottom;
  background-image:
    linear-gradient(rgba(160, 104, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 104, 255, 0.16) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%);
  mask-image: linear-gradient(180deg, transparent, #000 45%);
  animation: heroGridScroll 3.2s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes heroGridScroll {
  from { background-position-y: 0; }
  to   { background-position-y: 52px; }
}
/* 浮动几何图形（紫色光晕球/菱形） */
.hero-float-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hfs {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 104, 255, 0.18), transparent 70%);
  filter: blur(38px);
  will-change: transform;
}
.hfs-1 { width: 300px; height: 300px; top: 18%; right: 12%; animation: hfsFloat1 24s ease-in-out infinite; }
.hfs-2 { width: 240px; height: 240px; top: 60%; left: 6%; background: radial-gradient(circle, rgba(0, 229, 255, 0.12), transparent 70%); animation: hfsFloat2 28s ease-in-out infinite; }
.hfs-3 { width: 200px; height: 200px; top: 38%; left: 38%; background: radial-gradient(circle, rgba(120, 80, 255, 0.15), transparent 70%); animation: hfsFloat3 22s ease-in-out infinite; }
@keyframes hfsFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 50px) scale(1.15); }
}
@keyframes hfsFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -40px) scale(1.1); }
}
@keyframes hfsFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -50px) scale(0.9); }
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 40px;
}
.hero-left {
  flex: 0 1 600px;
  padding-top: 40px;
  min-width: 0;
}

/* 打字机主标题 */
.hero-type-wrap {
  font-family: 'Urbanist', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 64px;
  letter-spacing: -1.5px;
  margin: 0 0 22px;
  color: #FFFFFF;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}
.hero-type { white-space: pre-wrap; }
.hero-type .ch-black { color: #000000; }
.hero-type .ch-white { color: #FFFFFF; }
.hero-caret {
  display: inline-block;
  width: 4px;
  height: 0.9em;
  margin-left: 6px;
  background: #A068FF;
  border-radius: 2px;
  opacity: 0;
  vertical-align: -0.08em;
  animation: caretBlink 1.05s step-end infinite;
  box-shadow: 0 0 10px rgba(160, 104, 255, 0.8);
}
.hero-caret.on { opacity: 1; }
@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-v2 .hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: #CBD5E1;
  max-width: 560px;
  margin: 0 0 34px;
  line-height: 1.7;
}

/* 按钮组 */
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s ease 3.2s, transform 1s cubic-bezier(0.22, 1, 0.36, 1) 3.2s;
}
.hero-buttons.ready { opacity: 1; transform: translateY(0); }
.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #060218 !important;
  color: #fff !important;
  padding: 14px 28px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  border-radius: 50px;
  box-shadow: none !important;
}
.btn-primary-hero .btn-arrow { transition: transform .3s; }
.btn-primary-hero:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 50px;
  background: rgba(160, 104, 255, 0.06);
  border: 1px solid rgba(160, 104, 255, 0.3);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: background .3s, border-color .3s, transform .3s;
}
.btn-ghost:hover {
  background: rgba(160, 104, 255, 0.1);
  border-color: rgba(160, 104, 255, 0.55);
  color: #fff;
  transform: translateY(-2px);
}

/* 动态游标 */
.hero-cursor-float {
  margin-left: 290px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease 3.6s, transform 1s cubic-bezier(0.22, 1, 0.36, 1) 3.6s;
}
.hero-cursor-float.ready { opacity: 1; transform: translateY(0); }
.cursor-label {
  background: #A068FF;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 0 24px rgba(160, 104, 255, 0.45);
}

/* ---------- 右侧同心圆轨道 ---------- */
.hero-orbit {
  position: relative;
  width: 720px;
  height: 720px;
  margin: 0 auto;
  flex: 0 0 auto;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1.2s ease .3s, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) .3s;
}
.hero-orbit.ready { opacity: 1; transform: scale(1); }

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(217, 161, 255, 0.3);
  mask: linear-gradient(180deg, rgba(217,161,255,0) 0%, rgba(217,161,255,1) 43%, rgba(217,161,255,0) 100%);
  -webkit-mask: linear-gradient(180deg, rgba(217,161,255,0) 0%, rgba(217,161,255,1) 43%, rgba(217,161,255,0) 100%);
}
.orbit-r1 { width: 353px; height: 353px; margin: -176.5px 0 0 -176.5px; animation: spin-rev 30s linear infinite; }
.orbit-r2 { width: 501px; height: 501px; margin: -250.5px 0 0 -250.5px; animation: spin-cw  40s linear infinite; }
.orbit-r3 { width: 649px; height: 649px; margin: -324.5px 0 0 -324.5px; animation: spin-cw  50s linear infinite; }
.orbit-r4 { width: 797px; height: 797px; margin: -398.5px 0 0 -398.5px; animation: spin-rev 60s linear infinite; }
@keyframes spin-cw  { to { transform: rotate(360deg); } }
@keyframes spin-rev  { to { transform: rotate(-360deg); } }

/* 中心毛玻璃球体 */
.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(160, 104, 255, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(160, 104, 255, 0.25), inset 0 0 40px rgba(160, 104, 255, 0.12);
  z-index: 2;
}
.orbit-number {
  font-family: 'Urbanist', sans-serif;
  font-weight: 500;
  font-size: 64px;
  line-height: 1;
  background: linear-gradient(135deg, #A068FF 0%, #00E5FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: baseline;
}
.orbit-plus { font-size: 36px; -webkit-text-fill-color: #00E5FF; }
.orbit-center-label {
  font-family: 'Urbanist', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #FFFFFF;
  margin-top: 8px;
  letter-spacing: 2px;
}

/* 轨道上的平台图标卡片（品牌色圆角方块 + 光晕） */
.orbit-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  font-family: 'Urbanist', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
  overflow: hidden;
  transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--r)) rotate(calc(var(--angle) * -1));
  opacity: 0;
  animation: iconIn .9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 3;
}
.orbit-icon svg { display: block; }
@keyframes iconIn {
  0%   { opacity: 0; transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--r)) rotate(calc(var(--angle) * -1)) scale(0.3) rotate(-180deg); filter: blur(10px); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--r)) rotate(calc(var(--angle) * -1)) scale(1) rotate(0); filter: blur(0); }
}
/* 各平台品牌真实配色 + 光晕 */
.oi-ds   { width: 88px; height: 88px; font-size: 26px; background: linear-gradient(135deg, #4D6BFE, #6A3DF0); box-shadow: 0 0 22px rgba(77, 107, 254, 0.55); animation-delay: .6s; }
.oi-gpt  { width: 88px; height: 88px; font-size: 30px; background: linear-gradient(135deg, #10A37F, #0E8C6E); color:#fff; box-shadow: 0 0 22px rgba(16, 163, 127, 0.55); animation-delay: .9s; }
.oi-mj   { width: 88px; height: 88px; font-size: 30px; background: linear-gradient(135deg, #ffffff, #e8e8f0); color:#1a1a2e; box-shadow: 0 0 22px rgba(160, 104, 255, 0.5); animation-delay: 1.2s; }
.oi-db   { width: 78px; height: 78px; font-size: 26px; background: linear-gradient(135deg, #3370FF, #1E5BE0); box-shadow: 0 0 22px rgba(51, 112, 255, 0.55); animation-delay: 1.5s; }
.oi-kimi { width: 78px; height: 78px; font-size: 28px; background: linear-gradient(135deg, #1A1A2E, #2A2350); border:1px solid rgba(160,104,255,.35); box-shadow: 0 0 22px rgba(160, 104, 255, 0.5); animation-delay: 1.8s; }
.oi-wx   { width: 58px; height: 58px; font-size: 22px; background: linear-gradient(135deg, #2932E1, #4038E8); box-shadow: 0 0 18px rgba(41, 50, 225, 0.55); animation-delay: 2.05s; }
.oi-ty   { width: 58px; height: 58px; font-size: 22px; background: linear-gradient(135deg, #6236FF, #7E4DFF); box-shadow: 0 0 18px rgba(98, 54, 255, 0.55); animation-delay: 2.3s; }

/* ---------- 底部 Logo 无缝滚动条 ---------- */
.hero-logo-marquee {
  position: relative;
  z-index: 2;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(160, 104, 255, 0.12);
}
.marquee-mask {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track-v2 {
  display: flex;
  width: max-content;
  animation: marquee-v2 20s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
}
.mq-item {
  width: 137px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}
@keyframes marquee-v2 {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- 入场动画：header / 文案 ---------- */
.navbar {
  animation: navIn .8s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes navIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-left {
  animation: heroTextIn 1s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 1280px) {
  .hero-orbit { transform: scale(0.85); }
  .hero-orbit.ready { transform: scale(0.85); }
  .hero-type-wrap { font-size: 56px; line-height: 56px; }
}
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; gap: 20px; padding-top: 20px; }
  .hero-left { flex: 1 1 auto; padding-top: 0; text-align: center; }
  .hero-type-wrap { justify-content: center; font-size: 48px; line-height: 50px; }
  .hero-v2 .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-cursor-float { margin-left: 0; justify-content: center; }
  .hero-orbit { transform: scale(0.7); margin-top: -40px; }
  .hero-orbit.ready { transform: scale(0.7); }
}
@media (max-width: 768px) {
  .navbar .nav-inner { padding: 0 20px; }
  .hero-type-wrap { font-size: 36px; line-height: 40px; letter-spacing: -1px; }
  .hero-v2 .hero-subtitle { font-size: 16px; }
  .hero-orbit { transform: scale(0.5); margin-top: -90px; margin-bottom: -90px; }
  .hero-orbit.ready { transform: scale(0.5); }
  .btn-ghost, .btn-primary-hero { padding: 12px 22px !important; font-size: 15px !important; }
}
@media (max-width: 480px) {
  .hero-type-wrap { font-size: 28px; line-height: 34px; }
  .hero-orbit { transform: scale(0.4); margin-top: -130px; margin-bottom: -130px; }
  .hero-orbit.ready { transform: scale(0.4); }
  .cursor-label { font-size: 14px; padding: 6px 12px; }
}

/* ---------- 尊重减弱动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn-border-wrap,
  .orbit-ring,
  .hero-caret,
  .marquee-track-v2,
  .navbar,
  .hero-left,
  .hero-v2::before,
  .hero-v2::after,
  .hfs {
    animation: none !important;
  }
  .hero-caret { opacity: 1; }
  .hero-buttons, .hero-cursor-float { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-orbit { opacity: 1 !important; transform: none !important; transition: none !important; }
  .orbit-icon { opacity: 1 !important; animation: none !important; }
}
