/* ==========================================================================
   拓冰网站优化 - 首页专属样式
   核心：抬升高亮双重聚焦布局 · 仪表盘式核心模块
   ========================================================================== */

/* ---------- Hero 全屏 Banner ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42) saturate(1.1);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 7, 9, 0.92) 0%, rgba(6, 7, 9, 0.6) 50%, rgba(6, 7, 9, 0.3) 100%),
    linear-gradient(180deg, transparent 0%, rgba(6, 7, 9, 0.4) 100%);
}

/* 红色速度线装饰 */
.hero-bg::before {
  content: "";
  position: absolute;
  left: 0;
  top: 30%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red) 40%, var(--red-bright) 50%, var(--red) 60%, transparent);
  z-index: 1;
  box-shadow: 0 0 20px var(--red-glow);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--red-bright);
  padding: 7px 18px;
  background: rgba(228, 0, 16, 0.12);
  border: 1px solid rgba(228, 0, 16, 0.4);
  border-radius: var(--r-pill);
  font-family: var(--font-en);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 10px var(--red-bright);
  animation: pulse 1.6s infinite;
}

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

.hero h1 {
  font-size: 60px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 1px;
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero h1 .red {
  color: var(--red-bright);
  text-shadow: 0 0 30px var(--red-glow);
}

.hero-sub {
  font-size: 17px;
  color: var(--silver);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 36px;
}

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

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stats .stat strong {
  display: block;
  font-size: 44px;
  font-weight: 800;
  color: var(--silver-bright);
  font-family: var(--font-en);
  line-height: 1;
  text-shadow: 0 0 24px rgba(228, 0, 16, 0.3);
}

.hero-stats .stat strong::after {
  content: attr(data-suffix);
  font-size: 24px;
  color: var(--red-bright);
}

.hero-stats .stat span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--silver-2);
  letter-spacing: 0.5px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
  color: var(--silver-3);
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 3px;
  font-family: var(--font-en);
  font-weight: 600;
}

.hero-scroll .mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--silver-3);
  border-radius: 12px;
  margin: 8px auto 0;
  position: relative;
}

.hero-scroll .mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--red-bright);
  border-radius: 2px;
  animation: scroll-dot 1.6s infinite;
}

@keyframes scroll-dot {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* ==========================================================================
   核心优势板块
   ========================================================================== */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.adv-card {
  background: var(--carbon-texture), linear-gradient(160deg, var(--carbon-3), var(--carbon));
  border: 1px solid var(--carbon-line);
  border-radius: var(--r-md);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

.adv-card .adv-no {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 48px;
  font-weight: 800;
  color: rgba(228, 0, 16, 0.08);
  font-family: var(--font-en);
  line-height: 1;
}

.adv-card .adv-ico {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(228, 0, 16, 0.1);
  border: 1px solid rgba(228, 0, 16, 0.25);
  margin-bottom: 20px;
}

.adv-card h3 {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 10px;
}

.adv-card p {
  font-size: 13.5px;
  color: var(--silver-2);
  line-height: 1.7;
}

.adv-card:hover {
  border-color: var(--red);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), 0 0 30px rgba(228, 0, 16, 0.15);
}

.adv-card:hover .adv-ico {
  background: rgba(228, 0, 16, 0.2);
  border-color: var(--red);
}

/* ==========================================================================
   核心服务模块（抬升高亮双重聚焦）
   核心模块抬升 + 红色高亮边框 = 双重视觉聚焦
   ========================================================================== */
.svc-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.svc-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--carbon-texture), linear-gradient(160deg, var(--carbon-3), var(--carbon));
  border: 1px solid var(--carbon-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

/* 抬升 + 高亮：双重聚焦 */
.svc-row:hover {
  border-color: rgba(228, 0, 16, 0.5);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(228, 0, 16, 0.12);
}

/* 红色高亮顶边 */
.svc-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-bright) 50%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 3;
}

.svc-row:hover::before {
  transform: scaleX(1);
}

.svc-row.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.svc-row.reverse .svc-media {
  order: 2;
}

.svc-media {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.svc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.svc-row:hover .svc-media img {
  transform: scale(1.06);
}

.svc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 7, 9, 0.5) 0%, transparent 50%);
}

.svc-body {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.svc-body .step-no {
  font-size: 12px;
  font-weight: 700;
  color: var(--red-bright);
  font-family: var(--font-en);
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.svc-body h3 {
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 14px;
}

.svc-body > p {
  font-size: 14px;
  color: var(--silver-2);
  line-height: 1.8;
  margin-bottom: 20px;
}

.svc-feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin-bottom: 24px;
}

.svc-feat li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--body);
}

.svc-feat li svg {
  flex-shrink: 0;
  stroke: var(--red-bright);
}

/* ==========================================================================
   客户案例网格
   ========================================================================== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.case-card {
  background: var(--carbon-texture), linear-gradient(160deg, var(--carbon-3), var(--carbon));
  border: 1px solid var(--carbon-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  border-color: rgba(228, 0, 16, 0.5);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.case-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover .case-img img {
  transform: scale(1.08);
}

.case-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 7, 9, 0.7) 100%);
}

.case-cat {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  border-radius: var(--r-pill);
  z-index: 2;
  letter-spacing: 1px;
}

.case-info {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-info h3 {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 8px;
}

.case-info p {
  font-size: 13px;
  color: var(--silver-2);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.case-meta span:first-child {
  color: var(--muted);
}

.case-meta .more {
  color: var(--red-bright);
  font-weight: 600;
}

/* ==========================================================================
   建站流程（赛道计时风格）
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  left: 12.5%;
  top: 40px;
  width: 75%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 20px);
  z-index: 0;
}

.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 16px;
}

.step-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--carbon-texture), linear-gradient(160deg, var(--carbon-3), var(--carbon));
  border: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--red-bright);
  font-family: var(--font-en);
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(228, 0, 16, 0.2);
  transition: all 0.3s ease;
}

.step-item:hover .step-circle {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 0 30px rgba(228, 0, 16, 0.4);
}

.step-item h4 {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-item p {
  font-size: 13px;
  color: var(--silver-2);
}

/* ==========================================================================
   CTA 行动条
   ========================================================================== */
.cta-band {
  background: var(--carbon-texture), linear-gradient(135deg, var(--red-deep), #4A0008);
  border: 1px solid rgba(228, 0, 16, 0.4);
  border-radius: var(--r-lg);
  padding: 48px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

.cta-text h3 {
  font-size: 26px;
  color: #fff;
  margin-bottom: 8px;
}

.cta-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 46px;
  }
  .hero-stats {
    gap: 32px;
  }
  .hero-stats .stat strong {
    font-size: 36px;
  }
}

@media (max-width: 900px) {
  .svc-row,
  .svc-row.reverse {
    grid-template-columns: 1fr;
  }
  .svc-row.reverse .svc-media {
    order: 0;
  }
  .svc-media {
    min-height: 240px;
  }
  .svc-body {
    padding: 32px 28px;
  }
  .svc-feat {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 0;
  }
  .steps::before {
    display: none;
  }
  .hero h1 {
    font-size: 36px;
  }
  .cta-band {
    padding: 32px 28px;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .adv-grid {
    grid-template-columns: 1fr;
  }
  .case-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-stats {
    gap: 24px;
  }
  .hero-stats .stat strong {
    font-size: 28px;
  }
}
