/* ============================================================
   SCD 西迪自动化 — components.css  首页英雄 / 卡片 / 网格组件
   ============================================================ */

/* ---------- Hero 轮播 ---------- */
/* ---------- Hero 全宽轮播 ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--grad-deep); }
#particles { position: absolute; inset: 0; z-index: 2; opacity: .55; pointer-events: none; }

/* 全宽轮播背景层 */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .hero-slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.08);
  transition: opacity 1.1s var(--ease), transform 6s linear;
}
.hero-bg .hero-slide.active { opacity: 1; transform: scale(1); }
.hero-bg .hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* 可读性遮罩：左深右浅 + 底部加深 */
.hero-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(6,16,40,.72) 0%, rgba(6,16,40,.45) 38%, rgba(6,16,40,.10) 70%, rgba(6,16,40,.20) 100%),
    linear-gradient(to top, rgba(6,16,40,.45), transparent 38%);
}

.hero .container { position: relative; z-index: 3; padding-top: var(--header-h); }

.hero-copy { color: #fff; max-width: 640px; }
.hero-copy .tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  font-size: 13.5px; letter-spacing: 1px; margin-bottom: 24px; backdrop-filter: blur(4px);
}
.hero-copy .tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(0, 198, 255, .7); animation: pulse 2s infinite; }
.hero-copy h1 { color: #fff; font-size: clamp(34px, 5.2vw, 62px); letter-spacing: -1.5px; line-height: 1.12; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero-copy h1 .text-grad { background: linear-gradient(120deg, #9fe1ff, #00c6ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-copy .sub { margin-top: 22px; font-size: 18px; color: rgba(255, 255, 255, .9); max-width: 540px; }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* 当前幻灯标题 */
.hero-slide-cap { margin-top: 40px; display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.85); font-size: 15px; min-height: 24px; }
.hero-slide-cap .bar { width: 32px; height: 2px; background: var(--cyan); border-radius: 2px; flex-shrink: 0; }

/* 指示点 */
.hero-dots { position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 10px; }
.hero-dots button { width: 30px; height: 5px; border-radius: 3px; border: 0; background: rgba(255, 255, 255, .3); cursor: pointer; transition: .3s; padding: 0; }
.hero-dots button.active { background: var(--cyan); width: 46px; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 4;
  color: rgba(255, 255, 255, .7); font-size: 12px; letter-spacing: 2px; text-align: center;
}
.scroll-hint .mouse { width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px; margin: 0 auto 8px; position: relative; }
.scroll-hint .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; border-radius: 2px; background: #fff; animation: scrolldot 1.8s infinite; }

/* ---------- 统计数字 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 30px 18px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.stat .num { font-size: clamp(34px, 4vw, 48px); font-weight: 800; line-height: 1; }
.stat .label { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- 特性卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 26px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; position: relative; overflow: hidden;
}
.feature::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.feature:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature .ic { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-soft2); color: var(--blue-600); margin-bottom: 20px; transition: .4s var(--ease); }
.feature:hover .ic { background: var(--grad); color: #fff; transform: rotate(-6deg) scale(1.06); }
.feature .ic svg { width: 30px; height: 30px; }
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- 产品卡片 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.prod-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.prod-media { position: relative; aspect-ratio: 4/3; background: var(--bg-soft2); overflow: hidden; }
.prod-media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform .55s var(--ease); }
.prod-card:hover .prod-media img { transform: scale(1.08); }
.prod-media .badge { position: absolute; top: 14px; left: 14px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.prod-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.prod-body .model { font-size: 12.5px; color: var(--blue-600); font-weight: 700; letter-spacing: .5px; }
.prod-body h3 { font-size: 19px; margin: 6px 0 10px; }
.prod-body p { color: var(--muted); font-size: 14.5px; flex: 1; }
.prod-body .more { margin-top: 16px; font-weight: 700; color: var(--blue-600); display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; }
.prod-body .more svg { transition: transform .3s var(--ease); }
.prod-card:hover .prod-body .more svg { transform: translateX(5px); }

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-dots { bottom: 70px; }
}
@media (max-width: 560px) {
  .feature-grid, .prod-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(30px, 9vw, 44px); }
}
