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

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 640px;
  padding: 56px 0;
  background-color: #050B1A;
  background-image:
    radial-gradient(ellipse at top left, rgba(0, 80, 180, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(180, 0, 80, 0.25) 0%, transparent 50%),
    linear-gradient(135deg, #050B1A 0%, #0A1832 50%, #0F2A4F 100%);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* 动态科技网格背景 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    /* 网格线 */
    linear-gradient(rgba(0, 200, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.08) 1px, transparent 1px),
    /* 顶部光晕 */
    radial-gradient(ellipse 80% 50% at 30% 0%, rgba(0, 150, 255, 0.18) 0%, transparent 60%),
    /* 底部光晕 */
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(230, 0, 0, 0.12) 0%, transparent 60%);
  background-size:
    50px 50px,
    50px 50px,
    100% 100%,
    100% 100%;
  z-index: 0;
  animation: gridPan 30s linear infinite;
}

@keyframes gridPan {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 50px 50px, 50px 50px, 0 0, 0 0; }
}

/* 浮动的光点粒子 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(0, 220, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 60% 20%, rgba(0, 200, 255, 0.6), transparent),
    radial-gradient(1px 1px at 50% 60%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 80% 70%, rgba(0, 220, 255, 0.6), transparent),
    radial-gradient(1px 1px at 90% 30%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 30% 80%, rgba(0, 200, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 15% 50%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 70% 45%, rgba(0, 220, 255, 0.6), transparent);
  background-size: 100% 100%;
  z-index: 0;
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

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

.hero-content {
  /* 不再单独限宽，跟随 .container 版心，避免首屏比下方区块窄一截 */
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-text {
  /* 左侧文本块 */
}

.hero-visual {
  /* 右侧视觉块 - 由 HTML 注入 SVG/插画 */
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================== 右侧装饰球 ===================== */
.hero-orb {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(0, 200, 255, 0.3);
  animation: orbSpin 30s linear infinite;
}

.hero-orb-ring--2 {
  inset: 40px;
  border-color: rgba(230, 0, 0, 0.25);
  animation-direction: reverse;
  animation-duration: 22s;
}

@keyframes orbSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-orb-core {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.25) 0%, rgba(0, 100, 200, 0.1) 60%, transparent 100%);
  border: 1px solid rgba(0, 200, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00D4FF;
  box-shadow:
    0 0 40px rgba(0, 200, 255, 0.3),
    inset 0 0 30px rgba(0, 200, 255, 0.1);
  animation: corePulse 4s ease-in-out infinite;
}

.hero-orb-core svg {
  width: 56px;
  height: 56px;
}

@keyframes corePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(0, 200, 255, 0.3), inset 0 0 30px rgba(0, 200, 255, 0.1); }
  50% { transform: scale(1.05); box-shadow: 0 0 60px rgba(0, 200, 255, 0.4), inset 0 0 40px rgba(0, 200, 255, 0.2); }
}

.hero-orb-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(10, 24, 50, 0.85);
  border: 1px solid rgba(0, 200, 255, 0.3);
  border-radius: 100px;
  color: #fff;
  font-size: 13px;
  font-weight: var(--fw-medium);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero-orb-chip svg {
  width: 18px;
  height: 18px;
  color: #00D4FF;
  flex-shrink: 0;
}

.hero-orb-chip--1 { top: 8%; left: 0; }
.hero-orb-chip--2 { top: 12%; right: 0; }
.hero-orb-chip--3 { bottom: 12%; left: 0; }
.hero-orb-chip--4 { bottom: 8%; right: 0; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background-color: rgba(0, 200, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.4);
  color: #00D4FF;
  border-radius: 100px;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-6);
  font-weight: var(--fw-medium);
  backdrop-filter: blur(4px);
}

.hero-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: #00D4FF;
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px #00D4FF;
}

.hero h1 {
  font-size: 56px;
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  position: relative;
}

.hero h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--color-primary) 0%, var(--color-tech-blue) 100%);
  border-radius: 2px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #00D4FF 0%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-subtitle {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  font-weight: var(--fw-medium);
  letter-spacing: 2px;
}

