/* 基础样式 */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

html {
    overflow-y: scroll;
}

#top-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 10px;
    background-color: #f8f8f8; /* 可选：给欢迎区块一点背景色 */
    flex-wrap: wrap;
}

.top-logo {
    width: 120px;
    height: auto;
}

.welcome-heading {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

/*-------------------------------*/
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: white;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  height: 80px;
  border-bottom: 1px solid #ccc;
}


.top-logo {
  height: 75px;
  width: 160px;
}

.top-logo.left {
  margin-right: 20px;  /* 向中间靠一点 */
}

.top-logo.right {
  margin-left: 20px;   /* 向中间靠一点 */
}

header .container {
  flex: 1;
  text-align: center;
}

#page-heading {
  font-size: 1.2rem;
  text-align: center;
  color: #003366;
  margin: 0;
}

/*-------------------------------*/

header h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
}

/*-------------------------------*/
nav {
  position: fixed;
  top: 80px; /* 与 header 高度一致 */
  width: 100%;
  background-color: #003366;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  z-index: 999;
}


nav a,
nav .dropbtn {
  color: white;
  text-decoration: none;
  padding: 10px 12px;
  font-size: 1rem;
  white-space: nowrap;
  transition: font-size 0.3s ease;
}
/* 防止正文内容被遮挡 */
main#content {
  margin-top: 140px; /* header + nav 的总高度 */
  padding: 1rem;
  width: 100%;
  padding-left: 100px;
  padding-right: 100px;
  box-sizing: border-box;
}
/*-------------------------------*/

.language-switcher {
    margin-left: auto;
}

button {
    background: #0056b3;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
}



/* 可选：专门针对 welcomeText 样式优化 */
.welcome-text {
    margin-bottom: 10 px;
    line-height: 1.6;
}

.welcome-text p {
    margin: 0 0 8px 0; /* 控制段落间距 */
    line-height: 1.6;
}

/* 客户页面专用样式 */
.client-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin: 40px auto;
    max-width: 1000px;
    justify-items: center;
    align-items: center;
}

.client-logo {
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    background-color: #fff;
    padding: 6px;
    box-sizing: border-box;
    transition: transform 0.2s ease;
}

.client-logo:hover {
    transform: scale(1.05);
}

.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.client-logo:hover img {
    filter: grayscale(0%);
}

.client-details {
    max-width: 600px;           /* 或根据你的布局设定宽度 */
    max-height: 400px;          /* 控制整体高度 */
    overflow-y: auto;
    padding: 15px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    position: absolute;
    z-index: 1000;
}

.client-popup-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 10px auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

#popup-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  max-width: 90%;
  height: auto;
  object-fit: contain;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
}


.gallery {
  max-height: 300px;
  overflow-y: auto;
}


#clientDetails {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  z-index: 1000;

  width: 90vw;
  max-width: 400px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}


.client-details .gallery {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}


.detail-card img {
    max-width: 100%;
    margin-top: 10px;
    border: 1px solid #eee;
}

@media (max-width: 768px) {
    .client-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .client-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.customers h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

.customers .subheading {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    font-size: 2em;
    margin: 0.2rem 0 1.25rem;
}

.company-image {
    display: block;
    margin: 20px auto; /* auto 左右居中 + 上下外边距 */
    max-width: 100%;
    height: auto;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #f8f8f8; /* 可选：设置底部背景 */
    color: #333;               /* 可选：字体颜色 */
}

footer .contact-info {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}


.about-section {
    margin-bottom: 30px;
    text-align: justify;
}

.about-image-wrapper {
    text-align: center;
    margin: 20px 0;
}

.about-image {
    max-width: 90%;
    height: auto;
    border-radius: 10px;
}

.image-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.image-grid-3x2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 每行最多3张，自动换行 */
    gap: 24px; /* 图片之间的间隔 */
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
}


.image-grid-3x2 .image-block {
  text-align: center;
}

.image-grid-3x2 .image-block img {
  width: 100%;
  height: 250px; /* 你可以根据需要设置成 150px、200px 等 */
  object-fit: contain; /* 保证图片按比例裁剪填满容器 */
  border-radius: 8px; /* 可选，美观圆角 */
}

