* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  font-size: clamp(12px, 1vw, 16px);
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

body {
  background-color: var(--background-color);
  font-family: "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
  padding: 0;
}

:root {
  --primary-color: #2c3e50;
  --secondary-color: #555555;
  --light-gray: #bdc3c7;
  --background-color: #e6eff4;
  --text-color: #333333;
  --header-background-color: #e6eff4;
  --navbar-background-color: #3a536d;
  --navbar-hover-color: #4a86b8;
  --base-font-size: 1rem;
  --transition-speed: 0.3s;
  --shadow-light: 0 2px 4px rgb(0 0 0 / 0.1);
  --shadow-medium: 0 4px 8px rgb(0 0 0 / 0.1);
  --shadow-heavy: 0 8px 15px rgb(0 0 0 / 0.2);
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --container-width: 1200px;
}

/* 导航栏图标样式 */
.navbar ul li a .nav-icon {
  font-size: 1.2rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  color: currentColor;
  display: inline-block;
}

/* 移除旧的Font Awesome强制字体规则，以便表情符号能正常显示 */

/* 为每个特定的导航图标添加样式 */
.navbar .fa-home:before {
  content: "\f015" !important;
}

.navbar .fa-info-circle:before {
  content: "\f05a" !important;
}

.navbar .fa-th-large:before {
  content: "\f009" !important;
}

.navbar .fa-certificate:before {
  content: "\f0a3" !important;
}

.navbar .fa-cogs:before {
  content: "\f085" !important;
}

.navbar .fa-file-text-o:before {
  content: "\f0f6" !important;
}

.navbar .fa-users:before {
  content: "\f0c0" !important;
}

.navbar .fa-envelope-o:before {
  content: "\f003" !important;
}

/* Header styles based on introduction.css */
.header {
  position: relative;
  z-index: 100;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0;
  width: 100%;
  margin: 0 0;
  border-bottom: 1px solid #d0d0d0;
  background-color: var(--header-background-color);
  color: var(--primary-color);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
}

.header .header-content {
  display: flex;
  align-items: flex-start;     /* 让整体左对齐 */
  justify-content: flex-start;
  flex-direction: column;     /* ★ 改为上下垂直排列，完美贴合线框图 */
  width: 100%;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  position: relative;
}

.header-content .branding {
  position: relative;
  align-items: center;
  display: flex;
  flex-direction: row;
  margin-right: 0;
  width: auto;
  flex-shrink: 0;
  height: auto;
  flex-wrap: wrap;           /* ← ★ 核心：手机屏幕实在放不下时，会把整个Logo块整体挤到下一行 */
  margin-bottom: 0.5rem;
}

.header-content .branding .branding-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin-left: 0.3rem;
  max-width: calc(100% - 80px);
  text-align: center;
}

.header .header-content .branding .logo {
  width: clamp(50px, 3vw, 80px);
  height: auto;
  max-height: 80px;
  margin-right: 0;
  object-fit: contain;
  display: block;
}

.header .header-content .branding-text .visually-hidden {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  color: var(--primary-color);
  line-height: auto;
  margin: 0;
  margin-bottom: 0 !important;
  white-space: nowrap;
  width: 100%;
}

/* 标题样式调整 */
.header .header-content .branding-text h1 {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  color: var(--primary-color);
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;       /* ← ★ 核心：强制“晋德有限公司”必须在同一行，不再换行！ */
  max-width: 100%;
  /* 删除了 white-space: nowrap; 和 text-overflow: ellipsis; */
}

