/* ============================================
   新产品轮播样式
   ============================================ */

.new-products-section {
  background: #ffffff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.new-products-section .container {
  max-width: 1336px;
  margin: 0 auto;
  padding: 0 32px;
}

/* 标题 */
.np-title {
  text-align: center;
  font-size: 36px;
  font-weight: 500;
  color: #101828;
  margin-bottom: 32px;
  line-height: 40px;
}

/* Tab 切换 */
.np-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.np-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: #101828;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.np-tab:hover {
  border-color: #008cd6;
  color: #008cd6;
}

.np-tab.active {
  background: #008cd6;
  color: #ffffff;
  border-color: #008cd6;
}

/* 轮播容器:两侧留白让预览卡片有空间 */
.np-carousel-wrap {
  position: relative;
  width: 100%;
  padding: 24px 0;
}

.np-carousel-wrap .swiper {
  overflow: hidden;
}

.np-slide {
  height: auto;
  transition: opacity 0.4s ease;
}

/* 两侧预览卡片半透明,突出中间 */
.np-slide:not(.swiper-slide-active) {
  opacity: 0.45;
}

.np-slide.swiper-slide-active {
  opacity: 1;
}

/* 产品卡片 */
.np-card {
  position: relative;
  display: flex;
  align-items: center;
  background: #f5f7fa;
  border-radius: 24px;
  padding: 56px 64px;
  min-height: 420px;
  overflow: hidden;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.05);
}

.np-slide.swiper-slide-active .np-card {
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.12), 0 8px 16px -6px rgba(0, 0, 0, 0.06);
}

/* 卡片文本区域 */
.np-card-text {
  flex: 0 0 52%;
  position: relative;
  z-index: 2;
  padding-right: 24px;
  max-width: 520px;
}

.np-card-text h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 18px;
  max-width: 360px;
}

.np-card-text p {
  font-size: 14px;
  line-height: 1.75;
  color: #4a5565;
  margin-bottom: 32px;
  max-width: 400px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* View Details 按钮 */
.np-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 8px 0 22px;
  border-radius: 9999px;
  background: #ffffff;
  color: #101828;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.np-btn:hover {
  border-color: #008cd6;
  color: #008cd6;
}

.np-btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.np-btn:hover .np-btn-arrow {
  transform: translateX(3px);
  background: #008cd6;
}

.np-btn-arrow svg {
  width: 12px;
  height: 12px;
  stroke: #ffffff;
}

/* 卡片图片区域 */
.np-card-img {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 48%;
  height: 140%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

/* 圆形衬底 */
.np-card-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 165%;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
  z-index: -1;
}

.np-card-img img {
  position: relative;
  max-width: 82%;
  max-height: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(16, 24, 40, 0.12));
}

/* 导航箭头 */
.np-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #008cd6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  z-index: 10;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 140, 214, 0.3);
  color: #ffffff;
}

.np-arrow:hover {
  background: #0077b6;
  transform: translateY(-50%) scale(1.08);
}

.np-arrow-prev {
  left: 10%;
}

.np-arrow-next {
  right: 10%;
}

.np-arrow svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
}

.np-arrow.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ============================================
   响应式样式
   ============================================ */

/* Tablet Landscape (<=1200px) */
@media (max-width: 1200px) {
  .np-card {
    padding: 48px 48px;
    min-height: 380px;
  }

  .np-card-text h3 {
    font-size: 24px;
  }

  .np-card-img {
    right: -30px;
    width: 50%;
  }

  .np-arrow {
    width: 46px;
    height: 46px;
  }

  .np-arrow-prev {
    left: 0;
  }

  .np-arrow-next {
    right: 0;
  }
}

/* Mobile (<=768px) */
@media (max-width: 768px) {
  .new-products-section {
    padding: 60px 0;
  }

  .np-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .np-tabs {
    gap: 8px;
    margin-bottom: 36px;
  }

  .np-tab {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
  }

  .np-carousel-wrap {
    padding: 16px 0;
  }

  .np-card {
    padding: 32px 28px;
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 18px;
  }

  .np-card-text {
    flex: none;
    width: 100%;
    padding-right: 0;
    margin-bottom: 16px;
    max-width: 100%;
  }

  .np-card-text h3 {
    font-size: 20px;
    max-width: 100%;
    margin-bottom: 14px;
  }

  .np-card-text p {
    font-size: 13px;
    margin-bottom: 20px;
    max-width: 100%;
  }

  .np-card-img {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    height: 220px;
    margin-top: 8px;
  }

  .np-card-circle {
    width: 90%;
    height: 100%;
  }

  .np-arrow {
    width: 42px;
    height: 42px;
  }

  .np-arrow svg {
    width: 16px;
    height: 16px;
  }

  .np-arrow-prev {
    left: 4px;
  }

  .np-arrow-next {
    right: 4px;
  }
}

