/* 覆盖 index.min.css 的全屏限制，允许页面长滚动 */
html,
body {
  height: auto !important;
  overflow: auto !important;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: url(../images/detail_bg.png) no-repeat left bottom;
  background-color: #efefef;
  background-size: 100vw auto; /* 使用 100vw 代替 1920px */
}
#app.news-page {
  background-image: none;
}
/* 页面主要内容区域，给 header 留出 136px 空间 */
.main-content {
  flex: 1;
  padding-bottom: 60px;
}

/* 顶部大 Banner */
.news-top-banner {
  width: 100%;
  /* height: 250px; */
  /* display: flex;
  justify-content: center;
  align-items: center; */
  position: relative;
  overflow: hidden;
}

.news-top-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 面包屑导航 */
.breadcrumb {
  width: 1065px; /* 对齐内容宽度 1065px */
  margin: 30px auto;
  color: #99714d;
  font-size: 18px;
  text-align: left;
  padding-left: 40px;
}

.breadcrumb a {
  color: #99714d;
  transition: color 0.2s;
  cursor: pointer;
}

.breadcrumb a:hover {
  color: #d4ad6e;
}
.breadcrumb span:last-of-type {
  color: #8d8d8d;
}

/* 列表页：分类导航栏 */
.category-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px; /* 间距 */
  margin: 30px auto;
  width: 1065px; /* 对齐内容宽度 1065px */
}

/* 分类按钮大小直接按照图片显示 */
.category-item {
  cursor: pointer;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: none !important;
}

.category-item img {
  display: block;
  width: auto;
  height: auto; /* 直接按照图片实际大小显示 */
  opacity: 0.6;
  transition: opacity 0.2s;
  pointer-events: none;
}

.category-item.active img,
.category-item:hover img {
  opacity: 1;
}

/* 选中分类的金色箭头指示器（定位在字的外侧，不撑开按钮盒子大小） */
.category-item.active::before,
.category-item.active::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 8px;
  background-size: contain;
  background-repeat: no-repeat;
  display: none;
}

.category-item.active::before {
  left: -20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M0 5l5-5v10z' fill='%23D4AD6E'/%3E%3C/svg%3E");
}

.category-item.active::after {
  right: -20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M10 5L5 0v10z' fill='%23D4AD6E'/%3E%3C/svg%3E");
}

/* 列表页：新闻项列表 */
.news-list-container {
  width: 100% !important; /* 容器占满 100% 宽度 */
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0; /* 每条新闻上下不需要间隔 */
  min-height: 400px;
}

.news-card {
  width: 100% !important; /* 卡片占满 100% 宽度 */
  background: none; /* 默认不显示背景图片 */
  border: none;
  border-top: 1px solid rgba(186, 144, 91, 0.15); /* 通过横线分隔 */
  border-radius: 0;
  padding: 24px 0;
  display: flex;
  justify-content: center;
  transition: background 0.3s;
}
.news-card:last-of-type {
  border-bottom: 1px solid rgba(186, 144, 91, 0.15);
}

/* hover时才显示背景图片 */
.news-card:hover {
  background: url(../images/news_item_bg.png) no-repeat center center;
  background-size: 100% 100%;
}

/* 新闻内部包裹容器，固定宽度 1065px */
.news-card-inner {
  width: 1065px;
  display: flex;
  align-items: center;
  margin: 0 auto;
  text-align: left;
}

/* 默认文本颜色为 #575652 */
.news-card-left {
  flex: 0 0 auto;
  text-align: center;
  color: #575652;
  font-size: 15px;
  font-weight: 500;
  padding-right: 15px;
  transition: color 0.2s;
}

.news-card-cover {
  flex: 0 0 320px;
  height: 130px;
  max-height: 130px; /* 缩略图最大高度为 130px */
  margin-left: 20px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(186, 144, 91, 0.2);
}

.news-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-card:hover .news-card-cover img {
  transform: scale(1.05);
}

.news-card-mid {
  flex: 1;
  margin-left: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: flex-start;
}