/* 兼容:即使 .hero-subtitle 元素不再使用,也保留样式以防其他位置引用 */

.hero-desc {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: var(--space-8);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.btn-tech-outline {
  background-color: transparent;
  color: #00D4FF;
  border: 1px solid #00D4FF;
}

.btn-tech-outline:hover {
  background-color: #00D4FF;
  color: #050B1A;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.hero-stats {
  display: flex;
  gap: var(--space-12);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(0, 200, 255, 0.2);
}

.hero-stat strong {
  display: block;
  font-size: 40px;
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: 1;
  background: linear-gradient(135deg, #FFFFFF 0%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat > span {
  display: block;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-2);
  letter-spacing: 1px;
}

@media (max-width: 991px) {
  .hero { min-height: 560px; padding: 40px 0; }
  .hero h1 { font-size: 40px; }
  .hero-stats { gap: var(--space-6); }
  .hero-stat strong { font-size: 28px; }
  .hero-content { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-visual { height: 280px; }
  .hero-orb { width: 240px; height: 240px; }
  .hero-orb-core { width: 90px; height: 90px; }
  .hero-orb-core svg { width: 42px; height: 42px; }
}

@media (max-width: 767px) {
  .hero { height: auto; padding: 80px 0 60px; }
  .hero h1 { font-size: 30px; }
  .hero-subtitle { font-size: var(--fs-base); }
  .hero-stats { flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
  .hero-stat { flex: 1 1 45%; }
  .hero-stat strong { font-size: 24px; }
  .hero-orb-chip { font-size: 11px; padding: 6px 10px; }
  .hero-orb-chip svg { width: 14px; height: 14px; }
}

/* ===================== 业务领域 ===================== */
.service-process {
  background-color: var(--color-bg-soft);
  position: relative;
}

.business-domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.business-domain-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
  overflow: hidden;
}

.business-domain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--color-primary) 0%, var(--color-tech-blue) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

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

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

.business-domain-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px dashed var(--color-border);
  flex-wrap: nowrap;
}

.business-domain-num {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(230, 0, 0, 0.2);
  font-feature-settings: 'tnum';
}

.business-domain-head h3 {
  font-size: var(--fs-xl);
  color: var(--color-text);
  margin-bottom: 2px;
  font-weight: var(--fw-bold);
  white-space: nowrap;
  line-height: 1.3;
}

.business-domain-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.business-domain-tag {
  font-size: var(--fs-xs);
  color: var(--color-text-light);
  letter-spacing: 1.5px;
  margin: 0;
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.business-domain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.business-domain-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--transition-fast);
}

.business-domain-list li:last-child {
  border-bottom: none;
}

.business-domain-list li:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.business-domain-list .dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
}

@media (max-width: 991px) {
  .business-domains-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .business-domain-head { flex-wrap: wrap; }
  .business-domain-head h3 { white-space: normal; }
  .business-domain-tag { white-space: normal; }
}

@media (max-width: 480px) {
  .business-domain-head { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
}

/* ===================== 5 大优势 ===================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-5);
}

.advantage-card {
  background: #fff;
  padding: var(--space-8) var(--space-5);
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--color-primary) 0%, var(--color-tech-blue) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

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

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

.advantage-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
}

.advantage-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-primary);
  opacity: 0.2;
}

.advantage-icon svg {
  width: 32px;
  height: 32px;
}

.advantage-card h4 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.advantage-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 1199px) {
  .advantages-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .advantages-grid { grid-template-columns: 1fr; }
}

/* ===================== 产品中心 ===================== */
.products-section {
  background: #ffffff;
}

.products-section .section-title h2::after {
  display: none;
}

.products-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-8);
  margin-top: var(--space-10);
}

.product-sidebar {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  align-self: start;
}

.product-sidebar h4 {
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-md);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.product-sidebar h4::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.product-sidebar ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  margin-bottom: 2px;
}

.product-sidebar ul li a::after {
  content: '›';
  color: var(--color-text-light);
  font-size: 18px;
  transition: all var(--transition-fast);
}

.product-sidebar ul li a:hover,
.product-sidebar ul li a.active {
  background-color: var(--color-primary);
  color: #fff;
}

