﻿/* ================================================
   响应式适配 - 深圳市联芯诚科技有限公司官网
   
   覆盖范围：
   1. 电脑端固定适配（100% 分辨率正常显示，放大/缩小图片不变形）
   2. 平板端（768px ~ 1200px）
   3. 手机端（< 768px）全面适配
   ================================================ */

/* ========================================
   全局基础：确保所有元素 box-sizing 正确
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ========================================
   电脑端容器固定 —— 防止无限拉伸
   ======================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* 宽屏 1400px+ 保持内容居中不扩散 */
@media (min-width: 1400px) {
  .container {
    max-width: 1360px;
    padding: 0 48px;
  }
}

/* ========================================
   图片全局固定策略
   —— 无论页面缩放，图片都保持比例
   ======================================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero 背景图：固定定位适配 */
.hero-bg-image {
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: scroll; /* 兼容移动端，不用 fixed */
}

/* 服务卡片图片容器 —— 固定比例不变形 */
.service-img-wrapper {
  width: 100%;
  padding-top: 60%; /* 5:3 比例 */
  position: relative;
  overflow: hidden;
}

.service-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 封面填充，不变形 */
  object-position: center;
}

/* 应用场景卡片图片 */
.app-card-img {
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
}

/* 新闻卡片图片 */
.news-card-img {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

/* 解决方案卡片图片 */
.solution-card-img {
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
}

/* 品牌 Logo 图片 */
.brand-gallery-image,
.brand-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
}


/* ========================================
   导航栏固定高度，防止内容挤压变形
   ======================================== */
:root {
  --nav-height: 72px;
}

.navbar {
  height: var(--nav-height);
  min-height: var(--nav-height);
}

/* 导航右侧操作区防溢出 */
.navbar .container {
  flex-wrap: nowrap;
  overflow: visible;
}

.nav-logo {
  flex-shrink: 0;
  min-width: 0;
}

.nav-logo-icon {
  flex-shrink: 0;
}

.nav-logo-text {
  min-width: 0;
  overflow: hidden;
}

.nav-logo-text strong,
.nav-logo-text small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  flex-shrink: 0;
  flex-wrap: nowrap;
}

/* 语言切换+CTA 区 */
.navbar > .container > div:last-of-type {
  flex-shrink: 0;
  white-space: nowrap;
}


/* ========================================
   Hero 区域 —— 全视口高度，背景图固定不变形
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

/* Hero 内容留出导航栏高度 */
.hero .container {
  padding-top: var(--nav-height);
  height: 100%;
  display: flex;
  align-items: center;
}

/* Hero 幻灯片背景图固定策略 */
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;
}


/* ========================================
   品牌 Logo 画廊 —— 固定列数，图片不变形
   ======================================== */
.brand-gallery-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.brand-gallery-image-wrapper {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}


/* ========================================
   服务卡片模块（模块4） —— 3列固定，手机竖排
   ======================================== */
.service-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.service-card {
  width: 100%;
  min-width: 0; /* 防止卡片溢出 */
}


/* ========================================
   精选推荐产品网格 —— 自适应列数
   ======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}


/* ========================================
   应用场景横向滚动
   ======================================== */
.applications-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.app-card {
  flex-shrink: 0;
  width: 300px;
  scroll-snap-align: start;
}


/* ========================================
   Footer 布局固定
   ======================================== */
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}


/* ========================================
   ===  电脑端缩放适配（关键）  ===
   当浏览器放大/缩小时，保持布局结构稳定
   ======================================== */

/* 1200px ~ 1400px：标准宽屏 */
@media (min-width: 1200px) and (max-width: 1400px) {
  .container {
    max-width: 1200px;
    padding: 0 32px;
  }

  .brand-gallery-container {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }

  .brand-gallery-image-wrapper {
    height: 160px;
  }

  .service-cards-container {
    gap: 24px;
  }
}