/* Visually hidden class for accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive image styles */
.responsive-img {
  height: auto;
  max-width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.responsive-img.loaded {
  opacity: 1;
}

.header .header-content .branding-text .branding-sub {
  display: block;
  line-height: 1.2;
  width: 100%;
  margin-top: 0.1rem !important;
  text-align: center !important;
  color: #777;
  white-space: nowrap;       /* ← ★ 核心：强制副标题在同一行 */
  max-width: 100%;
  /* 删除了 white-space: nowrap; 和 text-overflow: ellipsis; */
  font-size: clamp(0.7rem, calc(1.5vw + 0.3rem), 1rem);
  letter-spacing: 0.18em;
}


.header .header-content .product-visual img {
  max-width: 250px;
  height: auto;
}

.header .header-content .company-intro {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  padding-top: 0;
  justify-content: center;
  width: 100%;                   /* ★ 关键修改：从 auto 改为 100%，强制占满横栏 */
  min-width: 200px;
  padding: 0 1rem;
  flex: 1;                       /* ★ 核心：让中间的简介文字撑满剩余的全部横向空间 */
  padding-left: 0;
  margin-left: 0;
  padding-left: 0;
  box-sizing: border-box;
}

/* ✅ 新增：让里面的展示图片自己居中 */
.header .header-content .company-intro .product-visual {
  display: flex;
  justify-content: center; /* 横向居中 */
  margin-top: 5px;         /* 与上方文字稍微拉开点距离 */
  order: 99;               /* 确保它在最下面 */
}

.header .header-content .company-intro .intro-text {
  width: 100%;
  max-width: 100%;
  font-size: clamp(0.875rem, 1vw, 1rem);
  letter-spacing: normal;
  margin: 0;
  line-height: auto;
  padding-right: 0 !important;
  white-space: normal !important;
  text-align: left;
  box-sizing: border-box;
  color: #777;
  text-indent: 0.8em;
}

.header .header-content .company-intro .intro-text .product-keyword {
  font-weight: 500;
  color: #2c3e50;
}

.header .header-content .company-intro .intro-text .highlight {
  color: #2c3e50;
  font-weight: 500;
}

.navbar {
  background-color: rgba(58, 83, 109, 0.95);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.1);
  padding: 1em 0;
  transition: all 0.3s ease-in-out;
}

.navbar.active {
  align-items: center;
  background-color: rgb(0 0 0 / 0.8);
  color: #fff;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  width: 100vw;
  z-index: 100;
}

.navbar ul {
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: max-height 0.5s ease;
}

.navbar ul li {
  margin: 0 1em;
  text-align: center;
  border-right: 1px solid rgb(255 255 255 / 0.3);
  padding-right: 1em;
}

.navbar ul li:last-child {
  border-right: none;
}

.navbar ul li a i {
  margin-right: 0.5em;
}

.navbar ul li a {
  border-radius: 5px;
  color: #fff;
  font-size: clamp(0.8rem, 1vw, 1rem);
  padding: 0.5em 1em;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar ul li a:hover,
.navbar ul li a:focus {
  background-color: var(--navbar-hover-color);
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
  color: #fff;
}

.navbar ul li a .icon {
  height: 16px;
  margin-right: 0.5em;
  width: 16px;
  vertical-align: middle;
}

/* 悬停动效 */
.navbar ul li a:hover i {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

/* 导航栏滚动效果 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* 导航栏滚动时的样式 */
.navbar.scrolled {
  background-color: rgba(58, 83, 109, 0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.8em 0;
}

.screen1,
.screen2,
.screen3,
.screen4,
.screen5,
.screen6,
.screen7,
.screen8 {
  width: 98%;
  max-width: 1800px;
  text-align: center;
  margin: 2vh auto;
}

/* 导航栏和banner紧密相连 */
.screen1 {
  width: 100% !important;          /* 覆盖通用的 98%，强制占满 100% */
  max-width: 100% !important;      /* 取消最大宽度限制 */
  margin: 0 auto !important;       /* 移除上下和左右的自动边距 */
  padding-top: 0 !important; /* 移除顶部内边距 */
  overflow-x: hidden;              /* 防止内部元素溢出 */
}


.screen1 .banner {
  display: flex;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  max-height: 650px;
  height: 65vh;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;  /* 制占满全屏宽度 */
}

.screen1 .banner img {
  position: absolute;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease;
  filter: brightness(0.9);
}

#home .banner img.active {
  opacity: 1;
  z-index: 1;
}

.banner-description {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: clamp(0.8rem, 1vw, 1rem);
  text-align: center;
  color: #a5acb0 !important;
  font-weight: 700;
  line-height: 1.5;
  padding: 0.5rem;
  overflow: hidden;
}


.screen1 h2,
.screen2 h2,
.screen3 h2,
.screen4 h2,
.screen5 h2,
.screen6 h2,
.screen7 h2,
.screen8 h2 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1vh;
  margin: 0 auto;
  display: inline-block;
}

.screen1 p,
.screen3 p,
.screen4 p,
.screen5 p,
.screen6 p,
.screen7 p,
.screen8 p {
  text-align: center;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--secondary-color);
  max-width: 60%;
  margin: 1rem auto;
}

