/* ===== 产品中心 ===== */
/* 二级、三级页面共用样式 */

/* ---------- Overview 概述区（二级/三级页面共用）---------- */
.overview {
  margin: 0 auto;
  max-width: 1260px;
  overflow: hidden;
  padding-bottom: 30px;
}

.overview .title h2 {
  display: inline-block;
  width: auto;
  padding: 0;
}

.overview .title h2::before,
.overview .title h2::after {
  position: absolute;
  top: 50%;
  width: 60px;
  border-top: 2px solid black;
  transform: translateY(-50%);
}

.overview .title h2::before {
  left: auto;
  right: calc(100% + 15px);
}

.overview .title h2::after {
  right: auto;
  left: calc(100% + 15px);
}

.overview-container {
  display: grid;
  grid-template-columns: 48fr 52fr;
  column-gap: 40px;
  align-items: center;
}

.overview-container img {
  border-radius: 4px;
  width: 100%;
}

.overview-container p {
  font-size: 20px;
  vertical-align: middle;
  line-height: 1.6em;
  letter-spacing: 0.09em;
  text-align: justify;
}
.strong-blue {
  font-weight: bold;
  color: #00aaff;
}

/* ---------- 产品列表网格（二级页面，一行三个）---------- */
.products-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.products-container .item {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  background: #F4FAFFCC;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  padding-bottom: 10px;
}

.products-container .item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}


.products-container .item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.products-container .item h2 {
  font-size: 24px;
  color: var(--theme-color);
  padding: 16px 16px 8px;
  margin: 0;

}

.products-container .item p {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  padding: 0 16px 10px;
  margin: 0;
  text-align: justify;
}

.products-container .item::after {
  content: "";
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 22px;
  height: 6px;
  background: url(/images/products/product_more_info_arrow.png) no-repeat center/contain;
  pointer-events: none;
}

:root {
  --theme-color: #06B6D4;
  --theme-color-dark: #0594b0;
  --theme-color-light: #2DD4C0;
}

/* Banner 文字叠加 */
.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  box-sizing: border-box;
}

.banner-text {
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.banner-tag {
  display: inline-block;
  padding: 6px 20px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--theme-color);
  background: rgba(47, 49, 49, 0.5);
  border: 1px solid color-mix(in srgb, var(--theme-color) 50%, transparent);
  border-radius: 20px;
  letter-spacing: 0.1em;
}