/* 1024px ~ 1200px：平板横屏/小笔记本 */
@media (min-width: 1024px) and (max-width: 1200px) {
  .container {
    padding: 0 24px;
  }

  .brand-gallery-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .brand-gallery-image-wrapper {
    height: 140px;
  }

  .service-cards-container {
    gap: 20px;
    padding: 0 16px;
  }

  .footer-main {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
  }

  .hero h1, .hero h2 {
    font-size: clamp(2rem, 4vw, 3.2rem) !important;
  }
}


/* ========================================
   ===  平板端适配（768px ~ 1024px）  ===
   ======================================== */
@media (max-width: 1024px) {

  :root {
    --nav-height: 68px;
  }

  .container {
    padding: 0 24px;
  }

  /* 导航：隐藏导航链接，显示汉堡菜单 */
  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex !important;
  }

  /* 移动导航下拉 */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(11, 20, 38, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 999;
  }

  .nav-links.active a {
    padding: 12px 16px;
    border-radius: 8px;
  }

  /* Hero */
  .hero {
    height: auto !important;
    min-height: 580px !important;
  }

  .hero-visual {
    display: none !important;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero h1, .hero h2 {
    font-size: clamp(2rem, 5vw, 3rem) !important;
  }

  .hero-subtitle {
    margin: 0 auto 40px !important;
    max-width: 560px !important;
  }

  .hero-tags {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem !important;
    padding: 6px 12px !important;
    margin-bottom: 28px !important;
  }

  .hero-actions {
    justify-content: center !important;
  }

  .hero-stats {
    justify-content: center !important;
    gap: 32px !important;
  }

  /* 品牌 Logo：改为4列 */
  .brand-gallery-container {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px !important;
  }

  .brand-gallery-image-wrapper {
    height: 140px !important;
  }

  /* 服务卡片：保持3列但缩小间距 */
  .service-cards-container {
    gap: 16px !important;
  }

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }

  /* 关于页面 */
  .about-intro {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem) !important;
  }
}


/* ========================================
   ===  手机端全面适配（< 768px）  ===
   ======================================== */
