/* ========================================
   首页专属样式
   ======================================== */

/* ---------- Hero 主视觉 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0B1A2E 0%, #0A4D8C 55%, #1565C0 100%);
  color: #fff;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 30%, rgba(0, 188, 212, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(21, 101, 192, 0.25) 0%, transparent 45%);
}

/* 电路网格背景 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 188, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 188, 212, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(0, 188, 212, 0.15);
  border: 1px solid rgba(0, 188, 212, 0.35);
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 26px;
  font-weight: 500;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 22px;
  letter-spacing: -1px;
}

.hero h1 .grad {
  background: linear-gradient(90deg, #00E5FF, #00BCD4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.lead {
  font-size: 1.12rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  max-width: 540px;
}

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

/* Hero 芯片视觉 */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-card {
  position: relative;
  width: 340px;
  height: 340px;
  perspective: 1000px;
}

.chip-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(0, 188, 212, 0.3);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: floatChip 6s ease-in-out infinite;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.chip-inner .chip-icon {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 12px 40px rgba(0, 188, 212, 0.4);
}

.chip-inner .chip-icon svg {
  width: 50px;
  height: 50px;
  color: #fff;
}

.chip-inner h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.chip-inner p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

/* 芯片引脚装饰 */
.chip-pin {
  position: absolute;
  background: var(--accent);
  border-radius: 3px;
  opacity: 0.6;
}

.chip-pin.top, .chip-pin.bottom {
  left: 50%;
  width: 4px;
  height: 18px;
  transform: translateX(-50%);
}

.chip-pin.top { top: -10px; }
.chip-pin.bottom { bottom: -10px; }

.chip-pin.left, .chip-pin.right {
  top: 50%;
  width: 18px;
  height: 4px;
  transform: translateY(-50%);
}

.chip-pin.left { left: -10px; }
.chip-pin.right { right: -10px; }

/* 浮动数据点 */
.float-tag {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.float-tag .ft-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.float-tag.t1 { top: 8%; left: -12%; animation: floatTag 5s ease-in-out infinite; }
.float-tag.t2 { bottom: 12%; right: -14%; animation: floatTag 5s ease-in-out infinite 1.5s; }
.float-tag.t3 { top: 45%; right: -18%; animation: floatTag 5s ease-in-out infinite 3s; }

@keyframes floatTag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* 滚动指示 */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scroll-hint .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  position: relative;
}

.scroll-hint .mouse::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ---------- 业务板块 ---------- */
.biz-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.biz-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.biz-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.biz-card:hover::before {
  transform: scaleX(1);
}

.biz-icon {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.biz-icon svg {
  width: 34px;
  height: 34px;
  color: var(--primary);
}

.biz-card:hover .biz-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.biz-card:hover .biz-icon svg {
  color: #fff;
}

.biz-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.biz-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 18px;
}

.biz-card .biz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.biz-card .biz-tags span {
  font-size: 0.78rem;
  padding: 4px 12px;
  background: var(--bg-gray);
  color: var(--text-light);
  border-radius: 20px;
  font-weight: 500;
}

/* ---------- 数据统计 ---------- */
.stats {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.stats .container {
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item .stat-num {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-item .stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.stat-item {
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:last-child {
  border-right: none;
}

/* ---------- 优势区 ---------- */
.adv-item {
  display: flex;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.adv-item:last-child {
  border-bottom: none;
}

.adv-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent-soft);
  -webkit-text-stroke: 1px var(--accent);
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
}

.adv-content h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.adv-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.85;
}

.adv-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.adv-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 40%, rgba(0, 188, 212, 0.2) 0%, transparent 50%);
}

.adv-visual .ring {
  position: absolute;
  border: 1px solid rgba(0, 188, 212, 0.2);
  border-radius: 50%;
}

.adv-visual .ring.r1 { width: 280px; height: 280px; }
.adv-visual .ring.r2 { width: 400px; height: 400px; }
.adv-visual .ring.r3 { width: 520px; height: 520px; }

.adv-visual .core {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.adv-visual .core .core-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(0, 188, 212, 0.2);
  border: 1px solid rgba(0, 188, 212, 0.4);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adv-visual .core h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.adv-visual .core p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

/* ---------- 流程区 ---------- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.flow-grid::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.25;
}

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

.flow-step .flow-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  transition: var(--transition);
  position: relative;
}

.flow-step .flow-circle::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  opacity: 0;
  transition: var(--transition);
}

.flow-step:hover .flow-circle {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.05);
}

.flow-step:hover .flow-circle::after {
  opacity: 0.5;
}

.flow-step h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  padding: 0 12px;
}

/* ---------- CTA 区 ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(0, 188, 212, 0.15) 0%, transparent 60%);
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-band p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 响应式 ---------- */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 20px;
  }

  .chip-card {
    width: 280px;
    height: 280px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 24px;
  }

  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .flow-grid::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 30px);
    padding-bottom: 40px;
  }

  .hero .container {
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 30px;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .hero p.lead {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .hero-actions {
    justify-content: center;
    gap: 12px;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .chip-card {
    width: 220px;
    height: 220px;
  }

  .chip-inner .chip-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 16px;
  }

  .chip-inner .chip-icon svg {
    width: 38px;
    height: 38px;
  }

  .chip-inner h3 {
    font-size: 1.1rem;
  }

  .chip-inner p {
    font-size: 0.78rem;
  }

  .float-tag {
    display: none;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 5px 14px;
  }

  .adv-item {
    flex-direction: column;
    gap: 12px;
  }

  .adv-num {
    font-size: 2rem;
  }

  .adv-visual {
    min-height: 320px;
    padding: 30px 20px;
  }

  .adv-visual .ring.r1 { width: 180px; height: 180px; }
  .adv-visual .ring.r2 { width: 260px; height: 260px; }
  .adv-visual .ring.r3 { width: 340px; height: 340px; }

  .biz-card {
    padding: 30px 24px;
  }

  .stat-item .stat-num {
    font-size: 2.2rem;
  }

  .cta-band h2 {
    font-size: 1.6rem;
  }

  .cta-band p {
    font-size: 0.95rem;
  }

  .scroll-hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .chip-card {
    width: 200px;
    height: 200px;
  }

  .adv-visual {
    min-height: 280px;
  }
}