.screen2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--background-color);
  text-align: center;
}

#about {
  background-color: var(--background-color);
  padding: 20px 10px;
  text-align: center;
}

#about h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}
#customers p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}
/* 统一“关于我们”、“产品及分类”、“我们的服务”简介文字的样式 */
#about p,
#product-title p,
#our-serve p 
#certificate p
#customers p {
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.8;      /* ★ 统一为 1.8，如果您喜欢更宽松的行距，可以改成 2 */
  color: var(--secondary-color);
  width: 100%;           /* 保持 100% 宽度 */
  max-width: 86%;        /* 统一最大宽度限制 */
  margin: 1.5rem auto;     /* 统一上下边距 */
  box-sizing: border-box;
  word-wrap: break-word;
  word-break: break-word;
}

#about .about-cards .card .card-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--secondary-color);
  margin: 0.5rem auto;
  width: 100%;
  max-width: 95%;
  padding: 0.5rem 0.3rem;
}

.about-description {
  margin-bottom: 2rem;
}

.screen2 .about-title {
  font-size: clamp(1rem, 2vw, 1.6rem);
  margin-bottom: 1rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-title i {
  margin-right: 10px;
  color: var(--secondary-color);
}

.about-title span {
  font-size: 1.2rem;
  color: var(--light-gray);
  margin-left: 10px;
}

.screen2 .about-cards {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 2rem;
  padding: 0 1rem;
  position: relative;
}

.card {
  display: flex;
  flex: 1 1 calc(33.333% - 2.5rem);
  overflow: hidden;
  min-height: auto;
  max-height: none;
  padding-bottom: 15px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1);
  min-width: 240px;
  max-width: 350px;
  flex-direction: column;
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.6s ease;
  will-change: transform, opacity;
  margin: 0.5rem;
  position: relative;
  backface-visibility: hidden;
}

.card.enter {
  transform: translateY(0);
  opacity: 1;
}

.card.hidden {
  opacity: 0;
  transform: translateX(-150px);
  transition: opacity 0.1s ease;
}

.about-cards .card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(120deg, #f5f5f5 25%, #fff 50%, #f5f5f5 75%);
  background-size: 400% 400%;
  animation: loading 1.5s infinite;
  opacity: 0;
}