@media (max-width: 768px) {

  body {
    overflow-x: hidden !important;
  }

  :root {
    --nav-height: 64px;
  }

  /* 容器内边距 */
  .container {
    padding: 0 16px !important;
  }

  /* ---- 导航栏 ---- */
  .navbar .container {
    padding: 0 16px !important;
  }

  /* 手机端隐藏公司名称，节省空间 */
  .nav-logo-text {
    display: none !important;
  }

  /* 隐藏 CTA 按钮，移入菜单 */
  .nav-cta {
    display: none !important;
  }

  /* ---- Hero 区域 ---- */
  .hero {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 550px !important;
    min-height: unset !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
  }

  /* 背景图层撑满全屏 */
  .hero-bg-image {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  /* SVG撑满背景层 */
  .hero-bg-image svg {
    width: 100% !important;
    height: 100% !important;
  }

  /* SVG幻灯片：向左移动，让右侧图案内容可见 */
  .hero-bg-image.slide-1 svg {
    transform: translateX(-28%);
  }
  .hero-bg-image.slide-2 svg {
    transform: translateX(-22%);
  }

  /* hero内container保留内容padding，不影响背景全屏 */
  .hero .container {
    padding: 60px 16px 0 16px !important;
    max-width: 100% !important;
    align-items: flex-start !important;
  }

  /* slide-0 图片移动端：居中偏左显示 */
  .hero-bg-image.slide-0 {
    background-position: 35% center !important;
  }

  /* 【1】首屏整体上移：从垂直居中改为上方布局 */

  .hero-content {
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 0;
    padding-bottom: 0;
  }

  /* 【2】主标题优化：缩小字号 + 提升排版 */
  .hero h1, .hero h2 {
    font-size: 26px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    margin-bottom: 12px !important;
  }

  [lang="en"] .hero h1, [lang="en"] .hero h2 {
    font-size: 22px !important;
  }

  /* 【3】副标题优化：白色 + 提升层级 */
  .hero-subtitle {
    color: rgba(255,255,255,0.85) !important;
    font-size: 16px !important;
    margin-top: 12px !important;
    margin-bottom: 16px !important;
    max-width: 100% !important;
    line-height: 1.75 !important;
  }

  /* 【4】标签区域间距优化 */
  .hero-tags {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem !important;
    padding: 5px 10px !important;
    margin-top: 16px !important;
    margin-bottom: 20px !important;
  }

  .hero-tags span,
  .hero-tags .hero-tag {
    display: block;
    white-space: normal;
    width: auto;
    text-align: center;
  }

  .hero-badge {
    font-size: 0.68rem !important;
    padding: 5px 12px !important;
    margin-bottom: 20px !important;
  }

  /* 【5】按钮区域间距优化 */
  .hero-actions {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100%;
    margin-top: 10px !important;
    margin-bottom: 8px !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 20px !important;
  }

  /* Hero 统计数字 */
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    margin-top: 12px !important;
    padding-top: 16px !important;
  }

  .hero-stat-number {
    font-size: 1.7rem !important;
  }

  .hero-stat-label {
    font-size: 0.72rem !important;
  }

  /* ---- 品牌 Logo 区：双行滑动 ---- */
  .brand-logo-section {
    padding-top: 30px !important;
    padding-bottom: 0px !important;
  }

  .brand-logo-section .brand-title {
    font-size: clamp(22px, 5.5vw, 30px) !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 10px 20px !important;
    letter-spacing: 2px !important;
    margin-bottom: 16px !important;
    background: none !important;
    box-shadow: none !important;
  }

  .brand-logo-section .brand-title::before,
  .brand-logo-section .brand-title::after {
    display: none !important;
    content: none !important;
  }

  /* 隐藏LED蓝点（DOM元素，非伪元素） */
  .brand-logo-section .led-indicator {
    display: none !important;
  }

  /* 1️⃣ 移动端品牌 Swiper 容器 */
  .brand-carousel-mobile {
    display: block !important;
    overflow: hidden !important;
  }

  .swiper-brand-mobile {
    width: 100%;
    overflow: hidden;
  }

  .swiper-brand-mobile .swiper-slide {
    /* 不要设 width:100%!important — Swiper用inline style控制宽度，
       100%会相对于flex wrapper（=所有slide宽度之和）导致slide膨胀 */
    flex-shrink: 0 !important;
    box-sizing: border-box;
    padding: 0 16px;
  }

  /* 每屏 2×2 网格 — 自适应屏幕宽度 */
  .brand-slide-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: clamp(8px, 2vw, 14px) !important;
    box-sizing: border-box;
    width: 100%;
  }

  /* 单个品牌卡片 */
  .brand-carousel-item {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
    background: white;
    border-radius: clamp(6px, 2vw, 10px);
    padding: clamp(8px, 2.5vw, 16px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    box-sizing: border-box;
    min-height: 60px;
  }

  /* LOGO 自适应不变形 */
  .brand-carousel-item img {
    width: 100% !important;
    max-width: 140px !important;
    height: auto !important;
    max-height: 50px !important;
    object-fit: contain !important;
  }

  /* 分页小圆点样式 */
  .swiper-pagination-brand {
    position: relative !important;
    margin-top: 16px;
  }
  .swiper-pagination-brand .swiper-pagination-bullet {
    background: #999;
    opacity: 0.5;
  }
  .swiper-pagination-brand .swiper-pagination-bullet-active {
    background: #3498db;
    opacity: 1;
  }

  /* 隐藏PC端gallery，由JS控制 */
  .brand-gallery-container {
    display: none !important;
  }

  /* ---- 服务展示模块（为什么选择联芯诚）---- */
  .service-showcase-section {
    padding: 32px 0 !important;
  }

  /* PC端grid在移动端隐藏（由JS控制，此处作备用） */
  .service-cards-pc {
    display: none !important;
  }

  /* 移动端 Swiper 容器 */
  .service-swiper-mobile {
    width: 100%;
    overflow: hidden;
    padding: 0 0 40px;
  }

  .swiper-service-mobile {
    width: 100%;
    overflow: hidden;
  }

  /* 每个 slide：居中显示1张卡片 */
  .swiper-service-mobile .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* 卡片自适应 */
  .swiper-service-mobile .service-card {
    width: 100%;
    max-width: 92%;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
  }

  .swiper-service-mobile .service-img-wrapper {
    padding-top: 50% !important;
  }

  .swiper-service-mobile .service-card-info {
    padding: 20px !important;
  }

  .swiper-service-mobile .service-card-info h3 {
    font-size: 0.95rem !important;
  }

  /* 分页点 */
  .swiper-pagination-service {
    position: relative !important;
    margin-top: 12px;
    text-align: center;
  }
  .swiper-pagination-service .swiper-pagination-bullet {
    background: #999;
    opacity: 0.5;
  }
  .swiper-pagination-service .swiper-pagination-bullet-active {
    background: #3498db;
    opacity: 1;
  }

  .service-header {
    margin-bottom: 32px !important;
  }

  .service-title {
    font-size: 1.4rem !important;
    letter-spacing: 1px !important;
  }

  /* ---- 精选推荐产品 ---- */
  .products-grid {
    grid-template-columns: 1fr !important;
  }

  /* ---- 应用场景 ---- */
  .applications-section {
    padding: 60px 0 !important;
  }

  .applications-section > div[style] {
    padding: 0 16px !important;
  }

  .app-card {
    width: 260px !important;
  }

  /* ---- Section 通用 ---- */
  .section {
    padding: 56px 0 !important;
  }

  .section-header {
    margin-bottom: 40px !important;
  }

  .section-title {
    font-size: clamp(1.4rem, 5vw, 1.9rem) !important;
  }

  .section-desc {
    font-size: 0.9rem !important;
  }

  /* ---- CTA 区域 ---- */
  .cta-section h2 {
    font-size: 1.5rem !important;
  }

  .cta-section > .container > div[style] {
    flex-direction: column !important;
    width: 100%;
  }

  .cta-section .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* ---- Footer ---- */
  .footer {
    padding-top: 48px !important;
  }

  .footer-main {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding-bottom: 40px !important;
  }

  .footer-brand {
    max-width: 100% !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
    font-size: 0.75rem !important;
  }

  /* ---- 品牌 Logo 旧版（brands-section） ---- */
  .brands-grid {
    gap: 10px !important;
  }

  .brand-item {
    padding: 12px 20px !important;
    font-size: 0.85rem !important;
  }

  /* ---- 关于页面 ---- */
  .about-intro {
    padding: 48px 0 !important;
  }

  .about-stat-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  .about-intro-text h2 {
    font-size: 1.6rem !important;
  }

  .about-values {
    grid-template-columns: 1fr !important;
  }

  .about-intro-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .mission-cards {
    grid-template-columns: 1fr !important;
  }

  .biz-cards {
    grid-template-columns: 1fr !important;
  }

  .app-fields-grid {
    grid-template-columns: 1fr !important;
  }

  .why-grid {
    grid-template-columns: 1fr !important;
  }

  /* ---- 联系页面 ---- */
  .contact-section {
    padding: 56px 0 !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .contact-form {
    padding: 24px !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }

  /* ---- 新闻页面 ---- */
  .news-grid {
    grid-template-columns: 1fr !important;
  }

  /* ---- 解决方案页面 ---- */
  .solutions-grid {
    grid-template-columns: 1fr !important;
  }

  /* ---- 产品分类卡片 ---- */
  .categories-grid {
    grid-template-columns: 1fr !important;
  }

  /* ---- 优势卡片 ---- */
  .advantages-grid {
    grid-template-columns: 1fr !important;
  }

  /* ---- 页面 Banner ---- */
  .page-banner {
    padding: 100px 0 48px !important;
  }

  .page-banner h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
  }

  /* ---- 荣誉横条 ---- */
  .honors-bar {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 20px !important;
  }

  .honor-divider {
    width: 100% !important;
    height: 1px !important;
  }
}

