/* =========================================
   Global & Reset
   ========================================= */
:root {
  --primary-color: #008f5d; /* 核心绿 */
  --primary-dark: #00603e;
  --text-color: #333;
  --light-text: #666;
  --bg-gray: #eefbf5;
  --bg-light-green: #f4fcf8; /* 示范工程文字背景 */
  --white: #ffffff;
  --border-color: #e5e5e5;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica,
    Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  font-size: 14px;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 80px 0;
}
.bg-gray {
  background-color: var(--bg-gray);
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #111;
}
.sub-title {
  color: var(--primary-color);
  font-size: 16px;
  margin-bottom: 40px;
  font-weight: 500;
}

/* 通用头部Flex布局 */
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}
.section-header-flex .section-title {
  margin-bottom: 0;
}

/* 按钮组 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  gap: 8px;
}
.btn-outline-green {
  display: inline-block;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent; /* 或者 #fff */
  padding: 6px 18px;
  font-size: 12px;
  border-radius: 20px;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-outline-green:hover {
  background: var(--primary-color);
  color: #fff;
}
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  background: transparent;
}
.btn-outline:hover {
  background: #fff;
  color: var(--primary-color);
}
.btn-green {
  background: var(--primary-color);
  color: #fff;
  border: 1px solid var(--primary-color);
}
.btn-green:hover {
  background: var(--primary-dark);
}
.btn-outline-sm {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  padding: 6px 18px;
  font-size: 12px;
  border-radius: 20px;
}
.btn-outline-sm:hover {
  background: #fff;
  color: var(--primary-color);
}
.btn-border {
  border: 1px solid #ccc;
  color: #666;
  padding: 6px 20px;
  font-size: 12px;
  border-radius: 20px;
}
.btn-border:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.link-btn {
  margin-top: auto;
  border: 1px solid var(--border-color);
  color: #666;
  padding: 6px 20px;
  border-radius: 4px;
  font-size: 12px;
  transition: all 0.3s;
}
.link-btn:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* =========================================
   Header
   ========================================= */
.header {
  background: #001a14;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo img {
  height: 36px;
  width: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  color: #fff;
}
.brand-text .cn {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}
.brand-text .en {
  font-size: 10px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav ul {
  display: flex;
  gap: 30px;
}
.nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}
.nav a.active,
.nav a:hover {
  color: #fff;
  border-bottom-color: var(--primary-color);
}
.mobile-menu-btn {
  display: none;
  color: #fff;
  font-size: 24px;
}

/* =========================================
   Hero Banner
   ========================================= */
.hero {
  background: url("images/hero-bg.png") no-repeat center center/cover;
  height: 650px;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
}
/* 修复：内容完全居中 */
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  /* ⬇️ 修改1：改为左对齐 */
  text-align: left;
  width: 100%;
  /* 增加左侧 padding，避免贴边，根据设计图大概在容器左侧 10% 位置 */
  padding-left: 50px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 按钮左对齐 */
}
.hero-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 40px;
  line-height: 1.2;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.line-1 {
  margin-bottom: 5px;
}
.line-2 {
  margin-left: 1.2em;
}

/* ⬇️ 修改3：关键字样式 (更大、更亮) */
.hero .highlight {
  color: #00e07d;
  font-size: 56px; /* 字号放大 */
  margin: 0 8px; /* 增加左右间距 */
  vertical-align: -4px; /* 稍微调整垂直对齐 */
  text-shadow: 0 0 15px rgba(0, 224, 125, 0.5);
}

/* 按钮样式微调 */
.hero .btn-outline {
  padding: 10px 35px;
  font-size: 15px;
  border-radius: 30px;
  margin-top: 20px; /* 按钮与文字的距离 */
  border: 1px solid rgba(255, 255, 255, 0.7);
}

/* =========================================
   Brand Intro
   ========================================= */
.brand-intro .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.brand-intro-content {
  flex: 0 0 40%; /* 固定占 40% */
  min-width: 300px; /* 防止太窄 */
}
.brand-intro-image {
  flex: 1; /* 占据剩余所有空间 (约 60%) */
  display: flex;
  justify-content: flex-end; /* 图片靠右对齐 */
}
.brand-intro-image img {
  width: 100%;
  height: auto;
  /* 增加一点阴影提升质感 (可选) */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}
