/* 应用领域模块 - 命名空间 .af-* 避免冲突
   色系/字体与产品分类模块保持一致：主色蓝 #0b308e，点缀绿 #11b76b
   包含 7 个分类：新能源、汽车、通信、电源、工业、消费、照明
   点击切换分类 → Swiper 轮播展示对应应用卡片 */
/* 隐藏预渲染 slide 仓库 */
.af-slides-store {
    display: none !important;
}
:root {
  --af-primary: #0b308e;
  --af-primary-deep: #082570;
  --af-accent: #11b76b;
  --af-text: #333;
  --af-text-light: #666;
  --af-muted: #999;
  --af-border: #e5e7eb;
  --af-bg-soft: #f5f7fa;
}

/* ===== 整体容器 ===== */
.application-fields {
  width: 100%;
  padding: 80px 0 90px;
  background: #f5f7fa;
  box-sizing: border-box;
}

.af-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ===== 标题行 ===== */
.af-title-row {
  position: relative;
  text-align: center;
  margin-bottom: 50px;
  padding: 20px 0 0;
}

.af-title-deco {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 110px;
  font-weight: 900;
  color: #ededed;
  font-style: italic;
  letter-spacing: 8px;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font-family: "Arial Black", "Microsoft YaHei", sans-serif;
}

.af-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px;
  position: relative;
  display: inline-block;
  z-index: 2;
}

.af-title .accent {
  color: #0074bc;
}

.af-subtitle {
  text-align: center;
  color: #999;
  font-size: 15px;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* ===== 分类图标 Tab ===== */
.af-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 44px;
  padding: 40px 0 50px;
  list-style: none;
  margin: 0;
}

.af-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--af-text-light);
  cursor: pointer;
  width: 128px;
  height: 128px;
  position: relative;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d8dde6;
  box-sizing: border-box;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.af-tab:hover,
.af-tab.active {
  background: #0074bc;
  border-color: #0074bc;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 116, 188, 0.28);
  transform: translateY(-3px);
}

.af-tab-icon {
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  transition: transform 0.3s ease;
}

.af-tab-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.35s ease;
}

.af-tab:hover .af-tab-icon img,
.af-tab.active .af-tab-icon img {
  filter: brightness(0) invert(1);
}

.af-tab:hover .af-tab-icon,
.af-tab.active .af-tab-icon {
  transform: scale(1.1);
}

.af-tab span {
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* ===== 轮播容器 ===== */
.af-swiper-wrap {
  position: relative;
}

.af-swiper {
  width: 100%;
  overflow: hidden;
}

.af-swiper .swiper-slide {
  height: auto;
}

/* ===== 卡片 ===== */
.af-card {
  display: flex;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(11, 48, 142, 0.06);
}

.af-card-image {
  flex: 0 0 55%;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.af-card-body {
  flex: 1;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.af-card-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.3s ease;
}

.af-card-title:hover {
  color: var(--af-primary);
}

.af-card-title img {
  width: 24px;
  height: auto;
}

.af-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.af-card-tags a {
  display: inline-block;
  padding: 5px 14px;
  background: var(--af-bg-soft);
  color: var(--af-text-light);
  font-size: 13px;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.af-card-tags a:hover {
  background:#0074bc;
  color: #fff;
}

.af-card-desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--af-text-light);
}

/* 无型号标签时隐藏占位 */
.af-card-tags:empty {
  display: none;
}

/* ===== 分页器 ===== */
.af-swiper-pagination {
  position: relative;
  margin-top: 30px;
  text-align: center;
}

.af-swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #ccc;
  opacity: 1;
  margin: 0 6px;
}

.af-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--af-primary);
}

/* ===== 导航箭头 ===== */
.af-swiper-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.af-swiper-button:hover {
  background: var(--af-primary);
  color: #fff;
}

.af-swiper-button-prev {
  left: -24px;
}

.af-swiper-button-next {
  right: -24px;
}

.af-swiper-button.swiper-button-disabled {
  opacity: 0.35;
  cursor: auto;
}

/* ===== 响应式 ===== */
@media (max-width: 1400px) {
  .af-swiper-button-prev {
    left: 8px;
  }

  .af-swiper-button-next {
    right: 8px;
  }
}

@media (max-width: 1200px) {
  .af-tabs {
    gap: 12px 20px;
  }
}

@media (max-width: 1024px) {
  .af-card-image {
    flex: 0 0 50%;
    min-height: 360px;
  }

  .af-card-body {
    padding: 30px 24px;
  }

  .af-card-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .application-fields {
    padding: 50px 0 60px;
    overflow: hidden;
  }

  .af-title-row {
    overflow: hidden;
  }

  .af-title-deco {
    font-size: 60px;
    letter-spacing: 4px;
  }

  .af-title {
    font-size: 24px;
  }

  .af-tabs {
    gap: 10px 14px;
    padding: 30px 0 36px;
  }

  .af-tab {
    width: 96px;
    height: 96px;
  }

  .af-tab-icon {
    width: 44px;
    height: 44px;
  }

  .af-tab span {
    font-size: 13px;
  }

  .af-card {
    flex-direction: column;
  }

  .af-card-image {
    flex: 0 0 auto;
    min-height: 200px;
    height: 200px;
  }

  .af-card-body {
    padding: 24px 18px;
  }

  .af-card-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .af-card-tags {
    margin-bottom: 16px;
  }

  .af-swiper-button {
    display: none;
  }
}