@keyframes loading {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.card.loaded::before {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 为每个卡片添加不同的延迟 */
.about-cards .card:nth-child(1) {
  transition-delay: 0.1s;
}

.about-cards .card:nth-child(2) {
  transition-delay: 0.2s;
}

.about-cards .card:nth-child(3) {
  transition-delay: 0.3s;
}

.card-content {
  padding: 0.8rem 1rem;
  gap: 0.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  text-align: center;
  transition: transform 0.4s ease;
}

.card-content h3 {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card-content p {
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  line-height: 1.7;
  color: var(--secondary-color);
  margin-bottom: 0.7rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  flex: 1;
}

.card-content .card-link {
  position: relative;
  display: inline-block;
  margin-top: auto;
  padding: 0.5rem 0;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.card-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.card-link:hover::after {
  width: 100%;
}

.card-link:hover {
  color: var(--light-gray);
}

.card-content > *:not(:last-child) {
  margin-bottom: 0.1rem;
}

.card.visible {
  opacity: 1;
  transform: translateX(0);
}

.card.enter {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.card.exit {
  opacity: 0;
  transform: translateX(150px) !important;
  transition-duration: 0.6s;
}

.about-cards .card img {
  width: 100%;
  max-width: 100%;
  height: 150px;
  border-radius: 12px 12px 0 0;
  object-fit: cover;
  flex-shrink: 0;
  object-position: center 25%;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.about-cards .card:hover img {
  transform: scale(1.05);
}

/* 移除重复的.card-content和.card-content h3定义 */

.about-cards .card:hover .card-content {
  transform: translateY(-5px);
}


.section-divider {
  width: 95%;
  max-width: 1800px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(120, 180, 255, 0.3) 50%, transparent 100%);
  margin: 3rem auto;
  box-sizing: border-box;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.section-divider:hover {
  background: linear-gradient(90deg, transparent 0%, rgba(120, 180, 255, 0.5) 50%, transparent 100%);
  height: 4px;
}

.screen3 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#products {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: 70vw;
  height: 70vh;
  margin: 1rem auto;
  padding: 0;
  align-items: stretch;
  background-color: #fff;
}

#product-title {
  margin-top: 4rem;
  margin-bottom: 2rem;
}



#product-title span {
  font-size: 1.2rem;
  color: var(--light-gray);
  margin-left: 10px;
}

#product-title .sidebar {
  position: relative;
  flex: 1 1 15%;
  max-width: 25%;
  height: 100%;
  overflow-y: auto;
  overflow-x: auto;
  background-color: #fff;
  margin: 0;
  padding: 0;
  border: none;
  transition: all 0.3s ease;
}

#product-title .sidebar.collapsed {
  display: none;
}

.container .table-content {
  flex: 1;
  margin: 0;
  padding: 0;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: auto;
  min-width: 75%;
}

.table-container {
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  table-layout: fixed;
  margin: 0;
  padding: 0;
}

#product-title .tdheader {
  display: flex;
  justify-content: space-around;
  align-items: center;
  border: 1px solid #ddd;
  padding: var(--spacing-lg);
  background-color: #f9f9f9;
  border-top: 2px solid #ddd;
  border-right: 2px solid #ddd;
  box-shadow: 0 -2px 5px 0 #ddd;
}

#product-title .breadcrumb {
  flex-grow: 1;
  text-align: center;
  margin: 0;
  font-size: 0.875rem;
  color: #065bb6;
}

#product-title .image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.5rem auto;
  padding: 0;
  width: 100%;
  max-width: 800px;
  background-color: #fff;
  gap: 0.5rem;
  overflow: hidden;
}

#product-title .image-frame {
  flex: 0 1 100%;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid #ddd;
  padding: 5px;
  text-align: center;
  margin-top: 0;
}


#product-title .image-frame img {
  flex: 0 1 100%;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

#product-title .image-frame p {
  line-height: 0.8;
  font-size: 0.75rem;
  margin: 2px 0;
}

#product-title .scroll-container {
  border: 1px solid #ddd;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
  overflow-y: auto;
  overflow-x: auto;
  padding: 0;
  height: 100%;
}

table {
  flex: 1;
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  table-layout: fixed;
}

th,
td {
  border: 1px solid #ddd;
  padding: 5px;
}

th {
  background-color: #f2f2f2;
  font-size: 0.875rem;
}

ul {
  padding: 0;
  margin-left: 0.5rem;
  margin-right: 0;
  margin-bottom: 0;
  list-style: none;
  border: none;
  text-align: left;
}

#product-title .nav-item > .toggle {
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: #065bb6;
}

#product-title .sub-menu > li {
  margin: 10px 0;
  list-style-type: circle;
  padding-left: 20px;
}

#product-title .sub-menu > li > .toggle {
  font-size: 0.875rem;
  font-weight: 400;
  color: #065bb6;
}

#product-title .sub-menu > li > ul > li {
  font-size: 0.75rem;
  margin: 12px 0;
  cursor: pointer;
  color: #333;
  list-style: disc;
}

#product-title .nav-item {
  list-style: none;
  margin: 2.2rem 0;
  border: none;
}

#product-title .toggle {
  cursor: pointer;
  color: #333;
}

#product-title .sub-menu {
  display: none;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  overflow: hidden;
  opacity: 0;
  list-style-type: none;
}