.image-block {
    width: 100%;
    max-width: 400px; /* 控制每张图最大宽度 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-block img {
    width: 80%;
    height: auto; /* 固定高度 */
    object-fit: cover;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.image-wrapper {
  position: relative;
  display: inline-block;
}

.thumbnail {
  width: 100%;
  height: auto;
  border-radius: 6px;
  transition: opacity 0.3s ease;
}

.full-preview {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.image-wrapper:hover .thumbnail {
  opacity: 0;
}

.image-wrapper:hover .full-preview {
  opacity: 1;
}


.caption {
    font-size: 0.9em;
    color: #555;
    margin-top: 8px;
    text-align: center;
}

/* 📱 响应式处理：小屏幕上自动竖排显示 */
@media (max-width: 860px) {
    .image-row {
        flex-direction: column;
        align-items: center;
    }

    .image-block {
        max-width: 90%;
    }

    .image-block img {
        width: 100%;
        height: auto; /* 小屏幕可取消固定高度以适配比例 */
    }
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown main button */
.dropbtn {
  padding: 8px 14px;
  text-decoration: none;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.4;
  vertical-align: middle;
  display: inline-block;
  height: 100%;
}

/* 添加小三角 */
.dropbtn::after {
  content: ' ▾';
  font-size: 0.8em;
}

nav a.active,
nav .dropbtn.active {
  background-color: #0059b3;
  color: white;
}

/* Dropdown content (initially hidden) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 150px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  top: 100%
}

/* Each dropdown link */
.dropdown-content a {
  color: black;
  padding: 10px 12px;
  text-decoration: none;
  display: block;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Hover effect */
.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.section-heading {
  text-align: center;
  font-size: 1.8rem;         /* 可根据需要调整字体大小 */
  font-weight: bold;
  color: black;          /* 如果导航栏是深色背景，这个颜色适配白字 */
  margin: 20px 0;
  margin-top: 0.2rem;
  margin-bottom: 1rem;
}


.component-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 20px;
}

.component-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.component-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.component-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #005288;
}

.component-card ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.component-card li {
    font-size: 14px;
    margin-bottom: 4px;
}

/* 产品图片矩阵样式 */
.product-gallery {
    padding: 20px;
}

.gallery-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 自动换行，每张最小300px */
    gap: 24px; /* 图片之间的间距更宽松 */
    max-width: 1000px; /* 根据页面宽度调整可视范围 */
    margin: 0 auto;
    padding: 0 16px; /* 左右加点内边距更舒服 */
}


.gallery-item img {
    width: 100%;
    height: 235px;
    border-radius: 8px;
    object-fit: contain;
    background-color: #f9f9f9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.product-cta {
  margin-top: 40px;
  text-align: center;
}

.cta-text {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
}

.image-block {
  text-align: center;
}

.image-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.additional-image-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 1rem;
}

.additional-image-row .image-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.additional-image-row img {
  width: 100%;
  height: 180px; /* 固定高度，防止图片高度不一致造成行错位 */
  object-fit: cover; /* 裁切以保持比例，不拉伸变形 */
  border-radius: 8px;
}

.additional-image-row .caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
  text-align: center;
  justify-content: center;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}


.modal-caption {
  margin-top: 10px;
  color: #fff;
  font-size: 16px;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 28px;
  color: white;
  background-color: #0056b3;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
}

.modal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background-color: #0056b3;
  color: white;
  border: none;
  font-size: 32px;
  padding: 12px 20px;
  cursor: pointer;
  z-index: 100;
  border-radius: 6px;
  opacity: 0.95;
}

.modal-nav:disabled {
  background-color: #999;
  cursor: not-allowed;
  opacity: 0.5;
}



.modal-prev {
  left: 5%;
  }

.modal-next {
  right: 5%;
}

.general-info-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.general-info-flex .text-block {
  flex: 1 1 55%;
  min-width: 300px;
}

.general-info-flex .image-block {
  flex: 1 1 40%;
  max-width: 450px;
}

.general-info-flex img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.clickable-image {
  cursor: pointer;
}

.popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup.hidden {
    display: none;
}

.popup-content {
    background: white;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    user-select: text;
}

.popup-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.client-logo {
    cursor: pointer;
}

.popup-prev,
.popup-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.popup-prev:hover,
.popup-next:hover {
  background-color: #0056b3;
}

.popup-prev { left: -60px; }
.popup-next { right: -60px; }


/* 包裹 heading 和动画 logo 的容器 */
.welcome-banner {
   position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-top: 50px;
  margin-bottom: 30px;
  text-align: center;
}

/* heading 样式 */
.welcome-heading-text {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* 左右 logo 基础容器 */
.moving-logo {
  width: 120px;
  height: 120px;
  position: relative;
  z-index: 50;
  overflow: visible;
  margin-top: 40px;
  pointer-events: none;
}
.moving-logo * {
  pointer-events: none !important;
}

/* 统一动画配置 */
.moving-logo img {
  width: 100%;
  height: auto;
  animation: float-logo 3s ease-in-out infinite alternate;
}

/* 左右方向独立动画 */
.left-logo img {
  animation-name: float-left;
}

.right-logo img {
  animation-name: float-right;
}

@keyframes float-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-10px);
  }
}

