/* Reset and general styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #64b0ff; /* Updated Main background color */
}
a {
    text-decoration: none;
    color: inherit;
}
ul, ol {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
}

/* Page container for the left-right layout on desktop */
.page-container {
    width: 100%;
    background-color: #64b0ff; /* Updated to match body */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    width: 100%;
    background-color: #2A59C2; /* New header background color */
    padding: 20px 0;
}
.header-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 50px;
}
.contact-info h1 {
    font-size: 1.5rem;
    color: #fff; /* Adjusted for contrast with new background */
}

/* Mobile menu button */
.open-menu {
    display: none; /* Hidden on desktop */
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 20px;
    transition: all 0.3s ease-in-out;
}
.open-menu i {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}
/* 当菜单按钮处于活动状态时，将汉堡图标转换为 "X" */
.open-menu.active i:nth-child(2) {
    opacity: 0; /* 隐藏中间的线条 */
}
.open-menu.active i:first-child {
    transform: translateY(11px) rotate(45deg); /* 旋转并移动顶部的线条 */
}
.open-menu.active i:last-child {
    transform: translateY(-11px) rotate(-45deg); /* 旋转并移动底部的线条 */
}

/* Main Layout: Left-Right Columns */
.main-layout {
    display: flex;
    flex: 1;
    width: 100%;
    margin: 20px auto;
    padding: 0 20px;
    gap: 20px;
}

/* Left Column / Sidebar */
.sidebar {
    width: 250px;
    background-color: #326BFB; /* Updated background color */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}
.main-menu {
    margin-bottom: 30px;
}
.menu-list {
    display: flex;
    flex-direction: column;
}
.menu-item {
    position: relative;
    padding: 10px 0;
    border-bottom: 1px solid #4D81FB; /* Adjusted border color */
}
.menu-item a {
    padding: 10px 15px;
    display: block;
    transition: all 0.3s;
    font-weight: bold;
    color: #fff; /* Adjusted text color for new background */
}
.menu-item:hover > span a, .menu-item.aon a {
    background-color: #1A3B8A; /* Adjusted hover background color */
    color: #fff;
    border-radius: 5px;
}
.menu-item i {
    display: block;
    font-style: normal;
    font-size: 0.8rem;
    color: #E1E9F5; /* Adjusted text color for new background */
}
.menu-item:hover i {
    color: #fff;
}

/* -----  Modified Sub-Menu Styling ----- */
.sub-menu {
    padding-left: 20px;
    margin-top: 10px;
    display: none;
    background-color: #4D81FB; /* Updated light blue background for submenu */
    border-radius: 5px;
    border: 1px solid #64b0ff; /* Adjusted border color */
    padding: 10px;
}
.menu-item.has-sub:hover .sub-menu {
    display: block;
}
.category {
    margin-bottom: 10px;
    background-color: #64b0ff; /* Adjusted background color */
    border-radius: 5px;
    border: 1px solid #84c0ff; /* Adjusted border color */
}
.category > a {
    font-weight: bold;
    padding: 10px 15px;
    display: block;
    color: #fff;
    border-bottom: 1px solid #84c0ff;
}
.category > a:hover {
    background-color: #1A3B8A;
    color: #fff;
    border-radius: 5px 5px 0 0;
}
.subcategory {
    padding: 10px 15px;
    border-left: 3px solid #1A3B8A; /* Adjusted border color */
    margin-top: 5px;
}
.subcategory a {
    padding: 5px 0;
    display: block;
    font-weight: normal;
    color: #fff;
    transition: color 0.3s;
}
.subcategory a:hover {
    color: #1A3B8A;
    background-color: transparent;
}
/* ------------------------------------- */

/* Fixed Contact Buttons on Desktop */
.fixed-contact-buttons {
    position: sticky;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: #4D81FB; /* Adjusted background color */
    border-radius: 8px;
}
.button-item, .top-button {
    background-color: #1A3B8A;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* ----- 新增：侧边栏频道模块样式 ----- */
.pindao-section {
    margin-top: 20px;
    background-color: #4D81FB; /* 频道区域背景色 */
    padding: 15px;
    border-radius: 8px;
}
.pindao_title {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #64b0ff;
}
.pindao_title h2 {
    font-size: 1.2rem;
    color: #fff;
}
.pindao-section-items-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-around;
}
.pindao-section-items-grid li {
    width: calc(50% - 5px); /* 每行两个 */
    text-align: center;
    background-color: #64b0ff;
    border-radius: 5px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}
.pindao-section-items-grid li:hover {
    background-color: #1A3B8A;
}
.item-text a {
    display: block;
    padding: 10px 5px;
    font-weight: bold;
    color: #fff;
}
.item-text span {
    font-size: 0.9rem;
}
/* ------------------------------------ */

/* Right Column / Main Content */
.main-content {
    flex: 1;
    background-color: #326BFB; /* Updated background color */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    color: #fff; /* Adjusted text color for new background */
}

/* Shared Section Styles */
.content-section {
    margin-bottom: 40px;
}
.section-title {
    text-align: center;
    margin-bottom: 30px;
}
.section-title h2 {
    font-size: 2rem;
    color: #fff; /* Adjusted color for new background */
}
.section-title p {
    font-size: 1rem;
    text-transform: uppercase;
    color: #E1E9F5; /* Adjusted for contrast */
}

/* ----- 重写后的产品列表样式（.product-list） ----- */
.product-list-container {
    padding: 20px;
    background-color: #4D81FB; /* 容器背景色 */
    border-radius: 8px;
}
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.product-list li {
    /* 每个产品卡片的样式 */
    width: calc(25% - 15px);
    background: #b8d9f8; /* 更改为浅蓝色，提供更好的对比度 */
    border-radius: 12px; /* 更大的圆角 */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 柔和的阴影 */
}
.product-list li:hover {
    /* 悬停效果 */
    transform: translateY(-8px) scale(1.02); /* 向上浮动并略微放大 */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); /* 更明显的阴影 */
}

