/* ==========================================================================
   首页专属样式
   ========================================================================== */

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative;
  padding: 80px 0 96px;
  background:
    radial-gradient(ellipse at top right, rgba(245, 166, 35, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #FFFDF7 0%, #FFFFFF 100%);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.7;
}

.hero::before {
  top: -60px;
  right: -60px;
  width: 420px;
  height: 420px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><polygon points='50,1 95,25 95,75 50,99 5,75 5,25' fill='none' stroke='%23F5A623' stroke-width='0.5' stroke-opacity='0.4'/><polygon points='50,15 80,32 80,68 50,85 20,68 20,32' fill='none' stroke='%23F5A623' stroke-width='0.5' stroke-opacity='0.25'/></svg>") center/contain no-repeat;
}

.hero::after {
  bottom: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><polygon points='50,1 95,25 95,75 50,99 5,75 5,25' fill='%23F5A623' fill-opacity='0.08'/></svg>") center/contain no-repeat;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(245, 166, 35, 0.12);
  color: var(--color-primary-dark);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

.hero__title {
  font-size: 56px;
  line-height: 1.15;
  color: var(--color-ink);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero__title .hl {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.hero__title .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 14px;
  background: rgba(245, 166, 35, 0.25);
  z-index: -1;
  border-radius: 4px;
}

.hero__slogan {
  font-size: var(--fs-md);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.hero__desc {
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero__tag {
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__tag svg {
  width: 14px;
  height: 14px;
  color: var(--color-success);
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero 右侧 - 蜂巢可视化 */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-left: auto;
}

.hero__visual-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-sm);
  animation: float 4s ease-in-out infinite;
}

.hero__visual-card .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__visual-card strong {
  display: block;
  color: var(--color-ink);
  font-size: var(--fs-base);
  margin-bottom: 2px;
}

.hero__visual-card span {
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
}

.hero__visual-card.v1 { top: 8%; left: -4%; animation-delay: 0s; }
.hero__visual-card.v2 { top: 40%; right: -8%; animation-delay: 1.3s; }
.hero__visual-card.v3 { bottom: 6%; left: 10%; animation-delay: 2.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__hex-core {
  position: absolute;
  inset: 12%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%23FFD27A'/><stop offset='1' stop-color='%23F5A623'/></linearGradient></defs><polygon points='100,4 187,52 187,148 100,196 13,148 13,52' fill='url(%23g)'/><polygon points='100,30 166,66 166,134 100,170 34,134 34,66' fill='%23FFFDF7'/><polygon points='100,55 145,81 145,119 100,145 55,119 55,81' fill='none' stroke='%23F5A623' stroke-width='1.5'/></svg>") center/contain no-repeat;
  filter: drop-shadow(0 20px 40px rgba(245, 166, 35, 0.3));
}

.hero__hex-core-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

/* ------------------------------ 数据指标带 ------------------------------ */
.stats {
  background: var(--color-ink);
  color: #fff;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 100'><polygon points='28,0 56,16 56,50 28,66 0,50 0,16' fill='none' stroke='%23F5A623' stroke-width='0.3' stroke-opacity='0.3'/></svg>") 0 0/56px 100px;
  opacity: 0.5;
}

.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-item__value {
  font-size: 56px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-item__value .unit {
  font-size: 24px;
  margin-left: 4px;
  color: #fff;
}

.stat-item__label {
  margin-top: 12px;
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.8);
}

/* ------------------------------ 业务速览 ------------------------------ */
.services-overview {
  background: var(--color-bg-soft);
}

.services-overview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: #fff;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: var(--fs-lg);
  color: var(--color-ink);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  line-height: var(--lh-relaxed);
}

.service-card__link {
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}

.service-card:hover .service-card__link {
  gap: 10px;
}

/* ------------------------------ 技术亮点 ------------------------------ */
.tech-highlight__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 32px;
}

.tech-highlight__text h2 {
  font-size: var(--fs-xl);
  color: var(--color-ink);
  margin-bottom: 20px;
}

.tech-highlight__text > p {
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: 28px;
}

.tech-highlight__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tech-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tech-feature__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.tech-feature h4 {
  color: var(--color-ink);
  font-size: var(--fs-md);
  margin-bottom: 4px;
}

.tech-feature p {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.tech-highlight__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-soft);
  border-radius: var(--radius-xl);
  padding: 32px;
  overflow: hidden;
}

.tech-hex-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  height: 100%;
  position: relative;
}

.tech-hex {
  aspect-ratio: 1 / 1.15;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.tech-hex.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  animation: pulse 2.5s ease-in-out infinite;
}

.tech-hex.hot {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(245, 166, 35, 0); }
}

/* ------------------------------ Logo 墙 ------------------------------ */
.logo-wall {
  background: var(--color-bg-soft);
}

.logo-wall__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.logo-wall__item {
  aspect-ratio: 2 / 1;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--transition-base);
}

.logo-wall__item:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* ------------------------------ 底部 CTA ------------------------------ */
.cta-band {
  background: linear-gradient(135deg, #F5A623 0%, #FFC966 100%);
  color: #fff;
  text-align: center;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 100'><polygon points='28,0 56,16 56,50 28,66 0,50 0,16' fill='none' stroke='%23FFFFFF' stroke-width='0.4' stroke-opacity='0.3'/></svg>") 0 0/56px 100px;
  opacity: 0.6;
}

.cta-band__inner {
  position: relative;
}

.cta-band h2 {
  font-size: var(--fs-xl);
  margin-bottom: 12px;
  color: #fff;
}

.cta-band p {
  font-size: var(--fs-md);
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.92);
}

.cta-band .btn {
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-band .btn:hover {
  background: var(--color-ink);
  color: #fff;
}

.cta-band .btn + .btn {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.cta-band .btn + .btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1024px) {
  .hero__title { font-size: 42px; }
  .stat-item__value { font-size: 40px; }
  .stat-item__value .unit { font-size: 18px; }
}

@media (max-width: 768px) {
  .hero { padding: 48px 0 64px; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__title { font-size: 32px; }
  .hero__visual { max-width: 320px; margin: 0 auto; }

  .stats { padding: 32px 0; }
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .stat-item__value { font-size: 32px; }

  .services-overview__grid { grid-template-columns: 1fr; }
  .tech-highlight__wrap { grid-template-columns: 1fr; gap: 32px; }
  .logo-wall__grid { grid-template-columns: repeat(3, 1fr); }
  .cta-band h2 { font-size: 24px; }
}