/* Small Mobile (<=480px) */
@media (max-width: 480px) {
  .np-title {
    font-size: 24px;
  }

  .np-card {
    padding: 24px 20px;
  }

  .np-card-text h3 {
    font-size: 18px;
  }

  .np-card-img {
    height: 180px;
  }
}

/* ============================================
   页脚社交媒体样式
   ============================================ */

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social-link:hover {
  border-color: #008cd6;
  color: #008cd6;
  transform: translateY(-2px);
}

.footer-social-icon {
  width: 20px;
  height: 20px;
}

/* ============================================
   Application Scenarios
   ============================================ */

.scenarios-section {
  background: #ffffff;
  padding: 80px 0;
}

.scenarios-section .container {
  max-width: 1336px;
  margin: 0 auto;
  padding: 0 32px;
}

.scenarios-header {
  text-align: center;
  margin-bottom: 48px;
}

.scenarios-title {
  font-size: 36px;
  font-weight: 500;
  color: #101828;
  margin-bottom: 12px;
  line-height: 1.3;
}

.scenarios-subtitle {
  font-size: 16px;
  color: #667085;
  line-height: 1.6;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.scenario-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.scenario-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

.scenario-card-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.scenario-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.scenario-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 44, 95, 0.92) 0%,
    rgba(0, 44, 95, 0.6) 40%,
    rgba(0, 44, 95, 0.1) 70%,
    transparent 100%
  );
  z-index: 2;
}

.scenario-card-content {
  position: relative;
  z-index: 3;
  padding: 24px;
  color: #ffffff;
}

.scenario-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #008cd6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scenario-icon svg {
  width: 22px;
  height: 22px;
}

.scenario-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.scenario-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.scenario-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  min-height: 360px;
  background: #f8fafc;
  border-radius: 20px;
}

.scenario-cta-text {
  font-size: 22px;
  font-weight: 500;
  color: #101828;
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 320px;
}

.scenario-cta-text span {
  color: var(--primary);
}

.scenario-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  border-radius: 9999px;
  background: #008cd6;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #008cd6;
}

.scenario-cta-btn:hover {
  background: #ffffff;
  color: #008cd6;
}

/* Responsive */
@media (max-width: 1024px) {
  .scenarios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scenario-card {
    min-height: 320px;
  }

  .scenario-cta {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 40px 32px;
  }
}

@media (max-width: 640px) {
  .scenarios-section {
    padding: 60px 0;
  }

  .scenarios-title {
    font-size: 28px;
  }

  .scenarios-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .scenario-card {
    min-height: 280px;
  }

  .scenario-cta {
    grid-column: auto;
  }

  .scenario-cta-text {
    font-size: 18px;
  }
}

/* ============================================
   右下角浮动按钮
   ============================================ */

.float-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgb(35 154 241 / 35%);
  transition: all 0.3s ease;
  text-decoration: none;
}

.float-btn:hover {
  background: #008cd6;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgb(35 154 241 / 35%);
}

.float-btn svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}

.float-btn-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.float-btn-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* View All 按钮 */
.np-actions {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.np-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 48px;
  padding: 0 32px;
  border-radius: 9999px;
  background: #008cd6;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.np-view-all:hover {
  background: #fff;
  transform: translateY(-2px);
}
/* ============================================
   Header 搜索 & 中英文切换
   ============================================ */

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  flex-shrink: 0;
}

/* 搜索按钮 */
.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--primary);
  transition: all 0.3s ease;
  padding: 0;
}

.header-search-btn:hover {
  background: rgba(0, 140, 214, 0.08);
  color: var(--primary);
}

.header-search-btn svg {
  width: 20px;
  height: 20px;
}