#product-title .sub-menu.hidden {
  max-height: 0;
  opacity: 0;
}

#product-title .sub-menu:not(.hidden) {
  opacity: 1;
}

#product-title .hidden {
  display: none;
}

#product-list-btn {
  margin: 0;
  display: block;
  cursor: pointer;
  color: #044d9a;
}

#product-title .collapsed {
  display: none;
}

#product-title .sub-items {
  display: none;
  list-style-type: none;
  padding-left: 20px;
  margin: 0;
  background-color: #e6eff4;
  border-radius: 5px;
}

#product-title .nav-item:hover .sub-items {
  display: block;
}

#product-title .sub-items li {
  background-color: #e6eff4;
  padding: 0.5em;
  border: 1px solid #ccc;
  margin: 0.3em 0;
  border-radius: 0.5em;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 0.75rem;
  line-height: 1.1;
}

#product-title .sub-items li:hover {
  background-color: #d0d0d0;
}

.screen4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#certificate .highlighted-text {
  color: red;
}

#certificate h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 2rem;
}

#certificate p + p {
  margin-top: 0.5rem;
}

.section-divider + #certification {
  margin-top: 0;
}

#certificate {
  text-align: center;
  padding: 0 0;
  max-width: 96%;
  margin-top: 2rem;
}

#certificate span {
  font-size: 1.2rem;
  color: var(--light-gray);
  margin-left: 10px;
}

.certificate-content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0.75rem auto;
  gap: 20px;
  box-shadow: var(--shadow-medium);
  padding: 1.2rem;
}

.certificate-container {
  flex: 0 0 50%;
  margin-right: 0.5rem;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.certificate-container img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 800px;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
}

.certificate-container.start-animation {
  opacity: 1;
  transform: scale(1);
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.text-list-container {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 10px;
}

.text-list {
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.text-list li {
  margin: 0.3rem 0;
  transition: opacity 0.5s linear;
  list-style-type: disc;
  font-size: 0.875rem;
  text-indent: -1rem;
  padding-left: 1.5rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0 0 0 / 0.5);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background-color: #fff;
  margin: 20% auto;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #ccc;
  width: 60%;
  max-width: 400px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
  text-align: center;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s;
}

.close-button:hover,
.close-button:focus {
  color: #333;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.certificate-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  padding: var(--spacing-md);
}

.certificate-images img {
  width: 120px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.certificate-images img:hover {
  transform: scale(1.1);
}

.screen5 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

#serve {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.services {
  width: 98%;                  /* 从 92% 改为 98%，与客户案例保持一致宽度 */
  max-width: 1800px;           /* 加上大屏限制 */
  margin: 0 auto;
  padding: 2rem 0 0 0;
  background-color: #f9f9f9;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
}


.services-images-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.2);
  width: 100%;
  max-width: 100%;
  justify-items: stretch;
  align-content: stretch;
  align-items: stretch;
}

.services-images-grid img {
  height: 220px;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
}

.service-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-image img {
  width: 100%;
  max-width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease;
}

.service-image img:hover {
  transform: scale(1.05);
}

#our-serve span {
  font-size: 1rem;
  color: var(--light-gray);
  margin-left: 10px;
}

.screen6 {
  width: 98%;                   /* ★ 从 92% 改成 98%，拓展宽度 */
  max-width: 1800px;            /* ★ 从 100% 改成 1800px，防止超宽屏无限制拉伸 */
  justify-content: center;
  align-items: center;
}

#projects3 span {
  font-size: 1.2rem;
  color: var(--light-gray);
  margin-left: var(--spacing-sm);
}

#projects3 p {
  font-size: 1.1rem;
  width: 85%;
  max-width: 90%;
}

.carousel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.875rem 0.625rem;
  background: #f9f9f9;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
  width: 100%;           /* ★ 新增：强制其撑满父容器宽度 */
  max-width: 98%;        /* ★ 设定为 98% 限制 */
  margin: 0 auto;
}

.carousel-slide {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 90%;
  height: auto;
}

#case1 p,
#case2 p,
#case3 p {
  font-size: 1.1rem;
}

