:root {
  --secondary: var(--primary);
  --accent: var(--primary);
  --dark: #2b2d42;
  --light: #f8f9fa;
  --success: #06d6a0;
  --warning: #ffd166;
  --danger: #ef476f;
}

/* 浼佷笟鎸戞垬閮閮ㄥ垎 */
.challenges-section {
  margin: 60px 0;
}

.section-title {
  text-align: left;
  width: 100%;
  color: var(--primary);
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

/* .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 10%;
  width: 80%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
} */

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px;
  overflow: hidden;
}

.challenge-card {
  background: #fff;
  border-radius: 5px;
  padding: 30px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border: 1px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.challenge-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  border-color: var(--primary);
}

.challenge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.challenge-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(var(--primary-rgb), 0.15);
  position: absolute;
  top: -15px;
  right: 20px;
  line-height: 1;
}

.challenge-title {
  margin-bottom: 15px;
  color: var(--accent);
}

.challenge-desc {
  color: #000;
  opacity: 0.7;
  line-height: 1.7;
}


/* 浜у搧灞曠ず閮ㄥ垎 */
.products-section {
  margin: 80px 0;
}

.tabs-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.tabs-header {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 18px 40px;
  font-weight: 600;
  background: #fff;
  border: none;
  border-radius: 5px;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  flex: 1;
  max-width: 300px;
  text-align: center;
}

.tab-btn:hover {
  color: var(--light);
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(45deg, var(--secondary), var(--primary));
  transition: width 0.5s ease;
  z-index: -1;
}

.tab-btn:hover::before,
.tab-btn.active::before {
  width: 100%;
}

.tab-btn.active {
  color: white;
  box-shadow: 0 5px 20px rgba(155, 44, 66, 0.272);
}

.tabs-content {
  background: rgba(230, 230, 230, 0.15);
  border-radius: 5px;
  padding: 50px;
  min-height: 500px;
  border: 1px solid rgba(74, 108, 247, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.tab-pane {
  display: none;
  width: 100%;
  animation: fadeIn 0.6s ease;
}

.tab-pane.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.product-title {
  font-size: 2.5rem;
  text-align: center;
  background: linear-gradient(90deg, var(--accent), var(--success));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}

.product-content {
  display: flex;
  width: 100%;
  gap: 50px;
  align-items: center;
}
.page-banner .wrap p {
  margin-bottom: 0;
}
.product-image {
  flex: 1;
  height: 350px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  border: 1px solid rgba(240, 222, 222, 0.468); overflow: hidden;
}
.product-image img { 
  max-width: 100%;
}
.product-info {
  flex: 1;
  padding: 20px;
}

.product-subtitle {
  margin-bottom: 20px;
  color: var(--accent);
}

.product-desc {
  color: #000;
  line-height: 1.8;
}

/* 浼佷笟淇濋殰閮ㄥ垎 */
.enterprise-assurance {
  background: #efefef;
  border-radius: 5px;
  padding: 60px 50px;
  margin-bottom: 80px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 60px;
}

.assurance-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.assurance-content h2 {
  color: var(--primary);
  margin-bottom: 35px;
  font-weight: 700;
}

.assurance-list {
  list-style-type: none;
}

.assurance-list li {
  margin-bottom: 25px;
  color: var(--dark);
  padding-left: 50px;
  position: relative;
  line-height: 1.6;
  font-weight: 500;
}

.assurance-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.assurance-image {
  flex: 1;
  height: 400px;
  background: white;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.assurance-image .placeholder {
  text-align: center;
  padding: 30px;
}
.assurance-image .placeholder img { max-width: 100%;}
.assurance-image .icon {
  font-size: 8rem;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.assurance-image .text {
  color: var(--gray);
  font-size: 1.4rem;
  font-weight: 500;
}

/* 鍝嶅簲寮忚璁?*/
@media (max-width: 1200px) {
  .enterprise-assurance {
    flex-direction: column;
    gap: 20px;
    padding: 30px;
  }

  .challenge-slide {
    flex-direction: column;
    padding: 40px;
  }

  .product-item,
  .product-item:nth-child(even) {
    flex-direction: column;
  }

  .product-text p {
    padding-left: 0;
  }
}

@media (max-width: 768px) {

  .carousel-btn {
    width: 50px;
    height: 50px;
  }

  .product-info { padding: 0;}
}

@media (max-width: 992px) {
  .product-content {
    flex-direction: column;
  }

  .tab-btn {
    padding: 15px 25px;
    font-size: 1.1rem;
  }

  .tabs-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {

  .challenges-grid,
  .guarantee-grid {
    grid-template-columns: 1fr;
  }


  .tab-btn { padding: 10px 15px;}
  
  .assurance-list li::before {width: 24px; height: 24px; font-size: 1rem;}
  .assurance-list li { padding-left: 36px;}
}
