/* 官网首页 · 可视化舞台 */

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  color: #fff;
  background:
    radial-gradient(900px 460px at 8% -8%, rgba(0, 163, 163, 0.28), transparent 58%),
    radial-gradient(820px 420px at 92% 8%, rgba(0, 82, 217, 0.5), transparent 56%),
    linear-gradient(160deg, #00102f 0%, #001a4d 46%, #00307a 100%);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 40% 30%, #000 28%, transparent 78%);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
}

.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 600;
}

.home-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}

.home-hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.home-hero h1 span {
  display: block;
  background: linear-gradient(90deg, #8fd0ff, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero-lead {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.76);
  max-width: 34em;
  margin-bottom: 32px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-hero-actions .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.home-hero-actions .btn-primary:hover {
  background: #f0f6ff;
  transform: translateY(-2px);
}

.home-hero-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.home-hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.home-stage {
  position: relative;
  min-height: 430px;
}

.home-win {
  position: absolute;
  width: 58%;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.home-win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.home-win-bar b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.home-win-bar b:nth-child(1) { background: #f87171; }
.home-win-bar b:nth-child(2) { background: #fbbf24; }
.home-win-bar b:nth-child(3) { background: #34d399; }

.home-win-a {
  top: 8px;
  right: 8px;
  transform: rotate(3.5deg);
  z-index: 3;
}

.home-win-b {
  top: 118px;
  left: 0;
  transform: rotate(-5deg);
  z-index: 2;
}

.home-win-c {
  bottom: 0;
  right: 42px;
  width: 52%;
  transform: rotate(1.5deg);
  z-index: 4;
}

.home-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.home-kpi div {
  padding: 10px 8px;
  border-radius: 10px;
  background: rgba(0, 16, 48, 0.35);
}

.home-kpi strong {
  display: block;
  font-size: 18px;
}

.home-kpi span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.home-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
}

.home-bars i {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #7dd3fc, #2563eb);
}

.home-topo {
  width: 100%;
  height: 118px;
  display: block;
}

.home-layers {
  display: grid;
  gap: 8px;
}

.home-layers span {
  display: flex;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.home-layers em {
  font-style: normal;
  color: #99f6e4;
}

.home-show {
  padding: 80px 0 40px;
}

.home-show-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.home-show-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 10px;
}

.home-show-head p {
  color: var(--text);
}

.hs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.hs-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 32, 96, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hs-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 82, 217, 0.16);
}

.hs-mock {
  height: 168px;
  padding: 16px;
  color: #fff;
}

.hs-mock--erp {
  background:
    radial-gradient(240px 120px at 90% 10%, rgba(94, 234, 212, 0.25), transparent 60%),
    linear-gradient(145deg, #002060, #0052d9);
}

.hs-mock--net {
  background:
    radial-gradient(240px 120px at 10% 80%, rgba(56, 189, 248, 0.28), transparent 60%),
    linear-gradient(145deg, #04323a, #0f766e);
}

.hs-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hs-tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}

.hs-card--net .hs-tag { color: var(--secondary); }

.hs-body h3 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 8px;
}

.hs-body p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 18px;
}

.hs-body a {
  margin-top: auto;
  font-weight: 700;
  color: var(--primary);
}

.mock-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
}

.mock-row span {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.mock-chip {
  display: inline-flex;
  margin-top: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.2);
  color: #99f6e4;
  font-size: 11px;
  font-weight: 700;
}

.home-path {
  padding: 20px 0 80px;
}

.home-path-box {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  padding: 36px;
  border-radius: 24px;
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(0, 163, 163, 0.08), transparent 60%),
    var(--bg-light);
  border: 1px solid var(--border);
}

.home-path-copy h2 {
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 10px;
}

.home-path-copy p {
  color: var(--text);
  margin-bottom: 22px;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.home-steps div {
  position: relative;
  padding: 16px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  text-align: center;
}

.home-steps b {
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 12px;
  line-height: 26px;
}

.home-steps span {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

@media (max-width: 980px) {
  .home-hero-inner,
  .hs-grid,
  .home-path-box {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .home-hero-inner > *,
  .hs-grid > *,
  .home-path-box > * {
    min-width: 0;
    max-width: 100%;
  }

  .home-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Hero is 1-col here: stack mock windows so the stage is not a tall empty overlap. */
  .home-stage {
    min-height: 0;
    display: grid;
    gap: 12px;
  }

  .home-win {
    position: static;
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .home-hero {
    padding: 48px 0 56px;
  }

  .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero-actions .btn,
  .home-path-copy .btn {
    width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 768px) {
  .home-hero-inner,
  .hs-grid,
  .home-path-box {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero-actions .btn,
  .home-path-copy .btn {
    width: 100%;
    min-height: 44px;
  }

  .hs-body a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .home-show {
    padding: 56px 0 28px;
  }

  .home-path {
    padding: 12px 0 56px;
  }

  .home-badge {
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding: 36px 0 40px;
  }

  .home-hero h1 {
    overflow-wrap: anywhere;
  }

  .home-hero-lead {
    font-size: 15px;
    margin-bottom: 24px;
    max-width: none;
  }

  .home-path-box {
    padding: 24px 16px;
    gap: 20px;
  }

  .home-path-copy h2 {
    font-size: 24px;
  }

  .home-kpi strong {
    font-size: 16px;
  }

  .hs-body {
    padding: 18px 16px 20px;
  }

  .hs-body h3 {
    font-size: 20px;
  }
}

@media (max-width: 430px) {
  .home-kpi {
    gap: 6px;
  }

  .home-kpi div {
    padding: 8px 6px;
  }

  .home-win {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-card {
    transition: none;
  }
}