.product-sidebar ul li a:hover::after,
.product-sidebar ul li a.active::after {
  color: #fff;
  transform: translateX(2px);
}

.product-feature {
  background: linear-gradient(135deg, #f5f9ff 0%, #e8f2ff 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.product-feature-info h3 {
  font-size: var(--fs-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.product-feature-info .tag {
  display: inline-block;
  padding: 4px var(--space-3);
  background-color: var(--color-primary);
  color: #fff;
  font-size: var(--fs-xs);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

.product-feature-info p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  line-height: 1.8;
}

.product-feature-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.spec-item {
  background: #fff;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.spec-item::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: var(--fw-bold);
}

.product-feature-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: var(--shadow-md);
}

@media (max-width: 991px) {
  .products-layout { grid-template-columns: 1fr; }
  .product-feature { grid-template-columns: 1fr; }
  .product-feature-img { aspect-ratio: 16 / 9; }
}

/* ===================== 首页产品中心 工业物联网设备 ===================== */
.home-product-extra {
  margin-bottom: var(--space-12);
}

.home-product-extra-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
}

.home-product-extra-title h3 {
  font-size: var(--fs-xl);
  color: var(--color-text);
  font-weight: var(--fw-bold);
  position: relative;
  padding-left: var(--space-4);
}

.home-product-extra-title h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.home-product-extra-title .more-link {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
  transition: color var(--transition-fast);
}

.home-product-extra-title .more-link:hover {
  color: var(--color-primary);
}

.home-product-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.home-product-extra-card {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 400px;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}

.home-product-extra-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
  color: inherit;
}

.home-product-extra-img {
  position: relative;
  background: var(--color-bg-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.home-product-extra-img > * {
  width: calc(100% - 0px);
  height: calc(100% - 0px);
}

.home-product-extra-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.home-product-extra-card:hover .home-product-extra-img img {
  transform: scale(1.05);
}

.home-product-extra-img .placeholder-image {
  border-radius: 0;
}

.home-product-extra-img .badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: 2px 8px;
  font-size: 11px;
  border-radius: var(--radius-sm);
  color: #fff;
  z-index: 2;
  font-weight: var(--fw-medium);
}

.home-product-extra-img .badge.new { background-color: var(--color-success); }
.home-product-extra-img .badge.hot { background-color: var(--color-primary); }
.home-product-extra-img .badge.recommend { background-color: #F59E0B; }

.home-product-extra-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.home-product-extra-category {
  font-size: var(--fs-xs);
  color: var(--color-text-light);
  letter-spacing: 1.5px;
  margin-bottom: var(--space-2);
  font-weight: var(--fw-medium);
}

.home-product-extra-info h4 {
  font-size: var(--fs-md);
  color: var(--color-text);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.home-product-extra-info p {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-product-extra-features {
  list-style: none;
  margin: 0 0 var(--space-4) 0;
  padding: var(--space-3) 0;
  border-top: 1px dashed var(--color-border-light);
  border-bottom: 1px dashed var(--color-border-light);
  flex: 1;
}

.home-product-extra-features li {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  line-height: 1.4;
}

.home-product-extra-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  background-color: var(--color-primary);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
  flex-shrink: 0;
}

.home-product-extra-info .action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-end;
  font-size: var(--fs-sm);
  color: var(--color-primary);
  font-weight: var(--fw-medium);
  transition: gap var(--transition-fast);
}

.home-product-extra-card:hover .home-product-extra-info .action {
  gap: 8px;
}

/* ===================== 首页产品 放大式轮播 ===================== */
.home-product-zoom-carousel {
  position: relative;
  height: 480px;
  margin-top: var(--space-6);
  overflow: hidden;
}

.home-product-zoom-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.home-product-zoom-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 720px;
  height: 100%;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 300px 1fr;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-lg);
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.6);
  z-index: 1;
}

.home-product-zoom-card.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
  z-index: 3;
}

.home-product-zoom-card.is-prev {
  opacity: 0.4;
  transform: translateX(calc(-50% - 380px)) scale(0.7);
  z-index: 2;
}

