* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "思源黑体", sans-serif;
}

/* 顶部导航容器 */
.nav-wrapper {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
}

/* 导航主体 */
.nav {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 70px;
  position: relative;
  justify-content: flex-start; /* PC端菜单靠左 */
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
}

/* 一级菜单 */
.menu {
  display: flex;
  list-style: none;
  margin-left: 40px; /* Logo 与菜单间距 */
}

.menu-item {
  position: relative;
  margin-right: 40px;
}

.menu-item a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  line-height: 70px;
  display: block;
  cursor: pointer;
}

.menu-item a:hover {
  color: #007bff; /* 滑过显示蓝色 */
}
/* 下拉菜单（PC端） */
.dropdown-menu {
  position: absolute;
  top: 70px;
  left: -210px;
  width: 1200px;
  padding: 20px;
  background: #fff;
  border: 1px solid #eee;
  display: none;
  z-index: 10;
}

/* hover 显示（PC端） */
.menu-item.dropdown:hover .dropdown-menu {
  display: block;
}

/* 二级标题 */
.dropdown-title {
  display: flex;
  align-items: center;
}

.dropdown-title img {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

/* 分类列表 */
.dropdown-list {
  display: flex;
}

/* 单个分类 */
.dropdown-list .item {
  width: 110px;
  text-align: left;
  font-size: 14px;
  margin-right: 130px; /* 每个分类右边距 */
}
/* 单个分类 */
.dropdown-list .item a:hover{
  color: #007bff; /* 滑过显示蓝色 */
}
/* 最后一个不加 margin */
.dropdown-list .item:last-child {
  margin-right: 0;
}

.dropdown-list .item img {
  width: 200px;
  height: 120px;
  object-fit: cover;
}

/* 汉堡按钮 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  margin-left: auto; /* 右对齐 */
}

.hamburger span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

/* ========================= */
/* 📱 移动端折叠样式 */
/* ========================= */
@media (max-width: 768px) {

  .nav {
    height: auto;
    flex-wrap: wrap;
  }

  /* 显示汉堡按钮 */
  .hamburger {
    display: flex;
  }

  /* 一级菜单纵向折叠隐藏 */
  .menu {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-left: 0;
    margin-top: 10px; /* 展开内容在 logo 下方 */
  }

  .menu.active {
    display: flex;
  }

  .menu-item {
    margin: 0;
    border-top: 1px solid #eee;
  }

  .menu-item a {
    line-height: 48px;
    padding: 0 10px;
  }

  /* 二级菜单移动端隐藏 */
  .dropdown-menu {
    display: none !important;
    position: static;
    width: 100%;
    border: none;
    padding: 0;
  }
}
/* ========================= */
/* Banner 滚动图样式 - 平铺 */
/* ========================= */
.banner-slider {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.banner-slider .slides {
  display: flex;
  width: 300%; /* 3张图片 */
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.banner-slider .slide {
  width: 100%;
  flex-shrink: 0;
  height: 100%;
  position: relative;
}

/* 平铺图片 */
.banner-slider .slide .slide-bg {
  width: 100%;
  height: 100%;
  background-repeat: repeat; /* 平铺 */
  background-size: auto; /* 保持原始大小 */
  background-position: top left;
}

/* 圆点导航 */
.banner-slider .dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}

.banner-slider .dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
}

.banner-slider .dots .dot.active {
  background: rgba(255,255,255,1);
}

/* 移动端自适应 */
@media (max-width: 768px) {
  .banner-slider {
    height: 300px;
  }
}
/* ========================= */
/* 文章内容容器 */
/* ========================= */
.article-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff; /* 容器底色白色 */
  padding: 20px;
  gap: 20px;
  box-sizing: border-box;
}

/* 左侧热门文章，占三分之二 */
.article-left {
  flex: 2;
}

/* 右侧推荐文章，占三分之一 */
.article-right {
  flex: 1;
}