@keyframes float-right {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(10px);
  }
}

.sample-section {
  margin-top: 20px;
  text-align: center;
}

.client-sample-image {
  max-width: 90%;
  border-radius: 8px;
  margin-top: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.sample-note {
   margin-top: 12px;
  font-size: 16px;
  color: #000;
  font-weight: bold;
  text-align: left; /* 左对齐 */
  padding-left: 10px; /* 轻微缩进可选 */
}

.bold-arrow {
  font-size: 20px;
  font-weight: bold;
  margin-right: 6px;
}

.privacy-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

.privacy-page h2 {
    text-align: center;
    margin-bottom: 1em;
}

.privacy-section {
    margin-bottom: 2em;
}

.privacy-section h3 {
    font-size: 1.2em;
    color: #444;
    margin-bottom: 0.5em;
}

.privacy-section p {
    margin-left: 1em;
    color: #222;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px 20px;
  text-align: center;
  z-index: 9999;
  display: none;
}

.cookie-banner p {
  white-space: pre-line;
}


.cookie-banner button {
  margin-left: 20px;
  padding: 6px 14px;
  background-color: #ffffff;
  color: #000000;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
}

.cookie-actions {
  margin-top: 10px;
  display: center;
  align-items: center;
  gap: 15px;
}

.cookie-privacy-link {
  color: #ffffff;
  text-decoration: underline;
  font-size: 0.9em;
}

.certificates {
  padding: 20px;
}

.page-heading {
  text-align: center;
  font-size: 2em;
  margin-bottom: 1em;
  margin-top: 0.2rem;
}

.certificate-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.certificate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 45%;
  max-width: 400px;
  box-sizing: border-box;
  padding: 16px;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin: 12px;
}

@media (max-width: 768px) {
  .certificate-card {
    width: 90%;
  }
}

.certificate-image {
  width: 100%;
  height: 250px; /* 固定高度，让图片一样高 */
  object-fit: cover; /* 裁剪多余内容以适配容器 */
  border: 4px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  background-color: white;
}

.certificate-image:hover {
  transform: scale(1.02);
}

.certificate-card:hover {
  transform: translateY(-5px);
}

.certificate-card img {
  max-width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 6px;
  border: 4px solid #e0e0e0;
  margin-bottom: 10px;
}

.certificate-card h3 {
  margin: 10px 0 5px;
  font-size: 1.1rem;
}

.language-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;  /* 如果你希望它靠右 */
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.lang-btn img {
    height: 16px !important;
    width: 22px !important; /* 稍微比正常略胖 */
    object-fit: cover;
    border-radius: 2px;
}

.lang-btn:hover {
    background-color: #f0f0f1;
    border-radius: 4px;
}

.lang-btn.active {
    color: grey;
    border-radius: 4px;
}

.contact-page {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding-top: 0;
  margin-top: 0.2rem;
}

.contact-section {
  margin-bottom: 3rem; /* 段落之间距离 */
}

.contact-section h3 {
  margin-bottom: 0.5rem; /* 标题和正文间距小 */
  font-size: 1.4rem;
  font-weight: bold;
}

.contact-section p {
  margin: 0.3rem 0; /* 每行之间更紧凑 */
  line-height: 1.5;
}

/* 外层容器：固定在右中位置 */
.quick-contact-wrapper {
  position: fixed;
  top: 35%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* 折叠按钮 */
.quick-contact-toggle {
  background-color: #007BFF;
  color: white;
  padding: 8px 12px;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}
.quick-contact-toggle:hover {
  background-color: #0056b3;
}

/* 展开卡片 */
.quick-contact-card {
  display: none;
  width: 260px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-size: 14px;
  margin-top: 10px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.quick-contact-card h4 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 10px;
}

.quick-contact-card p {
  margin: 6px 0;
  text-align: center;
}

.quick-contact-card a {
  color: #007BFF;
  text-decoration: none;
}

.qr-section {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.qr-section div {
  text-align: center;
  width: 48%;
}

.qr-section img {
  width: 100%;
  max-width: 100px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* 可选：响应式（小屏幕隐藏） */
@media (max-width: 768px) {
  .quick-contact-wrapper {
    display: none;
  }
}

.hint {
  font-size: 0.95rem;
  color: #555;
  margin: 8px 0 16px 0;
  text-align: center;
  font-style: italic;
}