.home-product-zoom-card.is-next {
  opacity: 0.4;
  transform: translateX(calc(-50% + 380px)) scale(0.7);
  z-index: 2;
}

.home-product-zoom-card.is-far-prev {
  opacity: 0;
  transform: translateX(calc(-50% - 700px)) scale(0.5);
}

.home-product-zoom-card.is-far-next {
  opacity: 0;
  transform: translateX(calc(-50% + 700px)) scale(0.5);
}

.home-product-zoom-card:hover {
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.18), 0 8px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

.home-product-zoom-img {
  position: relative;
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.home-product-zoom-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-product-zoom-info {
  padding: 30px 30px 25px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-product-zoom-info h4 {
  font-size: 22px;
  color: var(--color-text);
  font-weight: var(--fw-bold);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.home-product-zoom-info p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0 0 16px 0;
}

.home-product-zoom-features {
  list-style: none;
  margin: 0 0 auto 0;
  padding: 12px 0;
  border-top: 1px dashed var(--color-border-light);
  border-bottom: 1px dashed var(--color-border-light);
}

.home-product-zoom-features li {
  font-size: 14px;
  color: var(--color-text-secondary);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-product-zoom-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  background-color: var(--color-primary);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
  flex-shrink: 0;
}

.home-product-zoom-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-product-zoom-btn:hover {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.05);
}

.home-product-zoom-btn svg { width: 22px; height: 22px; }

.home-product-zoom-btn--prev { left: 5%; }
.home-product-zoom-btn--next { right: 5%; }

.home-product-zoom-dots {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.home-product-zoom-dots .dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--color-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.home-product-zoom-dots .dot.active {
  background-color: var(--color-primary);
  width: 40px;
}

@media (max-width: 991px) {
  .home-product-zoom-carousel { height: 460px; }
  .home-product-zoom-card { width: 90%; max-width: 640px; }
  .home-product-zoom-card.is-prev { transform: translateX(calc(-50% - 180px)) scale(0.7); }
  .home-product-zoom-card.is-next { transform: translateX(calc(-50% + 180px)) scale(0.7); }
  .home-product-zoom-card.is-far-prev { transform: translateX(calc(-50% - 400px)) scale(0.5); }
  .home-product-zoom-card.is-far-next { transform: translateX(calc(-50% + 400px)) scale(0.5); }
}

@media (max-width: 600px) {
  .home-product-zoom-carousel { height: auto; min-height: 540px; }
  .home-product-zoom-card { width: 95%; grid-template-columns: 1fr; height: auto; min-height: 520px; }
  .home-product-zoom-card.is-prev,
  .home-product-zoom-card.is-next,
  .home-product-zoom-card.is-far-prev,
  .home-product-zoom-card.is-far-next { display: none; }
  .home-product-zoom-card.is-active { transform: translateX(-50%) scale(1); }
  .home-product-zoom-btn { width: 40px; height: 40px; }
  .home-product-zoom-info { padding: 20px; }
  .home-product-zoom-info h4 { font-size: 18px; }
}

@media (max-width: 767px) {
  .home-product-extra-grid { grid-template-columns: 1fr; }
  .home-product-extra-card { grid-template-columns: 140px 1fr; }
}

/* ===================== 软硬件一体化平台 ===================== */
.platforms-section {
  background: #f7f8fa;
  position: relative;
  overflow: hidden;
}

.platforms-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--color-primary) 50%, transparent 100%);
  opacity: 0.3;
}

/* ===================== 平台自动轮播（3 列 × 2 行 / 页） ===================== */
.platforms-carousel-wrap {
  position: relative;
  margin-top: var(--space-10);
}

.platforms-carousel {
  position: relative;
  padding: 10px 0 24px;
  overflow: hidden;
}