/* 新增：居中 .li-inner 里面的内容 */
.li-inner {
    display: flex;
    flex-direction: column;
    align-items: center; /* 水平居中 */
    text-align: center; /* 文本居中 */
    padding: 20px 15px;
}

.product-item img, .li-inner .pic a img {
    height: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.product-list li:hover .li-inner .pic img {
    transform: scale(1.05); /* 悬停时图片微放大 */
}
.word h3 {
    font-size: 1.1rem; /* 字号略大 */
    color: #333; /* 调整为更深的颜色，确保在白色背景下可见 */
    margin-top: 15px;
    font-weight: bold;
}
/* ------------------------------------- */

/* Industry Application Section */
.application-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.application-list li {
    width: calc(25% - 15px);
}
.application-item {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.application-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 59, 138, 0.8); /* Adjusted background color */
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 1rem;
}

/* Partner Section */
.partner-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* Add this line to center the list items */
}
.partner-list li {
    width: calc(20% - 16px);
    text-align: center; /* Added to center content within the list item */
}
.partner-list img {
    border: 1px solid #D1E1F5;
    border-radius: 8px;
    padding: 10px;
    background-color: #fff;
}

/* Advantages Section */
.advantages-list {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}
.advantage-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background-color: #4D81FB; /* Adjusted background color */
}
.advantage-item a {
    color: #fff; /* Adjusted text color for new background */
}
.advantage-item p.description {
    color: #E1E9F5;
}
.advantage-item img {
    margin: 0 auto 15px;
    height: 60px;
}

/* News and Updates */
.news-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.news-column {
	border: 1px solid rgb(233, 236, 239);
    border-radius: 8px;
    overflow: hidden;
    background-color:#4D81FB;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	padding: 20px;
}
.news-column h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #fff; /* Adjusted border color */
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #fff;
}
.news-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #64b0ff; /* Adjusted border color */
	overflow: hidden;
}
.news-list li a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
    color: #fff;
}
.news-list li time {
    color: #E1E9F5;
}

/* Footer */
.footer {
    width: 100%;
    background-color: #1A3B8A; /* New footer background color */
    color: #fff;
    padding-top: 40px;
}
.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px 30px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #444;
}
.contact-info-footer h3 {
    color: #64b0ff; /* Adjusted color for new theme */
}

/* Added style for the WeChat QR code to make it smaller */
.wechat-code {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}
.wechat-code img {
    width: 100%;
    height: 100%;
    display: block;
}