/* ========================================
   375px–768px 品牌标题圆角发光特效
   ======================================== */
@media (min-width: 375px) and (max-width: 768px) {

  /* 胶囊背景 + 阴影 + 圆角 */
  .brand-logo-section .brand-title {
    font-size: clamp(20px, 5vw, 26px) !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    padding: 12px 32px !important;
    margin-bottom: 14px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ecf0f1 100%) !important;
    border-radius: 40px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    overflow: hidden !important;
    display: inline-block !important;
    position: relative !important;
    text-align: center !important;
  }

  /* 底部渐变扫描线 */
  .brand-logo-section .brand-title::before {
    display: block !important;
    content: '' !important;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3498db, #00ffcc, #3498db, transparent);
    opacity: 0;
    z-index: 2;
  }

  /* 外圈径向光晕 */
  .brand-logo-section .brand-title::after {
    display: block !important;
    content: '' !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 24px);
    height: calc(100% + 24px);
    background: radial-gradient(circle at center, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 25%, transparent 50%);
    border-radius: 50px;
    opacity: 0;
    z-index: -1;
  }

  /* LED 指示灯缩小 */
  .brand-logo-section .led-indicator {
    display: none !important;
  }

}

/* ========================================
   769px–1024px 平板端 —— 与 ≤768px 同内容
   ======================================== */