.intro-text {
  margin-bottom: 30px;
  color: #555;
  font-size: 15px;
  line-height: 1.8;
  text-align: justify;
}

/* =========================================
   Software Products - 新版 (4列等宽)
   ========================================= */

/* 1. 网格布局：4列等宽 */
.software-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  /* 移除固定高度，让内容自适应 */
  height: auto;
}

/* 2. 统一卡片样式 */
.software-card {
  background: var(--primary-color); /* 绿色背景 */
  border-radius: 6px;
  padding: 25px; /* 内部留白 */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 内容分布对齐 */
  color: #fff;
  transition: transform 0.3s;
  /* 确保卡片高度一致 */
  height: 100%;
}

.software-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* 标题 */
.software-card h3 {
  font-size: 18px;
  font-weight: normal;
  text-align: center; /* 居中对齐 */
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* 图片容器 */
.software-card img {
  width: 100%;
  height: 140px; /* 固定图片高度，保证整齐 */
  object-fit: cover; /* 保持比例填满 */
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: #fff; /* 防止透明图显示底色 */
}

/* 描述文字 */
.software-card p {
  font-size: 12px;
  line-height: 1.8;
  text-align: justify; /* 两端对齐 */
  opacity: 0.95;
  margin-bottom: 25px;
  flex-grow: 1; /* 撑开空间，把按钮推到底部 */

  /* 限制行数，防止文字过多导致卡片高度不一 */
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 卡片内部按钮样式 */
.btn-outline-card {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto; /* 水平居中 */
  width: 140px;
  padding: 8px 0;
  border: 1px solid #fff;
  color: #fff;
  font-size: 13px;
  border-radius: 20px;
  transition: all 0.3s;
}

.btn-outline-card:hover {
  background: #fff;
  color: var(--primary-color);
}

/* =========================================
   Hardware Products - 图片完整显示版
   ========================================= */

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.hard-card {
  grid-column: span 3;
  background: #f4fcf8; /* 浅绿背景 */
  border: none;
  border-radius: 6px;
  padding: 20px;

  /* ⬇️ 修改1：适当增加最小高度，给图片更多空间 */
  min-height: 200px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.3s;
  overflow: hidden;
}

.hard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* 绿色标题卡片保持不变 */
.green-card {
  background: var(--primary-color);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
}
.green-card h3 {
  color: #fff;
  margin: 0;
}

/* 内部结构 */
.hard-info {
  display: flex;
  flex-direction: column;
  /* 确保标题在顶，图片在底 */
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.hard-info h4 {
  font-size: 15px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
  text-align: left;
  /* 防止标题过长换行挤压图片空间 */
  flex-shrink: 0;
}

.hard-info img {
  width: 100%;
  /* ⬇️ 修改2：增加图片容器高度 */
  height: 120px;

  /* ⬇️ 核心修改：改为 contain，保证图片完整显示不被裁切 */
  object-fit: contain;

  border-radius: 4px;

  /* ⬇️ 修改3：纯白背景 + 少量内边距，像画框一样展示不规则图片 */
  background: #fff;
  padding: 10px; /* 增加内边距，防止图片顶边 */
  box-sizing: border-box;
}

/* 宽卡片 */
.hard-card.wide-3-col {
  grid-column: span 4;
}

/* 针对宽卡片的微调 (可选) */
.hard-card.wide-3-col img {
  /* 宽卡片图片通常是横向的，可以不用改，contain 会自动适应 */
}

/* =========================================
   Tech Services
   ========================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: #fff;
  overflow: hidden;
  border-radius: 6px;
  transition: all 0.3s;
  border: 1px solid var(--primary-color); /* 绿色边框 */
  box-shadow: 0 2px 10px rgba(0, 143, 93, 0.05);
}
.service-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #f0f0f0;
}
/* 针对最后一个服务卡片的特殊处理 */
.service-grid .service-card:last-child .service-info h4 {
  font-size: 12px;
  color: #333;
  font-weight: bold;

  /* ✅ 允许换行 */
  white-space: normal;
  line-height: 1.5;

  /* ✅ 关键修改：取消固定高度，改为最小高度 */
  height: auto;
  min-height: 34px; /* 保持和其他卡片视觉重心一致 */

  /* Flex 布局确保文字居中 */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* 增加一点下边距，防止挨着下面的英文 */
  margin-bottom: 8px;

  /* 移除可能存在的溢出隐藏 */
  overflow: visible;
  text-overflow: clip;
}

/* 稍微调整最后一个卡片的英文小字，避免太挤 */
.service-grid .service-card:last-child .service-info span {
  margin-top: 4px;
}
.service-info.centered {
  text-align: center;
  background: #fff;
  padding: 20px;
  height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.service-info h4 {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
}
.service-info span {
  font-size: 10px;
  color: #777;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================
   Partners (加盟合作)
   ========================================= */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.partner-card {
  background: #fff;
  border-radius: 6px;
  transition: all 0.3s;
  border: 1px solid var(--primary-color); /* 绿色边框 */
  padding: 35px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.partner-card:hover {
  box-shadow: 0 5px 15px rgba(0, 143, 93, 0.1);
}

.partner-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 20px;
}
.partner-card h4 {
  color: var(--primary-color);
  font-size: 18px;
  margin-bottom: 15px;
}
.partner-card p {
  font-size: 13px;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
  flex-grow: 1;
}

/* =========================================
   Projects (示范工程)
   ========================================= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  border-bottom: 3px solid var(--primary-color); /* 底部绿条 */
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* 浅绿文字背景 */
.p-info-light {
  background-color: var(--bg-light-green); /* #f4fcf8 */
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.p-info-light h4 {
  color: var(--primary-color);
  font-size: 16px;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-info-light p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background: #051a15;
  color: #aebebb;
  padding: 80px 0 30px;
  font-size: 13px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 60px;
  gap: 20px;
}

.footer-col {
  flex: 1;
  min-width: 120px;
}
.footer-col h4 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 14px;
  font-weight: 500;
}
.footer-col ul li {
  margin-bottom: 14px;
}
.footer-col a:hover {
  color: var(--primary-color);
}

.brand-col {
  flex: 0 0 200px;
  margin-right: 30px;
}
.footer .brand-logo img {
  height: 42px;
}
.footer .brand-text .cn {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}
.footer .brand-text .slogan {
  font-size: 12px;
  color: #889999;
  margin-top: 2px;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  color: #667777;
  font-size: 12px;
}

/* =========================================
   Contact Modal - 科技商务风格 (修正版)
   ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* 加深遮罩，突出弹窗 */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px); /* 增强毛玻璃 */
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 500px;
  background: #fff;
  border-radius: 8px; /* 圆角稍微方一点，更显严谨 */
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #fff;
}

/* 顶部区域：改为深绿色背景 */
.modal-header {
  /* 使用网站主色调 */
  background: linear-gradient(135deg, #00221b 0%, #004433 100%);
  padding: 45px 40px 35px;
  text-align: center;
  color: #fff;
  border-bottom: 3px solid var(--primary-color); /* 底部亮绿条装饰 */
}

.modal-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.modal-brand img {
  height: 50px;
  width: auto;
  margin-bottom: 5px;
  /* 如果 Logo 是黑色的，可以在这里加滤镜反白，如果是彩色的则不需要 */
  /* filter: brightness(0) invert(1); */
}

.modal-brand .cn {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}

.modal-brand .slogan {
  font-size: 12px;
  opacity: 0.6;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 5px;
  font-family: sans-serif;
}

/* 信息列表区 */
.modal-body {
  padding: 30px 50px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row .label {
  color: #888;
  font-weight: 500;
}

.contact-row .value {
  color: #333;
  font-weight: 600;
  text-align: right;
}

/* 手机号高亮：改为绿色 */
.contact-row .value.highlight {
  color: var(--primary-color); /* #008f5d */
  font-size: 18px;
  font-weight: 700;
}

/* 底部按钮区 */
.modal-footer {
  padding: 0 50px 40px;
  text-align: center;
}

.modal-footer .btn-green {
  width: 100%;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px; /* 按钮也方一点 */
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 143, 93, 0.3); /* 绿色阴影 */
}

.modal-footer .btn-green:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
  .hardware-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hard-card,
  .hard-card.wide-3-col {
    grid-column: span 1;
  }
  .software-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-card {
    margin-right: 0;
    min-height: 300px;
  }
  .small-card {
    height: 200px;
  }
  .small-card .vertical-text {
    writing-mode: horizontal-tb;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .small-card h3 {
    margin: 5px 0;
    letter-spacing: 1px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .brand-intro .container {
    flex-direction: column;
  }
  .brand-intro-content {
    flex: 100%;
    width: 100%;
  }
  .brand-intro-image {
    flex: 100%;
    width: 100%;
    margin-top: 30px;
  }
  .software-grid {
    grid-template-columns: 1fr; /* 手机单列 */
  }
  .software-card img {
    height: auto; /* 手机上图片自适应高度 */
    max-height: 200px;
  }
  .service-grid,
  .partner-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
  .service-card.wide {
    grid-column: span 1;
  }
  .footer-content {
    flex-direction: column;
    gap: 40px;
  }
}

/* =========================================
   Product Detail Page (产品详情页)
   ========================================= */
.product-detail-page {
  padding: 60px 0;
  background-color: #fff;
}

/* 1. 顶部区域：轮播图 + 信息 */
.pd-header-section {
  display: flex;
  gap: 50px;
  margin-bottom: 80px;
}

/* 轮播图 */
.pd-gallery {
  width: 500px;
  flex-shrink: 0;
}
.swiper {
  width: 100%;
  height: 100%;
}
.mySwiper2 {
  height: 400px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 10px;
}
.mySwiper2 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f9f9f9;
}
.mySwiper {
  height: 80px;
  box-sizing: border-box;
  padding: 0;
}
.mySwiper .swiper-slide {
  width: 25%;
  height: 100%;
  opacity: 0.4;
  cursor: pointer;
  border: 1px solid #eee;
  border-radius: 4px;
}
.mySwiper .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--primary-color);
}
.mySwiper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 右侧信息 */
.pd-info {
  flex: 1;
}
.pd-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #111;
}
.pd-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}
.pd-meta {
  background: #f4fcf8; /* 浅绿背景 */
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 30px;
}
.meta-item {
  display: flex;
  margin-bottom: 10px;
  font-size: 14px;
}
.meta-item:last-child {
  margin-bottom: 0;
}
.meta-item .label {
  color: #888;
  width: 80px;
}
.meta-item .value {
  color: #333;
  font-weight: 500;
}