.project-case {
  min-width: 100%;
  position: absolute;
  padding: 0 0.5rem;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  object-fit: contain;
}

.project-case.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  object-fit: contain;
}

.carousel-slide p {
  width: 90%;
  margin: 1rem auto;
  line-height: 1.8;
  text-align: justify;
  font-size: 1.2rem;
  color: #555;
}

.project-case h4 {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 1rem;
  margin-top: 1rem;
  font-weight: 700;
}

.project-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.project-images img {
  width: 100%;
  max-width: 100%;
  height: clamp(150px, 20vh, 300px);
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.1);
}

.project-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgb(0 0 0 / 0.2);
}

.carousel-indicators {
  text-align: center;
  margin-top: 1rem;
}

#case3 ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  text-align: left;
  display: inline-block;
}

#case3 ul li {
  position: relative;
  padding-left: 25px;
  line-height: 2.2;
}

#case3 ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
  color: green;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 5px;
  background-color: #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #333;
}

.screen7 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0.5rem;
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
  margin: 0 auto;
}

.more-customers {
  max-width: 100%;
  width: 92%;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.more-customers h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  line-height: 1.5;
  padding: auto;
}

#customers p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.customer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;                /* 增大Logo之间的间距，留白更舒服 */
  max-width: 98%;
  width: 100%;
  margin: 1.7rem auto;
  padding: 1.5rem 2rem;     /* 调整内边距 */
  align-items: center;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 12px;      /* 圆角增大，更加柔和 */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); /* 阴影调浅，高级感 */
  transition: all 0.3s ease;
}

.customer-logos img {
  width: 130px;             /* ★ 核心修改：从 80px 放大到 130px */
  height: auto;             /* 自适应高度，保持比例 */
  object-fit: contain;
  /*background-color: #f7f7f7;*/
  background-color: #fdfdfd;
  padding: 16px;            /* 给图片内部加入留白，更精致 */
  border-radius: 12px;
  border: 1px solid #f0f0f0; /* 加一层极淡的边框，提升质感 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.customer-logos img:hover {
  transform: translateY(-6px) scale(1.05); /* 稍微上浮并轻微放大 */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: #d8d8d8;
}

.screen8 {
  width: 98%;                  /* 从 92% 改为 98% */
  max-width: 1800px;           /* 限制最大宽度 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
}

.contact-us {
  text-align: center;
  width: 100%;
  max-width: 98%;
  margin: 0 auto;
  padding: 1rem;
}

.contact-us h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.9rem;
}

#screen-eight .contact-us p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.6rem;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f0f8ff;
  border: 1px solid #d1e0e5;
  border-radius: 12px;
  padding: 1.5rem 2rem;     /* ★ 增加左右内边距 */
  width: 95%;               /* ★ 宽度从 90% 增宽到 95% */
  max-width: 1200px;        /* ★ 最大宽度从 900px 扩大到 1100px */
  height: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.contact-card h3 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-top: 0;
  text-align: center;
  margin-bottom: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.8rem;
}

#contact .contact-cards .contact-card p {
  font-size: 1rem;
  color: #34495e;
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  line-height: 1.8;
  display: block; /* ★ 改为普通文本流布局，让长地址自然换行 */
}

/* 让图标和文字垂直居中对齐 */
#contact .contact-cards .contact-card p strong {
  display: inline-block;
  vertical-align: middle;
}

.contact-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-note {
  color: #2c3e50;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.footer {
  width: 100vw;
  background-color: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.75rem;
  line-height: 1.6;
  box-shadow: 0 -2px 5px rgb(0 0 0 / 0.1);
  margin: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top a {
  font-size: 0.9rem;
  color: #74640b;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.footer-top a:hover {
  color: #feec27;
  transform: scale(1.2);
}

.footer-top {
  margin-bottom: 10px;
}

.divider {
  width: 90%;
  height: 1px;
  background-color: #7f8c8d;
  margin: 10px auto;
  opacity: 0.5;
}

.footer-bottom {
  font-size: 0.75rem;
  color: #bdc3c7;
}