@media (min-width: 769px) and (max-width: 1024px) {

  /* ===== Hero 平板布局：与 ≤768px 保持一致 ===== */
  .hero {
    height: auto !important;
    min-height: 560px !important;
  }

  .hero .container {
    padding: 30px 24px 0 24px !important;
  }

  .hero-content {
    text-align: center !important;
    width: 100% !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .hero h1, .hero h2 {
    font-size: 2rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
    margin-bottom: 10px !important;
  }

  [lang="en"] .hero h1, [lang="en"] .hero h2 {
    font-size: 1.5rem !important;
  }

  .hero-subtitle {
    font-size: 0.95rem !important;
    margin: 8px auto 14px auto !important;
    max-width: 100% !important;
    line-height: 1.7 !important;
  }

  .hero-tags {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 20px !important;
  }

  .hero-tags span,
  .hero-tags .hero-tag {
    display: block;
    white-space: normal;
    width: auto;
    text-align: center;
  }

  /* 按钮上下纵向排列 */
  .hero-actions {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    max-width: 400px !important;
    justify-content: center !important;
    padding: 14px 20px !important;
  }

  /* 数据区域：2列 × 2行 */
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
    margin-top: 16px !important;
    padding-top: 20px !important;
    justify-content: unset !important;
  }

  .hero-stat-number {
    font-size: 1.8rem !important;
  }

  .hero-stat-label {
    font-size: 0.75rem !important;
  }

  /* ---- 品牌模块 ---- */
  .brand-logo-section {
    padding-top: 40px !important;
    padding-bottom: 0px !important;
  }

  .brand-logo-section .brand-title {
    font-size: 28px !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin-bottom: 12px !important;
  }

  .brand-logo-section .led-indicator {
    display: none !important;
  }

  .brand-logo-section .section-title {
    font-size: 18px !important;
    margin-bottom: 6px !important;
  }

  .brand-logo-section .section-desc {
    font-size: 14px !important;
    max-width: 600px !important;
    margin: 0 auto 24px !important;
  }

  /* 品牌轮播卡片：2列 × 2行 */
  .brand-slide-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    box-sizing: border-box;
    width: 100%;
  }

  .brand-carousel-item {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
    background: white;
    border-radius: 10px;
    padding: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    box-sizing: border-box;
    min-height: 60px;
  }

  .brand-carousel-item img {
    width: 100% !important;
    max-width: 140px !important;
    height: auto !important;
    max-height: 50px !important;
    object-fit: contain !important;
  }

  .swiper-pagination-brand {
    position: relative !important;
    margin-top: 16px;
  }
  .swiper-pagination-brand .swiper-pagination-bullet {
    background: #999;
    opacity: 0.5;
  }
  .swiper-pagination-brand .swiper-pagination-bullet-active {
    background: #2563eb;
    opacity: 1;
  }

  /* ---- 服务（为什么选择）模块 ---- */
  .service-showcase-section {
    padding-top: 40px !important;
    padding-bottom: 30px !important;
  }

  .service-header .service-title {
    font-size: 28px !important;
  }

  .service-header .service-subtitle {
    font-size: 16px !important;
    max-width: 520px !important;
    margin: 8px auto 0 !important;
  }

  .service-cards-container.service-cards-pc {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin-top: 28px !important;
  }

  .service-card-info h3 {
    font-size: 15px !important;
  }
  /* 平板端服务轮播 Swiper 样式 */
  .service-swiper-mobile {
    width: 100%;
    overflow: hidden;
    padding: 0 0 40px;
  }

  .swiper-service-mobile {
    width: 100%;
    overflow: hidden;
  }

  .swiper-service-mobile .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .swiper-service-mobile .service-card {
    width: 100%;
    max-width: 92%;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
  }

  .swiper-service-mobile .service-img-wrapper {
    padding-top: 50% !important;
  }

  .swiper-service-mobile .service-card-info {
    padding: 20px !important;
  }

  .swiper-service-mobile .service-card-info h3 {
    font-size: 0.95rem !important;
  }

  .swiper-pagination-service {
    position: relative !important;
    margin-top: 12px;
    text-align: center;
  }
  .swiper-pagination-service .swiper-pagination-bullet {
    background: #999;
    opacity: 0.5;
  }
  .swiper-pagination-service .swiper-pagination-bullet-active {
    background: #3498db;
    opacity: 1;
  }


  /* ---- 精选推荐型号：隐藏轮播，显示桌面 4 列 grid ---- */
  .fp-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    scroll-behavior: auto;
    gap: 16px !important;
    padding: 0 !important;
  }

  .fp-card {
    flex: none !important;
    min-width: auto !important;
    max-width: none !important;
    scroll-snap-align: none !important;
  }

  .fp-dots {
    display: none !important;
  }

  .featured-products-section {
    padding: 0 0 20px !important;
    margin-top: 0 !important;
    background: transparent !important;
  }

}
/* ========================================
   481px–640px 精选推荐型号 —— 横向滑动轮播
   （复用 480px 以下轮播方案）
   ======================================== */
