/* About Page Modern Design */

/* Main Content Section */
.about-main {
  padding: 80px 0;
  background: #fff;
}

.about-story {
  padding-right: 40px;
}

.story-header h3 {
  color: #2c3e50;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

.header-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(45deg, #007cba, #0056b3);
  margin-bottom: 30px;
  border-radius: 2px;
}

.story-content {
  color: #5a6c7d;
  font-size: 16px;
  line-height: 1.8;
}

.story-content p {
  margin-bottom: 20px;
}

/* Gallery Section */
.about-gallery-modern {
  padding-left: 20px;
}

.gallery-main {
  margin-bottom: 20px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.gallery-main:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.gallery-main .main-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

.thumbnail-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  flex: 1;
  max-width: 80px;
}

.thumbnail-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.thumbnail-item.active {
  border: 2px solid #007cba;
  box-shadow: 0 6px 20px rgba(0, 124, 186, 0.3);
  transform: translateY(-2px);
}

.thumbnail-item.active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: rgba(0, 124, 186, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail-item.active::before {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 10px;
  z-index: 2;
}

.thumbnail-item img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  display: block;
}

/* Values Section */
.about-values {
  padding: 80px 0;
  background: #f8f9fa;
}

.section-header {
  margin-bottom: 60px;
}

.section-header h3 {
  color: #2c3e50;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-header p {
  color: #5a6c7d;
  font-size: 18px;
  margin-bottom: 0;
}

.value-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  height: 100%;
  margin-bottom: 30px;
}

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

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  transform: scale(1.1);
}

.value-icon i {
  color: #fff;
  font-size: 32px;
}

.value-card h4 {
  color: #2c3e50;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
}

.value-card p {
  color: #5a6c7d;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Certificates Section */
.certificates-modern {
  padding: 80px 0;
  background: #fff;
}

/* 证书区域使用产品轮播样式，样式定义在 style.css 中的 .product 类 */

/* Custom Certificate Modal Styles */
.cert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cert-modal.active {
  opacity: 1;
  visibility: visible;
}

.cert-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.cert-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.cert-modal:not(.active) .cert-modal-content {
  transform: translate(-50%, -50%) scale(0.8);
}

.cert-modal-header {
  padding: 20px 25px 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

.cert-modal-header h4 {
  margin: 0;
  color: #2c3e50;
  font-size: 22px;
  font-weight: 700;
}

.cert-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cert-modal-close:hover {
  background: #e9ecef;
  color: #333;
}

.cert-modal-body {
  padding: 25px;
  text-align: center;
}

.cert-modal-image {
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .cert-modal-content {
    max-width: 95%;
    max-height: 95%;
  }
  
  .cert-modal-header {
    padding: 15px 20px 10px;
  }
  
  .cert-modal-header h4 {
    font-size: 18px;
  }
  
  .cert-modal-body {
    padding: 20px 15px;
  }
  
  .cert-modal-image {
    max-height: 60vh;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-main,
  .about-values,
  .certificates-modern {
    padding: 60px 0;
  }
  
  .about-story {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .about-gallery-modern {
    padding-left: 0;
  }
  
  .story-header h3 {
    font-size: 28px;
  }
  
  .section-header h3 {
    font-size: 30px;
  }
  
  .value-card {
    margin-bottom: 20px;
  }
  
  /* Mobile gallery thumbnails */
  .gallery-thumbnails {
    gap: 8px;
    margin-top: 12px;
  }
  
  .thumbnail-item {
    max-width: 70px;
  }
  
  .thumbnail-item img {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .value-card {
    padding: 30px 20px;
  }
  
  .value-icon {
    width: 60px;
    height: 60px;
  }
  
  .value-icon i {
    font-size: 24px;
  }
  
  /* Extra small screens - even smaller thumbnails */
  .gallery-thumbnails {
    gap: 6px;
    flex-wrap: wrap;
  }
  
  .thumbnail-item {
    max-width: 60px;
  }
  
  .thumbnail-item img {
    height: 45px;
  }
  
  .thumbnail-item.active::after {
    width: 16px;
    height: 16px;
  }
  
  .thumbnail-item.active::before {
    font-size: 8px;
  }
  
  /* 证书区域移动端样式由产品轮播控制 */
}