/* ================================================================
   数洋智慧 · 首页专属样式 — AgentOS 参考结构 · 白底庄重版
   ================================================================ */

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(27, 79, 140, 0.06), transparent 60%),
    radial-gradient(720px 460px at -5% 105%, rgba(194, 136, 38, 0.045), transparent 62%),
    var(--bg-white);
  color: var(--text-primary);
  padding: 150px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(680px 380px at 75% 0%, rgba(27, 79, 140, 0.05), transparent 64%),
    radial-gradient(560px 360px at 5% 90%, rgba(27, 79, 140, 0.04), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 7vw, 64px);
  align-items: center;
  position: relative; z-index: 1;
}
.hero-text {
  max-width: 620px;
}
.hero-text h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
  color: var(--text-primary);
}
.hero-text h1 .grad-text {
  background: linear-gradient(135deg, #1B4F8C, #2F6FB8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-lead {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.75;
}
.hero-lead b {
  color: var(--brand-800);
  font-weight: var(--fw-semibold);
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-visual {
  position: relative;
}

/* Hero rotation rings (旋) — brand-adapted from AgentOS .orbit */
.orbit {
  position: absolute;
  inset: -22px;
  border-radius: 30px;
  z-index: 0;
  pointer-events: none;
  background: conic-gradient(from 0deg,
    transparent 0 8%,
    rgba(27, 79, 140, 0.58) 14%,
    transparent 24% 42%,
    rgba(194, 136, 38, 0.52) 48%,
    transparent 58% 78%,
    rgba(27, 79, 140, 0.55) 84%,
    transparent 92%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 1px));
  animation: orbit-spin 18s linear infinite;
}
.orbit.orbit-2 {
  inset: -40px;
  opacity: 0.75;
  animation-duration: 32s;
  animation-direction: reverse;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* keep dashboard above the rings */
.dash-mock { position: relative; z-index: 2; }

/* ---------- Hero floating cards ---------- */
.hero-float {
  position: absolute;
  z-index: 3;
  padding: 13px 17px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(27, 79, 140, 0.12);
  box-shadow:
    0 14px 38px rgba(27, 79, 140, 0.10),
    0 2px 8px rgba(27, 79, 140, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.78rem;
  animation: floaty 6s ease-in-out infinite;
  overflow: hidden;
}
.hero-float::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: shimmer 5s ease-in-out infinite;
  pointer-events: none;
}
.hero-float .hf-label {
  font-size: 0.66rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  margin-bottom: 5px;
  font-weight: var(--fw-semibold);
}
.hero-float .hf-value {
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  white-space: nowrap;
}
.hero-float .hf-value em {
  font-style: normal;
  color: var(--brand-600);
}
.float-gateway {
  top: 2%;
  right: -12px;
  animation-delay: 0.3s;
}
.float-gateway::after { animation-delay: 0.8s; }
.float-audit {
  top: 42%;
  left: -22px;
  animation-delay: 1.4s;
}
.float-audit::after { animation-delay: 2.2s; }
.float-asset {
  bottom: 10%;
  left: -16px;
  animation-delay: 2.4s;
}
.float-asset::after { animation-delay: 3.6s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}
@keyframes shimmer {
  0%, 35% { transform: translateX(-120%); }
  55%, 100% { transform: translateX(120%); }
}

/* Hero marquee integration */
.hero .marquee {
  margin-top: 56px;
  border-top-color: var(--border-light);
  border-bottom-color: var(--border-light);
  background: var(--bg-light);
}
.hero .marquee-track span {
  color: var(--text-tertiary);
}
.hero .marquee-track span::before {
  color: var(--brand-600);
}

/* ---------- Trust Bar (optional) ---------- */
.trust-bar-mini {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(20px, 5vw, 48px);
  flex-wrap: wrap;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

/* ---------- Product Matrix (homepage) ---------- */
.product-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* ---------- Stats CTA spacing ---------- */
.stats-band + .section { padding-top: var(--section-lg); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero { padding: 140px 0 0; }
  .hero-grid {
    grid-template-columns: 1fr; gap: 48px;
  }
  .dash-mock { max-width: 560px; }
  .hero-visual { display: flex; justify-content: center; }
  .hero-float { display: none; } /* 小屏隐藏浮层，避免重叠 */
  .orbit { display: none; } /* 小屏隐藏旋转光环，避免与居中 dashboard 错位 */
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 0; }
  .hero-text h1 { font-size: clamp(28px, 7vw, 40px); }
  .hero-lead { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero .marquee { margin-top: 40px; }
}

@media (max-width: 480px) {
  .hero .btn-lg { padding: 14px 24px; font-size: 15px; }
  .trust-bar-mini { flex-direction: column; gap: 10px; }
}