.copyright {
    background-color: #111;
    padding: 15px 0;
    text-align: center;
}
.friendly-links a {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .open-menu {
        display: flex; /* Display the button on mobile */
    }
    /* 在移动端隐藏联系信息 */
    .contact-info {
        display: none;
    }
    .sidebar {
        width: 100%;
        position: fixed; /* 使用fixed定位确保菜单在滚动时保持在视图内 */
        top: 88px; /* Position below the header */
        left: 0;
        transform: translateX(-100%); /* Initially off-screen */
        transition: transform 0.3s ease-in-out;
        z-index: 10;
        border-radius: 0;
        box-shadow: none;
        height: calc(100vh - 88px); /* Full height minus header */
        overflow-y: auto; /* Enable scrolling for long content */
    }
    .sidebar.active {
        transform: translateX(0); /* Slide into view */
    }
    .main-layout {
        flex-direction: column;
        margin: 0;
        padding: 0;
    }
    .main-content {
        border-radius: 0;
        box-shadow: none;
        margin-top: 20px;
    }
    .fixed-contact-buttons {
        display: none;
    }
    .header-content {
        flex-direction: row;
        gap: 10px;
        justify-content: space-between;
    }
    .main-menu {
        margin: 0;
    }
    .menu-list {
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .menu-item {
        width: 100%;
        border-bottom: 1px solid #4D81FB;
        text-align: left;
    }
    .menu-item a {
        padding: 15px 10px;
    }
    .sub-menu {
        position: static;
        padding-left: 20px;
        text-align: left;
    }
    .product-list li, .application-list li, .partner-list li, .pindao-section-items-grid li {
        width: calc(50% - 10px);
    }
    .news-columns {
        flex-direction: column;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .footer-nav {
        flex-direction: column;
        gap: 20px;
    }
    .footer-nav-column h4, .footer-nav-column a {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }
    .product-list li, .application-list li, .partner-list li, .pindao-section-items-grid li {
        width: 100%;
    }
}
/*
 * ----------------------------------------------------
 * 整体页面容器样式 (.product-con)
 * ----------------------------------------------------
 * 这是一个包含所有产品卡片的主容器，它负责整体布局。
 */
/*
 * ----------------------------------------------------
 * 整体页面容器样式 (.product-con)
 * ----------------------------------------------------
 * 这是一个包含所有产品卡片的主容器，它负责整体布局。
 */
.product-con {
  display: flex;
  flex-wrap: wrap; /* 允许产品项自动换行 */
  justify-content: center; /* 在容器中水平居中对齐产品项 */
  gap: 20px; /* 产品项之间的间距 */
  padding: 20px;
  background-color:#4D81FB; /* 使用更柔和的背景色 */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 增加更精细的阴影 */
  font-family: 'Inter', sans-serif;
  margin: 20px auto; /* 居中显示在页面上 */
}

/*
 * ----------------------------------------------------
 * 单个产品卡片样式 (.product-item)
 * ----------------------------------------------------
 * 每个产品卡片都有自己的独立样式。
 */
.product-con .product-item {
  display: flex;
  flex-direction: column;
  width: 250px;
  background-color: #ffffff;
  border: 1px solid #e9ecef; /* 柔和的边框颜色 */
  border-radius: 10px; /* 稍大的圆角 */
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* 鼠标悬停在产品卡片上的效果 */
.product-con .product-item:hover {
  transform: translateY(-8px); /* 向上移动更多 */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); /* 增加更明显的阴影 */
}

/*
 * ----------------------------------------------------
 * 图片列表容器样式 (.PicList)
 * ----------------------------------------------------
 * 这是一个用来包裹所有图片和信息的容器，通常在产品卡片内部。
 */
.product-item .PicList {
  width: 100%;
  border-radius: 8px; /* 图片列表容器的圆角 */
  overflow: hidden; /* 确保内部图片不会超出边界 */
  margin-bottom: 15px; /* 图片列表下方的间距 */
}

/*
 * ----------------------------------------------------
 * 产品图片样式 (.product-image)
 * ----------------------------------------------------
 * 产品图片是`.PicList`的直接子元素。
 */
.product-item .PicList .product-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1; /* 保持图片为正方形 */
  display: block; /* 移除图片底部可能存在的空白 */
}

/*
 * ----------------------------------------------------
 * 图片列表中的 ul 和 li 样式
 * ----------------------------------------------------
 * 用于美化产品图片下方的列表，如颜色或尺寸选项。
 */
.product-item .PicList ul {
  list-style: none; /* 移除列表默认的圆点 */
  margin: 10px 0 0 0; /* 调整上边距 */
  padding: 0;
  display: flex;
  justify-content: center; /* 水平居中对齐列表项 */
  gap: 8px; /* 列表项之间的间距 */
}

.product-item .PicList ul li {
  font-size: 0.9rem;
  color: #6c757d;
  padding: 4px 10px;
  border: 1px solid #ced4da;
  border-radius: 20px; /* 圆角边框，使列表项看起来像胶囊 */
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* 鼠标悬停在列表项上的效果 */
.product-item .PicList ul li:hover {
  background-color: #e9ecef;
  color: #495057;
}

/*
 * ----------------------------------------------------
 * 产品信息容器样式 (.info)
 * ----------------------------------------------------
 * 这是一个用来包裹产品标题和价格的容器。
 */
.product-item .info {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
  flex-grow: 1; /* 允许信息区块填充剩余空间，使价格始终在底部 */
}

/*
 * ----------------------------------------------------
 * 产品标题样式 (.product-title)
 * ----------------------------------------------------
 * 标题是`.info`的直接子元素。
 */
.product-item .info .product-title {
  font-size: 1.1rem;
  color: #343a40; /* 深灰色，更易于阅读 */
  margin: 0 0 8px 0; /* 调整间距 */
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/*
 * ----------------------------------------------------
 * 产品价格样式 (.product-price)
 * ----------------------------------------------------
 * 价格也是`.info`的直接子元素。
 */
.product-item .info .product-price {
  font-size: 1.3rem;
  color: #e74c3c; /* 醒目的红色，突出价格信息 */
  font-weight: bold;
  margin-top: auto; /* 将价格推到底部 */
}

/*
 * ----------------------------------------------------
 * 响应式设计 - 针对不同屏幕尺寸的布局调整
 * ----------------------------------------------------
 */
@media (max-width: 768px) {
  .product-con .product-item {
    width: calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .product-con .product-item {
    width: 100%;
  }
}

/*
 * ====================================================
 * PHP 生成的产品列表样式 - 左右结构
 * ====================================================
 * 以下样式是针对左右排列布局和较小图片的优化。
 */
.PicList {
  width: 100%;
  padding: 20px;
  background-color: #f8f9fa;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

.PicList .auto.clearfix {
  margin: 0 auto;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.PicList ul.ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/*
 * ----------------------------------------------------
 * 单个列表项 (li) - 左右布局卡片
 * ----------------------------------------------------
 * 每个 li 都是一个产品卡片，内容将左右排列。
 */
.PicList ul.ul li {
  width: 100%; /* 全宽以展示左右布局 */
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.PicList ul.ul li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/*
 * ----------------------------------------------------
 * 卡片内部容器 - 核心布局修改
 * ----------------------------------------------------
 * 使用 Flexbox 实现图片和内容区域的左右排列。
 */
.PicList ul.ul li > div {
  display: flex; /* 关键：开启 flex 布局 */
  flex-direction: row; /* 关键：设置为行方向 */
  align-items: flex-start; /* 顶部对齐 */
  padding: 15px; /* 内部间距 */
  gap: 15px;
  height: 100%;
}

/*
 * ----------------------------------------------------
 * 图片区域 (a.pic, img)
 * ----------------------------------------------------
 * 图片现在有固定的宽度，使其更小。
 */
.PicList ul.ul li .pic {
  display: block;
  flex-shrink: 0; /* 确保图片不会被挤压 */
  width: 150px; /* 图片的固定宽度 */
  height: 150px; /* 图片的固定高度 */
  overflow: hidden;
  border-radius: 8px; /* 给图片添加圆角 */
}

.PicList ul.ul li .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*
 * ----------------------------------------------------
 * 详情区域 (figure)
 * ----------------------------------------------------
 * 详情区域现在会填充图片右侧的剩余空间。
 */
.PicList ul.ul li figure {
  padding: 0; /* 移除 figure 自身的 padding */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.PicList ul.ul li figure h3 {
  margin: 0 0 5px 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.PicList ul.ul li figure h3 a.dot {
  color: #333;
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 产品参数 */
.PicList ul.ul li figure p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
  margin: 0 0 10px 0;
  flex-grow: 1;
}

.PicList ul.ul li figure p b {
  color: #000;
  font-weight: 700;
}

/* 查看详情链接 */
.PicList ul.ul li figure a.more {
  display: inline-block;
  text-decoration: none;
  background-color: #007bff;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto;
  align-self: flex-start; /* 按钮靠左对齐 */
}

.PicList ul.ul li figure a.more:hover {
  background-color: #0056b3;
}

/*
 * ----------------------------------------------------
 * 响应式设计 - 针对小屏幕的调整
 * ----------------------------------------------------
 * 在小屏幕上，恢复成上下排列，以避免内容被过度压缩。
 */
@media (max-width: 768px) {
  .PicList ul.ul li {
    max-width: 100%;
  }

  .PicList ul.ul li > div {
    flex-direction: column; /* 变为上下排列 */
    align-items: center; /* 居中对齐 */
    text-align: center;
    padding: 15px;
  }

  .PicList ul.ul li .pic {
    width: 100%;
    height: auto;
    max-width: 200px;
    margin-bottom: 10px;
  }

  .PicList ul.ul li figure a.more {
    align-self: center; /* 按钮居中 */
  }
}

/*
 * ====================================================
 * 相关产品列表样式
 * ====================================================
 */

/* 主容器样式 */
.related-products-list {
  font-family: 'Inter', sans-serif;
  width: 100%;
  margin: 40px auto;
  padding: 20px;
  box-sizing: border-box;
}

/* 标题样式 */
.related-products-list .class-title {
  text-align: center;
  margin-bottom: 30px;
}

.related-products-list .class-title h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.related-products-list .class-title h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #007bff;
  border-radius: 2px;
}

/* 列表容器 */
.related-products-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

/* 单个列表项样式 (产品卡片) */
.related-products-list ul li {
  background-color: #b6ccff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  text-align: center;
  padding: 15px;
}

.related-products-list ul li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 产品链接样式 */
.related-products-list ul li a {
  text-decoration: none;
  color: #333;
  display: block;
}

/* 产品图片样式 */
.related-products-list ul li a img {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* 产品名称样式 */
.related-products-list ul li a span {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  height: 2.8em; /* 固定高度以防止布局偏移 */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 限制为两行 */
  -webkit-box-orient: vertical;
}

/* 暂无记录或错误信息样式 */
.related-products-list ul li.empty,
.related-products-list ul li.error {
  grid-column: 1 / -1; /* 占据整个网格宽度 */
  text-align: center;
  font-size: 1rem;
  color: #6c757d;
  padding: 20px;
  border: 1px dashed #ced4da;
  background-color: #f8f9fa;
  box-shadow: none;
  cursor: default;
}

.related-products-list ul li.error {
  color: #dc3545;
  border-color: #dc3545;
  background-color: #fff0f0;
}

/*
 * ====================================================
 * 相关新闻列表样式
 * ====================================================
 */

/* 主容器样式 */
.related_news {
  font-family: 'Inter', sans-serif;
  width: 100%;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 列表容器 */
.related_news ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr; /* 默认在小屏幕上为单列 */
}

/* 列表项样式 */
.related_news ul li {
  display: flex;
  flex-direction: row; /* 默认左右布局 */
  align-items: center;
  background-color:#B6CCFF;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.related_news ul li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 图片样式 */
.related_news ul li img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
  flex-shrink: 0;
}

/* 内容区域 */
.related_news ul li .content-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 标题链接样式 */
.related_news ul li .content-wrapper a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.3s ease;
  display: block; /* 确保链接是块级元素 */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 限制标题为两行 */
  -webkit-box-orient: vertical;
}

.related_news ul li .content-wrapper a:hover {
  color: #007bff;
}

/* 摘要段落样式 */
.related_news ul li .content-wrapper p {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 限制摘要为三行 */
  -webkit-box-orient: vertical;
}

/* 媒体查询 - 针对小屏幕设备 */
@media (max-width: 768px) {
  .related_news ul li {
    flex-direction: column;
    text-align: center;
  }
  
  .related_news ul li img {
    width: 100%;
    height: 150px;
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .related_news ul li .content-wrapper {
    text-align: left; /* 保持文字左对齐 */
  }
}