.platforms-track {
  display: flex;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.platforms-page {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: stretch;
  padding: 0 8px; /* 给卡片阴影左右留缓冲，同时保证相邻页被完全裁掉 */
}

/* 卡片区域两侧的翻页箭头 */
.platforms-arrow {
  position: absolute;
  top: calc(50% - 7px); /* 抵消 carousel 上下不对称的内边距 */
  z-index: 3;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  transform: translateY(-50%);
}

.platforms-arrow svg {
  width: 20px;
  height: 20px;
}

.platforms-arrow:hover,
.platforms-arrow:focus-visible {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
  outline: none;
}

.platforms-arrow--prev { left: -60px; }
.platforms-arrow--next { right: -60px; }

/* 平台卡片（上图下文：顶部横图 + 图标 + 名称 + 简介） */
.platform-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all var(--transition-base);
}

/* 顶部横图（2:1，比 16:9 更扁，卡片整体更紧凑） */
.platform-tile-media {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  flex-shrink: 0;
}

.platform-tile-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.platform-tile:hover .platform-tile-media img {
  transform: scale(1.05);
}

.platform-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--color-primary) 0%, var(--color-tech-blue) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.platform-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
  color: inherit;
}

.platform-tile:hover::before {
  transform: scaleX(1);
}

.platform-tile h3 {
  font-size: var(--fs-base);
  color: var(--color-text);
  margin: var(--space-5) var(--space-5) var(--space-2);
  font-weight: var(--fw-bold);
  line-height: 1.45;
}

.platform-tile p {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0 var(--space-5) var(--space-6);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 定制开发入口卡（第 12 格，无图，内容垂直居中） */
.platform-tile--cta {
  background: #fff;
  justify-content: center;
  padding: var(--space-6) 0;
}

.platform-tile--cta::before {
  background: var(--color-primary);
  transform: scaleX(1);
}

.platform-tile--cta h3 {
  color: var(--color-text);
}

.platform-tile--cta p {
  color: var(--color-text-secondary);
}

.platform-tile-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: var(--space-4) var(--space-5) 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  transition: color var(--transition-fast), gap var(--transition-fast);
}

.platform-tile-cta-link svg {
  width: 16px;
  height: 16px;
}

.platform-tile--cta:hover .platform-tile-cta-link {
  color: #B30000;
  gap: 10px;
}

/* 容器铺满视口、外侧没有富余空间时，为箭头单独留出两侧轨道，避免压住卡片 */
@media (max-width: 1560px) {
  .platforms-carousel-wrap {
    padding: 0 60px;
  }

  .platforms-arrow--prev { left: 0; }
  .platforms-arrow--next { right: 0; }
}

@media (max-width: 991px) {
  .platforms-page { grid-template-columns: repeat(2, 1fr); }
}

/* 小屏回退为普通平铺展示（不轮播） */
@media (max-width: 767px) {
  .platforms-carousel-wrap {
    padding: 0;
  }

  .platforms-carousel {
    padding: 0;
  }

  .platforms-track {
    display: block;
    transform: none !important;
    transition: none;
  }

  .platforms-page {
    padding: 0;
    grid-template-columns: 1fr;
  }

  .platforms-page + .platforms-page {
    margin-top: var(--space-5);
  }

  /* 平铺模式下隐藏首尾克隆页，避免内容重复 */
  .platforms-page--clone {
    display: none;
  }

  .platforms-arrow {
    display: none;
  }
}

/* ===================== 资质（横向滚动） ===================== */
.qual-carousel-wrap {
  position: relative;
}

.qual-track {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 4px 14px; /* 给 hover 上浮与阴影留缓冲 */
}

.qual-track::-webkit-scrollbar {
  display: none;
}

.qual-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 258px;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  scroll-snap-align: start;
}

/* 横版证书（865×601）单独用宽卡，保证完整展示、不靠留白硬撑 */
.qual-card--wide {
  flex: 0 0 502px;
}

/* 证书区域：浅灰衬底 + 均匀内衬，让每张证书像「装裱」在纸板上 */
.qual-card-img {
  position: relative;
  padding: 10px;
  background: #F4F5F7;
  overflow: hidden;
}

.qual-card-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 832 / 1176; /* 匹配竖版证书原生比例，contain 后几乎零留白 */
  object-fit: contain;
  background: #fff;
}

.qual-card--wide .qual-card-img img {
  aspect-ratio: 865 / 601;
}

