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

/* --- Hero 装饰层 --- */
.hero-decor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

/* 点阵网格背景 */
.hero-decor__grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}

/* 浮动圆环 */
.hero-decor__circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-decor__circle--1 {
  width: 400px;
  height: 400px;
  top: 8%;
  right: 5%;
  border-width: 1.5px;
  border-color: rgba(255, 255, 255, 0.08);
  animation: float-rotate 20s linear infinite;
}

.hero-decor__circle--1::before {
  content: "";
  position: absolute;
  top: 50px;
  left: 50px;
  right: 50px;
  bottom: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-decor__circle--1::after {
  content: "";
  position: absolute;
  top: 110px;
  left: 110px;
  right: 110px;
  bottom: 110px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.05);
}

.hero-decor__circle--2 {
  width: 250px;
  height: 250px;
  bottom: 15%;
  left: 5%;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.06);
  animation: float-up 12s ease-in-out infinite;
}

.hero-decor__circle--3 {
  width: 120px;
  height: 120px;
  top: 35%;
  left: 20%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  border: none;
  animation: float-up 8s ease-in-out infinite reverse;
}

/* 对角装饰线 */
.hero-decor__line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform-origin: center;
}

.hero-decor__line--1 {
  width: 500px;
  height: 1px;
  top: 30%;
  right: -100px;
  transform: rotate(-25deg);
  animation: line-slide 6s ease-in-out infinite;
}

.hero-decor__line--2 {
  width: 350px;
  height: 1px;
  bottom: 35%;
  left: -50px;
  transform: rotate(20deg);
  animation: line-slide 8s ease-in-out infinite reverse;
}

/* 光晕扫光效果 */
.hero-decor__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  animation: glow-drift 10s ease-in-out infinite;
}

.hero-decor__glow::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -60%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
  animation: glow-drift 14s ease-in-out infinite reverse;
}

/* 动画关键帧 */
@keyframes float-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-25px); }
}

@keyframes line-slide {
  0%, 100% { opacity: 0.3; transform: rotate(-25deg) translateX(0); }
  50%      { opacity: 0.8; transform: rotate(-25deg) translateX(40px); }
}

@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-30px, 20px) scale(1.05); }
  66%      { transform: translate(20px, -15px) scale(0.95); }
}

/* 旧的伪元素替换掉 */
.hero--home::before,
.hero--home::after {
  display: none;
}

/* --- 公司简介区 --- */
.intro-image {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 300px;
  background: #f0f4f8;
}

.intro-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  min-height: 300px;
}

.intro-image::after {
  content: "";
  position: absolute;
  top: -8px;
  right: -8px;
  bottom: 8px;
  left: 8px;
  border: 2px solid rgba(26, 86, 219, 0.15);
  border-radius: var(--r-lg);
  pointer-events: none;
}

.intro-text h2 {
  margin-bottom: var(--sp-md);
}

.intro-text .divider {
  margin-bottom: var(--sp-xl);
}

.intro-text p {
  margin-bottom: var(--sp-lg);
}

/* --- 统计条 --- */
.stats {
  background: linear-gradient(135deg, #1e3a8a, #1a56db);
  border-top: none;
  border-bottom: none;
  padding: var(--sp-3xl) 0;
}

.stats-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  text-align: center;
}

@supports (display: grid) {
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats-grid > * {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 25%;
  flex: 1 1 25%;
  padding: var(--sp-lg);
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: var(--sp-sm);
}

.stat-label {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
}

/* --- 为什么选择我们 --- */
.why-card {
  text-align: center;
  padding: var(--sp-2xl);
}

.why-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.1), rgba(26, 86, 219, 0.04));
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 0 auto var(--sp-lg);
  border: 1px solid rgba(26, 86, 219, 0.15);
  color: var(--color-gold);
}

.why-card__icon svg {
  display: block;
}

.why-card__title {
  font-size: var(--fs-xl);
  color: var(--color-white);
  margin-bottom: var(--sp-sm);
  font-weight: 600;
}

/* --- 案例预览 --- */
.case-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-normal);
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}

.case-card__image {
  height: 200px;
  background: #f0f4f8;
  overflow: hidden;
  position: relative;
}

.case-card__image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}

.case-card__body {
  padding: var(--sp-xl);
}

.case-card__tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(26, 86, 219, 0.08);
  color: var(--color-gold);
  font-size: var(--fs-xs);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-sm);
}

.case-card__title {
  font-size: var(--fs-lg);
  color: var(--color-white);
  margin-bottom: var(--sp-sm);
  font-weight: 600;
}

.case-card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* cta-banner 已移至 components.css */

/* --- 响应式 --- */
@media (max-width: 767px) {
  .stats-grid > * {
    -ms-flex: 1 1 50%;
    flex: 1 1 50%;
  }

  @supports (display: grid) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
  }

  .stat-item:nth-child(2)::after { display: none; }
  .stat-item:nth-child(even)::after { display: none; }

  .hero-decor__circle--1 { width: 200px; height: 200px; }
  .hero-decor__circle--2 { display: none; }
  .hero-decor__line { display: none; }
  .hero-decor__glow { width: 300px; height: 300px; }
}