@media (min-width: 481px) and (max-width: 640px) {

  /* 减少上一个模块底部间距 */
  .service-showcase-section {
    padding-bottom: 10px !important;
  }

  /* 区块背景白色 */
  .featured-products-section {
    background: #ffffff !important;
    padding: 0 0 4px !important;
    margin-top: -20px !important;
  }

  .featured-products-header {
    margin-bottom: 10px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .featured-products-header h1, .featured-products-header h2 {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    font-size: 1.5rem !important;
  }

  .featured-products-header .fp-subtitle {
    white-space: normal !important;
    font-size: 13px !important;
  }

  /* 横向滑动轨道 */
  .fp-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding: 0 0 20px !important;
    max-width: 100% !important;
    scrollbar-width: none;
  }
  .fp-grid::-webkit-scrollbar {
    display: none;
  }

  
  /* 卡片占满轨道宽度，每屏只显示一张 */
  .fp-card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    scroll-snap-align: center !important;
    height: auto !important;
  }

  /* 卡片内容适配 */
  .fp-card-top {
    padding: 25px 18px 18px !important;
    min-height: 100px !important;
  }

  .fp-card-model {
    font-size: 16px !important;
  }

  .fp-card-brand {
    font-size: 12px !important;
  }

  .fp-card-bottom {
    padding: 16px !important;
  }

  .fp-card-tags {
    gap: 5px !important;
    margin-bottom: 15px !important;
  }

  .fp-card-tag {
    font-size: 10px !important;
    padding: 3px 8px !important;
  }

  .fp-card-spec-list li {
    padding: 8px 0 !important;
  }

  .fp-card-spec-label,
  .fp-card-spec-value {
    font-size: 12px !important;
  }

  .fp-card-remarks {
    font-size: 11px !important;
    padding-top: 15px !important;
  }

  /* 底部圆点指示器 */
  .fp-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding-bottom: 10px;
  }

  .fp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    cursor: pointer;
  }

  .fp-dot.active {
    background: #00469b;
    transform: scale(1.2);
  }

}
/* ========================================
   641px–992px 精选推荐型号 —— 平板轮播
   ======================================== */