.btn-lg {
  padding: 15px 40px;
  font-size: 16px;
  width: 100%;
  max-width: 300px;
}

/* 2. 详情内容布局 */
.pd-content-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.pd-main {
  flex: 1;
}
.pd-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.pd-section {
  margin-bottom: 60px;
}
.section-title-sm {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 25px;
  padding-left: 12px;
  border-left: 4px solid var(--primary-color);
  line-height: 1;
}

.pd-text p {
  margin-bottom: 20px;
  color: #555;
  font-size: 15px;
  line-height: 1.8;
  text-align: justify;
}

/* 产品特点列表 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.feature-item h4 {
  font-size: 16px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
/* 添加一个小圆点装饰 */
.feature-item h4::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  margin-right: 10px;
}
.feature-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* 规格参数表格 */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #eee;
}
.specs-table th,
.specs-table td {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 14px;
}
.specs-table th {
  background-color: #f9f9f9;
  color: #333;
  width: 30%;
  font-weight: 600;
}
.specs-table td {
  color: #555;
}

/* 侧边栏推荐 */
.pd-sidebar h3 {
  font-size: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  transition: transform 0.3s;
}
.sidebar-item:hover {
  transform: translateX(5px);
}
.sidebar-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 4px;
  margin-right: 15px;
}
.sidebar-item span {
  font-size: 14px;
  color: #333;
}

/* 响应式 */
@media (max-width: 1024px) {
  .pd-header-section {
    flex-direction: column;
  }
  .pd-gallery {
    width: 100%;
  }
  .pd-content-layout {
    flex-direction: column;
  }
  .pd-sidebar {
    width: 100%;
    margin-top: 40px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