/* 证书名称与说明常驻显示（卡片不可点击，无 hover 状态） */
.qual-card-body {
  padding: var(--space-4) var(--space-4) var(--space-5);
  color: var(--color-text-primary);
}

.qual-card .name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  margin-bottom: 4px;
}

.qual-card .meta {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
}

/* 滚动进度条：替代被隐藏的滚动条，提示可横向滑动 */
.qual-progress {
  width: 200px;
  height: 3px;
  margin: var(--space-6) auto 0;
  border-radius: 3px;
  background: rgba(26, 35, 50, 0.08);
  overflow: hidden;
}

.qual-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 3px;
  background: var(--color-primary);
  transition: width 0.15s linear, margin-left 0.15s linear;
}

/* 资质区两侧滚动箭头 */
.qual-arrow {
  position: absolute;
  top: 50%;
  margin-top: -12px;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all var(--transition-base);
}

.qual-arrow svg {
  width: 20px;
  height: 20px;
}

.qual-arrow:hover:not(:disabled) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.qual-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.qual-arrow--prev { left: -60px; }
.qual-arrow--next { right: -60px; }

/* 容器铺满视口、外侧无富余空间时，为箭头留出两侧轨道 */
@media (max-width: 1560px) {
  .qual-carousel-wrap { padding: 0 60px; }
  .qual-arrow--prev { left: 0; }
  .qual-arrow--next { right: 0; }
}

@media (max-width: 991px) {
  .qual-card { flex: 0 0 220px; }
  .qual-card--wide { flex: 0 0 425px; }
}

@media (max-width: 767px) {
  .qual-carousel-wrap { padding: 0; }
  .qual-track { gap: var(--space-4); }
  .qual-card { flex: 0 0 200px; }
  .qual-card--wide { flex: 0 0 88%; }
  .qual-arrow { display: none; }
}

/* ===================== 客户案例 ===================== */
.cases-section {
  background: #ffffff;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.case-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-base);
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(230, 0, 0, 0.15);
}

.case-image {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

.case-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.case-tag {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: 6px var(--space-4);
  background-color: var(--color-primary);
  color: #fff;
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
  z-index: 2;
}

/* 首页案例卡：与「经典案例」页卡片视觉对齐（内嵌式配图 + 角标右下） */
.cases-grid .case-card .case-image {
  padding: 10px;
}

.cases-grid .case-card .case-image::after {
  display: none;
}

.cases-grid .case-card .case-image > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  filter: saturate(0.95) contrast(1.02) brightness(1.03);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-slow);
}

.cases-grid .case-card:hover .case-image > img {
  transform: scale(1.03);
}

.cases-grid .case-card .case-image > img.fit-contain {
  object-fit: contain;
  background-color: #0A1420;
}

.cases-grid .case-card .case-image > img.fit-contain--light {
  object-fit: contain;
  background-color: #FFFFFF;
}

.cases-grid .case-card:hover .case-image > img.fit-contain,
.cases-grid .case-card:hover .case-image > img.fit-contain--light {
  transform: none;
}

.cases-grid .case-card .case-tag {
  top: auto;
  left: auto;
  right: 22px;
  bottom: 22px;
  padding: 4px 12px;
  background-color: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--color-primary);
  font-size: 12px;
  letter-spacing: 0.3px;
  font-weight: var(--fw-medium);
  border-radius: 100px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.case-body {
  padding: var(--space-8) var(--space-8);
}

.case-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.case-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.case-meta svg {
  width: 14px;
  height: 14px;
}

.case-desc {
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  line-height: 1.7;}

.cases-cta {
  text-align: center;
  margin-top: var(--space-10);
}

@media (max-width: 991px) {
  .cases-grid { grid-template-columns: 1fr; max-width: 600px; }
}

@media (max-width: 600px) {
  .cases-grid { grid-template-columns: 1fr; }
}

/* ===================== 合作品牌 ===================== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}

.brand-item {
  aspect-ratio: 16 / 9;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.brand-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.brand-item img {
  max-width: 75%;
  max-height: 70%;
  object-fit: contain;
  filter: grayscale(0.4);
  opacity: 0.85;
  transition: all var(--transition-base);
}

.brand-item:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
}