@media (min-width: 641px) and (max-width: 992px) {

  /* 区块间距 */
  .service-showcase-section {
    padding-bottom: 20px !important;
  }

  .featured-products-section {
    padding: 0 0 24px !important;
  }

  .featured-products-header {
    margin-bottom: 24px !important;
  }

  .featured-products-header h1, .featured-products-header h2 {
    font-size: 1.75rem !important;
  }

  /* 横向滑动轨道 */
  .fp-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 0 0 24px !important;
    max-width: 100% !important;
    scrollbar-width: none;
  }
  .fp-grid::-webkit-scrollbar {
    display: none;
  }

  
  /* 卡片占满轨道宽度，每屏只显示一张 */
  .fp-card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    scroll-snap-align: center !important;
    height: auto !important;
  }

  /* 平板端卡片内部间距微调 */
  .fp-card-top {
    padding: 28px 20px 18px !important;
    min-height: 110px !important;
  }

  .fp-card-bottom {
    padding: 18px !important;
  }

  /* 底部圆点指示器 */
  .fp-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding-bottom: 10px;
  }

  .fp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    cursor: pointer;
  }

  .fp-dot.active {
    background: #00469b;
    transform: scale(1.2);
  }

}


/* ========================================
   ===  超小屏手机（< 480px）  ===
   ======================================== */
@media (max-width: 480px) {

  .container {
    padding: 0 14px !important;
  }

  /* 小屏主标题缩小，确保"以芯联世界 · 以诚筑未来"一行显示 */
  .hero h1, .hero h2 {
    font-size: 20px !important;
    text-align: center !important;
  }

  [lang="en"] .hero h1, [lang="en"] .hero h2 {
    font-size: 17px !important;
  }

  /* 品牌 Swiper：小屏 */
  .swiper-brand-mobile .swiper-slide {
    padding: 0 10px;
  }
  .brand-slide-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .brand-carousel-item {
    padding: 6px !important;
    min-height: 50px;
  }
  .brand-carousel-item img {
    max-width: 110px !important;
    max-height: 40px !important;
  }

  /* 应用场景卡片更窄 */
  .app-card {
    width: 230px !important;
  }

  /* 统计数字 */
  .hero-stats {
    gap: 12px !important;
  }

  .hero-stat-number {
    font-size: 1.5rem !important;
  }

  /* About 统计卡片 */
  .about-stat-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .about-intro-stats {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Footer 社交图标间距 */
  .footer-social {
    gap: 10px !important;
  }

  /* ========================================
     精选推荐型号 —— 横向滑动轮播
     ======================================== */

  /* 减少上一个模块底部间距 */
  .service-showcase-section {
    padding-bottom: 10px !important;
  }

  /* 区块背景白色 */
  .featured-products-section {
    background: #ffffff !important;
    padding: 0 0 4px !important;
    margin-top: -20px !important;
  }

  .featured-products-header {
    margin-bottom: 10px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .featured-products-header h1, .featured-products-header h2 {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
  }

  .featured-products-header h1, .featured-products-header h2 {
    font-size: 1.5rem !important;
  }

  .featured-products-header .fp-subtitle {
    white-space: normal !important;
    font-size: 13px !important;
  }

  /* 横向滑动轨道 */
  .fp-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding: 0 0 20px !important;
    max-width: 100% !important;
    /* 隐藏滚动条 */
    scrollbar-width: none;
  }
  .fp-grid::-webkit-scrollbar {
    display: none;
  }

  
  /* 卡片占满轨道宽度，每屏只显示一张 */
  .fp-card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    scroll-snap-align: center !important;
    height: auto !important;
  }

  /* 卡片内容适配 */
  .fp-card-top {
    padding: 25px 18px 18px !important;
    min-height: 100px !important;
  }

  .fp-card-model {
    font-size: 16px !important;
  }

  .fp-card-brand {
    font-size: 12px !important;
  }

  .fp-card-bottom {
    padding: 16px !important;
  }

  .fp-card-tags {
    gap: 5px !important;
    margin-bottom: 15px !important;
  }

  .fp-card-tag {
    font-size: 10px !important;
    padding: 3px 8px !important;
  }

  .fp-card-spec-list li {
    padding: 8px 0 !important;
  }

  .fp-card-spec-label,
  .fp-card-spec-value {
    font-size: 12px !important;
  }

  .fp-card-remarks {
    font-size: 11px !important;
    padding-top: 15px !important;
  }

  /* 底部圆点指示器 */
  .fp-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding-bottom: 10px;
  }

  .fp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    cursor: pointer;
  }

  .fp-dot.active {
    background: #00469b;
    transform: scale(1.2);
  }

}
/* ========================================
   1025px+ 桌面端 —— 与 ≤768px 同内容
   ======================================== */
