/* About Page Specific Styles */

/* About Hero Section */
.about-hero-section {
  height: 45vh;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("../images/aboutbg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-alpha-10), var(--primary-alpha-10));
}

.about-hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
}

.about-hero-title {
  font-size: 8rem;
  font-weight: 100;
  letter-spacing: 0.2em;
  opacity: 0.3;
  margin-bottom: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  text-shadow: none;
}

.about-hero-subtitle {
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  margin-top: -1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Company Description Section */
.company-description-section {
  padding: 6rem 0;
  background: var(--bg-light);
}
.company-title-text{
  font-size: 1.25rem;
  color: var(--text-color-dark);
  font-weight: 700;
}


.company-description-text {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: justify;
  text-indent: 2em;
}

/* Company Action Section */
.company-action-section {
  margin-top: 3rem;
  text-align: center;
}

.btn-view-capabilities {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--theme-primary), var(--primary-light));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-view-capabilities::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-view-capabilities:hover::before {
  left: 100%;
}

.btn-view-capabilities:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
  color: white;
  text-decoration: none;
}

.btn-view-capabilities .btn-icon {
  transition: transform 0.3s ease;
  font-size: 1rem;
}

.btn-view-capabilities:hover .btn-icon {
  transform: translateX(5px);
}

.btn-text {
  position: relative;
  z-index: 1;
}

/* Company Values Section */
.company-values-section {
  padding: 6rem 0;
  background: white;
}

/* 企业愿景样式 */
.vision-card {
  background: linear-gradient(135deg, var(--primary-alpha-10), rgba(255, 255, 255, 0.8));
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.vision-content {
  padding-right: 2rem;
}

.vision-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.vision-icon {
  width: 60px;
  height: 60px;
  background: var(--theme-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vision-icon i {
  font-size: 1.8rem;
  color: white;
}

.vision-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--theme-primary);
  margin: 0;
}

.vision-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin: 0;
  text-align: justify;
}

.vision-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 300px;
}

.vision-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vision-image:hover img {
  transform: scale(1.05);
}

.vision-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 123, 255, 0.8), rgba(40, 167, 69, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vision-image:hover .vision-image-overlay {
  opacity: 1;
}

.vision-overlay-content {
  text-align: center;
  color: white;
}

.vision-overlay-content i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.vision-overlay-content span {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* 企业理念样式 */
.philosophy-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.philosophy-icon {
  width: 60px;
  height: 60px;
  background: var(--theme-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.philosophy-icon i {
  font-size: 1.8rem;
  color: white;
}

.philosophy-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--theme-primary);
  margin: 0;
}

.philosophy-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  height: 100%;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.philosophy-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-alpha-20);
}

.philosophy-item-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-alpha-10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.philosophy-item-icon i {
  font-size: 1.8rem;
  color: var(--theme-primary);
}

.philosophy-card:hover .philosophy-item-icon {
  background: var(--theme-primary);
  transform: scale(1.1);
}

.philosophy-card:hover .philosophy-item-icon i {
  color: white;
}

.philosophy-item-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--theme-primary);
  margin-bottom: 1rem;
}

.philosophy-item-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: justify;
  margin: 0;
}

/* 移动端响应式布局和padding适配 */
@media (max-width: 768px) {
  /* Section padding 移动端适配 */
  .company-description-section,
  .company-values-section,
  .company-stats-section,
  .factory-equipment-section {
    padding: 3rem 0;
  }
  
  /* Hero section 移动端适配 */
  .about-hero-title {
    font-size: 3rem;
  }
  
  .about-hero-subtitle {
    font-size: 1.5rem;
  }
  
  /* Vision card 移动端适配 */
  .vision-card {
    padding: 2rem 1.5rem;
  }
  
  .vision-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .vision-header {
    justify-content: center;
    text-align: center;
  }
  
  .vision-title {
    font-size: 1.6rem;
  }
  
  .vision-description {
    font-size: 1.1rem;
    text-align: center;
  }
  
  .vision-image {
    height: 250px;
  }
  
  /* Philosophy cards 移动端适配 */
  .philosophy-card {
    padding: 2rem 1.5rem;
  }
  
  .philosophy-title {
    font-size: 1.6rem;
  }
  
  .philosophy-item-title {
    font-size: 1.2rem;
  }
  
  .philosophy-item-description {
    font-size: 0.95rem;
  }
  
  /* Stats 移动端适配 */
  .stat-item {
    padding: 1.5rem 0.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  /* Button 移动端适配 */
  .company-action-section {
    margin-top: 2rem;
  }
  
  .btn-view-capabilities {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    gap: 0.5rem;
  }
}

/* Company Statistics Section */
.company-stats-section {
  padding: 6rem 0;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("../images/indexfactory.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
}

.stat-item {
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 4rem;
  font-weight: bold;
  color: white;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-unit {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Factory Equipment Section - Hover Accordion Style */
.factory-equipment-section {
  padding: 6rem 0;
  background: var(--bg-light);
}

.equipment-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 4rem;
  position: relative;
  text-align: center;
}

.equipment-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-blue);
}

.factory-accordion-container {
  max-width: 100%;
  margin: 0;
  padding: 0 20px;
}

/* Hover Accordion Styles */
.hover-accordion {
  display: flex;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  background: white;
  width: 100%;
  gap: 8px; /* Add gap between panels */
  padding: 8px; /* Add padding around the container */
}

.accordion-panel {
  flex: 1;
  position: relative;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px; /* Add border radius to individual panels */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Add individual panel shadows */
}

.accordion-panel:hover {
  flex: 2.5;
}

.accordion-panel:not(:hover) {
  flex: 0.8;
}

/* Panel Overlays */
.panel-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25));
  transition: all 0.6s ease;
}