/* 每个板块标题 */
.section-title {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.section-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* 文章列表 */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-list a{
  text-decoration: none;
}
.industry-col a{
  text-decoration: none;
}

/* 单篇文章 */
.article-item {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

/* 左侧热门文章图片 */
.article-left .article-item .article-img {
  width: 200px;
  height: 120px;
  object-fit: cover;
  margin-right: 10px;
}

/* 文章信息 */
.article-info {
  display: flex;
  flex-direction: column;
  margin-right: 50px;
}

/* 标题 */
.article-title {
  font-weight: bold;
  margin-bottom: 5px;
  cursor: pointer;
  transition: color 0.3s;
}

.article-title:hover {
  color: #007bff; /* 滑过显示蓝色 */
}

/* 摘要限制50个字 */
.article-desc {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 2行显示 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 摘要限制50个字 */
.article-desc1 {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 2行显示 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 10px;
}

/* 发布时间 */
.article-time {
  font-size: 12px;
  color: #999;
}

/* 推荐文章布局，无图片，右侧竖排 */
.article-right .article-item {
  flex-direction: column;
  align-items: flex-start;
  padding-left: 0;
}

.article-right .article-item .article-title,
.article-right .article-item .article-desc,
.article-right .article-item .article-time {
  margin: 2px 0;
}

/* 移动端自适应 */
@media (max-width: 768px) {
  .article-container {
    flex-direction: column;
  }
  .article-left, .article-right {
    flex: 1 1 100%;
  }
  .article-left .article-item {
    flex-direction: column;
  }
  .article-left .article-item .article-img {
    width: 100%;
    height: auto;
    margin-bottom: 8px;
  }
}
.article-right .article-title {
  max-width: 36ch;          /* 限制18个汉字宽度 */
  white-space: nowrap;     /* 不换行 */
  overflow: hidden;        /* 超出隐藏 */
  text-overflow: ellipsis; /* 显示省略号 */
  font-size: 16px;          /* 标题字体大小 16px */
}
/* ========================= */
/* 行业三列文章区 */
/* ========================= */
.industry-section {
  width: 100%;
  background: #fff;
}

.industry-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* 区块标题 */
.industry-header {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.industry-header img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
}

/* 三列布局 */
.industry-columns {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #eee;
}

/* 公共列样式 */
.industry-col {
  display: flex;
  flex-direction: column;
}

/* 左中右宽度 */
.industry-col.left {
  width: 33.33%;
}

.industry-col.middle,
.industry-col.right {
  width: 33.33%;
}

/* 文章样式 */
.article {
  padding: 10px 0;
}

.article-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-bottom: 5px;
}

.article-title {
  font-size: 16px;
  color: #333;
  cursor: pointer;
  transition: color 0.3s;
}

.article-title.bold {
  font-weight: bold;
}

.article-title:hover {
  color: #007bff;
}

.article-time {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}

/* 分割线 */
.divider {
  height: 1px;
  background: #eee;
  margin: 6px 0;
}


/* ========================= */
/* 行业三列区 - 手机端自适应 */
/* ========================= */
@media (max-width: 768px) {

  /* 整体容器上下留白稍微缩小 */
  .industry-container {
    padding: 20px 15px;
  }

  /* 三列改为纵向 */
  .industry-columns {
    flex-direction: column;
    gap: 20px;
  }

  /* 每一列占满宽度 */
  .industry-col {
    width: 100% !important;
  }

  /* 左列图片高度自适应 */
  .article-img {
    height: auto;
    max-height: 220px;
  }

  /* 左列标题稍微大一点，增强主文章感 */
  .industry-col.left .article-title {
    font-size: 18px;
  }

  /* 中列 gpt-4o-mini右列标题稍小，符合信息流 */
  .industry-col.middle .article-title,
  .industry-col.right .article-title {
    font-size: 16px;
  }

  /* 时间字号统一 */
  .article-time {
    font-size: 12px;
  }

  /* 分割线在手机端更紧凑 */
  .divider {
    margin: 8px 0;
  }
}
/* ========================= */
/* 修复：手机端左列文章图片不显示 */
/* ========================= */
@media (max-width: 768px) {

  /* 只作用于左列文章图片 */
  .industry-col.left .article-img {
    display: block;        /* 明确显示 */
    width: 100%;           /* 宽度铺满 */
    height: 180px;         /* 给一个明确高度，防止塌陷 */
    object-fit: cover;     /* 图片不变形 */
    margin-bottom: 12px;   /* 与标题拉开距离 */
  }

}
/* ========================= */
/* 文章标题统一：显示18个字 */
/* ========================= */

/*
  说明：
  - 18ch ≈ 18 个汉字
  - 单行显示
  - 超出省略号
*/
.industry-section .article-title {
  max-width: 40ch;          /* 限制18个字 */
  white-space: nowrap;     /* 不换行 */
  overflow: hidden;        /* 超出隐藏 */
  text-overflow: ellipsis; /* 省略号 */
}
/* ========================= */
/* 底部信息区 Footer */
/* ========================= */
.site-footer {
  width: 100%;
  background: #2f2f2f;      /* 深灰色背景 */
  color: #ccc;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;       /* 文案居中 */
}

/* 顶部导航文字 */
.footer-nav {
  font-size: 14px;
  color: #bbb;
  margin-bottom: 5px;
}

/* 版权 */
.footer-copy {
  font-size: 14px;
  color: #bbb;
  margin-bottom: 5px;
}

/* 联系我们 */
.footer-contact {
  font-size: 14px;
  color: #bbb;
  margin-bottom: 5px;
}

/* ========================= */
/* 移动端自适应 */
/* ========================= */
@media (max-width: 768px) {
  .footer-container {
    padding: 30px 15px;
  }

  .footer-nav {
    font-size: 14px;
    line-height: 1.8;
  }

  .footer-desc,
  .footer-address {
    font-size: 13px;
  }
}
/* ========================= */
/* Footer 超链接样式重置 */
/* ========================= */
.site-footer a {
  color: inherit;          /* 继承父级颜色，不显示蓝色 */
  text-decoration: none;   /* 去掉下划线 */
}

/* hover 时可选：微亮一点（可删） */
.site-footer a:hover {
  color: #fff;
}
/* Banner 文字层 */
.banner-slider .slide-text {
  position: absolute;      /* 浮在图片上 */
  top: 50%;                /* 垂直居中，可改为 top: 20% 调整位置 */
  left: 50%;               /* 水平居中 */
  transform: translate(-50%, -50%);
  color: #fff;             /* 白色文字 */
  text-align: center;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6); /* 半透明阴影，提高可读性 */
  max-width: 100%;
  pointer-events: none;    /* 不阻挡轮播点击 */
}

/* 标题 */
.banner-slider .slide-text h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

/* 描述文字 */
.banner-slider .slide-text p {
  font-size: 18px;
}

/* 移动端自适应 */
@media (max-width: 768px) {
  .banner-slider .slide-text h2 {
    font-size: 20px;
  }
  .banner-slider .slide-text p {
    font-size: 14px;
  }
  .banner-slider .slide-text {
    left: 20px;          /* 左边距 20px */
    right: 20px;         /* 右边距 20px */
    transform: translate(0, -50%); /* 取消水平居中，使用左右留白 */
  }
  
}
/* 移动端弹窗容器 */
.mobile-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none; /* 默认隐藏 */
}

/* 半透明遮罩 */
.popup-mask {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

/* 弹窗内容 */
.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 320px;
}

/* 图片 */
.popup-content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* 关闭按钮 */
.popup-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  background: #000;
  color: #fff;
  text-align: center;
  line-height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

/* PC端不显示 */
@media (min-width: 769px) {
  .mobile-popup {
    display: none !important;
  }
}