@media (min-width: 1025px) {

  /* ---- Hero ---- */
  .hero {
    height: auto !important;
    min-height: 680px !important;
  }

  .hero-content {
    max-width: 700px !important;
  }

  .hero h1, .hero h2 {
    font-size: 2.8rem !important;
    line-height: 1.3 !important;
  }

  .hero-subtitle {
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
    max-width: 620px !important;
  }

  .hero-actions {
    gap: 16px !important;
  }

  .hero-stats {
    gap: 40px !important;
  }

  /* ---- 品牌模块 ---- */
  .brand-logo-section {
    padding-top: 60px !important;
    padding-bottom: 20px !important;
  }

  .brand-logo-section .brand-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 8px !important;
  }

  .brand-logo-section .led-indicator {
    display: none !important;
  }

  .brand-logo-section .section-title {
    font-size: 18px !important;
    margin-bottom: 6px !important;
  }

  .brand-logo-section .section-desc {
    font-size: 14px !important;
    max-width: 600px !important;
    margin: 0 auto 30px !important;
  }

  /* ---- 服务（为什么选择）模块 ---- */
  .service-showcase-section {
    padding-top: 44px !important;
    padding-bottom: 50px !important;
  }

  .service-header .service-title {
    font-size: 32px !important;
  }

  .service-header .service-subtitle {
    font-size: 17px !important;
    max-width: 520px !important;
    margin: 8px auto 0 !important;
  }

  .service-cards-container.service-cards-pc {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin-top: 36px !important;
  }

  .service-card-info h3 {
    font-size: 16px !important;
  }

  /* ---- 精选推荐型号 ---- */
  .fp-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    scroll-behavior: auto;
    gap: 24px !important;
    padding: 0 !important;
  }

  .fp-card {
    flex: none !important;
    min-width: auto !important;
    max-width: none !important;
    scroll-snap-align: none !important;
  }

  .fp-dots {
    display: none !important;
  }

  .featured-products-section {
    padding: 0 0 28px !important;
    margin-top: 0 !important;
    background: #ffffff !important;
  }

}
/* ========================================
   超宽屏（> 1600px）—— 防内容过散
   ======================================== */
@media (min-width: 1600px) {
  .container {
    max-width: 1480px !important;
    padding: 0 60px !important;
  }

  .hero-content {
    max-width: 900px !important;
  }

  .brand-gallery-container {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 24px !important;
  }

  .brand-gallery-image-wrapper {
    height: 200px !important;
  }

  .service-cards-container {
    max-width: 1500px !important;
    gap: 36px !important;
  }
}


/* ========================================
   横屏手机（height < 500px）
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 400px !important;
    height: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    overflow: hidden;
  }

  .hero .container {
    padding: 80px 16px 40px 16px !important;
    max-width: 100% !important;
    align-items: flex-start !important;
  }

  .hero-stats {
    display: none !important; /* 横屏手机隐藏统计 */
  }
}


/* ========================================
   打印样式
   ======================================== */
@media print {
  .navbar,
  .hero-slides-dots,
  .lang-switcher,
  .nav-cta,
  .nav-mobile-toggle,
  .hero-visual {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .hero {
    min-height: auto !important;
    height: auto !important;
  }
}