.banner-text h1 {
  font-size: 40px;
  color: #fff;
  font-weight: bold;
  margin: 0 0 24px 0;
  letter-spacing: 0.09em;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.banner-text p {
  font-size: 20px;
  color: #fff;
  line-height: 1.6em;
  letter-spacing: 0.09em;
  max-width: 700px;
  margin: 0 0 32px 0;
}

.banner-btn {
  display: inline-block;
  padding: 0 28px;
  height: 46px;
  line-height: 46px;
  border-radius: 23px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--theme-color-dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

.banner-btn:hover {
  background: var(--theme-color);
}

.banner-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ===== CTA Banner（底部咨询）===== */
.banner.contact_demo {
  position: relative;
}
.banner.contact_demo .banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner.contact_demo .banner-overlay .banner-text {
  max-width: 960px;
  color: #fff;
  text-align: center;
}
.banner.contact_demo .banner-overlay .banner-text h3 {
  font-size: 40px;
  margin-bottom: 20px;
  letter-spacing: 0.09em;
}
.banner.contact_demo .banner-overlay .banner-text p {
  font-size: 20px;
  margin-bottom: 28px;
  line-height: 160%;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
  max-width: none;
}
.banner.contact_demo .banner-overlay .banner-text .banner-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.banner.contact_demo .banner-overlay .banner-text .banner-btns .btn {
  display: inline-block;
  padding: 0 28px;
  height: 46px;
  line-height: 46px;
  border-radius: 23px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.banner.contact_demo .banner-overlay .banner-text .banner-btns .btn-primary {
  background: var(--theme-color-dark);
  color: #fff;
}
.banner.contact_demo .banner-overlay .banner-text .banner-btns .btn-primary:hover {
  background: var(--theme-color);
}
.banner.contact_demo .banner-overlay .banner-text .banner-btns .btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
}
.banner.contact_demo .banner-overlay .banner-text .banner-btns .btn-outline:hover {
  border-color: #fff;
}

/* Overview 内容区 */
.overview-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.overview-label {
  font-size: 28px;
  font-weight: 700;
  color: var(--theme-color);
  line-height: 1.3;
  letter-spacing: 0.07em;
}

.overview-tags {
  border-top: 1px solid #E7E7E7;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
}

.overview-tags .tag {
  display: inline-block;
  padding: 6px 16px;
  background: #EFEFEF;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

/* 核心能力 */
.core-competencies {
  --theme-color: #06B6D4;
  --theme-color-light: #2DD4C0;
  max-width: 1260px;
  margin: 0 auto;
  position: relative;
  padding-top: 10px;
  padding-bottom: 30px;
}

.core-competencies .detail-item {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 80px;
}
.core-competencies .detail-item:last-child {
  margin-bottom: 0;
}
.core-competencies .detail-item.reverse {
  flex-direction: row-reverse;
}
.core-competencies .detail-item .detail-image {
  flex: 0 0 48%;
}
.core-competencies .detail-item .detail-image img {
  width: 100%;
  height: auto;
  display: block;
}
.core-competencies .detail-item .detail-text {
  flex: 0 0 52%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px 0 40px;
  box-sizing: border-box;
  position: relative;
}
.core-competencies .detail-item.reverse .detail-text {
  padding: 0 40px 0 10px;
}
.core-competencies .detail-text-inner {
  width: fit-content;
}
.core-competencies .detail-text-inner .line {
  width: 100%;
  height: 2px;
  border-radius: 2.5px;
  background: linear-gradient(90deg, var(--theme-color) 0%, var(--theme-color-light) 60px, #eee 74px);
  margin: 20px 0 30px 0;
}
.core-competencies .detail-item .detail-text h4 {
  font-size: 28px;
  color: var(--theme-color);
  font-weight: 600;
  letter-spacing: 0.09em;
}
.core-competencies .detail-item .detail-text h4 .num {
  font-size: 42px;
}

.core-competencies .detail-item .detail-text p {
  font-size: 20px;
  color: #555;
  line-height: 1.6;
  letter-spacing: 0.09em;
  text-align: justify;
}
@media (max-width: 768px) {
  .products-container .item h2 {
    font-size: 20px;
  }
  .products-container .item p {
    font-size: 16px;
  }
  .banner-overlay {
    padding-bottom: 0;
  }
  .overview-container {
    display: block;
    padding: 0 10px;
  }
  .overview-container img {
    margin-bottom: 10px;
  }
  .overview-container p {
    font-size: 16px;
  }
  .products-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .overview-label {
    font-size: 20px;
  }
  .core-competencies .detail-item {
    flex-direction: column;
    padding: 0 10px;
    margin-bottom: 60px;
  }
  .core-competencies .detail-item.reverse {
    flex-direction: column;
  }
  .core-competencies .detail-item .detail-image {
    flex: none;
    width: 100%;
  }
  .core-competencies .detail-item .detail-text {
    flex: none;
    width: 100%;
    padding: 20px 0;
  }
  .core-competencies .detail-item .detail-text h4 {
    font-size: 18px;
  }
  .core-competencies .detail-item .detail-text p {
    font-size: 15px;
  }

  .banner-text h1 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .banner-text p {
    font-size: 15px;
    margin-bottom: 16px;
  }
  .banner-btn {
    font-size: 14px;
    padding: 0 20px;
    height: 40px;
    line-height: 40px;
  }
}

/* ===== 核心内容（轮播卡片） ===== */
.functions {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  padding-top: 10px;
  padding-bottom: 30px;
}

.functions .title h2 {
  font-size: 36px;
  color: #2b2e33;
  text-align: center;
  letter-spacing: 0.09em;
}

.functions-container-wrapper {
  position: relative;
  max-width: 1260px;
  margin: 0 auto;
  overflow: hidden;
}

.functions-container {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  transition: transform 0.3s ease;
}

.functions-container .item {
  flex: 0 0 auto;
  width: calc((100% - 2 * 20px) / 3);
  box-sizing: border-box;
  padding-bottom: 20px;
  background-image: url(/images/projects/contents/functions-bg.webp);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.functions-container .item img {
  border-radius: 6px;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.functions-container .item h2 {
  color: var(--theme-color);
  font-size: 24px;
  text-align: left;
  padding-left: 20px;
  margin: 15px 0;
  letter-spacing: 0.09em;
}

.functions-container .item p {
  font-weight: 400;
  font-size: 18px;
  color: #333333;
  line-height: 28px;
  text-align: justify;
  padding: 0 20px;
  margin: 0;
}

.functions .left-btn,
.functions .right-btn {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  width: 74px;
  height: 74px;
  cursor: pointer;
  z-index: 10;
}

.functions .left-btn { left: 0px; }
.functions .right-btn { right: 0px; }

/* 轮播小圆点 */
.functions-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.functions-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s ease;
}

.functions-dots .dot.active {
  background: #0080ff;
}

/* ===== 系统优势 ===== */
.system-advantages {
  max-width: 1260px;
  margin: 0 auto;
  padding: 10px 20px 50px;
}

.system-advantages .advantage-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 80px;
}

.system-advantages .advantage-card {
  background: #F4FAFF;
  border: none;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0px 4px 11px 0px #00000040;
  transition: all 0.3s ease;
}

.system-advantages .advantage-card:hover {
  box-shadow: 0px 6px 16px 0px #00000050;
}

.system-advantages .advantage-card h4 {
  color: var(--theme-color);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.system-advantages .advantage-card .line {
  width: 70px;
  height: 5px;
  background: linear-gradient(90deg, var(--theme-color) 0%, var(--theme-color-light) 100%);
  margin-top: 14px;
  position: relative;
}

.system-advantages .advantage-card p {
  font-size: 20px;
  color: #666;
  line-height: 1.8;
  letter-spacing: 0.03em;
  margin: 0;
  text-align: justify;
}

/* ===== 产品中心（Tab 切换） ===== */
.projects {
  max-width: 1260px;
  margin: 0 auto;
  overflow: hidden;
}

/* Tab 容器带隐/显控制（覆盖 products-container 的 display: grid） */
.projects-items-container {
  display: none;
}
.products-container.projects-items-container.active {
  display: grid;
}

.tabs {
  display: flex;
  gap: 40px;
  justify-content: center;
  border-bottom: 2px solid #e0e0e0;
  margin: 40px auto;
}

.tab {
  padding: 10px;
  font-size: 18px;
  font-weight: 500;
  color: #1A1A1A;
  cursor: pointer;
  text-align: center;
  border: none;
  background-color: transparent;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  white-space: nowrap;
}

.tab:hover {
  color: #0080ff;
}

.tab.active {
  color: #0080ff;
  border-bottom: 2px solid #0080ff;
}

/* 手机端 Tab 换行显示 */
@media (max-width: 768px) {
  .tabs {
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 10px;
    border-bottom: none;
    padding: 0;
  }
  .tab {
    padding: 6px 16px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    flex-shrink: 0;
  }
  .tab.active {
    color: #fff;
    background: #0080ff;
    border-color: #0080ff;
    border-bottom: 1px solid #0080ff;
  }
}

/* ===== 系统演示 ===== */
.system-demo {
  max-width: 1260px;
  margin: 0 auto;
  padding: 10px 20px 50px;
}

.system-demo .video-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 4px 11px 0px #00000040;
}

.system-demo .video-container img {
  width: 100%;
  display: block;
}

.system-demo .play-button {
  cursor: pointer;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.system-demo .play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.system-demo .close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
  z-index: 10;
  width: 32px;
  height: 32px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.system-demo .close-button:hover {
  opacity: 1;
}

.system-demo .close-button img {
  width: 100%;
  height: 100%;
}

/* ===== 幻灯片 (无视频时使用) ===== */
.system-demo .slideshow {
  position: relative;
  border-radius: 12px;
  user-select: none;
}

.system-demo .slideshow-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 0 20%;
}

.system-demo .slideshow-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.system-demo .slideshow-track .slide {
  flex: 0 0 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.system-demo .slideshow-track .slide img {
  width: 94%;
  display: block;
  border-radius: 8px;
  flex-shrink: 0;
}

/* 导航箭头（与 .functions 样式一致，不覆盖图片） */
.system-demo .slideshow .left-btn,
.system-demo .slideshow .right-btn {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  width: 74px;
  height: 74px;
  cursor: pointer;
  z-index: 10;
}

.system-demo .slideshow .left-btn {
  left: -84px;
}

.system-demo .slideshow .right-btn {
  right: -84px;
}

/* 指示点 */
.system-demo .slide-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding-bottom: 4px;
}

.system-demo .slide-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s ease;
}

.system-demo .slide-dots .dot.active {
  background: #0080ff;
}

@media (max-width: 768px) {
  .system-demo .slideshow .left-btn,
  .system-demo .slideshow .right-btn {
    width: 48px;
    height: 48px;
  }

  .system-demo .slideshow .left-btn {
    left: -24px;
  }

  .system-demo .slideshow .right-btn {
    right: -24px;
  }

  .system-demo .slide-dots {
    gap: 6px;
    margin-top: 12px;
  }

  .system-demo .slide-dots .dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 768px) {
  .system-demo {
    padding: 10px 16px 40px;
  }

  .system-advantages {
    padding: 10px 16px 40px;
  }
  .system-advantages .advantage-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .system-advantages .advantage-card {
    padding: 24px 16px;
  }
  .system-advantages .advantage-card h4 {
    font-size: 16px;
  }
  .system-advantages .advantage-card p {
    font-size: 14px;
  }

  .functions {
    padding: 10px 10px 40px;
  }
  .functions .title h2 {
    font-size: 26px;
  }
  .functions-container {
    display: block;
    gap: 0;
  }
  .functions-container .item {
    width: 100%;
    margin-bottom: 16px;
  }
  .functions-container .item:last-child {
    margin-bottom: 0;
  }
  .functions-dots {
    display: none !important;
  }
  .functions-container .item h2 {
    font-size: 18px;
    padding-left: 10px;
  }
  .functions-container .item p {
    font-size: 14px;
    padding: 0 10px;
    line-height: 1.5;
  }
  .functions .left-btn,
  .functions .right-btn {
    display: none !important;
  }

  .banner.contact_demo {
    min-height: 260px;
  }
  .banner.contact_demo .banner-slide img {
    height: 100%;
    min-height: 260px;
    object-fit: cover;
  }
  .banner.contact_demo .banner-overlay .banner-text {
    padding: 0 20px;
  }
  .banner.contact_demo .banner-overlay .banner-text h3 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .banner.contact_demo .banner-overlay .banner-text p {
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 150%;
  }
  .banner.contact_demo .banner-overlay .banner-text .banner-btns {
    flex-wrap: wrap;
    gap: 10px;
  }
  .banner.contact_demo .banner-overlay .banner-text .banner-btns .btn {
    padding: 0 18px;
    height: 38px;
    line-height: 38px;
    font-size: 14px;
    width: auto;
  }
}