.accordion-panel:hover .panel-overlay {
  background: var(--gradient-primary);
  opacity: 0.8;
  left: 0;
  bottom: 0;
  top: auto;
}

/* Panel Content */
.panel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: white;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.panel-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  opacity: 1;
  transition: all 0.6s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.panel-subtitle {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  transition: all 0.6s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.panel-description {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.6s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hover Effects */
.accordion-panel:hover .panel-description {
  opacity: 1;
  max-height: 200px;
}

.accordion-panel:hover .panel-title {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

.accordion-panel:hover .panel-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Panel Icons */
.panel-icon {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s ease;
  backdrop-filter: blur(10px);
}

.panel-icon i {
  font-size: 1.5rem;
  color: white;
  transition: all 0.6s ease;
}

.accordion-panel:hover .panel-icon {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.accordion-panel:hover .panel-icon i {
  font-size: 1.8rem;
}


/* Mobile Responsive */
@media (max-width: 1024px) {
  .hover-accordion {
    height: 400px;
  }

  .panel-content {
    padding: 1.5rem;
  }

  .panel-title {
    font-size: 1.5rem;
  }

  .accordion-panel:hover .panel-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .hover-accordion {
    flex-direction: column;
    height: auto;
    min-height: auto;
    gap: 12px; /* Increase gap for mobile */
    padding: 12px; /* Increase padding for mobile */
  }

  .accordion-panel {
    flex: none;
    height: 250px;
    transition: none;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Enhanced shadow for mobile */
  }

  .accordion-panel:hover {
    flex: none;
    height: 250px;
  }

  .accordion-panel:not(:hover) {
    flex: none;
    height: 250px;
  }

  .panel-overlay {
    background: linear-gradient(135deg, rgba(30, 90, 168, 0.7), rgba(74, 144, 226, 0.5)) !important;
    transition: none;
  }

  .panel-content {
    padding: 1.5rem;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .panel-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }

  .accordion-panel:hover .panel-title {
    font-size: 1.4rem;
  }

  .panel-description {
    opacity: 1 !important;
    max-height: none !important;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .panel-icon {
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
  }

  .panel-icon i {
    font-size: 1.3rem;
  }

  .accordion-panel:hover .panel-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: none;
  }

  .accordion-panel:hover .panel-icon i {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .factory-equipment-section {
    padding: 4rem 0;
  }

  .equipment-title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .hover-accordion {
    border-radius: 15px;
    gap: 0.8rem;
  }

  .accordion-panel {
    height: 220px;
    border-radius: 12px;
  }

  .accordion-panel:hover {
    height: 220px;
  }

  .panel-content {
    padding: 1.2rem;
  }

  .panel-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }

  .accordion-panel:hover .panel-title {
    font-size: 1.2rem;
  }

  .panel-description {
    font-size: 0.9rem;
  }

  .panel-icon {
    top: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }

  .panel-icon i {
    font-size: 1.1rem;
  }

  .factory-accordion-container {
    padding: 0 15px;
  }
}

/* Remove old accordion styles */
.factory-accordion-desktop,
.factory-accordion-mobile,
.accordion-tabs,
.accordion-content-area {
  display: none !important;
}

/* Image Gallery Styles for Desktop */
.image-gallery-container {
  position: relative;
}

.main-image-container {
  position: relative;
  margin-bottom: 1rem;
}

.main-factory-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.image-counter {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.thumbnail-gallery {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.thumbnail {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.thumbnail.active {
  border-color: var(--primary-blue);
  transform: scale(1.05);
}

/* Single Image Container */
.single-image-container {
  position: relative;
}

.large-image {
  height: 400px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Dual Image Container */
.dual-image-container {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.dual-image-item {
  position: relative;
  flex: 1;
}

.dual-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dual-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.image-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(30, 90, 168, 0.9);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Mobile Image Styles */
.mobile-image-gallery {
  margin-bottom: 2rem;
}

.mobile-main-image {
  position: relative;
  margin-bottom: 1rem;
}

.mobile-factory-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.mobile-image-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.3rem 0.7rem;
  border-radius: 15px;
  font-size: 0.8rem;
}

.mobile-thumbnail-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
}

.mobile-thumbnail {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.mobile-thumbnail.active {
  border-color: var(--primary-blue);
  transform: scale(1.05);
}

.mobile-dual-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mobile-dual-item {
  position: relative;
}

.mobile-dual-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mobile-image-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(30, 90, 168, 0.9);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}
