/* ==========================================================================
   工程详情页与经典案例专属样式 (article.css)
   ========================================================================== */

:root {
  --primary-color: #c12022;
  --primary-hover: #b82d19;
  --text-main: #2b2b2b;
  --text-muted: #666666;
  --text-light: #999999;
  --border-color: #e6e6e6;
}

body {
  background-color: #ffffff;
  color: var(--text-main);
  overflow-x: hidden;
}
.header {
  background-color: #000;
}

.article-container {
  padding: 180px 0 80px 0;
  background-color: #ffffff;
}

/* ================= 1. 顶部元信息条 ================= */
.article-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  margin-bottom: 35px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-light);
  user-select: none;
}

.article-content-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px; /* 左右两栏间距 */
  width: 100%;
  box-sizing: border-box;
}

/* 左侧主体文章列（自动占满剩余空间） */
.article-main-col {
  flex: 1;
  min-width: 0; /* 阻止图片/超宽内容撑破 flex 盒模型 */
  box-sizing: border-box;
}

/* 右侧精品案例侧边栏（固定宽度） */
.article-sidebar-col {
  width: 280px; /* 匹配设计稿紧凑比例 */
  flex-shrink: 0;
  box-sizing: border-box;
}

.article-top-meta .divider {
  margin: 0 8px;
  color: #dddddd;
}

.article-top-meta .topic-tag {
  color: var(--primary-color);
}

.article-top-meta .meta-right {
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
}

/* ================= 2. 文章主体内容区 ================= */
.article-title {
  font-size: 26px;
  font-weight: 700;
  color: #111111;
  text-align: center;
  letter-spacing: 1px;
  line-height: 1.4;
  margin-bottom: 35px;
}

.article-body p {
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.8px;
  color: #555555;
  margin-bottom: 24px;
  text-align: justify;
}

.article-body .article-summary-p {
  margin-bottom: 0;
}

/* 文章插图样式 */
.article-image-box {
  width: 100%;
  margin: 28px 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  background-color: #f7f7f7;
}

.article-image-box img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.article-image-box:hover img {
  transform: scale(1.02);
}

/* ================= 3. 右侧精品案例推荐栏 ================= */
.sidebar-sticky-wrap {
  position: sticky;
  top: 190px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 18px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.sidebar-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 15px;
  background-color: var(--primary-color);
  margin-right: 8px;
}

.recommend-cases-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 单个案例卡片 */
.case-card-item {
  display: block;
  text-decoration: none;
  border-radius: 2px;
  overflow: hidden;
  background-color: #f4f5f7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.case-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.case-card-item .img-box {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
}

.case-card-item .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.case-card-item:hover .img-box img {
  transform: scale(1.06);
}

/* 浮在图片底部的黑色半透明标签条 */
.case-card-item .info-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 28px;
  background: rgba(18, 22, 26, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 12px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

/* ================= 4. 底部文章翻页栏 ================= */
.article-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
  gap: 20px;
}

.page-prev-box,
.page-next-box {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 40%;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  font-size: 13px;
  color: #666666;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.btn-nav:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.nav-title {
  font-size: 13px;
  color: #888888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-title:hover {
  color: var(--primary-color);
}

.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 返回列表按钮 */
.btn-back-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  font-size: 13px;
  color: #666666;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.btn-back-list:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.sidebar-news-section {
  margin-bottom: 35px;
}

.sidebar-news-section:last-child {
  margin-bottom: 0;
}

/* 模块标题（简约纯黑粗体） */
.sidebar-news-section .sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  letter-spacing: 1px;
  margin-bottom: 16px;
  line-height: 1.2;
}

/* 文字列表 */
.sidebar-text-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-text-list li {
  margin-bottom: 12px;
  line-height: 1.45;
}

.sidebar-text-list li:last-child {
  margin-bottom: 0;
}

.sidebar-news-item {
  display: -webkit-box;
  white-space: nowrap; /* 强制单行不换行 */
  overflow: hidden; /* 超出隐藏 */
  text-overflow: ellipsis; /* 超出部分显示省略号 ... */
  text-overflow: ellipsis;
  font-size: 12.5px;
  color: #555555;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.25s ease;
}

.sidebar-news-item:hover {
  color: var(--primary-color, #da3c25);
  text-decoration: none;
}

/* ================= 5. 全端响应式自适应规范 (<= 992px & <= 768px) ================= */
@media screen and (max-width: 992px) {
  .article-title {
    font-size: 22px;
  }
  .article-body p {
    font-size: 14.5px;
  }
  .case-card-item .img-box {
    height: 120px;
  }
  .article-content-layout {
    gap: 30px;
  }
  .article-sidebar-col {
    width: 240px;
  }
}

@media screen and (max-width: 768px) {
  .article-container {
    padding: 120px 0 50px 0;
  }

  /* 手机端：Flex 垂直排布 */
  .article-content-layout {
    flex-direction: column;
    gap: 0;
  }

  .article-main-col {
    width: 100%;
  }

  /* 侧边栏折叠至文末且宽度撑满 */
  .article-sidebar-col {
    width: 100%;
    margin-top: 35px;
  }

  /* 手机端案例网格展示为 2 列 */
  .recommend-cases-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* 顶部元信息流式单行滚动或分两行 */
  .article-top-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    margin-bottom: 20px;
  }

  .article-top-meta .topic-tag {
    /* display: inline-block; */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .article-title {
    font-size: 18px;
    text-align: left;
    margin-bottom: 20px;
  }

  .article-body p {
    font-size: 14px;
    line-height: 1.85;
    letter-spacing: 0.4px;
    margin-bottom: 16px;
  }

  .article-image-box {
    margin: 18px 0;
    border-radius: 3px;
  }

  /* 右侧精品案例转到底部并变为 2 列网格 */
  .article-sidebar-col {
    margin-top: 35px;
  }

  /* 手机端并列显示两列新闻 */
  .sidebar-sticky-wrap {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
  .sidebar-news-section {
    margin-bottom: 0;
  }

  .sidebar-news-item {
    font-size: 12px;
  }

  .sidebar-title {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .recommend-cases-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .case-card-item .img-box {
    height: 110px;
  }

  .case-card-item .info-tag {
    font-size: 11px;
    height: 24px;
    padding: 0 8px;
  }

  /* 底部翻页栏手机端排版 */
  .article-pagination-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 35px;
    padding-top: 20px;
  }

  .page-prev-box,
  .page-next-box {
    max-width: 100%;
    justify-content: space-between;
  }

  .page-next-box {
    flex-direction: row-reverse;
  }

  .page-list-box {
    order: 3;
    text-align: center;
    margin-top: 6px;
  }

  .btn-back-list {
    width: 100%;
    height: 38px;
  }
}
