/* 基础样式与变量 */
@import url("./base.css");

h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}
p {
  /*color: var(--text-light);*/
  /*margin-bottom: 20px;*/
}
.flex {
  display: flex;
  align-items: center;
}
.transition {
  transition: var(--transition);
}

/* Banner */
.banner {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slide.active {
  opacity: 1;
}
.banner-indicators {
  position: absolute;
  bottom: 20px;
  width: 100%;
  justify-content: center;
  gap: 10px;
}
.indicator {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.indicator.active {
  background: var(--white);
}

/* 关于我们 */
.about-section {
  background: var(--white);
}
.about-content {
  text-align: center;
  width: 80%;
  margin: 0 auto 15px;
}
.about-content h2 {
  font-size: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}
.video-wrapper {
  position: relative;
  width: 80%;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto;
}
.video-wrapper .about-img {
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-decoration: none;
}
.play-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, opacity 0.3s;
}
.play-icon:hover {
  transform: scale(1.1);
  opacity: 0.9;
}
.play-icon i {
  color: #007bff;
  font-size: 30px;
}

/* 服务行业 */
.industries-section {
  background-image: url("../assets/66.webp");
  color: var(--white);
  padding: 0;
}
.industries-section .container1 {
  background: linear-gradient(
    135deg,
    rgba(115, 155, 45, 0.4) 0%,
    rgba(115, 155, 45, 0.8) 100%
  );
  padding: 20px 10vw;
  margin: 0;
  width: 100vw !important;
  min-height: 100vh;
}
.industries-section h2,
.industries-section p {
  color: var(--white);
}
.industries-section h2 {
  font-size: 30px;
  font-weight: 600;
}
.industries-section p {
  margin: 15px 0;
}
.view-all-btn {
  display: block;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 12px 30px;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  margin: 0 auto 40px;
}
.view-all-btn:hover {
  background: var(--white);
  color: #0b2b68;
}
.industries-grid {
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.industry-card {
  position: relative;
  overflow: hidden;
  width: 25vw;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.industry-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.industry-card:hover img {
  transform: scale(1.1);
}
.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(119, 156, 55, 0.8);
  padding: 20px;
  text-align: center;
}
.card-content h3 {
  font-size: 18px;
  color: #ffd600;
  margin-bottom: 10px;
}
.learn-more {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.learn-more:hover {
  color: #ffd600;
}

/* 客户评价 */
.reviews-section {
  background: var(--white);
}
.reviews-section h2 {
  font-size: 30px;
  font-weight: 600;
}
.rating-header {
  gap: 10px;
  margin-bottom: 40px;
  justify-content: center;
  align-items: center;
}
.rating-score {
  font-size: 36px;
  font-weight: 700;
  color: #ffb400;
}
.stars {
  font-size: 20px;
  color: #ffb400;
  padding: auto;
}
.review-count {
  font-size: 16px;
  color: var(--text-light);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.review-card {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}
.review-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 20px;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 60px;
  font-size: 20px;
  color: var(--white);
}
.review-card h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 10px;
  text-align: center;
}
.review-card .stars {
  font-size: 16px;
  margin-bottom: 10px;
  text-align: center;
}


.time {
  color: #999;
  font-size: 14px;
  margin-bottom: 15px;
  text-align: center;
}
.content {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 10px;
}
.read-more {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.read-more:hover {
  color: #0056b3;
}

/* 页脚 */
.footer-section {
  background: var(--white);
  padding-top: 60px;
  position: relative;
  z-index: 1000;
}
.footer-container {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 5vw;
}

.footer-logo img {
  max-width: 120px;
  margin-bottom: 20px;
}
.brand-desc {
  color: #fff;
  line-height: 1.6;
  margin-bottom: 20px;
}
.social-icons {
  gap: 15px;
}
.social-icons .icon {
  color: var(--primary-light);
  font-size: 20px;
  transition: color 0.3s;
}
.social-icons .icon:hover {
  color: #0056b3;
}
.links-section {
  min-width: 200px;
  margin-right: 30px;
  color: var(--primary-light);
}

.links-section ul {
  list-style: none;
}
.links-section ul li {
  margin-bottom: 10px;
}
.links-section ul li a {
  /*color: var(--primary-light);*/
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.links-section ul li a:hover {
  color: #007bff;
}
.contact-section {
  min-width: 250px;
}
.address,
.phone,
.wechat {
  /*color: var(--primary-light);*/
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.6;
  display: flex;
}
.inquiry-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 12px 30px;
  background: var(--primary-light);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}
.inquiry-btn:hover {
  background: #0056b3;
}
.footer-section .footer-bottom {
  /*margin-top: 12px;*/
}
.footer-section .footer-bottom p {
  color: var(--primary);
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
}




/* 结晶工艺模块 */
.crystal-module1 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.crystal-module1 .crystal-card {
  align-items: center;
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  gap: 20px;
}
.crystal-module1 .crystal-card img {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}
.crystal-module1 .card-content1 {
  color: #000;
}
.card-content1 h2 {
  font-weight: 600;
  width: 80px;
  border-bottom: var(--primary) solid 2px;
  font-size: 18px;
  margin: 6px auto;
}
.crystal-module1 .crystal-card:nth-child(2) {
  flex-direction: row-reverse;
}
.crystal-module1 .card-content1 button {
  display: block;
  background: var(--primary);
  border: none;
  padding: 6px 20px;
  color: var(--white);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
  margin: 12px auto;
}
.crystal-module1 .card-content1 button:hover {
  background: #7cb342;
}

/* 响应式 */
@media (max-width: 768px) {
  .search-box {
    display: none;
  }
  .nav-menu {
    display: none !important;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  .nav-menu.active {
    display: block !important;
  }
  .nav-links {
    flex-direction: column;
    padding: 10px 20px;
  }
  .nav-links li {
    margin: 10px 0;
  }
  .language-dropdown {
    margin: 10px 0 0;
  }

  .hamburger {
    display: flex;
  }
  .banner {
    height: 300px;
  }
  .crystal-module1 .crystal-card,
  .crystal-module1 .crystal-card:nth-child(2) {
    flex-direction: column;
  }
  .crystal-module1 .crystal-card img {
    width: 100%;
    margin-bottom: 10px;
  }
  .industries-section .industries-grid .industry-card {
    width: 36vw;
  }
}

/* 公共flex类应用 */

.dropdown-btn,
.dropdown-item,
.banner-indicators,
.play-icon,
.industries-grid,
.rating-header,
.social-icons,
.footer-container,
.crystal-module1 .crystal-card {
  display: flex;
}

/* 设备页面 样式 */
/* 可行性研究模块 */
.feasibility-section {
  background: var(--white);
  /*box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);*/
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.feasibility-section h2 {
  font-size: clamp(1.875rem, 4vw, 30px); /* 响应式字体大小 */
  font-weight: 600;
  margin: 1.25rem 0;
  text-align: center;
  color: var(--text);
}

.intro-text {
  width: 90%;
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: justify;
  line-height: 1.6;
}

.lab-card {
  min-height: auto;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: #f8fafc;
  padding:1.5rem 0;
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.lab-img {
  flex: 1;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  min-width: 0; /* 防止flex元素溢出 */
}

.lab-img img {
  width: 100%;
  max-width: 450px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 4px;
}

.lab-content {
  flex: 1;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0; /* 防止flex元素溢出 */
}

.lab-content .table {
  width: 100%;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
}

.lab-content p {
  display: block;
  width: 100%;
  line-height: 1.6;
}

.lab-content td {
  /*min-width: 120px;*/
  /*padding:0 0.5rem !important;*/
  /*vertical-align: top;*/
}

.lab-content td p {
  display: block;
  width: 100%;
  margin-bottom: 0;
}

.lab-content h3 {
  font-size: clamp(1.25rem, 3vw, 24px);
  color: var(--text);
  margin-bottom: 0.75rem;
}

.subtitle {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.lab-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.lab-content ul li {
  margin-bottom: 0.5rem;
}

/* 响应式适配 */
/* 平板设备 */
@media (max-width: 1024px) {
  .feasibility-section {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .lab-card {
    gap: 1.5rem;
    padding: 0 1rem;
  }
}

/* 小型平板和大型手机 */
@media (max-width: 768px) {
  .container {
    width: 95% !important;
    margin: 0 auto;
  }
  
  .lab-card {
    flex-direction: column; /* 移动端堆叠 */
  }
  
  .lab-img {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .intro-text {
    text-align: left;
    width: 100%;
  }
  
  .lab-content {
    padding: 0;
  }
}

/* 小型手机 */
@media (max-width: 480px) {
  .feasibility-section {
    padding: 1rem 0.5rem;
    margin: 0;
  }
  
  .lab-card {
    padding: 0.75rem;
    margin: 1rem 0.5rem;
  }
  
  .lab-content td {
    min-width: 100px;
    padding: 0.25rem;
  }
  
  .lab-content ul {
    padding-left: 1.25rem;
  }
}


/* 新闻 */

/* 标题样式 */
.aktuelles-title {
  font-size: 2rem;
  color: var(--primary); /* 橙色主题 */
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin: 20px 0;
}

/* 卡片容器：响应式 Grid 布局 */
.aktuelles .card-grid {
  display: grid;
  width: 80vw;
  margin: 25px auto;
    grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  @media (max-width:786px) {
       grid-template-columns: repeat(1, 1fr) !important;
}
}

/* 卡片组件 */
.card-grid .card {
  border-radius: 8px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* 媒体区域（图片/视频） */
.card-media {
  position: relative;
  width: 100%;
  height: 200px; /* 固定比例，可调整 */
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持图片比例 */
}

/* 视频播放按钮（可选交互） */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.card-media:hover .play-btn {
  opacity: 1;
}

/* 播放按钮三角形（CSS 绘制） */
.play-btn::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid white;
}

/* 日期标签 */
.card-date {
  padding: 1rem;
  font-size: 0.875rem;
  color: #666;
  background: #f8f8f8;
}

/* 标题样式 */
/*.card-title {*/
/*  padding: 1rem;*/
/*  font-size: 1.1rem;*/
/*  font-weight: 600;*/
  flex-grow: 1; /* push date to top */
/*}*/

/* 响应式断点 */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .card-media {
    height: 150px; /* 移动端缩小高度 */
  }
}