.news-card-title {
  color: #575652; /* 默认标题颜色 */
  font-size: 22px;
  font-weight: normal;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  max-width: 90%;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-card-desc {
  color: #575652; /* 默认描述颜色 */
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  /* 简介最多显示两行 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color 0.2s;
}

.news-card-right {
  flex: 0 0 120px;
  text-align: right;
  color: #575652; /* 默认日期颜色 */
  font-size: 14px;
  transition: color 0.2s;
}

/* hover时字体颜色变为 #99714D */
.news-card:hover .news-card-left,
.news-card:hover .news-card-title,
.news-card:hover .news-card-desc,
.news-card:hover .news-card-right {
  color: #99714d !important;
}

/* 列表页：分页组件 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 50px auto;
  color: #8c8375;
  font-size: 15px;
}

.pagination-btn {
  cursor: pointer;
  color: #a9a9a9;
  padding: 5px 15px;
  transition: color 0.2s;
  user-select: none;
}

.pagination-btn:hover {
  color: #d4ad6e;
}

.pagination-btn.disabled {
  color: #a9a9a9;
  cursor: not-allowed;
}

.pagination-num {
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid rgba(186, 144, 91, 0.4);
  color: #8c8375;
  transition: all 0.2s;
  user-select: none;
}

.pagination-num:hover,
.pagination-num.active {
  background: #d4ad6e;
  color: #fff;
  border-color: #d4ad6e;
}

/* 详情页：正文容器 */
.detail-container {
  width: 1062px; /* 对齐内容宽度 1065px */
  height: 1065px;
  overflow: hidden;
  margin: 20px auto 40px;
  background: url(../images/detail_content_bg.png) left top no-repeat;
  background-size: 100% 100%;
  padding: 50px 11px;
  color: #d1cbbd;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.detail-header-block {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  width: 100%;
  flex: 0 0 auto;
  padding: 0 60px;
}

.detail-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.detail-cat-badge {
  display: block;
  background: #d4ad6e;
  color: #fff;
  padding: 2px 4px;
  font-size: 13px;
  font-weight: bold;
  margin: 5px 12px 0 0;
  border-radius: 2px;
  flex: 0 0 auto;
}

.detail-title {
  font-size: 24px;
  color: #575652;
  margin: 0;
  line-height: 1.4;
  font-weight: bold;
}

.detail-date {
  margin-top: 12px;
  font-size: 14px;
  color: #8c8375;
}

.detail-divider {
  width: 100%;
  height: 18.3px;
  background: url(../images/news_detail_line.png) center center no-repeat;
  margin: 22px auto 30px;
}

.detail-body {
  line-height: 1.4;
  font-size: 14px;
  text-align: left;
  flex: 1 1 auto;
  overflow: auto;
  padding: 0 60px;
  color: #575652;
}
.detail-body::-webkit-scrollbar {
  display: block;
  background-color: transparent;
}
.detail-body::-webkit-scrollbar-track {
  background-color: transparent;
}

.detail-body p {
  padding: 5px 0;
  /* text-indent: 2em; */
}
.detail-body img,
.detail-body video {
  max-width: 100%;
  display: block;
  margin: 10px auto;
}

.detail-video-wrapper {
  margin: 40px auto;
  width: 800px;
  height: 450px;
  border: 1px solid rgba(186, 144, 91, 0.4);
  background: #000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  overflow: hidden;
}

.detail-video-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
}

/* 页脚强制覆写 */
.page-footer {
  position: relative !important;
  transform: translateY(0) !important;
  margin-top: auto;
  left: 0 !important;
  bottom: 0 !important;
}

.btn-show-footer {
  display: none !important;
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 44px;
  height: 44px;
  background: rgba(12, 13, 16, 0.9) url(../images/btn_up.png) no-repeat center
    center;
  background-size: 20px;
  border: 1px solid rgba(186, 144, 91, 0.5);
  border-radius: 4px;
  cursor: pointer;
  z-index: 99;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.back-to-top:hover {
  border-color: #d4ad6e;
  background-color: rgba(186, 144, 91, 0.1);
}