/* 透明头部下搜索按钮 */
.site-header.header-transparent .header-search-btn {
  color: rgba(255, 255, 255, 0.9);
}

.site-header.header-transparent .header-search-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.site-header.header-transparent.scrolled .header-search-btn {
  color: #fff;
}

.site-header.header-transparent.scrolled .header-search-btn:hover {
  color: var(--primary);
  background: rgba(0, 140, 214, 0.08);
}

.site-header.header-transparent:not(.scrolled):hover .header-search-btn {
  color: #fff;
}

.site-header.header-transparent:not(.scrolled):hover .header-search-btn:hover {
  color: var(--primary);
  background: rgba(0, 140, 214, 0.08);
}

/* 语言切换 */
.header-lang {
  position: relative;
}

.header-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.header-lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.header-lang-btn svg {
  width: 16px;
  height: 16px;
}

.header-lang-arrow {
  width: 14px !important;
  height: 14px !important;
  transition: transform 0.3s ease;
}

.header-lang.is-open .header-lang-arrow,
.header-lang-btn.is-open .header-lang-arrow {
  transform: rotate(180deg);
}

/* 语言下拉 */
.header-lang-dropdown {
  position: fixed;
  min-width: 80px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12), 0 2px 6px rgba(16, 24, 40, 0.06);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1100;
  pointer-events: none;
}

.header-lang-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-lang-option {
  display: block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}

.header-lang-option:hover {
  background: rgba(0, 140, 214, 0.06);
  color: var(--primary);
}

.header-lang-option.active {
  background: var(--primary);
  color: #ffffff;
}

/* 透明头部下语言按钮 */
.site-header.header-transparent .header-lang-btn {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.9);
}

.site-header.header-transparent .header-lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.site-header.header-transparent.scrolled .header-lang-btn {
  border-color: #e5e7eb;
  color: #fff;
}

.site-header.header-transparent.scrolled .header-lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.site-header.header-transparent:not(.scrolled):hover .header-lang-btn {
  border-color: #e5e7eb;
  color: #fff;
}

.site-header.header-transparent:not(.scrolled):hover .header-lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================
   Header 搜索弹窗
   ============================================ */

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.search-modal {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.15);
  z-index: 9999;
  padding: 20px 24px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-modal.is-visible {
  transform: translateX(-50%) translateY(0);
}

.search-modal-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-modal-icon {
  flex-shrink: 0;
  color: #9ca3af;
}

.search-modal-icon svg {
  width: 22px;
  height: 22px;
}

.search-modal-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--text-dark);
  background: transparent;
  padding: 8px 0;
}

.search-modal-input::placeholder {
  color: #9ca3af;
}

.search-modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f3f4f6;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.search-modal-close:hover {
  background: #e5e7eb;
  color: var(--text-dark);
}

/* ============================================
   Header Actions 响应式
   ============================================ */

@media (max-width: 1024px) {
  .header-actions {
    margin-left: 8px;
    gap: 4px;
  }

  .header-lang-btn {
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .header-search-btn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 768px) {
  .header-actions {
    margin-left: 0;
    gap: 4px;
    margin-top: 8px;
  }

  .header-lang-btn span.header-lang-current {
    display: none;
  }

  .header-lang-btn {
    padding: 0 10px;
  }

  .header-lang-dropdown {
    right: -4px;
  }

  .search-modal {
    max-width: 100%;
    border-radius: 0 0 16px 16px;
  }
}

@media (max-width: 768px) {
  .float-actions {
    right: 16px;
    bottom: 16px;
  }

  .float-btn {
    width: 46px;
    height: 46px;
  }

  .float-btn svg {
    width: 20px;
    height: 20px;
  }
  .np-actions {
    margin-top: 32px;
  }

  .np-view-all {
    height: 44px;
    min-width: 140px;
    padding: 0 28px;
    font-size: 14px;
  }
  .site-header.header-transparent .header-search-btn {
      color: #333;
  }
  .site-header.header-transparent .header-lang-btn {
      border-color:#333;
      color: #333;
  }
  .site-header.header-transparent:not(.scrolled):hover {
      background: #fff;
  }
  .site-header.header-transparent:not(.scrolled):hover .header-search-btn {
      color: #333;
  }
  .site-header.header-transparent:not(.scrolled):hover .header-lang-btn {
      color: #333;
      border-color: #333;
  }
}
