@import "../../common/base/index.css";
@import "../../common/layout/index.css";
@import "../../common/header/index.css";
@import "../../common/footer/index.css";
/* 导入表单样式 */
@import "../../common/dynamicForm/homeForm.css";
/* 首页特定样式 */

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
  position: relative;
  overflow: hidden;
}
.hero-banner .container {
  position: relative;
}
.hero-banner .container::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url("/hilook/static/image/bg/home-hero-banner.jpg") center/cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  background: linear-gradient(135deg, #000000 0%, #1f2937 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out;
}

.hero-content p {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-image {
  position: relative;
  z-index: 1;
  animation: fadeInRight 1s ease-out 0.6s both;
}

.product-display {
  position: relative;
}

.product-box {
  animation: float 3s ease-in-out infinite;
}

/* 产品原料横幅 */
.ingredients-banner {
  position: relative;
}
.ingredients-container{
  width: 100%;
}
.ingredients{
  display: flex;
  width: max-content;
  gap: 4rem;
  animation: scroll 20s linear infinite;
}
.ingredients:hover {
  animation-play-state: paused;
}
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ingredient-item {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  z-index: 1;
  transform-origin: center center;
  transition: transform 0.3s ease;
}

.ingredient-item h3 {
  font-family: "Gobold";
}

.ingredient-item:hover {
  /*transform: translateY(-4px);*/
}

.ingredient-item img {
  display: block;
  margin: 0 auto;
  transform-origin: center center;
  transition: transform 0.3s ease;
}

.ingredient-item:hover {
  transform: scale(1.2);
}

/* 产品展示区域 */
.prodcut-category .category-item {
  transition: all 0.3s ease;
}
.prodcut-category {
  /* 小屏时允许换行，避免横向滚动 */
  flex-wrap: wrap;
}
.prodcut-category .category-item {
  /* 单个按钮保持不折行，但容器可换行以防溢出 */
  white-space: nowrap;
}
.prodcut-category .category-item.active,
.prodcut-category .category-item:hover {
  border-color: #000000;
  color: #ffffff;
  background-color: #000000;
}

.products-showcase {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.category-tab {
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-tab.active {
  color: #000000;
  border-color: #000000;
}

.category-tab:hover {
  color: #000000;
}

.product-card {
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.product-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 1rem;
  text-align: center;
  transition: all 0.5s ease;
  transform: translateY(100%);
  z-index: 10;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
  transition: all 0.5s ease;
  overflow: hidden;
  aspect-ratio: 3/4;
  transform-origin: center center;
}
.product-card:hover .product-image-overlay {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(0);
}
.product-card:hover .product-image {
  transform: scale(1.15);
}

/* 为什么选择私人标签 */
.why-private-label {
  position: relative;
}

.why-private-label_content {
  background: linear-gradient(135deg, #000000 0%, #30394b 100%);
}

.why-private-label::before {
  /* content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 0;
  background: url("/image/bg/private-label-bg.jpg") center/cover;
  opacity: 0.1; */
}

.video-placeholder {
  background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
  border: 2px dashed #d1d5db;
  transition: all 0.3s ease;
}

.video-placeholder:hover {
  border-color: #f97316;
  transform: scale(1.02);
}

.video-placeholder i {
  transition: all 0.3s ease;
}

.video-placeholder:hover i {
  color: #f97316;
  transform: scale(1.1);
}

/* 为什么选择Hilook */
.why-hilook {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

/* 手风琴式优势列表 */
.advantages-accordion {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.advantage-item {
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.advantage-item:last-child {
  border-bottom: none;
}

.advantage-item.active {
  background-color: #f9fafb;
}

.advantage-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  user-select: none;
}

.advantage-header:hover {
  background-color: #f3f4f6;
}

.advantage-header i {
  transition: all 0.3s ease;
  width: 20px;
  text-align: center;
}

.advantage-item.active .advantage-header i {
  transform: rotate(90deg);
}

.advantage-content {
  transition: all 0.3s ease;
  overflow: hidden;
}

.advantage-content.hidden {
  display: none;
}

.advantage-content p {
  padding: 0 1.5rem 1.5rem;
  margin: 0;
  line-height: 1.6;
}

/* 认证轮播 */
.certifications-carousel {
  position: relative;
  margin-top: 2rem;
}

.carousel-btn {
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  transform: scale(1.05);
}

.cert-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  padding: 0 2rem;
}

.cert-logos img {
  aspect-ratio: 1/1;
  transition: all 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.7;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cert-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* 主页表单 */
.home-form-container{
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.90)),
  url("/hilook/static/image/temp/bg1.jpg") center/cover;
  background-attachment: fixed;
}


/* 关于Hilook */
.about-hilook {
  background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
  position: relative;
}

/*.about-hilook::before {*/
/*  content: "";*/
/*  position: absolute;*/
/*  top: 0;*/
/*  left: 0;*/
/*  right: 0;*/
/*  bottom: 0;*/
/*}*/

/* 关于内容区域 */
.about-content {
  position: relative;
  z-index: 1;
}

.about-content h2 {
  position: relative;
}

.about-content p {
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* 视频占位符 */
.about-hilook .video-placeholder {
  position: relative;
  z-index: 1;
  border: 2px dashed #d1d5db;
  transition: all 0.3s ease;
}

.about-hilook .video-placeholder:hover {
  border-color: #000000;
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-hilook .video-placeholder i {
  transition: all 0.3s ease;
}

.about-hilook .video-placeholder:hover i {
  color: #f97316;
  transform: scale(1.1);
}

/* 专业能力卡片 */
.expertise-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #000;
  transition: all 0.3s linear;
}

.expertise-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.expertise-card .number {
  font-weight: 700;
  line-height: 1;
}

.expertise-card h4 {
  line-height: 1.4;
  font-weight: 500;
  color: #000;
}

.icon-wrapper {
  transition: all 0.3s ease;
  background: #000;
  color: #fff;
}

.expertise-card:hover .icon-wrapper {
  transform: scale(1.1);
  /*background: #000000;*/
}

.expertise-card:hover .icon-wrapper i {
  /*color: white;*/
}

/* 中间区域样式 */
.about-hilook .flex {
  position: relative;
  z-index: 1;
}

.about-hilook .btn-primary {
  position: relative;
  z-index: 1;
}

/* 可靠和认证能力 */
.reliable-capabilities {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.certifications-carousel-large {
  position: relative;
}
.certifications-carousel-large > .flex {
  /* 防止内部三列（左按钮-内容-右按钮）总宽相加产生溢出 */
  overflow: hidden;
}

.cert-documents {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: center;
  justify-items: center;
  /* 让证书网格在父flex中可收缩，避免和两侧按钮挤出容器 */
  flex: 1 1 0;
  min-width: 0;
}

.cert-documents .home-honors-item {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #e5e7eb;
}

.cert-documents .home-honors-item:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #000000;
}

.cert-documents img {
  transition: all 0.3s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 响应式网格 */
@media (min-width: 640px) {
  .cert-documents {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .cert-documents {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

/* 轮播按钮样式 */
.certifications-carousel-large .carousel-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.certifications-carousel-large .carousel-btn:hover {
  transform: scale(1.1);
}

/* 分页指示器样式 */
.pagination-indicators {
  position: relative;
  z-index: 10;
}

.pagination-indicators .indicator {
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-indicators .indicator.active {
  background-color: #000000;
}

.pagination-indicators .indicator:hover {
  transform: scale(1.2);
}

/* 动画关键帧 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .ingredients-banner .flex {
    flex-direction: column;
    gap: 2rem;
  }

  .expertise-card {
    padding: 1rem;
  }

  .cert-logos,
  .cert-documents {
    gap: 1rem;
  }

  /* 证书轮播响应式 */
  .cert-documents {
    gap: 0.75rem;
  }

  .certifications-carousel-large .carousel-btn i {
    font-size: 2rem; /* 移动端减小按钮大小 */
  }

  .pagination-indicators {
    margin-top: 1rem;
  }

  /* 关于Hilook响应式 */
  .about-content h2 {
    font-size: 2.5rem;
  }

  .about-content p {
    font-size: 1rem;
  }

  .about-hilook .video-placeholder {
    height: 60vh;
  }

  .expertise-card .number {
    font-size: 1.5rem;
  }

  .expertise-card h4 {
    font-size: 0.875rem;
  }

  /* 联系表单响应式 */
  .contact-form-section {
    margin-top: -10px;
  }

  .contact-form-section .bg-white {
    padding: 2rem;
    margin: 0 1rem;
  }

  .contact-form-section .bg-white h2 {
    font-size: 2rem;
  }

  .contact-form-section .bg-white p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .expertise-card h4 {
    font-size: 0.875rem;
  }
}
